Default Type

This page is about definition of type variables or response return of api

1. OtherParam

export type OtherParams = {
  languageCode?: string;
  countryCode?: string; // sub-condition: customer location.
  toFixed?: number;     // toFixed with count-down cart message(default: 2). 
                        // E.g: Spend $100.00 get X.  
  enableForAllCondition?: boolean; // enable customize:gift-icon for all main conditions
  fgCodes?: string[];   // sub-condition: specific link
  isMobileApp?: boolean; // fill value "true" if is a mobile app
};

2. BaseObj


export type BaseObj = {
  id: number;
  title: string;
};

3. CartItem

export type CartItem = {
  id: string;
  variant_id: number;
  product_id: number;
  product_title: string;
  handle: string;
  vendor: string;
  product_type: string;
  collections: BaseObj[];
  price: number;
  compare_at_price?: number;
  quantity: number;
  selling_plan_allocation?: {
    selling_plan?: {
      id?: string;
      name?: string;
    };
  };
  currency?: string;
  tags: string[];
  properties: CartItemProperties[];
};

4. CartItemProperties

5. GiftSliderCustomize

6. FilterVariant

7. ProductInfo

8. Customer

9. OrderItem

10. OrderHistory

11. GiftItem

12. GiftProduct

13. GiftChangeAdd

14. GiftChangeUpdate

15. CartMessage

16. CartMessageCustomize

17. OfferCondition

18. TodayOffer

19. TodayOfferCustomize

20. ProductHasGifts

21. ProductSyncQuantity

22. DiscountBasicBundle

23. DiscountAdvanceBundle

24. BundleType

25. ProductsConditionBundle

26. Bundle

27. All type to copy

Last updated