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