@gofynd/fdk-client-javascript 1.1.6 → 1.3.0

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 (348) hide show
  1. package/README.md +52 -3
  2. package/index.js +0 -3
  3. package/package.json +1 -2
  4. package/sdk/application/ApplicationAPIClient.d.ts +15 -1
  5. package/sdk/application/ApplicationAPIClient.js +12 -3
  6. package/sdk/application/ApplicationClient.d.ts +36 -6
  7. package/sdk/application/ApplicationClient.js +30 -43
  8. package/sdk/application/ApplicationConfig.d.ts +92 -12
  9. package/sdk/application/ApplicationConfig.js +48 -14
  10. package/sdk/application/Cart/CartApplicationClient.d.ts +200 -357
  11. package/sdk/application/Cart/CartApplicationClient.js +711 -483
  12. package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
  13. package/sdk/application/Cart/CartApplicationModel.js +1224 -93
  14. package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
  15. package/sdk/application/Cart/CartApplicationValidator.js +270 -15
  16. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +274 -422
  17. package/sdk/application/Catalog/CatalogApplicationClient.js +865 -630
  18. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2320 -117
  19. package/sdk/application/Catalog/CatalogApplicationModel.js +1566 -172
  20. package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
  21. package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
  22. package/sdk/application/Common/CommonApplicationClient.d.ts +16 -21
  23. package/sdk/application/Common/CommonApplicationClient.js +52 -33
  24. package/sdk/application/Common/CommonApplicationModel.d.ts +368 -19
  25. package/sdk/application/Common/CommonApplicationModel.js +192 -40
  26. package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
  27. package/sdk/application/Common/CommonApplicationValidator.js +21 -3
  28. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +31 -18
  29. package/sdk/application/Communication/CommunicationApplicationClient.js +86 -47
  30. package/sdk/application/Communication/CommunicationApplicationModel.d.ts +157 -14
  31. package/sdk/application/Communication/CommunicationApplicationModel.js +104 -23
  32. package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
  33. package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
  34. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +149 -118
  35. package/sdk/application/Configuration/ConfigurationApplicationClient.js +457 -260
  36. package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2235 -110
  37. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1113 -193
  38. package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
  39. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
  40. package/sdk/application/Content/ContentApplicationClient.d.ts +149 -139
  41. package/sdk/application/Content/ContentApplicationClient.js +489 -278
  42. package/sdk/application/Content/ContentApplicationModel.d.ts +1010 -105
  43. package/sdk/application/Content/ContentApplicationModel.js +737 -396
  44. package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
  45. package/sdk/application/Content/ContentApplicationValidator.js +113 -3
  46. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +23 -29
  47. package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -47
  48. package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +148 -20
  49. package/sdk/application/FileStorage/FileStorageApplicationModel.js +100 -87
  50. package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
  51. package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
  52. package/sdk/application/Lead/LeadApplicationClient.d.ts +57 -53
  53. package/sdk/application/Lead/LeadApplicationClient.js +188 -103
  54. package/sdk/application/Lead/LeadApplicationModel.d.ts +686 -54
  55. package/sdk/application/Lead/LeadApplicationModel.js +330 -244
  56. package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
  57. package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
  58. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +40 -33
  59. package/sdk/application/Logistic/LogisticApplicationClient.js +131 -73
  60. package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
  61. package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
  62. package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
  63. package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
  64. package/sdk/application/Order/OrderApplicationClient.d.ts +93 -133
  65. package/sdk/application/Order/OrderApplicationClient.js +329 -217
  66. package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
  67. package/sdk/application/Order/OrderApplicationModel.js +776 -57
  68. package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
  69. package/sdk/application/Order/OrderApplicationValidator.js +114 -5
  70. package/sdk/application/Payment/PaymentApplicationClient.d.ts +400 -366
  71. package/sdk/application/Payment/PaymentApplicationClient.js +1176 -703
  72. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
  73. package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
  74. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
  75. package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
  76. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +205 -350
  77. package/sdk/application/PosCart/PosCartApplicationClient.js +720 -491
  78. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
  79. package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
  80. package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
  81. package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
  82. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +58 -47
  83. package/sdk/application/Rewards/RewardsApplicationClient.js +187 -102
  84. package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
  85. package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
  86. package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
  87. package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
  88. package/sdk/application/Share/ShareApplicationClient.d.ts +52 -50
  89. package/sdk/application/Share/ShareApplicationClient.js +185 -97
  90. package/sdk/application/Share/ShareApplicationModel.d.ts +198 -15
  91. package/sdk/application/Share/ShareApplicationModel.js +131 -31
  92. package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
  93. package/sdk/application/Share/ShareApplicationValidator.js +48 -4
  94. package/sdk/application/Theme/ThemeApplicationClient.d.ts +30 -27
  95. package/sdk/application/Theme/ThemeApplicationClient.js +102 -56
  96. package/sdk/application/Theme/ThemeApplicationModel.d.ts +1291 -48
  97. package/sdk/application/Theme/ThemeApplicationModel.js +895 -134
  98. package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
  99. package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
  100. package/sdk/application/User/UserApplicationClient.d.ts +260 -305
  101. package/sdk/application/User/UserApplicationClient.js +910 -522
  102. package/sdk/application/User/UserApplicationModel.d.ts +992 -101
  103. package/sdk/application/User/UserApplicationModel.js +699 -248
  104. package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
  105. package/sdk/application/User/UserApplicationValidator.js +265 -31
  106. package/sdk/common/AxiosHelper.js +7 -2
  107. package/sdk/common/FDKError.d.ts +3 -0
  108. package/sdk/common/FDKError.js +8 -0
  109. package/sdk/common/Paginator.d.ts +27 -12
  110. package/sdk/common/Paginator.js +15 -0
  111. package/sdk/common/RequestSigner.js +0 -1
  112. package/sdk/common/utils.d.ts +3 -0
  113. package/sdk/common/utils.js +29 -0
  114. package/sdk/partner/PartnerAPIClient.d.ts +16 -1
  115. package/sdk/partner/PartnerAPIClient.js +12 -2
  116. package/sdk/partner/PartnerClient.d.ts +22 -3
  117. package/sdk/partner/PartnerClient.js +20 -0
  118. package/sdk/partner/PartnerConfig.d.ts +40 -14
  119. package/sdk/partner/PartnerConfig.js +31 -6
  120. package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
  121. package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
  122. package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
  123. package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
  124. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
  125. package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
  126. package/sdk/partner/index.d.ts +3 -1
  127. package/sdk/partner/index.js +3 -1
  128. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +30 -25
  129. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +104 -53
  130. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +190 -17
  131. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +132 -15
  132. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +52 -5
  133. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +30 -4
  134. package/sdk/platform/Billing/BillingPlatformClient.d.ts +133 -97
  135. package/sdk/platform/Billing/BillingPlatformClient.js +561 -191
  136. package/sdk/platform/Billing/BillingPlatformModel.d.ts +1071 -68
  137. package/sdk/platform/Billing/BillingPlatformModel.js +762 -151
  138. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +175 -12
  139. package/sdk/platform/Billing/BillingPlatformValidator.js +118 -8
  140. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +454 -635
  141. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1646 -957
  142. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
  143. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
  144. package/sdk/platform/Cart/CartPlatformModel.d.ts +3839 -175
  145. package/sdk/platform/Cart/CartPlatformModel.js +2423 -217
  146. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +528 -638
  147. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1600 -984
  148. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
  149. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
  150. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +652 -826
  151. package/sdk/platform/Catalog/CatalogPlatformClient.js +1979 -1264
  152. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6869 -326
  153. package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -351
  154. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1361 -71
  155. package/sdk/platform/Catalog/CatalogPlatformValidator.js +624 -30
  156. package/sdk/platform/Common/CommonPlatformClient.d.ts +16 -21
  157. package/sdk/platform/Common/CommonPlatformClient.js +50 -33
  158. package/sdk/platform/Common/CommonPlatformModel.d.ts +423 -19
  159. package/sdk/platform/Common/CommonPlatformModel.js +214 -40
  160. package/sdk/platform/Common/CommonPlatformValidator.d.ts +37 -4
  161. package/sdk/platform/Common/CommonPlatformValidator.js +20 -3
  162. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +731 -303
  163. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +3095 -785
  164. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +699 -41
  165. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +463 -27
  166. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +19 -5
  167. package/sdk/platform/Communication/CommunicationPlatformClient.js +59 -19
  168. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1708 -102
  169. package/sdk/platform/Communication/CommunicationPlatformModel.js +1360 -235
  170. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
  171. package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
  172. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +127 -111
  173. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +435 -225
  174. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +882 -43
  175. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +666 -78
  176. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +184 -13
  177. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +105 -10
  178. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +327 -240
  179. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +922 -438
  180. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +297 -22
  181. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +191 -17
  182. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +184 -178
  183. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +555 -311
  184. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4337 -188
  185. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2178 -248
  186. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
  187. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
  188. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +605 -578
  189. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1996 -987
  190. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
  191. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
  192. package/sdk/platform/Content/ContentPlatformModel.d.ts +1472 -108
  193. package/sdk/platform/Content/ContentPlatformModel.js +1085 -204
  194. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +85 -82
  195. package/sdk/platform/Discount/DiscountPlatformClient.js +333 -175
  196. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +281 -15
  197. package/sdk/platform/Discount/DiscountPlatformModel.js +189 -10
  198. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
  199. package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
  200. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +109 -52
  201. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +570 -105
  202. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +141 -6
  203. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +118 -7
  204. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +43 -63
  205. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +153 -135
  206. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +426 -20
  207. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +379 -40
  208. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +106 -8
  209. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +60 -8
  210. package/sdk/platform/Finance/FinancePlatformClient.d.ts +260 -129
  211. package/sdk/platform/Finance/FinancePlatformClient.js +1182 -194
  212. package/sdk/platform/Finance/FinancePlatformModel.d.ts +1267 -50
  213. package/sdk/platform/Finance/FinancePlatformModel.js +1252 -38
  214. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +233 -15
  215. package/sdk/platform/Finance/FinancePlatformValidator.js +229 -16
  216. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +111 -97
  217. package/sdk/platform/Inventory/InventoryPlatformClient.js +330 -199
  218. package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
  219. package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
  220. package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
  221. package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
  222. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +100 -106
  223. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +372 -186
  224. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
  225. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
  226. package/sdk/platform/Lead/LeadPlatformClient.d.ts +89 -104
  227. package/sdk/platform/Lead/LeadPlatformClient.js +305 -180
  228. package/sdk/platform/Lead/LeadPlatformModel.d.ts +1045 -54
  229. package/sdk/platform/Lead/LeadPlatformModel.js +504 -142
  230. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
  231. package/sdk/platform/Lead/LeadPlatformValidator.js +92 -15
  232. package/sdk/platform/OAuthClient.js +6 -2
  233. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +20 -14
  234. package/sdk/platform/Order/OrderPlatformApplicationClient.js +58 -29
  235. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
  236. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
  237. package/sdk/platform/Order/OrderPlatformClient.d.ts +437 -556
  238. package/sdk/platform/Order/OrderPlatformClient.js +1500 -760
  239. package/sdk/platform/Order/OrderPlatformModel.d.ts +5225 -247
  240. package/sdk/platform/Order/OrderPlatformModel.js +3473 -260
  241. package/sdk/platform/Order/OrderPlatformValidator.d.ts +859 -37
  242. package/sdk/platform/Order/OrderPlatformValidator.js +435 -23
  243. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +16 -42
  244. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -155
  245. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +37 -6
  246. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +19 -17
  247. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +78 -45
  248. package/sdk/platform/Partner/PartnerPlatformModel.js +43 -369
  249. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +418 -288
  250. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1509 -505
  251. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +438 -30
  252. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +312 -19
  253. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +83 -73
  254. package/sdk/platform/Payment/PaymentPlatformClient.js +259 -154
  255. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3200 -93
  256. package/sdk/platform/Payment/PaymentPlatformModel.js +1334 -36
  257. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
  258. package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
  259. package/sdk/platform/PlatformAPIClient.d.ts +16 -1
  260. package/sdk/platform/PlatformAPIClient.js +9 -1
  261. package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
  262. package/sdk/platform/PlatformApplicationClient.js +17 -1899
  263. package/sdk/platform/PlatformClient.d.ts +31 -12581
  264. package/sdk/platform/PlatformClient.js +30 -15089
  265. package/sdk/platform/PlatformConfig.d.ts +37 -11
  266. package/sdk/platform/PlatformConfig.js +32 -6
  267. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +96 -92
  268. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +344 -177
  269. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
  270. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
  271. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +360 -23
  272. package/sdk/platform/Rewards/RewardsPlatformModel.js +238 -22
  273. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +159 -92
  274. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +473 -208
  275. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +138 -13
  276. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +100 -14
  277. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +166 -178
  278. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +518 -329
  279. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1408 -96
  280. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1034 -71
  281. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
  282. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
  283. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +41 -66
  284. package/sdk/platform/Share/SharePlatformApplicationClient.js +149 -116
  285. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
  286. package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
  287. package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
  288. package/sdk/platform/Share/SharePlatformModel.js +167 -19
  289. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +229 -193
  290. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +976 -352
  291. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +345 -24
  292. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +206 -14
  293. package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
  294. package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
  295. package/sdk/platform/Theme/ThemePlatformModel.d.ts +1527 -48
  296. package/sdk/platform/Theme/ThemePlatformModel.js +1099 -118
  297. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
  298. package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
  299. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +138 -152
  300. package/sdk/platform/User/UserPlatformApplicationClient.js +470 -244
  301. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +242 -18
  302. package/sdk/platform/User/UserPlatformApplicationValidator.js +129 -12
  303. package/sdk/platform/User/UserPlatformModel.d.ts +653 -101
  304. package/sdk/platform/User/UserPlatformModel.js +467 -424
  305. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +153 -49
  306. package/sdk/platform/Webhook/WebhookPlatformClient.js +896 -88
  307. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +632 -16
  308. package/sdk/platform/Webhook/WebhookPlatformModel.js +502 -54
  309. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +170 -7
  310. package/sdk/platform/Webhook/WebhookPlatformValidator.js +157 -7
  311. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +16 -21
  312. package/sdk/public/Configuration/ConfigurationPublicClient.js +48 -33
  313. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +370 -19
  314. package/sdk/public/Configuration/ConfigurationPublicModel.js +191 -40
  315. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
  316. package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
  317. package/sdk/public/Inventory/InventoryPublicClient.d.ts +54 -48
  318. package/sdk/public/Inventory/InventoryPublicClient.js +161 -98
  319. package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
  320. package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
  321. package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
  322. package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
  323. package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
  324. package/sdk/public/Partner/PartnerPublicClient.js +110 -0
  325. package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
  326. package/sdk/public/Partner/PartnerPublicModel.js +280 -0
  327. package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
  328. package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
  329. package/sdk/public/PublicAPIClient.d.ts +14 -1
  330. package/sdk/public/PublicAPIClient.js +7 -1
  331. package/sdk/public/PublicClient.d.ts +21 -3
  332. package/sdk/public/PublicClient.js +20 -0
  333. package/sdk/public/PublicConfig.d.ts +27 -6
  334. package/sdk/public/PublicConfig.js +17 -1
  335. package/sdk/public/Webhook/WebhookPublicClient.d.ts +16 -11
  336. package/sdk/public/Webhook/WebhookPublicClient.js +48 -27
  337. package/sdk/public/Webhook/WebhookPublicModel.d.ts +52 -16
  338. package/sdk/public/Webhook/WebhookPublicModel.js +33 -113
  339. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
  340. package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
  341. package/sdk/public/index.d.ts +1 -0
  342. package/sdk/public/index.js +2 -0
  343. package/sdk/application/ApplicationModels.d.ts +0 -3
  344. package/sdk/application/ApplicationModels.js +0 -20
  345. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -145
  346. package/sdk/platform/Partner/PartnerPlatformClient.js +0 -799
  347. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -14
  348. package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -87
@@ -35,445 +35,288 @@ declare class Cart {
35
35
  _urls: {};
36
36
  updateUrls(urls: any): void;
37
37
  /**
38
- * @param {Object} arg - Arg object.
39
- * @param {Address} arg.body
40
- * @returns {Promise<SaveAddressResponse>} - Success response
38
+ * @param {CartApplicationValidator.AddAddressParam} arg - Arg object.
39
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
40
+ * @param {import("../ApplicationAPIClient").Options} - Options
41
+ * @returns {Promise<CartApplicationModel.SaveAddressResponse>} - Success response
42
+ * @name addAddress
41
43
  * @summary: Add address to an account
42
- * @description: Use this API to add an address to an account.
44
+ * @description: Use this API to add an address to an account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addAddress/).
43
45
  */
44
- addAddress({ body }?: {
45
- body: Address;
46
- }): Promise<SaveAddressResponse>;
46
+ addAddress({ body, requestHeaders }?: CartApplicationValidator.AddAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.SaveAddressResponse>;
47
47
  /**
48
- * @param {Object} arg - Arg object.
49
- * @param {boolean} [arg.i] -
50
- * @param {boolean} [arg.b] -
51
- * @param {string} [arg.areaCode] -
52
- * @param {boolean} [arg.buyNow] -
53
- * @param {string} [arg.id] -
54
- * @param {AddCartRequest} arg.body
55
- * @returns {Promise<AddCartDetailResponse>} - Success response
48
+ * @param {CartApplicationValidator.AddItemsParam} arg - Arg object.
49
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
50
+ * @param {import("../ApplicationAPIClient").Options} - Options
51
+ * @returns {Promise<CartApplicationModel.AddCartDetailResponse>} - Success response
52
+ * @name addItems
56
53
  * @summary: Add items to cart
57
- * @description: Use this API to add items to the cart.
54
+ * @description: Use this API to add items to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/addItems/).
58
55
  */
59
- addItems({ body, i, b, areaCode, buyNow, id }?: {
60
- i?: boolean;
61
- b?: boolean;
62
- areaCode?: string;
63
- buyNow?: boolean;
64
- id?: string;
65
- body: AddCartRequest;
66
- }): Promise<AddCartDetailResponse>;
56
+ addItems({ body, i, b, areaCode, buyNow, id, requestHeaders }?: CartApplicationValidator.AddItemsParam, { responseHeaders }?: object): Promise<CartApplicationModel.AddCartDetailResponse>;
67
57
  /**
68
- * @param {Object} arg - Arg object.
69
- * @param {boolean} [arg.i] -
70
- * @param {boolean} [arg.b] -
71
- * @param {boolean} [arg.p] -
72
- * @param {string} [arg.id] -
73
- * @param {boolean} [arg.buyNow] -
74
- * @param {ApplyCouponRequest} arg.body
75
- * @returns {Promise<CartDetailResponse>} - Success response
58
+ * @param {CartApplicationValidator.ApplyCouponParam} arg - Arg object.
59
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
60
+ * @param {import("../ApplicationAPIClient").Options} - Options
61
+ * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
62
+ * @name applyCoupon
76
63
  * @summary: Apply Coupon
77
- * @description: Use this API to apply coupons on items in the cart.
64
+ * @description: Use this API to apply coupons on items in the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyCoupon/).
78
65
  */
79
- applyCoupon({ body, i, b, p, id, buyNow }?: {
80
- i?: boolean;
81
- b?: boolean;
82
- p?: boolean;
83
- id?: string;
84
- buyNow?: boolean;
85
- body: ApplyCouponRequest;
86
- }): Promise<CartDetailResponse>;
66
+ applyCoupon({ body, i, b, p, id, buyNow, requestHeaders }?: CartApplicationValidator.ApplyCouponParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
87
67
  /**
88
- * @param {Object} arg - Arg object.
89
- * @param {string} [arg.id] -
90
- * @param {boolean} [arg.i] -
91
- * @param {boolean} [arg.b] -
92
- * @param {boolean} [arg.buyNow] -
93
- * @param {RewardPointRequest} arg.body
94
- * @returns {Promise<CartDetailResponse>} - Success response
68
+ * @param {CartApplicationValidator.ApplyRewardPointsParam} arg - Arg object.
69
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
70
+ * @param {import("../ApplicationAPIClient").Options} - Options
71
+ * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
72
+ * @name applyRewardPoints
95
73
  * @summary: Apply reward points at cart
96
- * @description: Use this API to redeem a fixed no. of reward points by applying it to the cart.
74
+ * @description: Use this API to redeem a fixed no. of reward points by applying it to the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/applyRewardPoints/).
97
75
  */
98
- applyRewardPoints({ body, id, i, b, buyNow }?: {
99
- id?: string;
100
- i?: boolean;
101
- b?: boolean;
102
- buyNow?: boolean;
103
- body: RewardPointRequest;
104
- }): Promise<CartDetailResponse>;
76
+ applyRewardPoints({ body, id, i, b, buyNow, requestHeaders }?: CartApplicationValidator.ApplyRewardPointsParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
105
77
  /**
106
- * @param {Object} arg - Arg object.
107
- * @param {boolean} [arg.buyNow] - This indicates the type of cart to checkout
108
- * @param {CartCheckoutDetailRequest} arg.body
109
- * @returns {Promise<CartCheckoutResponse>} - Success response
78
+ * @param {CartApplicationValidator.CheckoutCartParam} arg - Arg object.
79
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
80
+ * @param {import("../ApplicationAPIClient").Options} - Options
81
+ * @returns {Promise<CartApplicationModel.CartCheckoutResponse>} - Success response
82
+ * @name checkoutCart
110
83
  * @summary: Checkout all items in the cart
111
- * @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be directly generated, whereas for other checkout modes, user will be redirected to a payment gateway.
84
+ * @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be directly generated, whereas for other checkout modes, user will be redirected to a payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCart/).
112
85
  */
113
- checkoutCart({ body, buyNow }?: {
114
- buyNow?: boolean;
115
- body: CartCheckoutDetailRequest;
116
- }): Promise<CartCheckoutResponse>;
86
+ checkoutCart({ body, buyNow, requestHeaders }?: CartApplicationValidator.CheckoutCartParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartCheckoutResponse>;
117
87
  /**
118
- * @param {Object} arg - Arg object.
119
- * @param {boolean} [arg.buyNow] - This indicates the type of cart to checkout
120
- * @param {CartCheckoutDetailV2Request} arg.body
121
- * @returns {Promise<CartCheckoutResponse>} - Success response
88
+ * @param {CartApplicationValidator.CheckoutCartV2Param} arg - Arg object.
89
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
90
+ * @param {import("../ApplicationAPIClient").Options} - Options
91
+ * @returns {Promise<CartApplicationModel.CartCheckoutResponse>} - Success response
92
+ * @name checkoutCartV2
122
93
  * @summary: Checkout all items in the cart
123
- * @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be directly generated, whereas for other checkout modes, user will be redirected to a payment gateway.
94
+ * @description: Use this API to checkout all items in the cart for payment and order generation. For COD, order will be directly generated, whereas for other checkout modes, user will be redirected to a payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/checkoutCartV2/).
124
95
  */
125
- checkoutCartV2({ body, buyNow }?: {
126
- buyNow?: boolean;
127
- body: CartCheckoutDetailV2Request;
128
- }): Promise<CartCheckoutResponse>;
96
+ checkoutCartV2({ body, buyNow, requestHeaders }?: CartApplicationValidator.CheckoutCartV2Param, { responseHeaders }?: object): Promise<CartApplicationModel.CartCheckoutResponse>;
129
97
  /**
130
- * @param {Object} arg - Arg object.
131
- * @param {string} [arg.id] - The unique identifier of the cart.
132
- * @returns {Promise<DeleteCartDetailResponse>} - Success response
98
+ * @param {CartApplicationValidator.DeleteCartParam} arg - Arg object.
99
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
100
+ * @param {import("../ApplicationAPIClient").Options} - Options
101
+ * @returns {Promise<CartApplicationModel.DeleteCartDetailResponse>} -
102
+ * Success response
103
+ * @name deleteCart
133
104
  * @summary: Delete cart once user made successful checkout
134
- * @description: Use this API to delete the cart.
105
+ * @description: Use this API to delete the cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/deleteCart/).
135
106
  */
136
- deleteCart({ id }?: {
137
- id?: string;
138
- }): Promise<DeleteCartDetailResponse>;
107
+ deleteCart({ id, requestHeaders }?: CartApplicationValidator.DeleteCartParam, { responseHeaders }?: object): Promise<CartApplicationModel.DeleteCartDetailResponse>;
139
108
  /**
140
- * @param {Object} arg - Arg object.
141
- * @param {string} arg.id -
142
- * @param {string} [arg.cartId] -
143
- * @param {boolean} [arg.buyNow] -
144
- * @param {string} [arg.mobileNo] -
145
- * @param {string} [arg.checkoutMode] -
146
- * @param {string} [arg.tags] -
147
- * @param {boolean} [arg.isDefault] -
148
- * @returns {Promise<Address>} - Success response
109
+ * @param {CartApplicationValidator.GetAddressByIdParam} arg - Arg object.
110
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
111
+ * @param {import("../ApplicationAPIClient").Options} - Options
112
+ * @returns {Promise<CartApplicationModel.Address>} - Success response
113
+ * @name getAddressById
149
114
  * @summary: Fetch a single address by its ID
150
- * @description: Use this API to get an addresses using its ID. If successful, returns a Address resource in the response body specified in `Address`. Attibutes listed below are optional <ul> <li> <font color="monochrome">mobile_no</font></li> <li> <font color="monochrome">checkout_mode</font></li> <li> <font color="monochrome">tags</font></li> <li> <font color="monochrome">default</font></li> </ul>
115
+ * @description: Use this API to get an addresses using its ID. If successful, returns a Address resource in the response body specified in `Address`. Attibutes listed below are optional mobile_no checkout_mode tags default - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddressById/).
151
116
  */
152
- getAddressById({ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, }?: {
153
- id: string;
154
- cartId?: string;
155
- buyNow?: boolean;
156
- mobileNo?: string;
157
- checkoutMode?: string;
158
- tags?: string;
159
- isDefault?: boolean;
160
- }): Promise<Address>;
117
+ getAddressById({ id, cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: CartApplicationValidator.GetAddressByIdParam, { responseHeaders }?: object): Promise<CartApplicationModel.Address>;
161
118
  /**
162
- * @param {Object} arg - Arg object.
163
- * @param {string} [arg.cartId] -
164
- * @param {boolean} [arg.buyNow] -
165
- * @param {string} [arg.mobileNo] -
166
- * @param {string} [arg.checkoutMode] -
167
- * @param {string} [arg.tags] -
168
- * @param {boolean} [arg.isDefault] -
169
- * @returns {Promise<GetAddressesResponse>} - Success response
119
+ * @param {CartApplicationValidator.GetAddressesParam} arg - Arg object.
120
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
121
+ * @param {import("../ApplicationAPIClient").Options} - Options
122
+ * @returns {Promise<CartApplicationModel.GetAddressesResponse>} - Success response
123
+ * @name getAddresses
170
124
  * @summary: Fetch address
171
- * @description: Use this API to get all the addresses associated with an account. If successful, returns a Address resource in the response body specified in GetAddressesResponse.attibutes listed below are optional <ul> <li> <font color="monochrome">uid</font></li> <li> <font color="monochrome">address_id</font></li> <li> <font color="monochrome">mobile_no</font></li> <li> <font color="monochrome">checkout_mode</font></li> <li> <font color="monochrome">tags</font></li> <li> <font color="monochrome">default</font></li> </ul>
125
+ * @description: Use this API to get all the addresses associated with an account. If successful, returns a Address resource in the response body specified in GetAddressesResponse.attibutes listed below are optional uid address_id mobile_no checkout_mode tags default - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getAddresses/).
172
126
  */
173
- getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, }?: {
174
- cartId?: string;
175
- buyNow?: boolean;
176
- mobileNo?: string;
177
- checkoutMode?: string;
178
- tags?: string;
179
- isDefault?: boolean;
180
- }): Promise<GetAddressesResponse>;
127
+ getAddresses({ cartId, buyNow, mobileNo, checkoutMode, tags, isDefault, requestHeaders, }?: CartApplicationValidator.GetAddressesParam, { responseHeaders }?: object): Promise<CartApplicationModel.GetAddressesResponse>;
181
128
  /**
182
- * @param {Object} arg - Arg object.
183
- * @param {number} [arg.itemId] - The Item ID of the product
184
- * @param {string} [arg.articleId] - Article Mongo ID
185
- * @param {number} [arg.uid] - UID of the product
186
- * @param {string} [arg.slug] - A short, human-readable, URL-friendly
187
- * identifier of a product. You can get slug value from the endpoint
188
- * /service/application/catalog/v1.0/products/
189
- * @returns {Promise<BulkPriceResponse>} - Success response
129
+ * @param {CartApplicationValidator.GetBulkDiscountOffersParam} arg - Arg object.
130
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
131
+ * @param {import("../ApplicationAPIClient").Options} - Options
132
+ * @returns {Promise<CartApplicationModel.BulkPriceResponse>} - Success response
133
+ * @name getBulkDiscountOffers
190
134
  * @summary: Get discount offers based on quantity
191
- * @description: Use this API to get a list of applicable offers along with current, next and best offer for given product. Either one of uid, item_id, slug should be present.
135
+ * @description: Use this API to get a list of applicable offers along with current, next and best offer for given product. Either one of uid, item_id, slug should be present. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getBulkDiscountOffers/).
192
136
  */
193
- getBulkDiscountOffers({ itemId, articleId, uid, slug }?: {
194
- itemId?: number;
195
- articleId?: string;
196
- uid?: number;
197
- slug?: string;
198
- }): Promise<BulkPriceResponse>;
137
+ getBulkDiscountOffers({ itemId, articleId, uid, slug, requestHeaders }?: CartApplicationValidator.GetBulkDiscountOffersParam, { responseHeaders }?: object): Promise<CartApplicationModel.BulkPriceResponse>;
199
138
  /**
200
- * @param {Object} arg - Arg object.
201
- * @param {string} [arg.id] -
202
- * @param {boolean} [arg.i] -
203
- * @param {boolean} [arg.b] -
204
- * @param {number} [arg.assignCardId] -
205
- * @param {string} [arg.areaCode] -
206
- * @param {boolean} [arg.buyNow] -
207
- * @returns {Promise<CartDetailResponse>} - Success response
139
+ * @param {CartApplicationValidator.GetCartParam} arg - Arg object.
140
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
141
+ * @param {import("../ApplicationAPIClient").Options} - Options
142
+ * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
143
+ * @name getCart
208
144
  * @summary: Fetch all items added to the cart
209
- * @description: Use this API to get details of all the items added to a cart.
145
+ * @description: Use this API to get details of all the items added to a cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCart/).
210
146
  */
211
- getCart({ id, i, b, assignCardId, areaCode, buyNow }?: {
212
- id?: string;
213
- i?: boolean;
214
- b?: boolean;
215
- assignCardId?: number;
216
- areaCode?: string;
217
- buyNow?: boolean;
218
- }): Promise<CartDetailResponse>;
147
+ getCart({ id, i, b, assignCardId, areaCode, buyNow, requestHeaders }?: CartApplicationValidator.GetCartParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
219
148
  /**
220
- * @param {Object} arg - Arg object.
221
- * @param {string} [arg.id] -
149
+ * @param {CartApplicationValidator.GetCartLastModifiedParam} arg - Arg object.
150
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
151
+ * @param {import("../ApplicationAPIClient").Options} - Options
222
152
  * @returns {Promise<any>} - Success response
153
+ * @name getCartLastModified
223
154
  * @summary: Fetch last-modified timestamp
224
- * @description: Use this API to fetch Last-Modified timestamp in header metadata.
155
+ * @description: Use this API to fetch Last-Modified timestamp in header metadata. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartLastModified/).
225
156
  */
226
- getCartLastModified({ id }?: {
227
- id?: string;
228
- }): Promise<any>;
157
+ getCartLastModified({ id, requestHeaders }?: CartApplicationValidator.GetCartLastModifiedParam, { responseHeaders }?: object): Promise<any>;
229
158
  /**
230
- * @param {Object} arg - Arg object.
231
- * @param {GetShareCartLinkRequest} arg.body
232
- * @returns {Promise<GetShareCartLinkResponse>} - Success response
159
+ * @param {CartApplicationValidator.GetCartShareLinkParam} arg - Arg object.
160
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
161
+ * @param {import("../ApplicationAPIClient").Options} - Options
162
+ * @returns {Promise<CartApplicationModel.GetShareCartLinkResponse>} -
163
+ * Success response
164
+ * @name getCartShareLink
233
165
  * @summary: Generate token for sharing the cart
234
- * @description: Use this API to generate a shared cart snapshot and return a shortlink token. The link can be shared with other users for getting the same items in their cart.
166
+ * @description: Use this API to generate a shared cart snapshot and return a shortlink token. The link can be shared with other users for getting the same items in their cart. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartShareLink/).
235
167
  */
236
- getCartShareLink({ body }?: {
237
- body: GetShareCartLinkRequest;
238
- }): Promise<GetShareCartLinkResponse>;
168
+ getCartShareLink({ body, requestHeaders }?: CartApplicationValidator.GetCartShareLinkParam, { responseHeaders }?: object): Promise<CartApplicationModel.GetShareCartLinkResponse>;
239
169
  /**
240
- * @param {Object} arg - Arg object.
241
- * @param {string} arg.token - Token of the shared short link
242
- * @returns {Promise<SharedCartResponse>} - Success response
170
+ * @param {CartApplicationValidator.GetCartSharedItemsParam} arg - Arg object.
171
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
172
+ * @param {import("../ApplicationAPIClient").Options} - Options
173
+ * @returns {Promise<CartApplicationModel.SharedCartResponse>} - Success response
174
+ * @name getCartSharedItems
243
175
  * @summary: Get details of a shared cart
244
- * @description: Use this API to get the shared cart details as per the token generated using the share-cart API.
176
+ * @description: Use this API to get the shared cart details as per the token generated using the share-cart API. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCartSharedItems/).
245
177
  */
246
- getCartSharedItems({ token }?: {
247
- token: string;
248
- }): Promise<SharedCartResponse>;
178
+ getCartSharedItems({ token, requestHeaders }?: CartApplicationValidator.GetCartSharedItemsParam, { responseHeaders }?: object): Promise<CartApplicationModel.SharedCartResponse>;
249
179
  /**
250
- * @param {Object} arg - Arg object.
251
- * @param {string} [arg.id] -
252
- * @param {boolean} [arg.buyNow] -
253
- * @returns {Promise<GetCouponResponse>} - Success response
180
+ * @param {CartApplicationValidator.GetCouponsParam} arg - Arg object.
181
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
182
+ * @param {import("../ApplicationAPIClient").Options} - Options
183
+ * @returns {Promise<CartApplicationModel.GetCouponResponse>} - Success response
184
+ * @name getCoupons
254
185
  * @summary: Fetch Coupon
255
- * @description: Use this API to get a list of available coupons along with their details.
186
+ * @description: Use this API to get a list of available coupons along with their details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getCoupons/).
256
187
  */
257
- getCoupons({ id, buyNow }?: {
258
- id?: string;
259
- buyNow?: boolean;
260
- }): Promise<GetCouponResponse>;
188
+ getCoupons({ id, buyNow, requestHeaders }?: CartApplicationValidator.GetCouponsParam, { responseHeaders }?: object): Promise<CartApplicationModel.GetCouponResponse>;
261
189
  /**
262
- * @param {Object} arg - Arg object.
263
- * @param {string} [arg.id] - The unique identifier of the cart.
264
- * @param {boolean} [arg.buyNow] -
265
- * @returns {Promise<CartItemCountResponse>} - Success response
190
+ * @param {CartApplicationValidator.GetItemCountParam} arg - Arg object.
191
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
192
+ * @param {import("../ApplicationAPIClient").Options} - Options
193
+ * @returns {Promise<CartApplicationModel.CartItemCountResponse>} - Success response
194
+ * @name getItemCount
266
195
  * @summary: Count items in the cart
267
- * @description: Use this API to get the total number of items present in cart.
196
+ * @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/getItemCount/).
268
197
  */
269
- getItemCount({ id, buyNow }?: {
270
- id?: string;
271
- buyNow?: boolean;
272
- }): Promise<CartItemCountResponse>;
198
+ getItemCount({ id, buyNow, requestHeaders }?: CartApplicationValidator.GetItemCountParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartItemCountResponse>;
273
199
  /**
274
- * @param {Object} arg - Arg object.
275
- * @param {string} arg.slug - A short, human-readable, URL-friendly
276
- * identifier of a product. You can get slug value from the endpoint
277
- * /service/application/catalog/v1.0/products/
278
- * @param {string} [arg.storeId] - Store uid of assigned store on PDP page.
279
- * If not passed default first created ladder will be returned
280
- * @param {string} [arg.promotionId] - Get ladder information of given
281
- * promotion id explicitely
282
- * @param {number} [arg.pageSize] - Number of offers to be fetched to show
283
- * @returns {Promise<LadderPriceOffers>} - Success response
200
+ * @param {CartApplicationValidator.GetLadderOffersParam} arg - Arg object.
201
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
202
+ * @param {import("../ApplicationAPIClient").Options} - Options
203
+ * @returns {Promise<CartApplicationModel.LadderPriceOffers>} - Success response
204
+ * @name getLadderOffers
284
205
  * @summary: Fetch ladder price promotion
285
- * @description: Use this API to get applicable ladder price promotion for current product
206
+ * @description: Use this API to get applicable ladder price promotion for current product - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getLadderOffers/).
286
207
  */
287
- getLadderOffers({ slug, storeId, promotionId, pageSize }?: {
288
- slug: string;
289
- storeId?: string;
290
- promotionId?: string;
291
- pageSize?: number;
292
- }): Promise<LadderPriceOffers>;
208
+ getLadderOffers({ slug, storeId, promotionId, pageSize, requestHeaders }?: CartApplicationValidator.GetLadderOffersParam, { responseHeaders }?: object): Promise<CartApplicationModel.LadderPriceOffers>;
293
209
  /**
294
- * @param {Object} arg - Arg object.
295
- * @param {string} [arg.slug] - A short, human-readable, URL-friendly
296
- * identifier of a product. You can get slug value from the endpoint
297
- * /service/application/catalog/v1.0/products/
298
- * @param {number} [arg.pageSize] - Number of offers to be fetched to show
299
- * @param {string} [arg.promotionGroup] - Type of promotion groups
300
- * @param {number} [arg.storeId] - Store id
301
- * @returns {Promise<PromotionOffersResponse>} - Success response
210
+ * @param {CartApplicationValidator.GetPromotionOffersParam} arg - Arg object.
211
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
212
+ * @param {import("../ApplicationAPIClient").Options} - Options
213
+ * @returns {Promise<CartApplicationModel.PromotionOffersResponse>} - Success response
214
+ * @name getPromotionOffers
302
215
  * @summary: Fetch available promotions
303
- * @description: Use this API to get top 5 offers available for current product
216
+ * @description: Use this API to get top 5 offers available for current product - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getPromotionOffers/).
304
217
  */
305
- getPromotionOffers({ slug, pageSize, promotionGroup, storeId }?: {
306
- slug?: string;
307
- pageSize?: number;
308
- promotionGroup?: string;
309
- storeId?: number;
310
- }): Promise<PromotionOffersResponse>;
218
+ getPromotionOffers({ slug, pageSize, promotionGroup, storeId, requestHeaders }?: CartApplicationValidator.GetPromotionOffersParam, { responseHeaders }?: object): Promise<CartApplicationModel.PromotionOffersResponse>;
311
219
  /**
312
- * @param {Object} arg - Arg object.
313
- * @param {boolean} [arg.p] - This is a boolean value. Select `true` for
314
- * getting a payment option in response.
315
- * @param {string} [arg.id] - The unique identifier of the cart
316
- * @param {boolean} [arg.buyNow] -
317
- * @param {string} [arg.addressId] - ID allotted to the selected address
318
- * @param {string} [arg.areaCode] - The PIN Code of the destination address,
319
- * e.g. 400059
320
- * @param {string} [arg.orderType] - The order type of shipment HomeDelivery
321
- * - If the customer wants the order home-delivered PickAtStore - If the
322
- * customer wants the handover of an order at the store itself. Digital -
323
- * If the customer wants to buy digital voucher ( for jiogames )
324
- * @returns {Promise<CartShipmentsResponse>} - Success response
220
+ * @param {CartApplicationValidator.GetShipmentsParam} arg - Arg object.
221
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
222
+ * @param {import("../ApplicationAPIClient").Options} - Options
223
+ * @returns {Promise<CartApplicationModel.CartShipmentsResponse>} - Success response
224
+ * @name getShipments
325
225
  * @summary: Get delivery date and options before checkout
326
- * @description: Use this API to get shipment details, expected delivery date, items and price breakup of the shipment.
226
+ * @description: Use this API to get shipment details, expected delivery date, items and price breakup of the shipment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/getShipments/).
327
227
  */
328
- getShipments({ p, id, buyNow, addressId, areaCode, orderType }?: {
329
- p?: boolean;
330
- id?: string;
331
- buyNow?: boolean;
332
- addressId?: string;
333
- areaCode?: string;
334
- orderType?: string;
335
- }): Promise<CartShipmentsResponse>;
228
+ getShipments({ p, id, buyNow, addressId, areaCode, orderType, requestHeaders }?: CartApplicationValidator.GetShipmentsParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartShipmentsResponse>;
336
229
  /**
337
- * @param {Object} arg - Arg object.
338
- * @param {string} arg.id - ID allotted to the selected address
339
- * @returns {Promise<DeleteAddressResponse>} - Success response
230
+ * @param {CartApplicationValidator.RemoveAddressParam} arg - Arg object.
231
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
232
+ * @param {import("../ApplicationAPIClient").Options} - Options
233
+ * @returns {Promise<CartApplicationModel.DeleteAddressResponse>} - Success response
234
+ * @name removeAddress
340
235
  * @summary: Remove address associated with an account
341
- * @description: Use this API to delete an address by its ID. This will returns an object that will indicate whether the address was deleted successfully or not.
236
+ * @description: Use this API to delete an address by its ID. This will returns an object that will indicate whether the address was deleted successfully or not. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeAddress/).
342
237
  */
343
- removeAddress({ id }?: {
344
- id: string;
345
- }): Promise<DeleteAddressResponse>;
238
+ removeAddress({ id, requestHeaders }?: CartApplicationValidator.RemoveAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.DeleteAddressResponse>;
346
239
  /**
347
- * @param {Object} arg - Arg object.
348
- * @param {string} [arg.id] -
349
- * @param {boolean} [arg.buyNow] -
350
- * @returns {Promise<CartDetailResponse>} - Success response
240
+ * @param {CartApplicationValidator.RemoveCouponParam} arg - Arg object.
241
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
242
+ * @param {import("../ApplicationAPIClient").Options} - Options
243
+ * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
244
+ * @name removeCoupon
351
245
  * @summary: Remove Coupon Applied
352
- * @description: Remove Coupon applied on the cart by passing uid in request body.
246
+ * @description: Remove Coupon applied on the cart by passing uid in request body. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/removeCoupon/).
353
247
  */
354
- removeCoupon({ id, buyNow }?: {
355
- id?: string;
356
- buyNow?: boolean;
357
- }): Promise<CartDetailResponse>;
248
+ removeCoupon({ id, buyNow, requestHeaders }?: CartApplicationValidator.RemoveCouponParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
358
249
  /**
359
- * @param {Object} arg - Arg object.
360
- * @param {string} [arg.cartId] -
361
- * @param {boolean} [arg.buyNow] -
362
- * @param {boolean} [arg.i] -
363
- * @param {boolean} [arg.b] -
364
- * @param {SelectCartAddressRequest} arg.body
365
- * @returns {Promise<CartDetailResponse>} - Success response
250
+ * @param {CartApplicationValidator.SelectAddressParam} arg - Arg object.
251
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
252
+ * @param {import("../ApplicationAPIClient").Options} - Options
253
+ * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
254
+ * @name selectAddress
366
255
  * @summary: Select an address from available addresses
367
- * @description: <p>Select Address from all addresses associated with the account in order to ship the cart items to that address, otherwise default address will be selected implicitly. See `SelectCartAddressRequest` in schema of request body for the list of attributes needed to select Address from account. On successful request, this API returns a Cart object. Below address attributes are required. <ul> <li> <font color="monochrome">address_id</font></li> <li> <font color="monochrome">billing_address_id</font></li> <li> <font color="monochrome">uid</font></li> </ul></p>
256
+ * @description: Select Address from all addresses associated with the account in order to ship the cart items to that address, otherwise default address will be selected implicitly. See `SelectCartAddressRequest` in schema of request body for the list of attributes needed to select Address from account. On successful request, this API returns a Cart object. Below address attributes are required. address_id billing_address_id uid - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectAddress/).
368
257
  */
369
- selectAddress({ body, cartId, buyNow, i, b }?: {
370
- cartId?: string;
371
- buyNow?: boolean;
372
- i?: boolean;
373
- b?: boolean;
374
- body: SelectCartAddressRequest;
375
- }): Promise<CartDetailResponse>;
258
+ selectAddress({ body, cartId, buyNow, i, b, requestHeaders }?: CartApplicationValidator.SelectAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
376
259
  /**
377
- * @param {Object} arg - Arg object.
378
- * @param {string} [arg.id] -
379
- * @param {boolean} [arg.buyNow] -
380
- * @param {UpdateCartPaymentRequest} arg.body
381
- * @returns {Promise<CartDetailResponse>} - Success response
260
+ * @param {CartApplicationValidator.SelectPaymentModeParam} arg - Arg object.
261
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
262
+ * @param {import("../ApplicationAPIClient").Options} - Options
263
+ * @returns {Promise<CartApplicationModel.CartDetailResponse>} - Success response
264
+ * @name selectPaymentMode
382
265
  * @summary: Update cart payment
383
- * @description: Use this API to update cart payment.
266
+ * @description: Use this API to update cart payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/selectPaymentMode/).
384
267
  */
385
- selectPaymentMode({ body, id, buyNow }?: {
386
- id?: string;
387
- buyNow?: boolean;
388
- body: UpdateCartPaymentRequest;
389
- }): Promise<CartDetailResponse>;
268
+ selectPaymentMode({ body, id, buyNow, requestHeaders }?: CartApplicationValidator.SelectPaymentModeParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartDetailResponse>;
390
269
  /**
391
- * @param {Object} arg - Arg object.
392
- * @param {string} arg.id - ID allotted to the selected address
393
- * @param {Address} arg.body
394
- * @returns {Promise<UpdateAddressResponse>} - Success response
270
+ * @param {CartApplicationValidator.UpdateAddressParam} arg - Arg object.
271
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
272
+ * @param {import("../ApplicationAPIClient").Options} - Options
273
+ * @returns {Promise<CartApplicationModel.UpdateAddressResponse>} - Success response
274
+ * @name updateAddress
395
275
  * @summary: Update address added to an account
396
- * @description: <p>Use this API to update an existing address in the account. Request object should contain attributes mentioned in <font color="blue">Address </font> can be updated. These attributes are:</p> <ul> <li> <font color="monochrome">is_default_address</font></li> <li> <font color="monochrome">landmark</font></li> <li> <font color="monochrome">area</font></li> <li> <font color="monochrome">pincode</font></li> <li> <font color="monochrome">email</font></li> <li> <font color="monochrome">address_type</font></li> <li> <font color="monochrome">name</font></li> <li> <font color="monochrome">address_id</font></li> <li> <font color="monochrome">address</font></li> </ul>
276
+ * @description: Use this API to update an existing address in the account. Request object should contain attributes mentioned in Address can be updated. These attributes are: is_default_address landmark area pincode email address_type name address_id address - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateAddress/).
397
277
  */
398
- updateAddress({ id, body }?: {
399
- id: string;
400
- body: Address;
401
- }): Promise<UpdateAddressResponse>;
278
+ updateAddress({ id, body, requestHeaders }?: CartApplicationValidator.UpdateAddressParam, { responseHeaders }?: object): Promise<CartApplicationModel.UpdateAddressResponse>;
402
279
  /**
403
- * @param {Object} arg - Arg object.
404
- * @param {string} [arg.id] -
405
- * @param {boolean} [arg.i] -
406
- * @param {boolean} [arg.b] -
407
- * @param {string} [arg.areaCode] -
408
- * @param {boolean} [arg.buyNow] -
409
- * @param {UpdateCartRequest} arg.body
410
- * @returns {Promise<UpdateCartDetailResponse>} - Success response
280
+ * @param {CartApplicationValidator.UpdateCartParam} arg - Arg object.
281
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
282
+ * @param {import("../ApplicationAPIClient").Options} - Options
283
+ * @returns {Promise<CartApplicationModel.UpdateCartDetailResponse>} -
284
+ * Success response
285
+ * @name updateCart
411
286
  * @summary: Update items in the cart
412
- * @description: <p>Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs</p> <ul> <li><font color="monochrome">operation</font> Operation for current api call. <b>update_item</b> for update items. <b>remove_item</b> for removing items.</li> <li> <font color="monochrome">item_id</font> "/platform/content/v1/products/"</li> <li> <font color="monochrome">item_size</font> "/platform/content/v1/products/:slug/sizes/"</li> <li> <font color="monochrome">quantity</font> item quantity (must be greater than or equal to 1)</li> <li> <font color="monochrome">article_id</font> "/content​/v1​/products​/:identifier​/sizes​/price​/"</li> <li> <font color="monochrome">item_index</font> item position in the cart (must be greater than or equal to 0)</li> </ul>
287
+ * @description: Use this API to update items added to the cart with the help of a request object containing attributes like item_quantity and item_size. These attributes will be fetched from the following APIs operation: Operation for current api call. update_item for update items. remove_item for removing items. item_id "/platform/content/v1/products/" item_size "/platform/content/v1/products/:slug/sizes/" quantity item quantity (must be greater than or equal to 1) article_id "/content​/v1​/products​/:identifier​/sizes​/price​/" item_index item position in the cart (must be greater than or equal to 0) - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCart/).
413
288
  */
414
- updateCart({ body, id, i, b, areaCode, buyNow }?: {
415
- id?: string;
416
- i?: boolean;
417
- b?: boolean;
418
- areaCode?: string;
419
- buyNow?: boolean;
420
- body: UpdateCartRequest;
421
- }): Promise<UpdateCartDetailResponse>;
289
+ updateCart({ body, id, i, b, areaCode, buyNow, requestHeaders }?: CartApplicationValidator.UpdateCartParam, { responseHeaders }?: object): Promise<CartApplicationModel.UpdateCartDetailResponse>;
422
290
  /**
423
- * @param {Object} arg - Arg object.
424
- * @param {string} [arg.id] -
425
- * @param {boolean} [arg.buyNow] -
426
- * @param {CartMetaRequest} arg.body
427
- * @returns {Promise<CartMetaResponse>} - Success response
291
+ * @param {CartApplicationValidator.UpdateCartMetaParam} arg - Arg object.
292
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
293
+ * @param {import("../ApplicationAPIClient").Options} - Options
294
+ * @returns {Promise<CartApplicationModel.CartMetaResponse>} - Success response
295
+ * @name updateCartMeta
428
296
  * @summary: Update the cart meta
429
- * @description: Use this API to update cart meta like checkout_mode and gstin.
297
+ * @description: Use this API to update cart meta like checkout_mode and gstin. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartMeta/).
430
298
  */
431
- updateCartMeta({ body, id, buyNow }?: {
432
- id?: string;
433
- buyNow?: boolean;
434
- body: CartMetaRequest;
435
- }): Promise<CartMetaResponse>;
299
+ updateCartMeta({ body, id, buyNow, requestHeaders }?: CartApplicationValidator.UpdateCartMetaParam, { responseHeaders }?: object): Promise<CartApplicationModel.CartMetaResponse>;
436
300
  /**
437
- * @param {Object} arg - Arg object.
438
- * @param {string} arg.token - Token of the shared short link
439
- * @param {string} arg.action - Operation to perform on the existing cart
440
- * merge or replace.
441
- * @returns {Promise<SharedCartResponse>} - Success response
301
+ * @param {CartApplicationValidator.UpdateCartWithSharedItemsParam} arg - Arg object.
302
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
303
+ * @param {import("../ApplicationAPIClient").Options} - Options
304
+ * @returns {Promise<CartApplicationModel.SharedCartResponse>} - Success response
305
+ * @name updateCartWithSharedItems
442
306
  * @summary: Merge or replace existing cart
443
- * @description: Use this API to merge the shared cart with existing cart, or replace the existing cart with the shared cart. The `action` parameter is used to indicate the operation Merge or Replace.
307
+ * @description: Use this API to merge the shared cart with existing cart, or replace the existing cart with the shared cart. The `action` parameter is used to indicate the operation Merge or Replace. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/updateCartWithSharedItems/).
444
308
  */
445
- updateCartWithSharedItems({ token, action }?: {
446
- token: string;
447
- action: string;
448
- }): Promise<SharedCartResponse>;
309
+ updateCartWithSharedItems({ token, action, requestHeaders }?: CartApplicationValidator.UpdateCartWithSharedItemsParam, { responseHeaders }?: object): Promise<CartApplicationModel.SharedCartResponse>;
449
310
  /**
450
- * @param {Object} arg - Arg object.
451
- * @param {string} [arg.id] -
452
- * @param {boolean} [arg.buyNow] -
453
- * @param {string} [arg.addressId] -
454
- * @param {string} [arg.paymentMode] -
455
- * @param {string} [arg.paymentIdentifier] -
456
- * @param {string} [arg.aggregatorName] -
457
- * @param {string} [arg.merchantCode] -
458
- * @param {string} [arg.iin] -
459
- * @param {string} [arg.network] -
460
- * @param {string} [arg.type] -
461
- * @param {string} [arg.cardId] -
462
- * @returns {Promise<PaymentCouponValidate>} - Success response
311
+ * @param {CartApplicationValidator.ValidateCouponForPaymentParam} arg - Arg object.
312
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
313
+ * @param {import("../ApplicationAPIClient").Options} - Options
314
+ * @returns {Promise<CartApplicationModel.PaymentCouponValidate>} - Success response
315
+ * @name validateCouponForPayment
463
316
  * @summary: Verify the coupon eligibility against the payment mode
464
- * @description: Use this API to validate a coupon against the payment mode such as NetBanking, Wallet, UPI etc.
317
+ * @description: Use this API to validate a coupon against the payment mode such as NetBanking, Wallet, UPI etc. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/cart/validateCouponForPayment/).
465
318
  */
466
- validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, }?: {
467
- id?: string;
468
- buyNow?: boolean;
469
- addressId?: string;
470
- paymentMode?: string;
471
- paymentIdentifier?: string;
472
- aggregatorName?: string;
473
- merchantCode?: string;
474
- iin?: string;
475
- network?: string;
476
- type?: string;
477
- cardId?: string;
478
- }): Promise<PaymentCouponValidate>;
319
+ validateCouponForPayment({ id, buyNow, addressId, paymentMode, paymentIdentifier, aggregatorName, merchantCode, iin, network, type, cardId, requestHeaders, }?: CartApplicationValidator.ValidateCouponForPaymentParam, { responseHeaders }?: object): Promise<CartApplicationModel.PaymentCouponValidate>;
479
320
  }
321
+ import CartApplicationValidator = require("./CartApplicationValidator");
322
+ import CartApplicationModel = require("./CartApplicationModel");