added shipping method
This commit is contained in:
@@ -153,7 +153,8 @@ export interface CartItem {
|
||||
}
|
||||
|
||||
export interface CartResponse {
|
||||
message?: string;
|
||||
message: string;
|
||||
errorDetails?: string;
|
||||
data: CartItem[];
|
||||
count?: number;
|
||||
total?: number;
|
||||
@@ -200,6 +201,7 @@ export interface Order {
|
||||
id: number;
|
||||
status: string;
|
||||
shipping_method: string;
|
||||
shipping_price?: number;
|
||||
notes: string | null;
|
||||
customer_name: string;
|
||||
customer_phone: string;
|
||||
@@ -243,6 +245,7 @@ export interface CreateOrderPayload {
|
||||
customer_phone?: string;
|
||||
customer_address: string;
|
||||
shipping_method: string;
|
||||
shipping_price: number;
|
||||
payment_type_id: number;
|
||||
delivery_time?: string;
|
||||
delivery_at?: string;
|
||||
@@ -396,6 +399,11 @@ export interface ShippingMethod {
|
||||
code: string;
|
||||
}
|
||||
|
||||
export interface OrderDelivery {
|
||||
name: string;
|
||||
price: number;
|
||||
}
|
||||
|
||||
// Generic API Error Response
|
||||
export interface ApiError {
|
||||
message: string;
|
||||
|
||||
Reference in New Issue
Block a user