@gofynd/fdk-client-javascript 3.3.3 → 3.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/Cart/CartApplicationClient.d.ts +30 -30
  4. package/sdk/application/Cart/CartApplicationClient.js +30 -30
  5. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +30 -30
  6. package/sdk/application/Catalog/CatalogApplicationClient.js +30 -30
  7. package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
  8. package/sdk/application/Common/CommonApplicationClient.js +2 -2
  9. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
  10. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
  11. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +16 -16
  12. package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -16
  13. package/sdk/application/Content/ContentApplicationClient.d.ts +24 -24
  14. package/sdk/application/Content/ContentApplicationClient.js +24 -24
  15. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
  16. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  17. package/sdk/application/Finance/FinanceApplicationClient.d.ts +2 -2
  18. package/sdk/application/Finance/FinanceApplicationClient.js +2 -2
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +5 -5
  20. package/sdk/application/Lead/LeadApplicationClient.js +5 -5
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +9 -9
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +9 -9
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +12 -12
  24. package/sdk/application/Order/OrderApplicationClient.js +12 -12
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +46 -46
  26. package/sdk/application/Payment/PaymentApplicationClient.js +46 -46
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +7 -7
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  30. package/sdk/application/Share/ShareApplicationClient.js +7 -7
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
  32. package/sdk/application/Theme/ThemeApplicationClient.js +4 -4
  33. package/sdk/application/User/UserApplicationClient.d.ts +47 -47
  34. package/sdk/application/User/UserApplicationClient.js +47 -47
  35. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
  36. package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
  37. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +6 -6
  38. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +6 -6
  39. package/sdk/partner/Lead/LeadPartnerClient.d.ts +7 -7
  40. package/sdk/partner/Lead/LeadPartnerClient.js +7 -7
  41. package/sdk/partner/Lead/LeadPartnerModel.d.ts +2 -2
  42. package/sdk/partner/Lead/LeadPartnerModel.js +1 -1
  43. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +25 -25
  44. package/sdk/partner/Logistics/LogisticsPartnerClient.js +25 -25
  45. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +57 -3
  46. package/sdk/partner/Logistics/LogisticsPartnerModel.js +40 -1
  47. package/sdk/partner/Theme/ThemePartnerClient.d.ts +24 -24
  48. package/sdk/partner/Theme/ThemePartnerClient.js +24 -24
  49. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +10 -10
  50. package/sdk/partner/Webhook/WebhookPartnerClient.js +10 -10
  51. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +2 -2
  52. package/sdk/partner/Webhook/WebhookPartnerModel.js +1 -1
  53. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +3 -3
  54. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +3 -3
  55. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +2 -2
  56. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +1 -1
  57. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +1 -1
  58. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +1 -1
  59. package/sdk/platform/Billing/BillingPlatformClient.d.ts +5 -5
  60. package/sdk/platform/Billing/BillingPlatformClient.js +5 -5
  61. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +62 -62
  62. package/sdk/platform/Cart/CartPlatformApplicationClient.js +62 -62
  63. package/sdk/platform/Cart/CartPlatformModel.d.ts +62 -3
  64. package/sdk/platform/Cart/CartPlatformModel.js +33 -1
  65. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +66 -66
  66. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +66 -66
  67. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +89 -82
  68. package/sdk/platform/Catalog/CatalogPlatformClient.js +121 -85
  69. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +61 -3
  70. package/sdk/platform/Catalog/CatalogPlatformModel.js +42 -1
  71. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +46 -5
  72. package/sdk/platform/Catalog/CatalogPlatformValidator.js +21 -4
  73. package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -2
  74. package/sdk/platform/Common/CommonPlatformClient.js +2 -2
  75. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +67 -67
  76. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +67 -67
  77. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
  78. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  79. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +2 -2
  80. package/sdk/platform/Communication/CommunicationPlatformModel.js +1 -1
  81. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +14 -14
  82. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +14 -14
  83. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -2
  84. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +1 -1
  85. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +32 -32
  86. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +32 -32
  87. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +11 -11
  88. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +11 -11
  89. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2 -2
  90. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1 -1
  91. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +107 -107
  92. package/sdk/platform/Content/ContentPlatformApplicationClient.js +107 -107
  93. package/sdk/platform/Content/ContentPlatformClient.d.ts +40 -40
  94. package/sdk/platform/Content/ContentPlatformClient.js +40 -40
  95. package/sdk/platform/Content/ContentPlatformModel.d.ts +2 -2
  96. package/sdk/platform/Content/ContentPlatformModel.js +1 -1
  97. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +11 -11
  98. package/sdk/platform/Discount/DiscountPlatformClient.js +11 -11
  99. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +2 -2
  100. package/sdk/platform/Discount/DiscountPlatformModel.js +1 -1
  101. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -4
  102. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -4
  103. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +6 -6
  104. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +6 -6
  105. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
  106. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
  107. package/sdk/platform/Lead/LeadPlatformClient.d.ts +9 -9
  108. package/sdk/platform/Lead/LeadPlatformClient.js +9 -9
  109. package/sdk/platform/Lead/LeadPlatformModel.d.ts +2 -2
  110. package/sdk/platform/Lead/LeadPlatformModel.js +1 -1
  111. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +5 -5
  112. package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -5
  113. package/sdk/platform/Order/OrderPlatformClient.d.ts +58 -58
  114. package/sdk/platform/Order/OrderPlatformClient.js +58 -58
  115. package/sdk/platform/Order/OrderPlatformModel.d.ts +9 -9
  116. package/sdk/platform/Order/OrderPlatformModel.js +6 -6
  117. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +2 -2
  118. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +2 -2
  119. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +51 -51
  120. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +51 -51
  121. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +10 -10
  122. package/sdk/platform/Payment/PaymentPlatformClient.js +10 -10
  123. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +85 -3
  124. package/sdk/platform/Payment/PaymentPlatformModel.js +49 -1
  125. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +12 -12
  126. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +12 -12
  127. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +2 -2
  128. package/sdk/platform/Rewards/RewardsPlatformModel.js +1 -1
  129. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +38 -38
  130. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -38
  131. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +28 -28
  132. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +28 -28
  133. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +59 -3
  134. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +42 -1
  135. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +5 -5
  136. package/sdk/platform/Share/SharePlatformApplicationClient.js +5 -5
  137. package/sdk/platform/Share/SharePlatformModel.d.ts +2 -2
  138. package/sdk/platform/Share/SharePlatformModel.js +1 -1
  139. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +22 -22
  140. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +22 -22
  141. package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
  142. package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
  143. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +34 -34
  144. package/sdk/platform/User/UserPlatformApplicationClient.js +34 -34
  145. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +9 -9
  146. package/sdk/platform/Webhook/WebhookPlatformClient.js +9 -9
  147. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +2 -2
  148. package/sdk/platform/Webhook/WebhookPlatformModel.js +1 -1
  149. package/sdk/public/Catalog/CatalogPublicClient.d.ts +1 -1
  150. package/sdk/public/Catalog/CatalogPublicClient.js +1 -1
  151. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -2
  152. package/sdk/public/Configuration/ConfigurationPublicClient.js +2 -2
  153. package/sdk/public/Content/ContentPublicClient.d.ts +14 -14
  154. package/sdk/public/Content/ContentPublicClient.js +14 -14
  155. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  156. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  157. package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -5
  158. package/sdk/public/Webhook/WebhookPublicClient.js +5 -5
@@ -184,7 +184,7 @@ export = CartPlatformModel;
184
184
  */
185
185
  /**
186
186
  * @typedef Page
187
- * @property {number} [item_total] - The total number of items on the page.
187
+ * @property {number} [item_total] - The total number of all items across all pages.
188
188
  * @property {string} [next_id] - The identifier for the next page.
189
189
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
190
190
  * @property {boolean} [has_next] - Indicates whether there is a next page.
@@ -962,6 +962,8 @@ export = CartPlatformModel;
962
962
  * message for the gift
963
963
  * @property {string[]} [product_group_tags] - List fot the unique identifier
964
964
  * for the product grouping.
965
+ * @property {boolean} [force_new_line_item] - Flag to indicate the item as a
966
+ * seperate article in cart
965
967
  * @property {Object} [identifier] - Unique identifier of the article
966
968
  * @property {number} [mto_quantity] - Quantity of the product which will
967
969
  * specially manufactured as not available in stock
@@ -973,6 +975,7 @@ export = CartPlatformModel;
973
975
  * @property {Object} [meta] - Meta data of article in cart
974
976
  * @property {string} [size] - Size of the article added in cart
975
977
  * @property {StoreInfo} [store]
978
+ * @property {number} [item_index] - Specify the index of article in cart.
976
979
  * @property {string[]} [tags] - A list of article tags
977
980
  */
978
981
  /**
@@ -1444,6 +1447,8 @@ export = CartPlatformModel;
1444
1447
  * level while add items to cart
1445
1448
  * @property {Object} [_custom_json] - Field to add custom json at article level
1446
1449
  * while add items to cart
1450
+ * @property {boolean} [force_new_line_item] - Field used to decide the product
1451
+ * add as a seperate product in cart
1447
1452
  * @property {Object} [meta] - Field to add meta data at article level
1448
1453
  * @property {boolean} [pos] - Filed to determine whether user is making request
1449
1454
  * from pos or not
@@ -1487,6 +1492,8 @@ export = CartPlatformModel;
1487
1492
  * @property {Object} [meta] - Field to update meta of the item in cart
1488
1493
  * @property {Object} [extra_meta] - Field to update extra meta of the product in cart
1489
1494
  * @property {Object} [_custom_json] - Field to update custom json of the product in cart
1495
+ * @property {boolean} [force_new_line_item] - Field used to decide the product
1496
+ * add as a seperate product in cart
1490
1497
  * @property {number} [item_id] - Item id of the product that needs to be updated
1491
1498
  * @property {number} [item_index] - Item index determines on which index the
1492
1499
  * product falls to be updated
@@ -1731,10 +1738,16 @@ export = CartPlatformModel;
1731
1738
  * @typedef CartItemCountResult
1732
1739
  * @property {number} [user_cart_items_count] - Item count present in cart
1733
1740
  */
1741
+ /**
1742
+ * @typedef DiscountRules
1743
+ * @property {number} [discounted_price] - Discount will be reflected in the
1744
+ * cart upon adding the product.
1745
+ */
1734
1746
  /**
1735
1747
  * @typedef Coupon
1736
1748
  * @property {string} [title] - Coupon Title of the coupon applied denotes name
1737
1749
  * of the coupon
1750
+ * @property {DiscountRules[]} [rule] - Discount rules of coupons
1738
1751
  * @property {number} [max_discount_value] - Maximum discount value of the
1739
1752
  * coupon applied to cart
1740
1753
  * @property {string} [coupon_code] - Coupon code of the coupon applied on cart
@@ -1926,6 +1939,8 @@ export = CartPlatformModel;
1926
1939
  * @property {number} [quantity] - Quantity of product in shipment
1927
1940
  * @property {string} shipment_type - Shipment delivery type
1928
1941
  * @property {string} article_uid - Article unique id for shipment
1942
+ * @property {number} [item_index] - Item index determines the position in the
1943
+ * list where the product should be updated.
1929
1944
  */
1930
1945
  /**
1931
1946
  * @typedef UpdateCartShipmentCreation
@@ -2164,6 +2179,8 @@ export = CartPlatformModel;
2164
2179
  * mode selected to do the payment
2165
2180
  * @property {string} [merchant_code] - Merchant code of the payment mode
2166
2181
  * selected to do the payment
2182
+ * @property {string[]} [payment_source_bag_id] - Previous bag IDs for which an
2183
+ * exchange has been performed.
2167
2184
  */
2168
2185
  /**
2169
2186
  * @typedef PaymentMethod
@@ -2335,7 +2352,7 @@ export = CartPlatformModel;
2335
2352
  declare class CartPlatformModel {
2336
2353
  }
2337
2354
  declare namespace CartPlatformModel {
2338
- export { CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResult, SuccessMessage, OperationErrorResult, CouponUpdate, CouponPartialUpdate, CouponCreateResult, DisplayMeta1, Ownership1, CompareObject, ItemSizeMapping, ItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResult, PromotionAdd, PromotionAddResult, PromotionUpdate, PromotionUpdateResult, PromotionPartialUpdate, ActivePromosResult, Charges, DeliveryCharges, CartMetaConfigUpdate, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResult, GetPriceAdjustmentResult, PriceAdjustmentAdd, DistributionRule, Distribution, DistributionLogic, CartItem, OpenapiCartDetailsCreation, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductActionParams, ProductActionPage, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, ProductArticle, Ownership2, DiscountRulesApp, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, ProductMaxQuantityInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CartProductInfo, OpenapiCartDetailsResult, OpenApiErrorResult, ShippingAddress, OpenApiCartServiceabilityCreation, OpenApiCartServiceabilityResult, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResult, AbandonedCart, AbandonedCartResult, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, CartDetailResult, AddProductCart, AddCartCreation, AddCartDetailResult, CartItemInfo, UpdateProductCart, FreeGiftItemCreation, UpdateCartCreation, UpdateCartDetailResult, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutResult, GetShareCartLinkCreation, GetShareCartLinkResult, SharedCartDetails, SharedCart, SharedCartResult, CartList, MultiCartResult, UpdateUserCartMapping, UserInfo, UserCartMappingResult, PlatformAddCartDetails, PlatformUpdateCartDetails, DeleteCartDetails, DeleteCartDetailResult, CartItemCountResult, Coupon, PageCoupon, GetCouponResult, ApplyCouponDetails, GeoLocation, PlatformAddress, ValidationConfig, PlatformGetAddressesDetails, SaveAddressDetails, UpdateAddressDetails, DeleteAddressResult, PlatformSelectCartAddress, ShipmentArticle, PlatformShipmentDetails, PlatformCartShipmentsResult, UpdateCartShipmentItem, UpdateCartShipmentCreation, PlatformCartMetaCreation, CartMetaDetails, CartMetaMissingDetails, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, OrderTag, PlatformCartCheckoutDetailCreation, CheckCart, CartCheckoutDetails, CartCheckoutResult, CartDeliveryModesDetails, PickupStoreDetail, StoreDetails, CartPaymentUpdate, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Creation, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, ArticlePriceDetails, FreeGiftItems, PromotionOffer, PromotionOffersDetails, PromotionPaymentOffer, PromotionPaymentOffersDetails, ValidationError, OrderingSource };
2355
+ export { CouponDateMeta, Ownership, CouponAuthor, State, PaymentAllowValue, PaymentModes, PriceRange, PostOrder, BulkBundleRestriction, UsesRemaining, UsesRestriction, Restrictions, Validation, CouponAction, CouponSchedule, Rule, DisplayMetaDict, DisplayMeta, Identifier, Validity, RuleDefinition, CouponAdd, Page, CouponsResult, SuccessMessage, OperationErrorResult, CouponUpdate, CouponPartialUpdate, CouponCreateResult, DisplayMeta1, Ownership1, CompareObject, ItemSizeMapping, ItemCriteria, DiscountOffer, DiscountRule, PaymentAllowValue1, PromotionPaymentModes, UserRegistered, PostOrder1, UsesRemaining1, UsesRestriction1, Restrictions1, PromotionSchedule, PromotionAction, PromotionAuthor, Visibility, PromotionDateMeta, PromotionListItem, PromotionsResult, PromotionAdd, PromotionAddResult, PromotionUpdate, PromotionUpdateResult, PromotionPartialUpdate, ActivePromosResult, Charges, DeliveryCharges, CartMetaConfigUpdate, CartMetaConfigAdd, Article, PriceAdjustmentRestrictions, Collection, PriceAdjustmentUpdate, PriceAdjustment, PriceAdjustmentResult, GetPriceAdjustmentResult, PriceAdjustmentAdd, DistributionRule, Distribution, DistributionLogic, CartItem, OpenapiCartDetailsCreation, CouponBreakup, DisplayBreakup, LoyaltyPoints, RawBreakup, CartBreakup, ProductImage, Tags, BaseInfo, ActionQuery, ProductActionParams, ProductActionPage, ProductAction, CategoryInfo, CartProduct, BasePrice, ArticlePriceInfo, StoreInfo, ProductArticle, Ownership2, DiscountRulesApp, AppliedFreeArticles, BuyRules, AppliedPromotion, PromiseFormatted, PromiseISOFormat, PromiseTimestamp, ShipmentPromise, CouponDetails, ProductPrice, ProductPriceInfo, ProductMaxQuantityInfo, CartProductIdentifer, ProductAvailabilitySize, ProductAvailability, PromoMeta, CartProductInfo, OpenapiCartDetailsResult, OpenApiErrorResult, ShippingAddress, OpenApiCartServiceabilityCreation, OpenApiCartServiceabilityResult, OpenApiFiles, CartItemMeta, MultiTenderPaymentMeta, MultiTenderPaymentMethod, OpenApiOrderItem, OpenApiPlatformCheckoutReq, OpenApiCheckoutResult, AbandonedCart, AbandonedCartResult, PaymentSelectionLock, CartCurrency, CartDetailCoupon, ChargesThreshold, DeliveryChargesConfig, CartCommonConfig, CartDetailResult, AddProductCart, AddCartCreation, AddCartDetailResult, CartItemInfo, UpdateProductCart, FreeGiftItemCreation, UpdateCartCreation, UpdateCartDetailResult, OverrideCartItemPromo, OverrideCartItem, OverrideCheckoutReq, OverrideCheckoutResult, GetShareCartLinkCreation, GetShareCartLinkResult, SharedCartDetails, SharedCart, SharedCartResult, CartList, MultiCartResult, UpdateUserCartMapping, UserInfo, UserCartMappingResult, PlatformAddCartDetails, PlatformUpdateCartDetails, DeleteCartDetails, DeleteCartDetailResult, CartItemCountResult, DiscountRules, Coupon, PageCoupon, GetCouponResult, ApplyCouponDetails, GeoLocation, PlatformAddress, ValidationConfig, PlatformGetAddressesDetails, SaveAddressDetails, UpdateAddressDetails, DeleteAddressResult, PlatformSelectCartAddress, ShipmentArticle, PlatformShipmentDetails, PlatformCartShipmentsResult, UpdateCartShipmentItem, UpdateCartShipmentCreation, PlatformCartMetaCreation, CartMetaDetails, CartMetaMissingDetails, StaffCheckout, CustomerDetails, Files, CartCheckoutCustomMeta, OrderTag, PlatformCartCheckoutDetailCreation, CheckCart, CartCheckoutDetails, CartCheckoutResult, CartDeliveryModesDetails, PickupStoreDetail, StoreDetails, CartPaymentUpdate, CouponValidity, PaymentCouponValidate, PaymentMeta, PaymentMethod, PlatformCartCheckoutDetailV2Creation, UpdateCartPaymentRequestV2, PriceMinMax, ItemPriceDetails, ArticlePriceDetails, FreeGiftItems, PromotionOffer, PromotionOffersDetails, PromotionPaymentOffer, PromotionPaymentOffersDetails, ValidationError, OrderingSource };
2339
2356
  }
2340
2357
  /** @returns {CouponDateMeta} */
2341
2358
  declare function CouponDateMeta(): CouponDateMeta;
@@ -2783,7 +2800,7 @@ type CouponAdd = {
2783
2800
  declare function Page(): Page;
2784
2801
  type Page = {
2785
2802
  /**
2786
- * - The total number of items on the page.
2803
+ * - The total number of all items across all pages.
2787
2804
  */
2788
2805
  item_total?: number;
2789
2806
  /**
@@ -4684,6 +4701,11 @@ type ProductArticle = {
4684
4701
  * for the product grouping.
4685
4702
  */
4686
4703
  product_group_tags?: string[];
4704
+ /**
4705
+ * - Flag to indicate the item as a
4706
+ * seperate article in cart
4707
+ */
4708
+ force_new_line_item?: boolean;
4687
4709
  /**
4688
4710
  * - Unique identifier of the article
4689
4711
  */
@@ -4716,6 +4738,10 @@ type ProductArticle = {
4716
4738
  */
4717
4739
  size?: string;
4718
4740
  store?: StoreInfo;
4741
+ /**
4742
+ * - Specify the index of article in cart.
4743
+ */
4744
+ item_index?: number;
4719
4745
  /**
4720
4746
  * - A list of article tags
4721
4747
  */
@@ -5956,6 +5982,11 @@ type AddProductCart = {
5956
5982
  * while add items to cart
5957
5983
  */
5958
5984
  _custom_json?: any;
5985
+ /**
5986
+ * - Field used to decide the product
5987
+ * add as a seperate product in cart
5988
+ */
5989
+ force_new_line_item?: boolean;
5959
5990
  /**
5960
5991
  * - Field to add meta data at article level
5961
5992
  */
@@ -6066,6 +6097,11 @@ type UpdateProductCart = {
6066
6097
  * - Field to update custom json of the product in cart
6067
6098
  */
6068
6099
  _custom_json?: any;
6100
+ /**
6101
+ * - Field used to decide the product
6102
+ * add as a seperate product in cart
6103
+ */
6104
+ force_new_line_item?: boolean;
6069
6105
  /**
6070
6106
  * - Item id of the product that needs to be updated
6071
6107
  */
@@ -6680,6 +6716,15 @@ type CartItemCountResult = {
6680
6716
  */
6681
6717
  user_cart_items_count?: number;
6682
6718
  };
6719
+ /** @returns {DiscountRules} */
6720
+ declare function DiscountRules(): DiscountRules;
6721
+ type DiscountRules = {
6722
+ /**
6723
+ * - Discount will be reflected in the
6724
+ * cart upon adding the product.
6725
+ */
6726
+ discounted_price?: number;
6727
+ };
6683
6728
  /** @returns {Coupon} */
6684
6729
  declare function Coupon(): Coupon;
6685
6730
  type Coupon = {
@@ -6688,6 +6733,10 @@ type Coupon = {
6688
6733
  * of the coupon
6689
6734
  */
6690
6735
  title?: string;
6736
+ /**
6737
+ * - Discount rules of coupons
6738
+ */
6739
+ rule?: DiscountRules[];
6691
6740
  /**
6692
6741
  * - Maximum discount value of the
6693
6742
  * coupon applied to cart
@@ -7209,6 +7258,11 @@ type UpdateCartShipmentItem = {
7209
7258
  * - Article unique id for shipment
7210
7259
  */
7211
7260
  article_uid: string;
7261
+ /**
7262
+ * - Item index determines the position in the
7263
+ * list where the product should be updated.
7264
+ */
7265
+ item_index?: number;
7212
7266
  };
7213
7267
  /** @returns {UpdateCartShipmentCreation} */
7214
7268
  declare function UpdateCartShipmentCreation(): UpdateCartShipmentCreation;
@@ -7773,6 +7827,11 @@ type PaymentMeta = {
7773
7827
  * selected to do the payment
7774
7828
  */
7775
7829
  merchant_code?: string;
7830
+ /**
7831
+ * - Previous bag IDs for which an
7832
+ * exchange has been performed.
7833
+ */
7834
+ payment_source_bag_id?: string[];
7776
7835
  };
7777
7836
  /** @returns {PaymentMethod} */
7778
7837
  declare function PaymentMethod(): PaymentMethod;
@@ -207,7 +207,7 @@ const Joi = require("joi");
207
207
 
208
208
  /**
209
209
  * @typedef Page
210
- * @property {number} [item_total] - The total number of items on the page.
210
+ * @property {number} [item_total] - The total number of all items across all pages.
211
211
  * @property {string} [next_id] - The identifier for the next page.
212
212
  * @property {boolean} [has_previous] - Indicates whether there is a previous page.
213
213
  * @property {boolean} [has_next] - Indicates whether there is a next page.
@@ -1053,6 +1053,8 @@ const Joi = require("joi");
1053
1053
  * message for the gift
1054
1054
  * @property {string[]} [product_group_tags] - List fot the unique identifier
1055
1055
  * for the product grouping.
1056
+ * @property {boolean} [force_new_line_item] - Flag to indicate the item as a
1057
+ * seperate article in cart
1056
1058
  * @property {Object} [identifier] - Unique identifier of the article
1057
1059
  * @property {number} [mto_quantity] - Quantity of the product which will
1058
1060
  * specially manufactured as not available in stock
@@ -1064,6 +1066,7 @@ const Joi = require("joi");
1064
1066
  * @property {Object} [meta] - Meta data of article in cart
1065
1067
  * @property {string} [size] - Size of the article added in cart
1066
1068
  * @property {StoreInfo} [store]
1069
+ * @property {number} [item_index] - Specify the index of article in cart.
1067
1070
  * @property {string[]} [tags] - A list of article tags
1068
1071
  */
1069
1072
 
@@ -1575,6 +1578,8 @@ const Joi = require("joi");
1575
1578
  * level while add items to cart
1576
1579
  * @property {Object} [_custom_json] - Field to add custom json at article level
1577
1580
  * while add items to cart
1581
+ * @property {boolean} [force_new_line_item] - Field used to decide the product
1582
+ * add as a seperate product in cart
1578
1583
  * @property {Object} [meta] - Field to add meta data at article level
1579
1584
  * @property {boolean} [pos] - Filed to determine whether user is making request
1580
1585
  * from pos or not
@@ -1622,6 +1627,8 @@ const Joi = require("joi");
1622
1627
  * @property {Object} [meta] - Field to update meta of the item in cart
1623
1628
  * @property {Object} [extra_meta] - Field to update extra meta of the product in cart
1624
1629
  * @property {Object} [_custom_json] - Field to update custom json of the product in cart
1630
+ * @property {boolean} [force_new_line_item] - Field used to decide the product
1631
+ * add as a seperate product in cart
1625
1632
  * @property {number} [item_id] - Item id of the product that needs to be updated
1626
1633
  * @property {number} [item_index] - Item index determines on which index the
1627
1634
  * product falls to be updated
@@ -1889,10 +1896,17 @@ const Joi = require("joi");
1889
1896
  * @property {number} [user_cart_items_count] - Item count present in cart
1890
1897
  */
1891
1898
 
1899
+ /**
1900
+ * @typedef DiscountRules
1901
+ * @property {number} [discounted_price] - Discount will be reflected in the
1902
+ * cart upon adding the product.
1903
+ */
1904
+
1892
1905
  /**
1893
1906
  * @typedef Coupon
1894
1907
  * @property {string} [title] - Coupon Title of the coupon applied denotes name
1895
1908
  * of the coupon
1909
+ * @property {DiscountRules[]} [rule] - Discount rules of coupons
1896
1910
  * @property {number} [max_discount_value] - Maximum discount value of the
1897
1911
  * coupon applied to cart
1898
1912
  * @property {string} [coupon_code] - Coupon code of the coupon applied on cart
@@ -2099,6 +2113,8 @@ const Joi = require("joi");
2099
2113
  * @property {number} [quantity] - Quantity of product in shipment
2100
2114
  * @property {string} shipment_type - Shipment delivery type
2101
2115
  * @property {string} article_uid - Article unique id for shipment
2116
+ * @property {number} [item_index] - Item index determines the position in the
2117
+ * list where the product should be updated.
2102
2118
  */
2103
2119
 
2104
2120
  /**
@@ -2357,6 +2373,8 @@ const Joi = require("joi");
2357
2373
  * mode selected to do the payment
2358
2374
  * @property {string} [merchant_code] - Merchant code of the payment mode
2359
2375
  * selected to do the payment
2376
+ * @property {string[]} [payment_source_bag_id] - Previous bag IDs for which an
2377
+ * exchange has been performed.
2360
2378
  */
2361
2379
 
2362
2380
  /**
@@ -3642,6 +3660,7 @@ class CartPlatformModel {
3642
3660
  uid: Joi.string().allow(""),
3643
3661
  gift_card: Joi.object().pattern(/\S/, Joi.any()),
3644
3662
  product_group_tags: Joi.array().items(Joi.string().allow("")),
3663
+ force_new_line_item: Joi.boolean(),
3645
3664
  identifier: Joi.object().pattern(/\S/, Joi.any()),
3646
3665
  mto_quantity: Joi.number(),
3647
3666
  extra_meta: Joi.object().pattern(/\S/, Joi.any()),
@@ -3651,6 +3670,7 @@ class CartPlatformModel {
3651
3670
  meta: Joi.object().pattern(/\S/, Joi.any()),
3652
3671
  size: Joi.string().allow(""),
3653
3672
  store: CartPlatformModel.StoreInfo(),
3673
+ item_index: Joi.number(),
3654
3674
  tags: Joi.array().items(Joi.string().allow("")),
3655
3675
  });
3656
3676
  }
@@ -4184,6 +4204,7 @@ class CartPlatformModel {
4184
4204
  item_id: Joi.number(),
4185
4205
  extra_meta: Joi.object().pattern(/\S/, Joi.any()),
4186
4206
  _custom_json: Joi.object().pattern(/\S/, Joi.any()),
4207
+ force_new_line_item: Joi.boolean(),
4187
4208
  meta: Joi.object().pattern(/\S/, Joi.any()),
4188
4209
  pos: Joi.boolean(),
4189
4210
  seller_identifier: Joi.string().allow(""),
@@ -4230,6 +4251,7 @@ class CartPlatformModel {
4230
4251
  meta: Joi.object().pattern(/\S/, Joi.any()),
4231
4252
  extra_meta: Joi.object().pattern(/\S/, Joi.any()),
4232
4253
  _custom_json: Joi.object().pattern(/\S/, Joi.any()),
4254
+ force_new_line_item: Joi.boolean(),
4233
4255
  item_id: Joi.number(),
4234
4256
  item_index: Joi.number(),
4235
4257
  identifiers: CartPlatformModel.CartProductIdentifer().required(),
@@ -4504,10 +4526,18 @@ class CartPlatformModel {
4504
4526
  });
4505
4527
  }
4506
4528
 
4529
+ /** @returns {DiscountRules} */
4530
+ static DiscountRules() {
4531
+ return Joi.object({
4532
+ discounted_price: Joi.number(),
4533
+ });
4534
+ }
4535
+
4507
4536
  /** @returns {Coupon} */
4508
4537
  static Coupon() {
4509
4538
  return Joi.object({
4510
4539
  title: Joi.string().allow(""),
4540
+ rule: Joi.array().items(CartPlatformModel.DiscountRules()),
4511
4541
  max_discount_value: Joi.number(),
4512
4542
  coupon_code: Joi.string().allow(""),
4513
4543
  is_applied: Joi.boolean(),
@@ -4713,6 +4743,7 @@ class CartPlatformModel {
4713
4743
  quantity: Joi.number(),
4714
4744
  shipment_type: Joi.string().allow("").required(),
4715
4745
  article_uid: Joi.string().allow("").required(),
4746
+ item_index: Joi.number(),
4716
4747
  });
4717
4748
  }
4718
4749
 
@@ -4982,6 +5013,7 @@ class CartPlatformModel {
4982
5013
  type: Joi.string().allow(""),
4983
5014
  payment_identifier: Joi.string().allow("").allow(null),
4984
5015
  merchant_code: Joi.string().allow(""),
5016
+ payment_source_bag_id: Joi.array().items(Joi.string().allow("")),
4985
5017
  });
4986
5018
  }
4987
5019