@gofynd/fdk-client-javascript 1.6.4 → 3.1.0-beta.1

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 (290) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/sdk/application/ApplicationClient.d.ts +0 -2
  4. package/sdk/application/ApplicationClient.js +0 -2
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +100 -80
  6. package/sdk/application/Cart/CartApplicationClient.js +257 -126
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +3 -3
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +61 -21
  16. package/sdk/application/Content/ContentApplicationClient.js +250 -36
  17. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  18. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  19. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +106 -57
  20. package/sdk/application/Logistic/LogisticApplicationClient.js +326 -208
  21. package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
  22. package/sdk/application/Order/OrderApplicationClient.js +140 -21
  23. package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
  24. package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
  25. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  26. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  27. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  28. package/sdk/application/Share/ShareApplicationClient.js +14 -14
  29. package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
  30. package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
  31. package/sdk/application/User/UserApplicationClient.d.ts +13 -23
  32. package/sdk/application/User/UserApplicationClient.js +9 -57
  33. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  34. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  35. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
  36. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
  37. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
  38. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
  39. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
  40. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
  41. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
  42. package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
  43. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
  44. package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
  45. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
  46. package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
  47. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +0 -10
  48. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +0 -75
  49. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +1 -54
  50. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +0 -43
  51. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
  52. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +0 -6
  53. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  54. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  55. package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
  56. package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
  57. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  58. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
  59. package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
  60. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
  61. package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
  62. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
  63. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
  64. package/sdk/partner/PartnerClient.d.ts +6 -0
  65. package/sdk/partner/PartnerClient.js +9 -0
  66. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
  67. package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
  68. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
  69. package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
  70. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
  71. package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
  72. package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
  73. package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
  74. package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
  75. package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
  76. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
  77. package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
  78. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  79. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  80. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
  81. package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
  82. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  83. package/sdk/partner/index.d.ts +3 -0
  84. package/sdk/partner/index.js +6 -0
  85. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
  86. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  87. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  88. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
  89. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  90. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  91. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
  92. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
  93. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  94. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  95. package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
  96. package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
  97. package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
  98. package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
  99. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
  100. package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
  101. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +251 -172
  102. package/sdk/platform/Cart/CartPlatformApplicationClient.js +639 -521
  103. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  104. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
  105. package/sdk/platform/Cart/CartPlatformModel.d.ts +3150 -4468
  106. package/sdk/platform/Cart/CartPlatformModel.js +2858 -1867
  107. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +976 -380
  108. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6475 -2015
  109. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1083 -162
  110. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +884 -80
  111. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +325 -568
  112. package/sdk/platform/Catalog/CatalogPlatformClient.js +1162 -1562
  113. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6008 -7688
  114. package/sdk/platform/Catalog/CatalogPlatformModel.js +9522 -6892
  115. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +234 -227
  116. package/sdk/platform/Catalog/CatalogPlatformValidator.js +183 -177
  117. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
  118. package/sdk/platform/Common/CommonPlatformClient.js +5 -6
  119. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  120. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  121. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -238
  122. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +876 -588
  123. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
  124. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
  125. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
  126. package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
  127. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +506 -270
  128. package/sdk/platform/Communication/CommunicationPlatformModel.js +611 -313
  129. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
  130. package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
  131. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +78 -77
  132. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +97 -91
  133. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
  134. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
  135. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +31 -20
  136. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +25 -20
  137. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
  138. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
  139. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
  140. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
  141. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
  142. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
  143. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1206 -459
  144. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1011 -320
  145. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
  146. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
  147. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +255 -140
  148. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1095 -464
  149. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
  150. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
  151. package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
  152. package/sdk/platform/Content/ContentPlatformClient.js +459 -379
  153. package/sdk/platform/Content/ContentPlatformModel.d.ts +871 -1315
  154. package/sdk/platform/Content/ContentPlatformModel.js +940 -599
  155. package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
  156. package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
  157. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
  158. package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
  159. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
  160. package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
  161. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  162. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  163. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
  164. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
  165. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
  166. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
  167. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  168. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  169. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
  170. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
  171. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  172. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  173. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  174. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  175. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
  176. package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
  177. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  178. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  179. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  180. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  181. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  182. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  183. package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
  184. package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
  185. package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
  186. package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
  187. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
  188. package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
  189. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
  190. package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
  191. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
  192. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
  193. package/sdk/platform/Order/OrderPlatformClient.d.ts +486 -277
  194. package/sdk/platform/Order/OrderPlatformClient.js +1491 -938
  195. package/sdk/platform/Order/OrderPlatformModel.d.ts +4560 -8636
  196. package/sdk/platform/Order/OrderPlatformModel.js +3604 -4056
  197. package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
  198. package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
  199. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  200. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  201. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  202. package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
  203. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
  204. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
  205. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
  206. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
  207. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
  208. package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
  209. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3531 -1292
  210. package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1504
  211. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
  212. package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
  213. package/sdk/platform/PlatformClient.d.ts +2 -0
  214. package/sdk/platform/PlatformClient.js +4 -0
  215. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  216. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  217. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  218. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  219. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
  220. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
  221. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
  222. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2188 -302
  223. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +394 -54
  224. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +342 -37
  225. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +150 -212
  226. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +589 -1238
  227. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3581 -2960
  228. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3730 -1779
  229. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +230 -382
  230. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +164 -287
  231. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
  232. package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
  233. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
  234. package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
  235. package/sdk/platform/Share/SharePlatformModel.d.ts +11 -50
  236. package/sdk/platform/Share/SharePlatformModel.js +5 -43
  237. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +36 -16
  238. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +201 -58
  239. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +28 -17
  240. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +33 -16
  241. package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
  242. package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
  243. package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
  244. package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
  245. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
  246. package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
  247. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
  248. package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
  249. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
  250. package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
  251. package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
  252. package/sdk/platform/User/UserPlatformModel.js +209 -216
  253. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  254. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  255. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
  256. package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
  257. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  258. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  259. package/sdk/platform/index.d.ts +1 -0
  260. package/sdk/platform/index.js +2 -0
  261. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
  262. package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
  263. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
  264. package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
  265. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
  266. package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
  267. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  268. package/sdk/public/Content/ContentPublicClient.js +183 -0
  269. package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
  270. package/sdk/public/Content/ContentPublicModel.js +47 -1
  271. package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
  272. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  273. package/sdk/public/PublicClient.d.ts +0 -2
  274. package/sdk/public/PublicClient.js +0 -4
  275. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  276. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  277. package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
  278. package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
  279. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  280. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  281. package/sdk/public/index.d.ts +0 -1
  282. package/sdk/public/index.js +0 -2
  283. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  284. package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
  285. package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
  286. package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
  287. package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
  288. package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
  289. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
  290. package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
@@ -23,14 +23,18 @@ class Cart {
23
23
  getBulkDiscountOffers: "/service/application/cart/v1.0/bulk-price",
24
24
  getCart: "/service/application/cart/v1.0/detail",
25
25
  getCartLastModified: "/service/application/cart/v1.0/detail",
26
+ getCartMetaConfig:
27
+ "/service/application/cart/v1.0/cart/configuration/{cart_meta_id}",
28
+ getCartMetaConfigs: "/service/application/cart/v1.0/cart/configuration",
26
29
  getCartShareLink: "/service/application/cart/v1.0/share-cart",
27
30
  getCartSharedItems: "/service/application/cart/v1.0/share-cart/{token}",
28
31
  getCoupons: "/service/application/cart/v1.0/coupon",
29
32
  getItemCount: "/service/application/cart/v1.0/basic",
33
+ getItemCountV2: "/service/application/cart/v2.0/basic",
30
34
  getLadderOffers: "/service/application/cart/v1.0/available-ladder-prices",
31
- getPromotionOffers: "/service/application/cart/v1.0/available-promotions",
32
- getPromotionPaymentOffers:
35
+ getPaymentPromotionOffers:
33
36
  "/service/application/cart/v1.0/available-payment-offers",
37
+ getPromotionOffers: "/service/application/cart/v1.0/available-promotions",
34
38
  getShipments: "/service/application/cart/v1.0/shipment",
35
39
  removeAddress: "/service/application/cart/v1.0/address/{id}",
36
40
  removeCoupon: "/service/application/cart/v1.0/coupon",
@@ -38,7 +42,6 @@ class Cart {
38
42
  selectPaymentMode: "/service/application/cart/v1.0/payment",
39
43
  updateAddress: "/service/application/cart/v1.0/address/{id}",
40
44
  updateCart: "/service/application/cart/v1.0/detail",
41
- updateCartBreakup: "/service/application/cart/v1.0/detail",
42
45
  updateCartMeta: "/service/application/cart/v1.0/meta",
43
46
  updateCartWithSharedItems:
44
47
  "/service/application/cart/v1.0/share-cart/{token}/{action}",
@@ -64,7 +67,7 @@ class Cart {
64
67
  /**
65
68
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
66
69
  * @param {import("../ApplicationAPIClient").Options} - Options
67
- * @returns {Promise<SaveAddressResult>} - Success response
70
+ * @returns {Promise<SaveAddressResponse>} - Success response
68
71
  * @name addAddress
69
72
  * @summary: Creates a new address for a customer
70
73
  * @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/).
@@ -109,15 +112,23 @@ class Cart {
109
112
  /**
110
113
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
111
114
  * @param {import("../ApplicationAPIClient").Options} - Options
112
- * @returns {Promise<AddCartDetailResult>} - Success response
115
+ * @returns {Promise<AddCartDetailResponse>} - Success response
113
116
  * @name addItems
114
117
  * @summary: Add items to a cart
115
118
  * @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/).
116
119
  */
117
120
  async addItems(
118
- { body, i, b, areaCode, buyNow, id, orderType, requestHeaders } = {
119
- requestHeaders: {},
120
- },
121
+ {
122
+ body,
123
+ i,
124
+ b,
125
+ areaCode,
126
+ buyNow,
127
+ id,
128
+ cartType,
129
+ orderType,
130
+ requestHeaders,
131
+ } = { requestHeaders: {} },
121
132
  { responseHeaders } = { responseHeaders: false }
122
133
  ) {
123
134
  let invalidInput = [];
@@ -134,6 +145,7 @@ class Cart {
134
145
  query_params["area_code"] = areaCode;
135
146
  query_params["buy_now"] = buyNow;
136
147
  query_params["id"] = id;
148
+ query_params["cart_type"] = cartType;
137
149
  query_params["order_type"] = orderType;
138
150
 
139
151
  const xHeaders = {};
@@ -162,9 +174,9 @@ class Cart {
162
174
  /**
163
175
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
164
176
  * @param {import("../ApplicationAPIClient").Options} - Options
165
- * @returns {Promise<CartDetailResult>} - Success response
177
+ * @returns {Promise<CartDetailResponse>} - Success response
166
178
  * @name applyCoupon
167
- * @summary: Apply coupon
179
+ * @summary: Apply coupon.
168
180
  * @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/).
169
181
  */
170
182
  async applyCoupon(
@@ -215,13 +227,15 @@ class Cart {
215
227
  /**
216
228
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
217
229
  * @param {import("../ApplicationAPIClient").Options} - Options
218
- * @returns {Promise<CartDetailResult>} - Success response
230
+ * @returns {Promise<CartDetailResponse>} - Success response
219
231
  * @name applyRewardPoints
220
- * @summary: Use reward points
232
+ * @summary: Use reward points.
221
233
  * @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/).
222
234
  */
223
235
  async applyRewardPoints(
224
- { body, id, i, b, buyNow, requestHeaders } = { requestHeaders: {} },
236
+ { body, id, i, b, buyNow, cartType, requestHeaders } = {
237
+ requestHeaders: {},
238
+ },
225
239
  { responseHeaders } = { responseHeaders: false }
226
240
  ) {
227
241
  let invalidInput = [];
@@ -237,6 +251,7 @@ class Cart {
237
251
  query_params["i"] = i;
238
252
  query_params["b"] = b;
239
253
  query_params["buy_now"] = buyNow;
254
+ query_params["cart_type"] = cartType;
240
255
 
241
256
  const xHeaders = {};
242
257
 
@@ -264,7 +279,7 @@ class Cart {
264
279
  /**
265
280
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
266
281
  * @param {import("../ApplicationAPIClient").Options} - Options
267
- * @returns {Promise<CartCheckoutResult>} - Success response
282
+ * @returns {Promise<CartCheckoutResponse>} - Success response
268
283
  * @name checkoutCart
269
284
  * @summary: Checkout cart
270
285
  * @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/).
@@ -311,10 +326,10 @@ class Cart {
311
326
  /**
312
327
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
313
328
  * @param {import("../ApplicationAPIClient").Options} - Options
314
- * @returns {Promise<CartCheckoutResult>} - Success response
329
+ * @returns {Promise<CartCheckoutResponse>} - Success response
315
330
  * @name checkoutCartV2
316
- * @summary: Checkout cart
317
- * @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://partners.fynd.com/help/docs/sdk/application/cart/checkoutCartV2/).
331
+ * @summary: Enhanced cart checkout process
332
+ * @description: Enhanced version of checkout process that supports multiple mode of payment(MOP). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCartV2/).
318
333
  */
319
334
  async checkoutCartV2(
320
335
  { body, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
@@ -358,13 +373,13 @@ class Cart {
358
373
  /**
359
374
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
360
375
  * @param {import("../ApplicationAPIClient").Options} - Options
361
- * @returns {Promise<DeleteCartDetailResult>} - Success response
376
+ * @returns {Promise<DeleteCartDetailResponse>} - Success response
362
377
  * @name deleteCart
363
- * @summary: Delete a cart
378
+ * @summary: Clears the cart
364
379
  * @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/).
365
380
  */
366
381
  async deleteCart(
367
- { id, requestHeaders } = { requestHeaders: {} },
382
+ { body, id, cartType, requestHeaders } = { requestHeaders: {} },
368
383
  { responseHeaders } = { responseHeaders: false }
369
384
  ) {
370
385
  let invalidInput = [];
@@ -377,6 +392,7 @@ class Cart {
377
392
 
378
393
  const query_params = {};
379
394
  query_params["id"] = id;
395
+ query_params["cart_type"] = cartType;
380
396
 
381
397
  const xHeaders = {};
382
398
 
@@ -388,7 +404,7 @@ class Cart {
388
404
  params: {},
389
405
  }),
390
406
  query_params,
391
- undefined,
407
+ body,
392
408
  { ...xHeaders, ...requestHeaders },
393
409
  { responseHeaders }
394
410
  );
@@ -418,6 +434,7 @@ class Cart {
418
434
  checkoutMode,
419
435
  tags,
420
436
  isDefault,
437
+ userId,
421
438
  requestHeaders,
422
439
  } = { requestHeaders: {} },
423
440
  { responseHeaders } = { responseHeaders: false }
@@ -444,6 +461,7 @@ class Cart {
444
461
  query_params["checkout_mode"] = checkoutMode;
445
462
  query_params["tags"] = tags;
446
463
  query_params["is_default"] = isDefault;
464
+ query_params["user_id"] = userId;
447
465
 
448
466
  const xHeaders = {};
449
467
 
@@ -471,7 +489,7 @@ class Cart {
471
489
  /**
472
490
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
473
491
  * @param {import("../ApplicationAPIClient").Options} - Options
474
- * @returns {Promise<GetAddressesResult>} - Success response
492
+ * @returns {Promise<GetAddressesResponse>} - Success response
475
493
  * @name getAddresses
476
494
  * @summary: Get a list of addresses for a customer
477
495
  * @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/).
@@ -484,6 +502,7 @@ class Cart {
484
502
  checkoutMode,
485
503
  tags,
486
504
  isDefault,
505
+ userId,
487
506
  requestHeaders,
488
507
  } = { requestHeaders: {} },
489
508
  { responseHeaders } = { responseHeaders: false }
@@ -503,6 +522,7 @@ class Cart {
503
522
  query_params["checkout_mode"] = checkoutMode;
504
523
  query_params["tags"] = tags;
505
524
  query_params["is_default"] = isDefault;
525
+ query_params["user_id"] = userId;
506
526
 
507
527
  const xHeaders = {};
508
528
 
@@ -530,13 +550,15 @@ class Cart {
530
550
  /**
531
551
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
532
552
  * @param {import("../ApplicationAPIClient").Options} - Options
533
- * @returns {Promise<BulkPriceResult>} - Success response
553
+ * @returns {Promise<BulkPriceResponse>} - Success response
534
554
  * @name getBulkDiscountOffers
535
555
  * @summary: List bulk discounts
536
556
  * @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/).
537
557
  */
538
558
  async getBulkDiscountOffers(
539
- { itemId, articleId, uid, slug, requestHeaders } = { requestHeaders: {} },
559
+ { itemId, articleId, uid, slug, cartType, requestHeaders } = {
560
+ requestHeaders: {},
561
+ },
540
562
  { responseHeaders } = { responseHeaders: false }
541
563
  ) {
542
564
  let invalidInput = [];
@@ -552,6 +574,7 @@ class Cart {
552
574
  query_params["article_id"] = articleId;
553
575
  query_params["uid"] = uid;
554
576
  query_params["slug"] = slug;
577
+ query_params["cart_type"] = cartType;
555
578
 
556
579
  const xHeaders = {};
557
580
 
@@ -579,9 +602,9 @@ class Cart {
579
602
  /**
580
603
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
581
604
  * @param {import("../ApplicationAPIClient").Options} - Options
582
- * @returns {Promise<CartDetailResult>} - Success response
605
+ * @returns {Promise<CartDetailResponse>} - Success response
583
606
  * @name getCart
584
- * @summary: Get a cart
607
+ * @summary: Retrieve cart details.
585
608
  * @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/).
586
609
  */
587
610
  async getCart(
@@ -593,6 +616,7 @@ class Cart {
593
616
  assignCardId,
594
617
  areaCode,
595
618
  buyNow,
619
+ cartType,
596
620
  orderType,
597
621
  requestHeaders,
598
622
  } = { requestHeaders: {} },
@@ -614,6 +638,7 @@ class Cart {
614
638
  query_params["assign_card_id"] = assignCardId;
615
639
  query_params["area_code"] = areaCode;
616
640
  query_params["buy_now"] = buyNow;
641
+ query_params["cart_type"] = cartType;
617
642
  query_params["order_type"] = orderType;
618
643
 
619
644
  const xHeaders = {};
@@ -688,7 +713,104 @@ class Cart {
688
713
  /**
689
714
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
690
715
  * @param {import("../ApplicationAPIClient").Options} - Options
691
- * @returns {Promise<GetShareCartLinkResult>} - Success response
716
+ * @returns {Promise<CartConfigDetailResponse>} - Success response
717
+ * @name getCartMetaConfig
718
+ * @summary: Get cart configuration by id
719
+ * @description: Get cart configuration by id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartMetaConfig/).
720
+ */
721
+ async getCartMetaConfig(
722
+ { cartMetaId, requestHeaders } = { requestHeaders: {} },
723
+ { responseHeaders } = { responseHeaders: false }
724
+ ) {
725
+ let invalidInput = [];
726
+
727
+ if (!cartMetaId) {
728
+ invalidInput.push({
729
+ message: `The 'cartMetaId' field is required.`,
730
+ path: ["cartMetaId"],
731
+ });
732
+ }
733
+ if (invalidInput.length) {
734
+ const error = new Error();
735
+ error.message = "Missing required field";
736
+ error.details = invalidInput;
737
+ return Promise.reject(new FDKClientValidationError(error));
738
+ }
739
+
740
+ const query_params = {};
741
+
742
+ const xHeaders = {};
743
+
744
+ const response = await ApplicationAPIClient.execute(
745
+ this._conf,
746
+ "get",
747
+ constructUrl({
748
+ url: this._urls["getCartMetaConfig"],
749
+ params: { cartMetaId },
750
+ }),
751
+ query_params,
752
+ undefined,
753
+ { ...xHeaders, ...requestHeaders },
754
+ { responseHeaders }
755
+ );
756
+
757
+ let responseData = response;
758
+ if (responseHeaders) {
759
+ responseData = response[0];
760
+ }
761
+
762
+ return response;
763
+ }
764
+
765
+ /**
766
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
767
+ * @param {import("../ApplicationAPIClient").Options} - Options
768
+ * @returns {Promise<CartMetaConfigListResponse>} - Success response
769
+ * @name getCartMetaConfigs
770
+ * @summary: Get cart configuration
771
+ * @description: Get cart configuration. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartMetaConfigs/).
772
+ */
773
+ async getCartMetaConfigs(
774
+ { requestHeaders } = { requestHeaders: {} },
775
+ { responseHeaders } = { responseHeaders: false }
776
+ ) {
777
+ let invalidInput = [];
778
+ if (invalidInput.length) {
779
+ const error = new Error();
780
+ error.message = "Missing required field";
781
+ error.details = invalidInput;
782
+ return Promise.reject(new FDKClientValidationError(error));
783
+ }
784
+
785
+ const query_params = {};
786
+
787
+ const xHeaders = {};
788
+
789
+ const response = await ApplicationAPIClient.execute(
790
+ this._conf,
791
+ "get",
792
+ constructUrl({
793
+ url: this._urls["getCartMetaConfigs"],
794
+ params: {},
795
+ }),
796
+ query_params,
797
+ undefined,
798
+ { ...xHeaders, ...requestHeaders },
799
+ { responseHeaders }
800
+ );
801
+
802
+ let responseData = response;
803
+ if (responseHeaders) {
804
+ responseData = response[0];
805
+ }
806
+
807
+ return response;
808
+ }
809
+
810
+ /**
811
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
812
+ * @param {import("../ApplicationAPIClient").Options} - Options
813
+ * @returns {Promise<GetShareCartLinkResponse>} - Success response
692
814
  * @name getCartShareLink
693
815
  * @summary: Create share cart link
694
816
  * @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/).
@@ -733,7 +855,7 @@ class Cart {
733
855
  /**
734
856
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
735
857
  * @param {import("../ApplicationAPIClient").Options} - Options
736
- * @returns {Promise<SharedCartResult>} - Success response
858
+ * @returns {Promise<SharedCartResponse>} - Success response
737
859
  * @name getCartSharedItems
738
860
  * @summary: List shared cart items
739
861
  * @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/).
@@ -785,9 +907,9 @@ class Cart {
785
907
  /**
786
908
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
787
909
  * @param {import("../ApplicationAPIClient").Options} - Options
788
- * @returns {Promise<GetCouponResult>} - Success response
910
+ * @returns {Promise<GetCouponResponse>} - Success response
789
911
  * @name getCoupons
790
- * @summary: List available coupons
912
+ * @summary: List available coupons.
791
913
  * @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/).
792
914
  */
793
915
  async getCoupons(
@@ -834,9 +956,9 @@ class Cart {
834
956
  /**
835
957
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
836
958
  * @param {import("../ApplicationAPIClient").Options} - Options
837
- * @returns {Promise<CartItemCountResult>} - Success response
959
+ * @returns {Promise<CartItemCountResponse>} - Success response
838
960
  * @name getItemCount
839
- * @summary: Get a cart items count
961
+ * @summary: Count cart items.
840
962
  * @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/).
841
963
  */
842
964
  async getItemCount(
@@ -878,6 +1000,53 @@ class Cart {
878
1000
  return response;
879
1001
  }
880
1002
 
1003
+ /**
1004
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1005
+ * @param {import("../ApplicationAPIClient").Options} - Options
1006
+ * @returns {Promise<CartItemCountResponseV2>} - Success response
1007
+ * @name getItemCountV2
1008
+ * @summary: Count items in the cart according to cart_type
1009
+ * @description: Use this API to get the total number of items present in cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getItemCountV2/).
1010
+ */
1011
+ async getItemCountV2(
1012
+ { id, buyNow, requestHeaders } = { requestHeaders: {} },
1013
+ { responseHeaders } = { responseHeaders: false }
1014
+ ) {
1015
+ let invalidInput = [];
1016
+ if (invalidInput.length) {
1017
+ const error = new Error();
1018
+ error.message = "Missing required field";
1019
+ error.details = invalidInput;
1020
+ return Promise.reject(new FDKClientValidationError(error));
1021
+ }
1022
+
1023
+ const query_params = {};
1024
+ query_params["id"] = id;
1025
+ query_params["buy_now"] = buyNow;
1026
+
1027
+ const xHeaders = {};
1028
+
1029
+ const response = await ApplicationAPIClient.execute(
1030
+ this._conf,
1031
+ "get",
1032
+ constructUrl({
1033
+ url: this._urls["getItemCountV2"],
1034
+ params: {},
1035
+ }),
1036
+ query_params,
1037
+ undefined,
1038
+ { ...xHeaders, ...requestHeaders },
1039
+ { responseHeaders }
1040
+ );
1041
+
1042
+ let responseData = response;
1043
+ if (responseHeaders) {
1044
+ responseData = response[0];
1045
+ }
1046
+
1047
+ return response;
1048
+ }
1049
+
881
1050
  /**
882
1051
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
883
1052
  * @param {import("../ApplicationAPIClient").Options} - Options
@@ -939,15 +1108,13 @@ class Cart {
939
1108
  /**
940
1109
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
941
1110
  * @param {import("../ApplicationAPIClient").Options} - Options
942
- * @returns {Promise<PromotionOffersResult>} - Success response
943
- * @name getPromotionOffers
944
- * @summary: List available promotion offers
945
- * @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/).
1111
+ * @returns {Promise<PromotionPaymentOffersResponse>} - Success response
1112
+ * @name getPaymentPromotionOffers
1113
+ * @summary: Fetch available promotions payment offers
1114
+ * @description: Use this API to get top 5 payment offers available for current cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPaymentPromotionOffers/).
946
1115
  */
947
- async getPromotionOffers(
948
- { slug, pageSize, promotionGroup, storeId, cartType, requestHeaders } = {
949
- requestHeaders: {},
950
- },
1116
+ async getPaymentPromotionOffers(
1117
+ { id, uid, requestHeaders } = { requestHeaders: {} },
951
1118
  { responseHeaders } = { responseHeaders: false }
952
1119
  ) {
953
1120
  let invalidInput = [];
@@ -959,11 +1126,8 @@ class Cart {
959
1126
  }
960
1127
 
961
1128
  const query_params = {};
962
- query_params["slug"] = slug;
963
- query_params["page_size"] = pageSize;
964
- query_params["promotion_group"] = promotionGroup;
965
- query_params["store_id"] = storeId;
966
- query_params["cart_type"] = cartType;
1129
+ query_params["id"] = id;
1130
+ query_params["uid"] = uid;
967
1131
 
968
1132
  const xHeaders = {};
969
1133
 
@@ -971,7 +1135,7 @@ class Cart {
971
1135
  this._conf,
972
1136
  "get",
973
1137
  constructUrl({
974
- url: this._urls["getPromotionOffers"],
1138
+ url: this._urls["getPaymentPromotionOffers"],
975
1139
  params: {},
976
1140
  }),
977
1141
  query_params,
@@ -991,13 +1155,15 @@ class Cart {
991
1155
  /**
992
1156
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
993
1157
  * @param {import("../ApplicationAPIClient").Options} - Options
994
- * @returns {Promise<PromotionPaymentOffersResult>} - Success response
995
- * @name getPromotionPaymentOffers
996
- * @summary: Fetch available promotions payment offers
997
- * @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/).
1158
+ * @returns {Promise<PromotionOffersResponse>} - Success response
1159
+ * @name getPromotionOffers
1160
+ * @summary: List available promotion offers
1161
+ * @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/).
998
1162
  */
999
- async getPromotionPaymentOffers(
1000
- { id, uid, requestHeaders } = { requestHeaders: {} },
1163
+ async getPromotionOffers(
1164
+ { slug, pageSize, promotionGroup, storeId, requestHeaders } = {
1165
+ requestHeaders: {},
1166
+ },
1001
1167
  { responseHeaders } = { responseHeaders: false }
1002
1168
  ) {
1003
1169
  let invalidInput = [];
@@ -1009,8 +1175,10 @@ class Cart {
1009
1175
  }
1010
1176
 
1011
1177
  const query_params = {};
1012
- query_params["id"] = id;
1013
- query_params["uid"] = uid;
1178
+ query_params["slug"] = slug;
1179
+ query_params["page_size"] = pageSize;
1180
+ query_params["promotion_group"] = promotionGroup;
1181
+ query_params["store_id"] = storeId;
1014
1182
 
1015
1183
  const xHeaders = {};
1016
1184
 
@@ -1018,7 +1186,7 @@ class Cart {
1018
1186
  this._conf,
1019
1187
  "get",
1020
1188
  constructUrl({
1021
- url: this._urls["getPromotionPaymentOffers"],
1189
+ url: this._urls["getPromotionOffers"],
1022
1190
  params: {},
1023
1191
  }),
1024
1192
  query_params,
@@ -1038,15 +1206,24 @@ class Cart {
1038
1206
  /**
1039
1207
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1040
1208
  * @param {import("../ApplicationAPIClient").Options} - Options
1041
- * @returns {Promise<CartShipmentsResult>} - Success response
1209
+ * @returns {Promise<CartShipmentsResponse>} - Success response
1042
1210
  * @name getShipments
1043
- * @summary: List shipments
1211
+ * @summary: List shipments.
1044
1212
  * @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/).
1045
1213
  */
1046
1214
  async getShipments(
1047
- { p, id, buyNow, addressId, areaCode, orderType, requestHeaders } = {
1048
- requestHeaders: {},
1049
- },
1215
+ {
1216
+ pickAtStoreUid,
1217
+ orderingStoreId,
1218
+ i,
1219
+ p,
1220
+ id,
1221
+ buyNow,
1222
+ addressId,
1223
+ areaCode,
1224
+ orderType,
1225
+ requestHeaders,
1226
+ } = { requestHeaders: {} },
1050
1227
  { responseHeaders } = { responseHeaders: false }
1051
1228
  ) {
1052
1229
  let invalidInput = [];
@@ -1058,6 +1235,9 @@ class Cart {
1058
1235
  }
1059
1236
 
1060
1237
  const query_params = {};
1238
+ query_params["pick_at_store_uid"] = pickAtStoreUid;
1239
+ query_params["ordering_store_id"] = orderingStoreId;
1240
+ query_params["i"] = i;
1061
1241
  query_params["p"] = p;
1062
1242
  query_params["id"] = id;
1063
1243
  query_params["buy_now"] = buyNow;
@@ -1091,7 +1271,7 @@ class Cart {
1091
1271
  /**
1092
1272
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1093
1273
  * @param {import("../ApplicationAPIClient").Options} - Options
1094
- * @returns {Promise<DeleteAddressResult>} - Success response
1274
+ * @returns {Promise<DeleteAddressResponse>} - Success response
1095
1275
  * @name removeAddress
1096
1276
  * @summary: Removes an address from a customer's address list
1097
1277
  * @description: Delete an existing customer address from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
@@ -1143,13 +1323,13 @@ class Cart {
1143
1323
  /**
1144
1324
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1145
1325
  * @param {import("../ApplicationAPIClient").Options} - Options
1146
- * @returns {Promise<CartDetailResult>} - Success response
1326
+ * @returns {Promise<CartDetailResponse>} - Success response
1147
1327
  * @name removeCoupon
1148
- * @summary: Remove coupon
1328
+ * @summary: Remove coupon.
1149
1329
  * @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/).
1150
1330
  */
1151
1331
  async removeCoupon(
1152
- { id, buyNow, requestHeaders } = { requestHeaders: {} },
1332
+ { id, buyNow, cartType, requestHeaders } = { requestHeaders: {} },
1153
1333
  { responseHeaders } = { responseHeaders: false }
1154
1334
  ) {
1155
1335
  let invalidInput = [];
@@ -1163,6 +1343,7 @@ class Cart {
1163
1343
  const query_params = {};
1164
1344
  query_params["id"] = id;
1165
1345
  query_params["buy_now"] = buyNow;
1346
+ query_params["cart_type"] = cartType;
1166
1347
 
1167
1348
  const xHeaders = {};
1168
1349
 
@@ -1190,7 +1371,7 @@ class Cart {
1190
1371
  /**
1191
1372
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1192
1373
  * @param {import("../ApplicationAPIClient").Options} - Options
1193
- * @returns {Promise<CartDetailResult>} - Success response
1374
+ * @returns {Promise<CartDetailResponse>} - Success response
1194
1375
  * @name selectAddress
1195
1376
  * @summary: Select customer address for order processing
1196
1377
  * @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/).
@@ -1239,13 +1420,13 @@ class Cart {
1239
1420
  /**
1240
1421
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1241
1422
  * @param {import("../ApplicationAPIClient").Options} - Options
1242
- * @returns {Promise<CartDetailResult>} - Success response
1423
+ * @returns {Promise<CartDetailResponse>} - Success response
1243
1424
  * @name selectPaymentMode
1244
1425
  * @summary: Select payment mode
1245
1426
  * @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/).
1246
1427
  */
1247
1428
  async selectPaymentMode(
1248
- { body, id, buyNow, requestHeaders } = { requestHeaders: {} },
1429
+ { body, id, buyNow, orderType, requestHeaders } = { requestHeaders: {} },
1249
1430
  { responseHeaders } = { responseHeaders: false }
1250
1431
  ) {
1251
1432
  let invalidInput = [];
@@ -1259,6 +1440,7 @@ class Cart {
1259
1440
  const query_params = {};
1260
1441
  query_params["id"] = id;
1261
1442
  query_params["buy_now"] = buyNow;
1443
+ query_params["order_type"] = orderType;
1262
1444
 
1263
1445
  const xHeaders = {};
1264
1446
 
@@ -1286,7 +1468,7 @@ class Cart {
1286
1468
  /**
1287
1469
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1288
1470
  * @param {import("../ApplicationAPIClient").Options} - Options
1289
- * @returns {Promise<UpdateAddressResult>} - Success response
1471
+ * @returns {Promise<UpdateAddressResponse>} - Success response
1290
1472
  * @name updateAddress
1291
1473
  * @summary: Updates an existing customer address
1292
1474
  * @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/).
@@ -1338,9 +1520,9 @@ class Cart {
1338
1520
  /**
1339
1521
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1340
1522
  * @param {import("../ApplicationAPIClient").Options} - Options
1341
- * @returns {Promise<UpdateCartDetailResult>} - Success response
1523
+ * @returns {Promise<UpdateCartDetailResponse>} - Success response
1342
1524
  * @name updateCart
1343
- * @summary: Update cart items
1525
+ * @summary: Update items in the cart
1344
1526
  * @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/).
1345
1527
  */
1346
1528
  async updateCart(
@@ -1400,61 +1582,9 @@ class Cart {
1400
1582
  /**
1401
1583
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1402
1584
  * @param {import("../ApplicationAPIClient").Options} - Options
1403
- * @returns {Promise<UpdateCartDetailResult>} - Success response
1404
- * @name updateCartBreakup
1405
- * @summary: Update store credits into cart and their items
1406
- * @description: Update cart. Customers can adjust the cart breakup by applying or removing store credits as needed. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartBreakup/).
1407
- */
1408
- async updateCartBreakup(
1409
- { body, id, i, b, buyNow, cartType, requestHeaders } = {
1410
- requestHeaders: {},
1411
- },
1412
- { responseHeaders } = { responseHeaders: false }
1413
- ) {
1414
- let invalidInput = [];
1415
- if (invalidInput.length) {
1416
- const error = new Error();
1417
- error.message = "Missing required field";
1418
- error.details = invalidInput;
1419
- return Promise.reject(new FDKClientValidationError(error));
1420
- }
1421
-
1422
- const query_params = {};
1423
- query_params["id"] = id;
1424
- query_params["i"] = i;
1425
- query_params["b"] = b;
1426
- query_params["buy_now"] = buyNow;
1427
- query_params["cart_type"] = cartType;
1428
-
1429
- const xHeaders = {};
1430
-
1431
- const response = await ApplicationAPIClient.execute(
1432
- this._conf,
1433
- "patch",
1434
- constructUrl({
1435
- url: this._urls["updateCartBreakup"],
1436
- params: {},
1437
- }),
1438
- query_params,
1439
- body,
1440
- { ...xHeaders, ...requestHeaders },
1441
- { responseHeaders }
1442
- );
1443
-
1444
- let responseData = response;
1445
- if (responseHeaders) {
1446
- responseData = response[0];
1447
- }
1448
-
1449
- return response;
1450
- }
1451
-
1452
- /**
1453
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1454
- * @param {import("../ApplicationAPIClient").Options} - Options
1455
- * @returns {Promise<CartMetaResult>} - Success response
1585
+ * @returns {Promise<CartMetaResponse>} - Success response
1456
1586
  * @name updateCartMeta
1457
- * @summary: Update cart metadata
1587
+ * @summary: Update cart metadata.
1458
1588
  * @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/).
1459
1589
  */
1460
1590
  async updateCartMeta(
@@ -1499,13 +1629,13 @@ class Cart {
1499
1629
  /**
1500
1630
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1501
1631
  * @param {import("../ApplicationAPIClient").Options} - Options
1502
- * @returns {Promise<SharedCartResult>} - Success response
1632
+ * @returns {Promise<SharedCartResponse>} - Success response
1503
1633
  * @name updateCartWithSharedItems
1504
1634
  * @summary: Update with shared items
1505
1635
  * @description: Merge or replace shared cart items with existing cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).
1506
1636
  */
1507
1637
  async updateCartWithSharedItems(
1508
- { token, action, requestHeaders } = { requestHeaders: {} },
1638
+ { token, action, cartId, requestHeaders } = { requestHeaders: {} },
1509
1639
  { responseHeaders } = { responseHeaders: false }
1510
1640
  ) {
1511
1641
  let invalidInput = [];
@@ -1530,6 +1660,7 @@ class Cart {
1530
1660
  }
1531
1661
 
1532
1662
  const query_params = {};
1663
+ query_params["cart_id"] = cartId;
1533
1664
 
1534
1665
  const xHeaders = {};
1535
1666