@gofynd/fdk-client-javascript 1.4.15-beta.14 → 1.4.15-beta.15

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 (278) hide show
  1. package/README.md +23 -26
  2. package/package.json +5 -1
  3. package/sdk/application/ApplicationClient.d.ts +5 -6
  4. package/sdk/application/ApplicationClient.js +24 -20
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
  6. package/sdk/application/Cart/CartApplicationClient.js +444 -76
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -4
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
  16. package/sdk/application/Content/ContentApplicationClient.js +274 -111
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
  22. package/sdk/application/Lead/LeadApplicationClient.js +6 -6
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
  26. package/sdk/application/Order/OrderApplicationClient.js +217 -17
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
  28. package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
  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 +7 -7
  32. package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
  33. package/sdk/application/User/UserApplicationClient.d.ts +103 -53
  34. package/sdk/application/User/UserApplicationClient.js +308 -49
  35. package/sdk/common/AxiosHelper.js +11 -4
  36. package/sdk/common/Constant.d.ts +27 -4
  37. package/sdk/common/Constant.js +33 -6
  38. package/sdk/common/utils.d.ts +10 -0
  39. package/sdk/common/utils.js +24 -3
  40. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
  41. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
  42. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
  43. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
  44. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
  45. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
  46. package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
  47. package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
  48. package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
  49. package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
  50. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
  51. package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
  52. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
  53. package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
  54. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
  55. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
  56. package/sdk/partner/PartnerClient.d.ts +5 -2
  57. package/sdk/partner/PartnerClient.js +21 -7
  58. package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
  59. package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
  60. package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
  61. package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
  62. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  63. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
  64. package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
  65. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
  66. package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
  67. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
  68. package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
  69. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
  70. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
  71. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  72. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  73. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
  74. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
  75. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
  76. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
  77. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  78. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  79. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  80. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  81. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
  82. package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
  83. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  84. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  85. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  86. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  87. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +266 -203
  88. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
  89. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
  91. package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
  92. package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
  93. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
  94. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
  95. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
  97. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
  98. package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
  99. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9573 -2678
  100. package/sdk/platform/Catalog/CatalogPlatformModel.js +5033 -1973
  101. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
  103. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
  104. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  105. package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
  106. package/sdk/platform/Common/CommonPlatformModel.js +25 -14
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
  111. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
  112. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
  114. package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
  124. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
  126. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
  128. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  130. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
  132. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
  134. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
  135. package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
  136. package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
  137. package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
  138. package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
  139. package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
  140. package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
  141. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
  142. package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
  143. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
  144. package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
  145. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  146. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
  150. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
  152. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
  154. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  156. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  157. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
  158. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
  159. package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
  160. package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
  161. package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
  162. package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
  163. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
  164. package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
  165. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
  166. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
  167. package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
  168. package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
  169. package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
  170. package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
  171. package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
  172. package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
  173. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
  174. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
  175. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
  176. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
  177. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
  178. package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
  179. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
  180. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
  181. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
  182. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
  183. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
  184. package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
  185. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
  186. package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
  187. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  188. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  189. package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
  190. package/sdk/platform/PlatformApplicationClient.js +0 -4
  191. package/sdk/platform/PlatformClient.d.ts +5 -4
  192. package/sdk/platform/PlatformClient.js +32 -22
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
  203. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
  204. package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
  205. package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
  206. package/sdk/platform/Share/SharePlatformModel.js +31 -6
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
  208. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
  210. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
  211. package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
  212. package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
  214. package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
  215. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
  216. package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
  217. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
  218. package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
  219. package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
  220. package/sdk/platform/User/UserPlatformModel.js +607 -46
  221. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
  222. package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
  223. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
  224. package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
  225. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  226. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  227. package/sdk/platform/index.d.ts +0 -2
  228. package/sdk/platform/index.js +0 -4
  229. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  230. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  231. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  232. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  233. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  234. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
  239. package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
  240. package/sdk/public/Content/ContentPublicClient.js +1067 -17
  241. package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
  242. package/sdk/public/Content/ContentPublicModel.js +751 -3
  243. package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
  244. package/sdk/public/Content/ContentPublicValidator.js +119 -2
  245. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  246. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  247. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  248. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  249. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  250. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  251. package/sdk/public/PublicClient.d.ts +5 -2
  252. package/sdk/public/PublicClient.js +16 -6
  253. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
  254. package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
  255. package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
  256. package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
  257. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  258. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  259. package/sdk/public/index.d.ts +1 -0
  260. package/sdk/public/index.js +2 -0
  261. package/utility.d.ts +3 -0
  262. package/utility.js +7 -0
  263. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
  264. package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
  265. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
  266. package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
  267. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  268. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  269. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  270. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  271. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  272. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
@@ -15,7 +15,8 @@ class Cart {
15
15
  addAddress: "/service/application/cart/v1.0/address",
16
16
  addItems: "/service/application/cart/v1.0/detail",
17
17
  applyCoupon: "/service/application/cart/v1.0/coupon",
18
- applyRewardPoints: "/service/application/cart/v1.0/redeem/points/",
18
+ applyLoyaltyPoints: "/service/application/cart/v1.0/redeem",
19
+ applyOffer: "/service/application/cart/v1.0/offer",
19
20
  checkoutCart: "/service/application/cart/v1.0/checkout",
20
21
  checkoutCartV2: "/service/application/cart/v2.0/checkout",
21
22
  deleteCart: "/service/application/cart/v1.0/cart_archive",
@@ -29,16 +30,21 @@ class Cart {
29
30
  getCoupons: "/service/application/cart/v1.0/coupon",
30
31
  getItemCount: "/service/application/cart/v1.0/basic",
31
32
  getLadderOffers: "/service/application/cart/v1.0/available-ladder-prices",
33
+ getOffers: "/service/application/cart/v1.0/offer",
34
+ getProductsByOfferId:
35
+ "/service/application/cart/v1.0/eligible-offer-products",
32
36
  getPromotionOffers: "/service/application/cart/v1.0/available-promotions",
33
37
  getPromotionPaymentOffers:
34
38
  "/service/application/cart/v1.0/available-payment-offers",
35
39
  getShipments: "/service/application/cart/v1.0/shipment",
36
40
  removeAddress: "/service/application/cart/v1.0/address/{id}",
37
41
  removeCoupon: "/service/application/cart/v1.0/coupon",
42
+ removeOffer: "/service/application/cart/v1.0/offer",
38
43
  selectAddress: "/service/application/cart/v1.0/select-address",
39
44
  selectPaymentMode: "/service/application/cart/v1.0/payment",
40
45
  updateAddress: "/service/application/cart/v1.0/address/{id}",
41
46
  updateCart: "/service/application/cart/v1.0/detail",
47
+ updateCartBreakup: "/service/application/cart/v1.0/detail",
42
48
  updateCartMeta: "/service/application/cart/v1.0/meta",
43
49
  updateCartWithSharedItems:
44
50
  "/service/application/cart/v1.0/share-cart/{token}/{action}",
@@ -64,10 +70,10 @@ class Cart {
64
70
  /**
65
71
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
66
72
  * @param {import("../ApplicationAPIClient").Options} - Options
67
- * @returns {Promise<SaveAddressResponse>} - Success response
73
+ * @returns {Promise<SaveAddressResult>} - Success response
68
74
  * @name addAddress
69
75
  * @summary: Creates a new address for a customer
70
- * @description: Add a new address to their cart to save details such as name, email, contact information, and address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addAddress/).
76
+ * @description: Add a new address to their cart to save details such as name, email, contact information, and address. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/addAddress/).
71
77
  */
72
78
  async addAddress(
73
79
  { body, requestHeaders } = { requestHeaders: {} },
@@ -101,26 +107,41 @@ class Cart {
101
107
  /**
102
108
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
103
109
  * @param {import("../ApplicationAPIClient").Options} - Options
104
- * @returns {Promise<AddCartDetailResponse>} - Success response
110
+ * @returns {Promise<AddCartDetailResult>} - Success response
105
111
  * @name addItems
106
112
  * @summary: Add items to a cart
107
- * @description: Add product items to the customer's existing shopping cart. If there is no existing cart associated with the customer, it creates a new one and adds the items to it. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addItems/).
113
+ * @description: Add product items to the customer's existing shopping cart. If there is no existing cart associated with the customer, it creates a new one and adds the items to it. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/addItems/).
108
114
  */
109
115
  async addItems(
110
- { body, i, b, areaCode, buyNow, id, orderType, requestHeaders } = {
111
- requestHeaders: {},
112
- },
116
+ {
117
+ body,
118
+ xOrderingSource,
119
+ xOrderingSourceType,
120
+ i,
121
+ b,
122
+ includeCartCalculation,
123
+ areaCode,
124
+ buyNow,
125
+ id,
126
+ orderType,
127
+ requestHeaders,
128
+ } = { requestHeaders: {} },
113
129
  { responseHeaders } = { responseHeaders: false }
114
130
  ) {
115
131
  const query_params = {};
116
132
  query_params["i"] = i;
117
133
  query_params["b"] = b;
134
+ query_params["include_cart_calculation"] = includeCartCalculation;
118
135
  query_params["area_code"] = areaCode;
119
136
  query_params["buy_now"] = buyNow;
120
137
  query_params["id"] = id;
121
138
  query_params["order_type"] = orderType;
122
139
 
123
140
  const xHeaders = {};
141
+ if (xOrderingSource !== undefined)
142
+ xHeaders["x-ordering-source"] = xOrderingSource;
143
+ if (xOrderingSourceType !== undefined)
144
+ xHeaders["x-ordering-source-type"] = xOrderingSourceType;
124
145
 
125
146
  const response = await ApplicationAPIClient.execute(
126
147
  this._conf,
@@ -146,15 +167,24 @@ class Cart {
146
167
  /**
147
168
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
148
169
  * @param {import("../ApplicationAPIClient").Options} - Options
149
- * @returns {Promise<CartDetailResponse>} - Success response
170
+ * @returns {Promise<CartDetailResult>} - Success response
150
171
  * @name applyCoupon
151
172
  * @summary: Apply coupon
152
- * @description: Apply a coupon code to the cart to trigger discounts on eligible items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyCoupon/).
173
+ * @description: Apply a coupon code to the cart to trigger discounts on eligible items. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/applyCoupon/).
153
174
  */
154
175
  async applyCoupon(
155
- { body, i, b, p, id, buyNow, cartType, requestHeaders } = {
156
- requestHeaders: {},
157
- },
176
+ {
177
+ body,
178
+ xOrderingSource,
179
+ xOrderingSourceType,
180
+ i,
181
+ b,
182
+ p,
183
+ id,
184
+ buyNow,
185
+ cartType,
186
+ requestHeaders,
187
+ } = { requestHeaders: {} },
158
188
  { responseHeaders } = { responseHeaders: false }
159
189
  ) {
160
190
  const query_params = {};
@@ -166,6 +196,10 @@ class Cart {
166
196
  query_params["cart_type"] = cartType;
167
197
 
168
198
  const xHeaders = {};
199
+ if (xOrderingSource !== undefined)
200
+ xHeaders["x-ordering-source"] = xOrderingSource;
201
+ if (xOrderingSourceType !== undefined)
202
+ xHeaders["x-ordering-source-type"] = xOrderingSourceType;
169
203
 
170
204
  const response = await ApplicationAPIClient.execute(
171
205
  this._conf,
@@ -191,13 +225,22 @@ class Cart {
191
225
  /**
192
226
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
193
227
  * @param {import("../ApplicationAPIClient").Options} - Options
194
- * @returns {Promise<CartDetailResponse>} - Success response
195
- * @name applyRewardPoints
196
- * @summary: Use reward points
197
- * @description: Users can redeem their accumulated reward points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyRewardPoints/).
228
+ * @returns {Promise<CartDetailResult>} - Success response
229
+ * @name applyLoyaltyPoints
230
+ * @summary: Use loyalty points
231
+ * @description: Users can redeem their accumulated loyalty points and apply them to the items in their cart, thereby availing discounts on their current purchases. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/applyLoyaltyPoints/).
198
232
  */
199
- async applyRewardPoints(
200
- { body, id, i, b, buyNow, requestHeaders } = { requestHeaders: {} },
233
+ async applyLoyaltyPoints(
234
+ {
235
+ body,
236
+ xOrderingSource,
237
+ xOrderingSourceType,
238
+ id,
239
+ i,
240
+ b,
241
+ buyNow,
242
+ requestHeaders,
243
+ } = { requestHeaders: {} },
201
244
  { responseHeaders } = { responseHeaders: false }
202
245
  ) {
203
246
  const query_params = {};
@@ -206,13 +249,56 @@ class Cart {
206
249
  query_params["b"] = b;
207
250
  query_params["buy_now"] = buyNow;
208
251
 
252
+ const xHeaders = {};
253
+ if (xOrderingSource !== undefined)
254
+ xHeaders["x-ordering-source"] = xOrderingSource;
255
+ if (xOrderingSourceType !== undefined)
256
+ xHeaders["x-ordering-source-type"] = xOrderingSourceType;
257
+
258
+ const response = await ApplicationAPIClient.execute(
259
+ this._conf,
260
+ "post",
261
+ constructUrl({
262
+ url: this._urls["applyLoyaltyPoints"],
263
+ params: {},
264
+ }),
265
+ query_params,
266
+ body,
267
+ { ...xHeaders, ...requestHeaders },
268
+ { responseHeaders }
269
+ );
270
+
271
+ let responseData = response;
272
+ if (responseHeaders) {
273
+ responseData = response[0];
274
+ }
275
+
276
+ return response;
277
+ }
278
+
279
+ /**
280
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
281
+ * @param {import("../ApplicationAPIClient").Options} - Options
282
+ * @returns {Promise<OfferListItem>} - Success response
283
+ * @name applyOffer
284
+ * @summary: Apply offer to cart
285
+ * @description: Apply offer to the cart to trigger discounts on eligible items. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/applyOffer/).
286
+ */
287
+ async applyOffer(
288
+ { id, body, buyNow, requestHeaders } = { requestHeaders: {} },
289
+ { responseHeaders } = { responseHeaders: false }
290
+ ) {
291
+ const query_params = {};
292
+ query_params["id"] = id;
293
+ query_params["buy_now"] = buyNow;
294
+
209
295
  const xHeaders = {};
210
296
 
211
297
  const response = await ApplicationAPIClient.execute(
212
298
  this._conf,
213
299
  "post",
214
300
  constructUrl({
215
- url: this._urls["applyRewardPoints"],
301
+ url: this._urls["applyOffer"],
216
302
  params: {},
217
303
  }),
218
304
  query_params,
@@ -232,13 +318,20 @@ class Cart {
232
318
  /**
233
319
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
234
320
  * @param {import("../ApplicationAPIClient").Options} - Options
235
- * @returns {Promise<CartCheckoutResponse>} - Success response
321
+ * @returns {Promise<CartCheckoutResult>} - Success response
236
322
  * @name checkoutCart
237
323
  * @summary: Checkout cart
238
- * @description: The checkout cart initiates the order creation process based on the selected address and payment method. It revalidates the cart details to ensure safe and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCart/).
324
+ * @description: The checkout cart initiates the order creation process based on the selected address and payment method. It revalidates the cart details to ensure safe and seamless order placement. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/checkoutCart/).
239
325
  */
240
326
  async checkoutCart(
241
- { body, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
327
+ {
328
+ body,
329
+ xOrderingSource,
330
+ xOrderingSourceType,
331
+ buyNow,
332
+ cartType,
333
+ requestHeaders,
334
+ } = { requestHeaders: {} },
242
335
  { responseHeaders } = { responseHeaders: false }
243
336
  ) {
244
337
  const query_params = {};
@@ -246,6 +339,10 @@ class Cart {
246
339
  query_params["cart_type"] = cartType;
247
340
 
248
341
  const xHeaders = {};
342
+ if (xOrderingSource !== undefined)
343
+ xHeaders["x-ordering-source"] = xOrderingSource;
344
+ if (xOrderingSourceType !== undefined)
345
+ xHeaders["x-ordering-source-type"] = xOrderingSourceType;
249
346
 
250
347
  const response = await ApplicationAPIClient.execute(
251
348
  this._conf,
@@ -271,13 +368,22 @@ class Cart {
271
368
  /**
272
369
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
273
370
  * @param {import("../ApplicationAPIClient").Options} - Options
274
- * @returns {Promise<CartCheckoutResponse>} - Success response
371
+ * @returns {Promise<CartCheckoutResult>} - Success response
275
372
  * @name checkoutCartV2
276
373
  * @summary: Checkout cart
277
- * @description: The checkout cart initiates the order creation process based on the items in the users cart, their selected address, and chosen payment methods. It also supports multiple payment method options and revalidates the cart details to ensure a secure and seamless order placement. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCartV2/).
374
+ * @description: The checkout cart initiates the order creation process based on the items in the user's cart, their selected address, and chosen payment methods. It also supports multiple payment method options and revalidates the cart details to ensure a secure and seamless order placement. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/checkoutCartV2/).
278
375
  */
279
376
  async checkoutCartV2(
280
- { body, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
377
+ {
378
+ body,
379
+ xOrderingSource,
380
+ xOrderingSourceType,
381
+ xLocationDetail,
382
+ xCurrencyCode,
383
+ buyNow,
384
+ cartType,
385
+ requestHeaders,
386
+ } = { requestHeaders: {} },
281
387
  { responseHeaders } = { responseHeaders: false }
282
388
  ) {
283
389
  const query_params = {};
@@ -285,6 +391,14 @@ class Cart {
285
391
  query_params["cart_type"] = cartType;
286
392
 
287
393
  const xHeaders = {};
394
+ if (xOrderingSource !== undefined)
395
+ xHeaders["x-ordering-source"] = xOrderingSource;
396
+ if (xOrderingSourceType !== undefined)
397
+ xHeaders["x-ordering-source-type"] = xOrderingSourceType;
398
+ if (xLocationDetail !== undefined)
399
+ xHeaders["x-location-detail"] = xLocationDetail;
400
+ if (xCurrencyCode !== undefined)
401
+ xHeaders["x-currency-code"] = xCurrencyCode;
288
402
 
289
403
  const response = await ApplicationAPIClient.execute(
290
404
  this._conf,
@@ -310,10 +424,10 @@ class Cart {
310
424
  /**
311
425
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
312
426
  * @param {import("../ApplicationAPIClient").Options} - Options
313
- * @returns {Promise<DeleteCartDetailResponse>} - Success response
427
+ * @returns {Promise<DeleteCartDetailResult>} - Success response
314
428
  * @name deleteCart
315
429
  * @summary: Delete a cart
316
- * @description: Delete all items from the user's cart and resets it to its initial state, providing a clean slate for new selections. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/deleteCart/).
430
+ * @description: Delete all items from the user's cart and resets it to its initial state, providing a clean slate for new selections. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/deleteCart/).
317
431
  */
318
432
  async deleteCart(
319
433
  { id, requestHeaders } = { requestHeaders: {} },
@@ -351,7 +465,7 @@ class Cart {
351
465
  * @returns {Promise<Address>} - Success response
352
466
  * @name getAddressById
353
467
  * @summary: Get details for a single customer address
354
- * @description: Get a specific customer address stored in the system by providing its unique identifier. This API provides detailed information about the address, including the recipient's name, address, city, postal code, and other relevant details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddressById/).
468
+ * @description: Get a specific customer address stored in the system by providing its unique identifier. This API provides detailed information about the address, including the recipient's name, address, city, postal code, and other relevant details. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getAddressById/).
355
469
  */
356
470
  async getAddressById(
357
471
  {
@@ -409,10 +523,10 @@ class Cart {
409
523
  /**
410
524
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
411
525
  * @param {import("../ApplicationAPIClient").Options} - Options
412
- * @returns {Promise<GetAddressesResponse>} - Success response
526
+ * @returns {Promise<GetAddressesResult>} - Success response
413
527
  * @name getAddresses
414
528
  * @summary: Get a list of addresses for a customer
415
- * @description: List all addresses saved by the customer, simplifying the checkout process by offering pre-saved address options for delivery. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddresses/).
529
+ * @description: List all addresses saved by the customer, simplifying the checkout process by offering pre-saved address options for delivery. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getAddresses/).
416
530
  */
417
531
  async getAddresses(
418
532
  {
@@ -460,10 +574,10 @@ class Cart {
460
574
  /**
461
575
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
462
576
  * @param {import("../ApplicationAPIClient").Options} - Options
463
- * @returns {Promise<BulkPriceResponse>} - Success response
577
+ * @returns {Promise<BulkPriceResult>} - Success response
464
578
  * @name getBulkDiscountOffers
465
579
  * @summary: List bulk discounts
466
- * @description: List offer discounts with information about quantity and seller. One offer is marked with a "best" flag, indicating it as the best offer among the list. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getBulkDiscountOffers/).
580
+ * @description: List offer discounts with information about quantity and seller. One offer is marked with a "best" flag, indicating it as the best offer among the list. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getBulkDiscountOffers/).
467
581
  */
468
582
  async getBulkDiscountOffers(
469
583
  { itemId, articleId, uid, slug, requestHeaders } = { requestHeaders: {} },
@@ -501,13 +615,15 @@ class Cart {
501
615
  /**
502
616
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
503
617
  * @param {import("../ApplicationAPIClient").Options} - Options
504
- * @returns {Promise<CartDetailResponse>} - Success response
618
+ * @returns {Promise<CartDetailResult>} - Success response
505
619
  * @name getCart
506
620
  * @summary: Get a cart
507
- * @description: Get details of a cart linked to a specific customer using a unique cart ID. It offers an overview of the items, quantities, prices, and other relevant information associated with the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCart/).
621
+ * @description: Get details of a cart linked to a specific customer using a unique cart ID. It offers an overview of the items, quantities, prices, and other relevant information associated with the cart. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getCart/).
508
622
  */
509
623
  async getCart(
510
624
  {
625
+ xOrderingSource,
626
+ xOrderingSourceType,
511
627
  id,
512
628
  i,
513
629
  b,
@@ -531,6 +647,10 @@ class Cart {
531
647
  query_params["order_type"] = orderType;
532
648
 
533
649
  const xHeaders = {};
650
+ if (xOrderingSource !== undefined)
651
+ xHeaders["x-ordering-source"] = xOrderingSource;
652
+ if (xOrderingSourceType !== undefined)
653
+ xHeaders["x-ordering-source-type"] = xOrderingSourceType;
534
654
 
535
655
  const response = await ApplicationAPIClient.execute(
536
656
  this._conf,
@@ -559,7 +679,7 @@ class Cart {
559
679
  * @returns {Promise<any>} - Success response
560
680
  * @name getCartLastModified
561
681
  * @summary: Get last modified timestamp of a cart
562
- * @description: Retrieve the last modified timestamp of the cart using unique cart ID. It indicates the most recent update made to the cart's content or properties. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartLastModified/).
682
+ * @description: Retrieve the last modified timestamp of the cart using unique cart ID. It indicates the most recent update made to the cart's content or properties. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getCartLastModified/).
563
683
  */
564
684
  async getCartLastModified(
565
685
  { id, requestHeaders } = { requestHeaders: {} },
@@ -594,10 +714,10 @@ class Cart {
594
714
  /**
595
715
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
596
716
  * @param {import("../ApplicationAPIClient").Options} - Options
597
- * @returns {Promise<GetShareCartLinkResponse>} - Success response
717
+ * @returns {Promise<GetShareCartLinkResult>} - Success response
598
718
  * @name getCartShareLink
599
719
  * @summary: Create share cart link
600
- * @description: Generate a unique shareable link for the customer's cart for a specific sales channel. This link enables easy sharing of the cart contents with other users, facilitating collaborative shopping experiences. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartShareLink/).
720
+ * @description: Generate a unique shareable link for the customer's cart for a specific sales channel. This link enables easy sharing of the cart contents with other users, facilitating collaborative shopping experiences. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getCartShareLink/).
601
721
  */
602
722
  async getCartShareLink(
603
723
  { body, requestHeaders } = { requestHeaders: {} },
@@ -631,10 +751,10 @@ class Cart {
631
751
  /**
632
752
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
633
753
  * @param {import("../ApplicationAPIClient").Options} - Options
634
- * @returns {Promise<SharedCartResponse>} - Success response
754
+ * @returns {Promise<SharedCartResult>} - Success response
635
755
  * @name getCartSharedItems
636
756
  * @summary: List shared cart items
637
- * @description: Get cart items from the shared cart link based on unique token. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartSharedItems/).
757
+ * @description: Get cart items from the shared cart link based on unique token. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getCartSharedItems/).
638
758
  */
639
759
  async getCartSharedItems(
640
760
  { token, requestHeaders } = { requestHeaders: {} },
@@ -677,19 +797,21 @@ class Cart {
677
797
  /**
678
798
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
679
799
  * @param {import("../ApplicationAPIClient").Options} - Options
680
- * @returns {Promise<GetCouponResponse>} - Success response
800
+ * @returns {Promise<GetCouponResult>} - Success response
681
801
  * @name getCoupons
682
802
  * @summary: List available coupons
683
- * @description: List all available coupons that customer can apply to their carts. It provides details about each coupon, including its code, discount amount, and applicable conditions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCoupons/).
803
+ * @description: List all available coupons that customer can apply to their carts. It provides details about each coupon, including its code, discount amount, and applicable conditions. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getCoupons/).
684
804
  */
685
805
  async getCoupons(
686
- { id, buyNow, slug, storeId, requestHeaders } = { requestHeaders: {} },
806
+ { id, buyNow, productSlug, storeId, requestHeaders } = {
807
+ requestHeaders: {},
808
+ },
687
809
  { responseHeaders } = { responseHeaders: false }
688
810
  ) {
689
811
  const query_params = {};
690
812
  query_params["id"] = id;
691
813
  query_params["buy_now"] = buyNow;
692
- query_params["slug"] = slug;
814
+ query_params["product_slug"] = productSlug;
693
815
  query_params["store_id"] = storeId;
694
816
 
695
817
  const xHeaders = {};
@@ -718,10 +840,10 @@ class Cart {
718
840
  /**
719
841
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
720
842
  * @param {import("../ApplicationAPIClient").Options} - Options
721
- * @returns {Promise<CartItemCountResponse>} - Success response
843
+ * @returns {Promise<CartItemCountResult>} - Success response
722
844
  * @name getItemCount
723
845
  * @summary: Get a cart items count
724
- * @description: Get total count of items currently present in the customer's cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getItemCount/).
846
+ * @description: Get total count of items currently present in the customer's cart. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getItemCount/).
725
847
  */
726
848
  async getItemCount(
727
849
  { id, buyNow, requestHeaders } = { requestHeaders: {} },
@@ -760,7 +882,7 @@ class Cart {
760
882
  * @returns {Promise<LadderPriceOffers>} - Success response
761
883
  * @name getLadderOffers
762
884
  * @summary: List ladder offers
763
- * @description: Get ladder offers associated for the items in the cart. Ladder offers provide discounts or special pricing based on item quantity, allowing users to benefit from bulk purchases or promotional deals. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getLadderOffers/).
885
+ * @description: Get ladder offers associated for the items in the cart. Ladder offers provide discounts or special pricing based on item quantity, allowing users to benefit from bulk purchases or promotional deals. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getLadderOffers/).
764
886
  */
765
887
  async getLadderOffers(
766
888
  { slug, storeId, promotionId, pageSize, requestHeaders } = {
@@ -800,15 +922,119 @@ class Cart {
800
922
  /**
801
923
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
802
924
  * @param {import("../ApplicationAPIClient").Options} - Options
803
- * @returns {Promise<PromotionOffersResponse>} - Success response
925
+ * @returns {Promise<GetOfferResult>} - Success response
926
+ * @name getOffers
927
+ * @summary: List available offers
928
+ * @description: List all offers available for the items in the cart, including details such as offer text, unique offer ID, validity period, etc. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getOffers/).
929
+ */
930
+ async getOffers(
931
+ {
932
+ mode,
933
+ id,
934
+ buyNow,
935
+ productSlug,
936
+ storeId,
937
+ type,
938
+ productSize,
939
+ requestHeaders,
940
+ } = { requestHeaders: {} },
941
+ { responseHeaders } = { responseHeaders: false }
942
+ ) {
943
+ const query_params = {};
944
+ query_params["mode"] = mode;
945
+ query_params["id"] = id;
946
+ query_params["buy_now"] = buyNow;
947
+ query_params["product_slug"] = productSlug;
948
+ query_params["store_id"] = storeId;
949
+ query_params["type"] = type;
950
+ query_params["product_size"] = productSize;
951
+
952
+ const xHeaders = {};
953
+
954
+ const response = await ApplicationAPIClient.execute(
955
+ this._conf,
956
+ "get",
957
+ constructUrl({
958
+ url: this._urls["getOffers"],
959
+ params: {},
960
+ }),
961
+ query_params,
962
+ undefined,
963
+ { ...xHeaders, ...requestHeaders },
964
+ { responseHeaders }
965
+ );
966
+
967
+ let responseData = response;
968
+ if (responseHeaders) {
969
+ responseData = response[0];
970
+ }
971
+
972
+ return response;
973
+ }
974
+
975
+ /**
976
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
977
+ * @param {import("../ApplicationAPIClient").Options} - Options
978
+ * @returns {Promise<EligibleProductsResult>} - Success response
979
+ * @name getProductsByOfferId
980
+ * @summary: List eligible offer products
981
+ * @description: List all products eligible for the given offer. Lookup can be done by offer_code (takes priority) or offer_id. At least one must be provided. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getProductsByOfferId/).
982
+ */
983
+ async getProductsByOfferId(
984
+ { offerCode, offerId, page, pageSize, requestHeaders } = {
985
+ requestHeaders: {},
986
+ },
987
+ { responseHeaders } = { responseHeaders: false }
988
+ ) {
989
+ const query_params = {};
990
+ query_params["offer_code"] = offerCode;
991
+ query_params["offer_id"] = offerId;
992
+ query_params["page"] = page;
993
+ query_params["page_size"] = pageSize;
994
+
995
+ const xHeaders = {};
996
+
997
+ const response = await ApplicationAPIClient.execute(
998
+ this._conf,
999
+ "get",
1000
+ constructUrl({
1001
+ url: this._urls["getProductsByOfferId"],
1002
+ params: {},
1003
+ }),
1004
+ query_params,
1005
+ undefined,
1006
+ { ...xHeaders, ...requestHeaders },
1007
+ { responseHeaders }
1008
+ );
1009
+
1010
+ let responseData = response;
1011
+ if (responseHeaders) {
1012
+ responseData = response[0];
1013
+ }
1014
+
1015
+ return response;
1016
+ }
1017
+
1018
+ /**
1019
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1020
+ * @param {import("../ApplicationAPIClient").Options} - Options
1021
+ * @returns {Promise<PromotionOffersResult>} - Success response
804
1022
  * @name getPromotionOffers
805
1023
  * @summary: List available promotion offers
806
- * @description: List all promotional offers available for the items in the cart, including details such as offer text, unique promotion ID, and validity period. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionOffers/).
1024
+ * @description: List all promotional offers available for the items in the cart, including details such as offer text, unique promotion ID, and validity period. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getPromotionOffers/).
807
1025
  */
808
1026
  async getPromotionOffers(
809
- { slug, pageSize, promotionGroup, storeId, cartType, requestHeaders } = {
810
- requestHeaders: {},
811
- },
1027
+ {
1028
+ slug,
1029
+ pageSize,
1030
+ promotionGroup,
1031
+ storeId,
1032
+ cartType,
1033
+ promotionType,
1034
+ cartId,
1035
+ autoApply,
1036
+ requestHeaders,
1037
+ } = { requestHeaders: {} },
812
1038
  { responseHeaders } = { responseHeaders: false }
813
1039
  ) {
814
1040
  const query_params = {};
@@ -817,6 +1043,9 @@ class Cart {
817
1043
  query_params["promotion_group"] = promotionGroup;
818
1044
  query_params["store_id"] = storeId;
819
1045
  query_params["cart_type"] = cartType;
1046
+ query_params["promotion_type"] = promotionType;
1047
+ query_params["cart_id"] = cartId;
1048
+ query_params["auto_apply"] = autoApply;
820
1049
 
821
1050
  const xHeaders = {};
822
1051
 
@@ -844,10 +1073,10 @@ class Cart {
844
1073
  /**
845
1074
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
846
1075
  * @param {import("../ApplicationAPIClient").Options} - Options
847
- * @returns {Promise<PromotionPaymentOffersResponse>} - Success response
1076
+ * @returns {Promise<PromotionPaymentOffersResult>} - Success response
848
1077
  * @name getPromotionPaymentOffers
849
1078
  * @summary: Fetch available promotions payment offers
850
- * @description: Use this API to get top 5 payment offers available for current product. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionPaymentOffers/).
1079
+ * @description: Use this API to get top 5 payment offers available for current product. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getPromotionPaymentOffers/).
851
1080
  */
852
1081
  async getPromotionPaymentOffers(
853
1082
  { id, uid, requestHeaders } = { requestHeaders: {} },
@@ -883,10 +1112,10 @@ class Cart {
883
1112
  /**
884
1113
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
885
1114
  * @param {import("../ApplicationAPIClient").Options} - Options
886
- * @returns {Promise<CartShipmentsResponse>} - Success response
1115
+ * @returns {Promise<CartShipmentsResult>} - Success response
887
1116
  * @name getShipments
888
1117
  * @summary: List shipments
889
- * @description: Get shipment details for the items in a cart, specific to the selected address. Shipment details include delivery promises, seller information, item details, and other relevant information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getShipments/).
1118
+ * @description: Get shipment details for the items in a cart, specific to the selected address. Shipment details include delivery promises, seller information, item details, and other relevant information. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/getShipments/).
890
1119
  */
891
1120
  async getShipments(
892
1121
  { p, id, buyNow, addressId, areaCode, orderType, requestHeaders } = {
@@ -928,10 +1157,10 @@ class Cart {
928
1157
  /**
929
1158
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
930
1159
  * @param {import("../ApplicationAPIClient").Options} - Options
931
- * @returns {Promise<DeleteAddressResponse>} - Success response
1160
+ * @returns {Promise<DeleteAddressResult>} - Success response
932
1161
  * @name removeAddress
933
1162
  * @summary: Removes an address from a customer's address list
934
- * @description: Delete an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
1163
+ * @description: Delete an existing customer address from the system. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/removeAddress/).
935
1164
  */
936
1165
  async removeAddress(
937
1166
  { id, requestHeaders } = { requestHeaders: {} },
@@ -974,13 +1203,15 @@ class Cart {
974
1203
  /**
975
1204
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
976
1205
  * @param {import("../ApplicationAPIClient").Options} - Options
977
- * @returns {Promise<CartDetailResponse>} - Success response
1206
+ * @returns {Promise<CartDetailResult>} - Success response
978
1207
  * @name removeCoupon
979
1208
  * @summary: Remove coupon
980
- * @description: Remove an applied coupon from the customer's cart, thereby removing the associated discount from the cart total. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeCoupon/).
1209
+ * @description: Remove an applied coupon from the customer's cart, thereby removing the associated discount from the cart total. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/removeCoupon/).
981
1210
  */
982
1211
  async removeCoupon(
983
- { id, buyNow, requestHeaders } = { requestHeaders: {} },
1212
+ { xOrderingSource, xOrderingSourceType, id, buyNow, requestHeaders } = {
1213
+ requestHeaders: {},
1214
+ },
984
1215
  { responseHeaders } = { responseHeaders: false }
985
1216
  ) {
986
1217
  const query_params = {};
@@ -988,6 +1219,10 @@ class Cart {
988
1219
  query_params["buy_now"] = buyNow;
989
1220
 
990
1221
  const xHeaders = {};
1222
+ if (xOrderingSource !== undefined)
1223
+ xHeaders["x-ordering-source"] = xOrderingSource;
1224
+ if (xOrderingSourceType !== undefined)
1225
+ xHeaders["x-ordering-source-type"] = xOrderingSourceType;
991
1226
 
992
1227
  const response = await ApplicationAPIClient.execute(
993
1228
  this._conf,
@@ -1013,13 +1248,61 @@ class Cart {
1013
1248
  /**
1014
1249
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1015
1250
  * @param {import("../ApplicationAPIClient").Options} - Options
1016
- * @returns {Promise<CartDetailResponse>} - Success response
1251
+ * @returns {Promise<OfferListItem>} - Success response
1252
+ * @name removeOffer
1253
+ * @summary: Remove offer from cart
1254
+ * @description: Remove an applied offer from the customer's cart, thereby removing the associated discount from the cart total. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/removeOffer/).
1255
+ */
1256
+ async removeOffer(
1257
+ { id, buyNow, requestHeaders } = { requestHeaders: {} },
1258
+ { responseHeaders } = { responseHeaders: false }
1259
+ ) {
1260
+ const query_params = {};
1261
+ query_params["id"] = id;
1262
+ query_params["buy_now"] = buyNow;
1263
+
1264
+ const xHeaders = {};
1265
+
1266
+ const response = await ApplicationAPIClient.execute(
1267
+ this._conf,
1268
+ "delete",
1269
+ constructUrl({
1270
+ url: this._urls["removeOffer"],
1271
+ params: {},
1272
+ }),
1273
+ query_params,
1274
+ undefined,
1275
+ { ...xHeaders, ...requestHeaders },
1276
+ { responseHeaders }
1277
+ );
1278
+
1279
+ let responseData = response;
1280
+ if (responseHeaders) {
1281
+ responseData = response[0];
1282
+ }
1283
+
1284
+ return response;
1285
+ }
1286
+
1287
+ /**
1288
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1289
+ * @param {import("../ApplicationAPIClient").Options} - Options
1290
+ * @returns {Promise<CartDetailResult>} - Success response
1017
1291
  * @name selectAddress
1018
1292
  * @summary: Select customer address for order processing
1019
- * @description: Select an address from the saved customer addresses and validates the availability of items in the cart. Additionally, it verifies and updates the delivery promise based on the selected address. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectAddress/).
1293
+ * @description: Select an address from the saved customer addresses and validates the availability of items in the cart. Additionally, it verifies and updates the delivery promise based on the selected address. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/selectAddress/).
1020
1294
  */
1021
1295
  async selectAddress(
1022
- { body, cartId, buyNow, i, b, requestHeaders } = { requestHeaders: {} },
1296
+ {
1297
+ body,
1298
+ xOrderingSource,
1299
+ xOrderingSourceType,
1300
+ cartId,
1301
+ buyNow,
1302
+ i,
1303
+ b,
1304
+ requestHeaders,
1305
+ } = { requestHeaders: {} },
1023
1306
  { responseHeaders } = { responseHeaders: false }
1024
1307
  ) {
1025
1308
  const query_params = {};
@@ -1029,6 +1312,10 @@ class Cart {
1029
1312
  query_params["b"] = b;
1030
1313
 
1031
1314
  const xHeaders = {};
1315
+ if (xOrderingSource !== undefined)
1316
+ xHeaders["x-ordering-source"] = xOrderingSource;
1317
+ if (xOrderingSourceType !== undefined)
1318
+ xHeaders["x-ordering-source-type"] = xOrderingSourceType;
1032
1319
 
1033
1320
  const response = await ApplicationAPIClient.execute(
1034
1321
  this._conf,
@@ -1054,13 +1341,20 @@ class Cart {
1054
1341
  /**
1055
1342
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1056
1343
  * @param {import("../ApplicationAPIClient").Options} - Options
1057
- * @returns {Promise<CartDetailResponse>} - Success response
1344
+ * @returns {Promise<CartDetailResult>} - Success response
1058
1345
  * @name selectPaymentMode
1059
1346
  * @summary: Select payment mode
1060
- * @description: Select a preferred payment mode from available options during the cart checkout process to securely and efficiently complete their transaction. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectPaymentMode/).
1347
+ * @description: Select a preferred payment mode from available options during the cart checkout process to securely and efficiently complete their transaction. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/selectPaymentMode/).
1061
1348
  */
1062
1349
  async selectPaymentMode(
1063
- { body, id, buyNow, requestHeaders } = { requestHeaders: {} },
1350
+ {
1351
+ body,
1352
+ xOrderingSource,
1353
+ xOrderingSourceType,
1354
+ id,
1355
+ buyNow,
1356
+ requestHeaders,
1357
+ } = { requestHeaders: {} },
1064
1358
  { responseHeaders } = { responseHeaders: false }
1065
1359
  ) {
1066
1360
  const query_params = {};
@@ -1068,6 +1362,10 @@ class Cart {
1068
1362
  query_params["buy_now"] = buyNow;
1069
1363
 
1070
1364
  const xHeaders = {};
1365
+ if (xOrderingSource !== undefined)
1366
+ xHeaders["x-ordering-source"] = xOrderingSource;
1367
+ if (xOrderingSourceType !== undefined)
1368
+ xHeaders["x-ordering-source-type"] = xOrderingSourceType;
1071
1369
 
1072
1370
  const response = await ApplicationAPIClient.execute(
1073
1371
  this._conf,
@@ -1093,10 +1391,10 @@ class Cart {
1093
1391
  /**
1094
1392
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1095
1393
  * @param {import("../ApplicationAPIClient").Options} - Options
1096
- * @returns {Promise<UpdateAddressResponse>} - Success response
1394
+ * @returns {Promise<UpdateAddressResult>} - Success response
1097
1395
  * @name updateAddress
1098
1396
  * @summary: Updates an existing customer address
1099
- * @description: Customer can modify the details of a previously saved addresses. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateAddress/).
1397
+ * @description: Customer can modify the details of a previously saved address. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/updateAddress/).
1100
1398
  */
1101
1399
  async updateAddress(
1102
1400
  { id, body, requestHeaders } = { requestHeaders: {} },
@@ -1139,17 +1437,20 @@ class Cart {
1139
1437
  /**
1140
1438
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1141
1439
  * @param {import("../ApplicationAPIClient").Options} - Options
1142
- * @returns {Promise<UpdateCartDetailResponse>} - Success response
1440
+ * @returns {Promise<UpdateCartDetailResult>} - Success response
1143
1441
  * @name updateCart
1144
1442
  * @summary: Update cart items
1145
- * @description: Update cart. Customers can modify added product attributes such as quantity and size, as well as remove items from the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCart/).
1443
+ * @description: Update cart. Customers can modify added product attributes such as quantity and size, as well as remove items from the cart. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/updateCart/).
1146
1444
  */
1147
1445
  async updateCart(
1148
1446
  {
1149
1447
  body,
1448
+ xOrderingSource,
1449
+ xOrderingSourceType,
1150
1450
  id,
1151
1451
  i,
1152
1452
  b,
1453
+ includeCartCalculation,
1153
1454
  areaCode,
1154
1455
  buyNow,
1155
1456
  cartType,
@@ -1162,12 +1463,17 @@ class Cart {
1162
1463
  query_params["id"] = id;
1163
1464
  query_params["i"] = i;
1164
1465
  query_params["b"] = b;
1466
+ query_params["include_cart_calculation"] = includeCartCalculation;
1165
1467
  query_params["area_code"] = areaCode;
1166
1468
  query_params["buy_now"] = buyNow;
1167
1469
  query_params["cart_type"] = cartType;
1168
1470
  query_params["order_type"] = orderType;
1169
1471
 
1170
1472
  const xHeaders = {};
1473
+ if (xOrderingSource !== undefined)
1474
+ xHeaders["x-ordering-source"] = xOrderingSource;
1475
+ if (xOrderingSourceType !== undefined)
1476
+ xHeaders["x-ordering-source-type"] = xOrderingSourceType;
1171
1477
 
1172
1478
  const response = await ApplicationAPIClient.execute(
1173
1479
  this._conf,
@@ -1193,10 +1499,66 @@ class Cart {
1193
1499
  /**
1194
1500
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1195
1501
  * @param {import("../ApplicationAPIClient").Options} - Options
1196
- * @returns {Promise<CartMetaResponse>} - Success response
1502
+ * @returns {Promise<UpdateCartDetailResult>} - Success response
1503
+ * @name updateCartBreakup
1504
+ * @summary: Update store credits into cart and their items
1505
+ * @description: Update cart. Customers can adjust the cart breakup by applying or removing store credits as needed. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/updateCartBreakup/).
1506
+ */
1507
+ async updateCartBreakup(
1508
+ {
1509
+ body,
1510
+ xOrderingSource,
1511
+ xOrderingSourceType,
1512
+ id,
1513
+ i,
1514
+ b,
1515
+ buyNow,
1516
+ cartType,
1517
+ requestHeaders,
1518
+ } = { requestHeaders: {} },
1519
+ { responseHeaders } = { responseHeaders: false }
1520
+ ) {
1521
+ const query_params = {};
1522
+ query_params["id"] = id;
1523
+ query_params["i"] = i;
1524
+ query_params["b"] = b;
1525
+ query_params["buy_now"] = buyNow;
1526
+ query_params["cart_type"] = cartType;
1527
+
1528
+ const xHeaders = {};
1529
+ if (xOrderingSource !== undefined)
1530
+ xHeaders["x-ordering-source"] = xOrderingSource;
1531
+ if (xOrderingSourceType !== undefined)
1532
+ xHeaders["x-ordering-source-type"] = xOrderingSourceType;
1533
+
1534
+ const response = await ApplicationAPIClient.execute(
1535
+ this._conf,
1536
+ "patch",
1537
+ constructUrl({
1538
+ url: this._urls["updateCartBreakup"],
1539
+ params: {},
1540
+ }),
1541
+ query_params,
1542
+ body,
1543
+ { ...xHeaders, ...requestHeaders },
1544
+ { responseHeaders }
1545
+ );
1546
+
1547
+ let responseData = response;
1548
+ if (responseHeaders) {
1549
+ responseData = response[0];
1550
+ }
1551
+
1552
+ return response;
1553
+ }
1554
+
1555
+ /**
1556
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1557
+ * @param {import("../ApplicationAPIClient").Options} - Options
1558
+ * @returns {Promise<CartMetaResult>} - Success response
1197
1559
  * @name updateCartMeta
1198
1560
  * @summary: Update cart metadata
1199
- * @description: Update metadata associated with a cart, which includes customer preferences, delivery instructions, or any special requirements related to the cart items. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartMeta/).
1561
+ * @description: Update metadata associated with a cart, which includes customer preferences, delivery instructions, or any special requirements related to the cart items. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/updateCartMeta/).
1200
1562
  */
1201
1563
  async updateCartMeta(
1202
1564
  { body, id, buyNow, requestHeaders } = { requestHeaders: {} },
@@ -1232,10 +1594,10 @@ class Cart {
1232
1594
  /**
1233
1595
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1234
1596
  * @param {import("../ApplicationAPIClient").Options} - Options
1235
- * @returns {Promise<SharedCartResponse>} - Success response
1597
+ * @returns {Promise<SharedCartResult>} - Success response
1236
1598
  * @name updateCartWithSharedItems
1237
1599
  * @summary: Update with shared items
1238
- * @description: Merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).
1600
+ * @description: Merge or replace shared cart items with existing cart. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/updateCartWithSharedItems/).
1239
1601
  */
1240
1602
  async updateCartWithSharedItems(
1241
1603
  { token, action, requestHeaders } = { requestHeaders: {} },
@@ -1281,10 +1643,12 @@ class Cart {
1281
1643
  * @returns {Promise<PaymentCouponValidate>} - Success response
1282
1644
  * @name validateCouponForPayment
1283
1645
  * @summary: Validate applied coupon
1284
- * @description: Validate the applicability of a coupon code for the selected payment mode for the existing cart. This ensures the coupon's validity before proceeding with the payment process, enhancing user experience and preventing potential errors during transactions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/validateCouponForPayment/).
1646
+ * @description: Validate the applicability of a coupon code for the selected payment mode for the existing cart. This ensures the coupon's validity before proceeding with the payment process, enhancing user experience and preventing potential errors during transactions. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/cart/validateCouponForPayment/).
1285
1647
  */
1286
1648
  async validateCouponForPayment(
1287
1649
  {
1650
+ xOrderingSource,
1651
+ xOrderingSourceType,
1288
1652
  id,
1289
1653
  buyNow,
1290
1654
  addressId,
@@ -1316,6 +1680,10 @@ class Cart {
1316
1680
  query_params["cart_type"] = cartType;
1317
1681
 
1318
1682
  const xHeaders = {};
1683
+ if (xOrderingSource !== undefined)
1684
+ xHeaders["x-ordering-source"] = xOrderingSource;
1685
+ if (xOrderingSourceType !== undefined)
1686
+ xHeaders["x-ordering-source-type"] = xOrderingSourceType;
1319
1687
 
1320
1688
  const response = await ApplicationAPIClient.execute(
1321
1689
  this._conf,