feat: payment & customer

This commit is contained in:
ferdiansyah783
2025-08-07 14:31:42 +07:00
parent a72a64215a
commit a5d22db27b
35 changed files with 2033 additions and 599 deletions
+3 -3
View File
@@ -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
}
+6 -2
View File
@@ -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;
}