feat: payment & customer
This commit is contained in:
@@ -12,8 +12,8 @@ export interface Order {
|
||||
outlet_id: string
|
||||
user_id: string
|
||||
table_number: string
|
||||
order_type: 'dineIn' | 'takeAway' | 'delivery'
|
||||
status: 'pending' | 'inProgress' | 'completed' | 'cancelled'
|
||||
order_type: string
|
||||
status: string
|
||||
subtotal: number
|
||||
tax_amount: number
|
||||
discount_amount: number
|
||||
@@ -39,7 +39,7 @@ export interface OrderItem {
|
||||
total_price: number
|
||||
modifiers: any[]
|
||||
notes: string
|
||||
status: 'pending' | 'completed' | 'cancelled'
|
||||
status: string
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
@@ -10,10 +10,14 @@ export interface PaymentMethod {
|
||||
id: string;
|
||||
organization_id: string;
|
||||
name: string;
|
||||
type: PaymentMethodType;
|
||||
type: string;
|
||||
is_active: boolean;
|
||||
created_at: string; // ISO 8601 timestamp
|
||||
updated_at: string; // ISO 8601 timestamp
|
||||
}
|
||||
|
||||
export type PaymentMethodType = "cash" | "card" | "edc" | "delivery" | string;
|
||||
export interface PaymentMethodRequest {
|
||||
name: string;
|
||||
type: string;
|
||||
is_active: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user