added address type to cart type
This commit is contained in:
Vendored
+4
-19
@@ -109,10 +109,7 @@ declare global {
|
|||||||
colors: string[];
|
colors: string[];
|
||||||
};
|
};
|
||||||
|
|
||||||
type ProductListItem = Pick<
|
type ProductListItem = Pick<Product, "id" | "variants" | "name" | "rating" | "slug" | "category" | "colors">;
|
||||||
Product,
|
|
||||||
"id" | "variants" | "name" | "rating" | "slug" | "category" | "colors"
|
|
||||||
>;
|
|
||||||
|
|
||||||
type Article = {
|
type Article = {
|
||||||
id: number;
|
id: number;
|
||||||
@@ -193,13 +190,7 @@ declare global {
|
|||||||
id: number;
|
id: number;
|
||||||
count: number;
|
count: number;
|
||||||
images: string[];
|
images: string[];
|
||||||
status:
|
status: "ADMIN_PENDING" | "PENDING" | "POSTED" | "RECEIVED" | "CANCELED" | "REFUND";
|
||||||
| "ADMIN_PENDING"
|
|
||||||
| "PENDING"
|
|
||||||
| "POSTED"
|
|
||||||
| "RECEIVED"
|
|
||||||
| "CANCELED"
|
|
||||||
| "REFUND";
|
|
||||||
verbose_status: string;
|
verbose_status: string;
|
||||||
is_paid: boolean;
|
is_paid: boolean;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
@@ -248,6 +239,7 @@ declare global {
|
|||||||
cart_total: string;
|
cart_total: string;
|
||||||
tax: string;
|
tax: string;
|
||||||
final_price: string;
|
final_price: string;
|
||||||
|
address: Address;
|
||||||
};
|
};
|
||||||
|
|
||||||
type ServerFile = {
|
type ServerFile = {
|
||||||
@@ -281,14 +273,7 @@ declare global {
|
|||||||
id: number;
|
id: number;
|
||||||
picture: string;
|
picture: string;
|
||||||
title: string;
|
title: string;
|
||||||
type:
|
type: "ZARINPAL" | "SEP" | "MELLAT" | "IDPAY" | "ZIBAL" | "BAHAMTA" | "BMI";
|
||||||
| "ZARINPAL"
|
|
||||||
| "SEP"
|
|
||||||
| "MELLAT"
|
|
||||||
| "IDPAY"
|
|
||||||
| "ZIBAL"
|
|
||||||
| "BAHAMTA"
|
|
||||||
| "BMI";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
type Transaction = {
|
type Transaction = {
|
||||||
|
|||||||
Reference in New Issue
Block a user