added shipping method

This commit is contained in:
@jcarymuhammedow
2026-03-02 17:46:18 +05:00
parent bf5980e3b3
commit c13a4655bf
7 changed files with 282 additions and 71 deletions

View File

@@ -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;