|
|
@@ -43,11 +43,17 @@ export interface CartDetail {
|
|
|
isGuest: boolean;
|
|
|
itemsCount: number;
|
|
|
items: CartItemsConnection;
|
|
|
+ isVip: boolean;
|
|
|
+ vipDiscountAmount: number;
|
|
|
+ formattedVipDiscountAmount: string;
|
|
|
+ giftcardNumber: string | null;
|
|
|
subtotal: number; // Subtotal before discounts and taxes
|
|
|
subTotalInclTax: number;
|
|
|
// baseSubtotal: number;
|
|
|
discountAmount: number;
|
|
|
// baseDiscountAmount: number;
|
|
|
+ giftcardAmount: number;
|
|
|
+ vipPlusAmount: number;
|
|
|
taxAmount: number;
|
|
|
taxTotal: number;
|
|
|
shippingAmount: number;
|
|
|
@@ -56,6 +62,8 @@ export interface CartDetail {
|
|
|
|
|
|
formattedSubtotal: string;
|
|
|
formattedSubTotalInclTax: string;
|
|
|
+ formattedGiftcardAmount: string;
|
|
|
+ formattedVipPlusAmount: string;
|
|
|
formattedDiscountAmount: string;
|
|
|
formattedTaxAmount: string;
|
|
|
formattedTaxTotal: string;
|
|
|
@@ -135,7 +143,13 @@ export interface CreateCartTokenOperation {
|
|
|
data: CreateCartTokenData;
|
|
|
variables: CreateCartTokenVariables;
|
|
|
}
|
|
|
-
|
|
|
+// apply coupon
|
|
|
+export interface CreateApplyCouponPayload {
|
|
|
+ applyCoupon: CartDetail;
|
|
|
+}
|
|
|
+export interface CreateApplyCouponData {
|
|
|
+ createApplyCoupon: CreateApplyCouponPayload;
|
|
|
+}
|
|
|
// Merge Cart
|
|
|
export interface CreateMergeCartPayload {
|
|
|
mergeCart: CartDetail;
|