@gofynd/fdk-client-javascript 1.6.4 → 3.0.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 (298) 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 +113 -93
  6. package/sdk/application/Cart/CartApplicationClient.js +270 -139
  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 +51 -21
  16. package/sdk/application/Content/ContentApplicationClient.js +197 -36
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
  19. package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
  20. package/sdk/application/Lead/LeadApplicationClient.js +3 -3
  21. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
  22. package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
  23. package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
  24. package/sdk/application/Order/OrderApplicationClient.js +140 -21
  25. package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
  26. package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
  27. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
  28. package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  30. package/sdk/application/Share/ShareApplicationClient.js +14 -14
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
  32. package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
  33. package/sdk/application/User/UserApplicationClient.d.ts +13 -23
  34. package/sdk/application/User/UserApplicationClient.js +9 -57
  35. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
  36. package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
  37. package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
  38. package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
  39. package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
  40. package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
  41. package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
  42. package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
  43. package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
  44. package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
  45. package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
  46. package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
  47. package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
  48. package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
  49. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
  50. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
  51. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
  52. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
  53. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
  54. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
  55. package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
  56. package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
  57. package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
  58. package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
  59. package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
  60. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
  61. package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
  62. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
  63. package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
  64. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
  65. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
  66. package/sdk/partner/PartnerClient.d.ts +6 -0
  67. package/sdk/partner/PartnerClient.js +9 -0
  68. package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
  69. package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
  70. package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
  71. package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
  72. package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
  73. package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
  74. package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
  75. package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
  76. package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
  77. package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
  78. package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
  79. package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
  80. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
  81. package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
  82. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
  83. package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
  84. package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
  85. package/sdk/partner/index.d.ts +3 -0
  86. package/sdk/partner/index.js +6 -0
  87. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
  88. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  89. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
  90. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
  91. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
  92. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
  93. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
  94. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
  95. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
  96. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
  97. package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
  98. package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
  99. package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
  100. package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
  101. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
  102. package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
  103. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
  104. package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
  105. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
  106. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
  107. package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
  108. package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
  109. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
  110. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
  111. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
  112. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
  113. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
  114. package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
  115. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
  116. package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
  117. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
  118. package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
  119. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
  120. package/sdk/platform/Common/CommonPlatformClient.js +5 -6
  121. package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
  122. package/sdk/platform/Common/CommonPlatformModel.js +6 -6
  123. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
  124. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
  125. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
  126. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
  127. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
  128. package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
  129. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
  130. package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
  131. package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
  132. package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
  133. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
  134. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
  135. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
  136. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
  137. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
  138. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
  139. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
  140. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
  141. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
  142. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
  143. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
  144. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
  145. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
  146. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
  147. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
  148. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
  149. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
  150. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
  151. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
  152. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
  153. package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
  154. package/sdk/platform/Content/ContentPlatformClient.js +459 -379
  155. package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
  156. package/sdk/platform/Content/ContentPlatformModel.js +893 -582
  157. package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
  158. package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
  159. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
  160. package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
  161. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
  162. package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
  163. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
  164. package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
  165. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
  166. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
  167. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
  168. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
  169. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
  170. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
  171. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
  172. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
  173. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  174. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  175. package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
  176. package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
  177. package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
  178. package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
  179. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
  180. package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
  181. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
  182. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
  183. package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
  184. package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
  185. package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
  186. package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
  187. package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
  188. package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
  189. package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
  190. package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
  191. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
  192. package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
  193. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
  194. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
  195. package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
  196. package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
  197. package/sdk/platform/Order/OrderPlatformModel.d.ts +4103 -9109
  198. package/sdk/platform/Order/OrderPlatformModel.js +3198 -4245
  199. package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
  200. package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
  201. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
  202. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
  203. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
  204. package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
  205. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
  206. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
  207. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
  208. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
  209. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
  210. package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
  211. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
  212. package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
  213. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
  214. package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
  215. package/sdk/platform/PlatformClient.d.ts +2 -0
  216. package/sdk/platform/PlatformClient.js +4 -0
  217. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
  218. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
  219. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
  220. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
  221. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
  222. package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
  223. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
  224. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
  225. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
  226. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
  227. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
  228. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
  229. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
  230. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
  231. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
  232. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
  233. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
  234. package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
  235. package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
  236. package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
  237. package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
  238. package/sdk/platform/Share/SharePlatformModel.js +3 -43
  239. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
  240. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
  241. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
  242. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
  243. package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
  244. package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
  245. package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
  246. package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
  247. package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
  248. package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
  249. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
  250. package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
  251. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
  252. package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
  253. package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
  254. package/sdk/platform/User/UserPlatformModel.js +209 -216
  255. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
  256. package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
  257. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
  258. package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
  259. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
  260. package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
  261. package/sdk/platform/index.d.ts +1 -0
  262. package/sdk/platform/index.js +2 -0
  263. package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
  264. package/sdk/public/Billing/BillingPublicClient.js +397 -0
  265. package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
  266. package/sdk/public/Billing/BillingPublicModel.js +560 -0
  267. package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
  268. package/sdk/public/Billing/BillingPublicValidator.js +50 -0
  269. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
  270. package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
  271. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
  272. package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
  273. package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
  274. package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
  275. package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
  276. package/sdk/public/Content/ContentPublicClient.js +183 -0
  277. package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
  278. package/sdk/public/Content/ContentPublicModel.js +47 -1
  279. package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
  280. package/sdk/public/Content/ContentPublicValidator.js +19 -0
  281. package/sdk/public/PublicClient.d.ts +2 -2
  282. package/sdk/public/PublicClient.js +2 -2
  283. package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
  284. package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
  285. package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
  286. package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
  287. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  288. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  289. package/sdk/public/index.d.ts +1 -1
  290. package/sdk/public/index.js +1 -1
  291. package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
  292. package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
  293. package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
  294. package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
  295. package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
  296. package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
  297. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
  298. package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
@@ -16,21 +16,24 @@ class Payment {
16
16
  "/service/application/payment/v1.0/refund/account/otp",
17
17
  attachCardToCustomer: "/service/application/payment/v1.0/card/attach",
18
18
  cancelPaymentLink:
19
- "/service/application/payment/v1.0/cancel-payment-link/",
19
+ "/service/application/payment/v1.0/cancel-payment-link",
20
20
  cardDetails: "/service/application/payment/v1.0/cards/info/{card_info}",
21
21
  checkAndUpdatePaymentStatus:
22
22
  "/service/application/payment/v1.0/payment/confirm/polling",
23
23
  checkAndUpdatePaymentStatusPaymentLink:
24
- "/service/application/payment/v1.0/payment/confirm/polling/link/",
25
- checkCredit: "/service/application/payment/v1.0/check-credits/",
24
+ "/service/application/payment/v1.0/payment/confirm/polling/link",
25
+ checkCredit: "/service/application/payment/v1.0/check-credits",
26
+ confirmPayment: "/service/application/payment/v1.0/payment/confirm",
26
27
  createOrderHandlerPaymentLink:
27
- "/service/application/payment/v1.0/create-order/link/",
28
+ "/service/application/payment/v1.0/create-order/link",
28
29
  createPaymentLink:
29
- "/service/application/payment/v1.0/create-payment-link/",
30
- createPaymentOrder: "/service/application/payment/v1.0/payment-orders/",
30
+ "/service/application/payment/v1.0/create-payment-link",
31
+ createPaymentOrder: "/service/application/payment/v1.0/payment-orders",
31
32
  customerCreditSummary:
32
- "/service/application/payment/v1.0/payment/credit-summary/",
33
- customerOnboard: "/service/application/payment/v1.0/credit-onboard/",
33
+ "/service/application/payment/v1.0/payment/credit-summary",
34
+ customerOnboard: "/service/application/payment/v1.0/credit-onboard",
35
+ deleteBeneficiaryDetails:
36
+ "/service/application/payment/v1.0/refund/account",
34
37
  deleteUserCard: "/service/application/payment/v1.0/card/remove",
35
38
  delinkWallet:
36
39
  "/service/application/payment/v1.0/payment/options/wallet/delink",
@@ -43,41 +46,54 @@ class Payment {
43
46
  getActiveUserCards: "/service/application/payment/v1.0/cards",
44
47
  getAggregatorsConfig:
45
48
  "/service/application/payment/v1.0/config/aggregators/key",
49
+ getBenficiaryOrder:
50
+ "/service/application/payment/v1.0/refund/beneficiaries/orders",
46
51
  getEpaylaterBannerDetails:
47
52
  "/service/application/payment/v1.0/epaylater/banner",
48
53
  getOrderBeneficiariesDetail:
49
54
  "/service/application/payment/v1.0/refund/order/beneficiaries",
50
- getPaymentLink: "/service/application/payment/v1.0/create-payment-link/",
55
+ getPaymentLink: "/service/application/payment/v1.0/create-payment-link",
56
+ getPaymentLinkId:
57
+ "/service/application/payment/v1.0/create-payment-link/{id}",
51
58
  getPaymentModeRoutes: "/service/application/payment/v1.0/payment/options",
52
59
  getPaymentModeRoutesPaymentLink:
53
- "/service/application/payment/v1.0/payment/options/link/",
60
+ "/service/application/payment/v1.0/payment/options/link",
54
61
  getPosPaymentModeRoutes:
55
62
  "/service/application/payment/v1.0/payment/options/pos",
56
63
  getRupifiBannerDetails: "/service/application/payment/v1.0/rupifi/banner",
64
+ getSelectedRefundOption:
65
+ "/service/application/payment/v1.0/payment/selected_refund_options",
57
66
  getUserBeneficiariesDetail:
58
67
  "/service/application/payment/v1.0/refund/user/beneficiary",
68
+ getUserBeneficiariesDetailV2:
69
+ "/service/application/payment/v2.0/refund/user/beneficiary",
70
+ getotpOrderBeneficiariesDetail:
71
+ "/service/application/payment/v1.0/refund/account/otp",
59
72
  initialisePayment: "/service/application/payment/v1.0/payment/request",
60
73
  initialisePaymentPaymentLink:
61
- "/service/application/payment/v1.0/payment/request/link/",
74
+ "/service/application/payment/v1.0/payment/request/link",
62
75
  linkWallet:
63
76
  "/service/application/payment/v1.0/payment/options/wallet/verify",
64
77
  outstandingOrderDetails:
65
- "/service/application/payment/v1.0/payment/outstanding-orders/",
66
- paidOrderDetails:
67
- "/service/application/payment/v1.0/payment/paid-orders/",
78
+ "/service/application/payment/v1.0/payment/outstanding-orders",
79
+ paidOrderDetails: "/service/application/payment/v1.0/payment/paid-orders",
68
80
  pollingPaymentLink:
69
- "/service/application/payment/v1.0/polling-payment-link/",
81
+ "/service/application/payment/v1.0/polling-payment-link",
70
82
  redirectToAggregator:
71
- "/service/application/payment/v1.0/payment/redirect-to-aggregator/",
72
- renderHTML: "/service/application/payment/v1.0/payment/html/render/",
83
+ "/service/application/payment/v1.0/payment/redirect-to-aggregator",
84
+ renderHTML: "/service/application/payment/v1.0/payment/html/render",
73
85
  resendOrCancelPayment:
74
86
  "/service/application/payment/v1.0/payment/resend_or_cancel",
75
87
  resendPaymentLink:
76
- "/service/application/payment/v1.0/resend-payment-link/",
88
+ "/service/application/payment/v1.0/resend-payment-link",
89
+ setRefundOptionforShipment:
90
+ "/service/application/payment/v1.0/payment/refundoptions",
91
+ updateActiveCards: "/service/application/payment/v1.0/cards",
77
92
  updateDefaultBeneficiary:
78
93
  "/service/application/payment/v1.0/refund/beneficiary/default",
79
- validateCustomerAndCreditSummary:
80
- "/service/application/payment/v1.0/payment/validate/customer-credits-v2",
94
+ updateUserCard: "/service/application/payment/v1.0/card/aggregator",
95
+ validateBeneficiaryAddress:
96
+ "/service/application/payment/v1.0/validate/beneficiary-address",
81
97
  validateVPA: "/service/application/payment/v1.0/validate-vpa",
82
98
  verifyAndChargePayment:
83
99
  "/service/application/payment/v1.0/payment/confirm/charge",
@@ -110,7 +126,7 @@ class Payment {
110
126
  /**
111
127
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
112
128
  * @param {import("../ApplicationAPIClient").Options} - Options
113
- * @returns {Promise<RefundAccountDetails>} - Success response
129
+ * @returns {Promise<RefundAccountResponse>} - Success response
114
130
  * @name addBeneficiaryDetails
115
131
  * @summary: Add beneficiary for refund
116
132
  * @description: Add beneficiary details specifically for refund transactions, including account holder name, account number and bank details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/addBeneficiaryDetails/).
@@ -155,9 +171,9 @@ class Payment {
155
171
  /**
156
172
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
157
173
  * @param {import("../ApplicationAPIClient").Options} - Options
158
- * @returns {Promise<RefundAccountDetails>} - Success response
174
+ * @returns {Promise<PostAddBeneficiaryDetailsOTPResponse>} - Success response
159
175
  * @name addRefundBankAccountUsingOTP
160
- * @summary: Add refund account using OTP verification
176
+ * @summary: Save bank details for cancelled/returned order
161
177
  * @description: Add bank account specifically for refunds, employing OTP verification for security. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/addRefundBankAccountUsingOTP/).
162
178
  */
163
179
  async addRefundBankAccountUsingOTP(
@@ -200,7 +216,7 @@ class Payment {
200
216
  /**
201
217
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
202
218
  * @param {import("../ApplicationAPIClient").Options} - Options
203
- * @returns {Promise<AttachCardsDetails>} - Success response
219
+ * @returns {Promise<AttachCardsResponse>} - Success response
204
220
  * @name attachCardToCustomer
205
221
  * @summary: Link payment card to customer
206
222
  * @description: Link payment card to a user account for seamless transactions. Upon successful linking, the card becomes associated with the user's profile, enabling secure and convenient payments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/attachCardToCustomer/).
@@ -245,7 +261,7 @@ class Payment {
245
261
  /**
246
262
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
247
263
  * @param {import("../ApplicationAPIClient").Options} - Options
248
- * @returns {Promise<CancelPaymentLinkDetails>} - Success response
264
+ * @returns {Promise<CancelPaymentLinkResponse>} - Success response
249
265
  * @name cancelPaymentLink
250
266
  * @summary: Cancel payment link
251
267
  * @description: Cancel previously generated payment link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/cancelPaymentLink/).
@@ -290,7 +306,7 @@ class Payment {
290
306
  /**
291
307
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
292
308
  * @param {import("../ApplicationAPIClient").Options} - Options
293
- * @returns {Promise<CardDetailsFetchedDetails>} - Success response
309
+ * @returns {Promise<CardDetailsResponse>} - Success response
294
310
  * @name cardDetails
295
311
  * @summary: Get card details
296
312
  * @description: Get details of a specified payment card, including information such as the card type, brand, country, and expiration date. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/cardDetails/).
@@ -343,7 +359,7 @@ class Payment {
343
359
  /**
344
360
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
345
361
  * @param {import("../ApplicationAPIClient").Options} - Options
346
- * @returns {Promise<PaymentStatusUpdateDetails>} - Success response
362
+ * @returns {Promise<PaymentStatusUpdateResponse>} - Success response
347
363
  * @name checkAndUpdatePaymentStatus
348
364
  * @summary: Update payment status
349
365
  * @description: Polling process to confirm the payment status. It periodically checks and updates the current status of a payment, ensuring timely and accurate confirmation of payment transactions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/checkAndUpdatePaymentStatus/).
@@ -388,9 +404,9 @@ class Payment {
388
404
  /**
389
405
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
390
406
  * @param {import("../ApplicationAPIClient").Options} - Options
391
- * @returns {Promise<PaymentStatusUpdateDetails>} - Success response
407
+ * @returns {Promise<PaymentStatusUpdateResponse>} - Success response
392
408
  * @name checkAndUpdatePaymentStatusPaymentLink
393
- * @summary: Update payment link status
409
+ * @summary: Performs continuous polling to check status of payment on the server
394
410
  * @description: Verify and update status of a payment made through a link.Upon successful verification and update, the response includes details about the aggregator name, payment status, and whether retrying the process is required. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/checkAndUpdatePaymentStatusPaymentLink/).
395
411
  */
396
412
  async checkAndUpdatePaymentStatusPaymentLink(
@@ -433,7 +449,7 @@ class Payment {
433
449
  /**
434
450
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
435
451
  * @param {import("../ApplicationAPIClient").Options} - Options
436
- * @returns {Promise<CheckCreditDetails>} - Success response
452
+ * @returns {Promise<CheckCreditResponse>} - Success response
437
453
  * @name checkCredit
438
454
  * @summary: Verify credit availability and status
439
455
  * @description: Check the availability and status of customer credit, providing the status of payment along with registration information and signup URL if the customer is not registered. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/checkCredit/).
@@ -479,9 +495,54 @@ class Payment {
479
495
  /**
480
496
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
481
497
  * @param {import("../ApplicationAPIClient").Options} - Options
482
- * @returns {Promise<CreateOrderUserDetails>} - Success response
498
+ * @returns {Promise<PaymentConfirmationResponse>} - Success response
499
+ * @name confirmPayment
500
+ * @summary: Confirm payment after successful payment from payment gateway
501
+ * @description: confirm payment after payment gateway accepted payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/confirmPayment/).
502
+ */
503
+ async confirmPayment(
504
+ { body, requestHeaders } = { requestHeaders: {} },
505
+ { responseHeaders } = { responseHeaders: false }
506
+ ) {
507
+ let invalidInput = [];
508
+ if (invalidInput.length) {
509
+ const error = new Error();
510
+ error.message = "Missing required field";
511
+ error.details = invalidInput;
512
+ return Promise.reject(new FDKClientValidationError(error));
513
+ }
514
+
515
+ const query_params = {};
516
+
517
+ const xHeaders = {};
518
+
519
+ const response = await ApplicationAPIClient.execute(
520
+ this._conf,
521
+ "post",
522
+ constructUrl({
523
+ url: this._urls["confirmPayment"],
524
+ params: {},
525
+ }),
526
+ query_params,
527
+ body,
528
+ { ...xHeaders, ...requestHeaders },
529
+ { responseHeaders }
530
+ );
531
+
532
+ let responseData = response;
533
+ if (responseHeaders) {
534
+ responseData = response[0];
535
+ }
536
+
537
+ return response;
538
+ }
539
+
540
+ /**
541
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
542
+ * @param {import("../ApplicationAPIClient").Options} - Options
543
+ * @returns {Promise<CreateOrderUserResponse>} - Success response
483
544
  * @name createOrderHandlerPaymentLink
484
- * @summary: Create order for payment via link
545
+ * @summary: Order via link.
485
546
  * @description: Initiate the creation of an order handler for processing payments through a link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/createOrderHandlerPaymentLink/).
486
547
  */
487
548
  async createOrderHandlerPaymentLink(
@@ -524,9 +585,9 @@ class Payment {
524
585
  /**
525
586
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
526
587
  * @param {import("../ApplicationAPIClient").Options} - Options
527
- * @returns {Promise<CreatePaymentLinkDetails>} - Success response
588
+ * @returns {Promise<CreatePaymentLinkResponse>} - Success response
528
589
  * @name createPaymentLink
529
- * @summary: Create payment link
590
+ * @summary: Create payment link.
530
591
  * @description: Create new payment link for transactions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/createPaymentLink/).
531
592
  */
532
593
  async createPaymentLink(
@@ -569,7 +630,7 @@ class Payment {
569
630
  /**
570
631
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
571
632
  * @param {import("../ApplicationAPIClient").Options} - Options
572
- * @returns {Promise<PaymentOrderDetails>} - Success response
633
+ * @returns {Promise<PaymentOrderResponse>} - Success response
573
634
  * @name createPaymentOrder
574
635
  * @summary: Create Order
575
636
  * @description: Create an order and payment on the aggregator side. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/createPaymentOrder/).
@@ -614,9 +675,9 @@ class Payment {
614
675
  /**
615
676
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
616
677
  * @param {import("../ApplicationAPIClient").Options} - Options
617
- * @returns {Promise<CustomerCreditSummaryDetails>} - Success response
678
+ * @returns {Promise<CustomerCreditSummaryResponse>} - Success response
618
679
  * @name customerCreditSummary
619
- * @summary: Credit summary
680
+ * @summary: Credit summary.
620
681
  * @description: Get summary of the customer's credit information, including details such as merchant customer reference ID, status, balance, limit, due amount, used amount, due date, days overdue, total due amount, and a repayment URL. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/customerCreditSummary/).
621
682
  */
622
683
  async customerCreditSummary(
@@ -660,7 +721,7 @@ class Payment {
660
721
  /**
661
722
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
662
723
  * @param {import("../ApplicationAPIClient").Options} - Options
663
- * @returns {Promise<CustomerOnboardingDetails>} - Success response
724
+ * @returns {Promise<CustomerOnboardingResponse>} - Success response
664
725
  * @name customerOnboard
665
726
  * @summary: Onboard customer for payment
666
727
  * @description: Initiate the onboarding process for payment services, providing personal, business, and device information, along with marketplace details, to enable customer registration and credit availability. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/customerOnboard/).
@@ -705,7 +766,52 @@ class Payment {
705
766
  /**
706
767
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
707
768
  * @param {import("../ApplicationAPIClient").Options} - Options
708
- * @returns {Promise<DeleteCardsDetails>} - Success response
769
+ * @returns {Promise<DeleteRefundAccountResponse>} - Success response
770
+ * @name deleteBeneficiaryDetails
771
+ * @summary: Delete saved beneficiary details of customers
772
+ * @description: Use this API to delete the saved beneficiary details provided beneficiary Id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/deleteBeneficiaryDetails/).
773
+ */
774
+ async deleteBeneficiaryDetails(
775
+ { body, requestHeaders } = { requestHeaders: {} },
776
+ { responseHeaders } = { responseHeaders: false }
777
+ ) {
778
+ let invalidInput = [];
779
+ if (invalidInput.length) {
780
+ const error = new Error();
781
+ error.message = "Missing required field";
782
+ error.details = invalidInput;
783
+ return Promise.reject(new FDKClientValidationError(error));
784
+ }
785
+
786
+ const query_params = {};
787
+
788
+ const xHeaders = {};
789
+
790
+ const response = await ApplicationAPIClient.execute(
791
+ this._conf,
792
+ "patch",
793
+ constructUrl({
794
+ url: this._urls["deleteBeneficiaryDetails"],
795
+ params: {},
796
+ }),
797
+ query_params,
798
+ body,
799
+ { ...xHeaders, ...requestHeaders },
800
+ { responseHeaders }
801
+ );
802
+
803
+ let responseData = response;
804
+ if (responseHeaders) {
805
+ responseData = response[0];
806
+ }
807
+
808
+ return response;
809
+ }
810
+
811
+ /**
812
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
813
+ * @param {import("../ApplicationAPIClient").Options} - Options
814
+ * @returns {Promise<DeleteCardsResponse>} - Success response
709
815
  * @name deleteUserCard
710
816
  * @summary: Delete customer card
711
817
  * @description: Delete payment card from the user's account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/deleteUserCard/).
@@ -795,7 +901,7 @@ class Payment {
795
901
  /**
796
902
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
797
903
  * @param {import("../ApplicationAPIClient").Options} - Options
798
- * @returns {Promise<RefundTransferModeUpdateDetails>} - Success response
904
+ * @returns {Promise<UpdateRefundTransferModeResponse>} - Success response
799
905
  * @name enableOrDisableRefundTransferMode
800
906
  * @summary: Toggle refund mode
801
907
  * @description: Enable/Disable a particular refund transfer mode based on the request body parameters, indicating whether the mode should be enabled or disabled. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/enableOrDisableRefundTransferMode/).
@@ -840,7 +946,7 @@ class Payment {
840
946
  /**
841
947
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
842
948
  * @param {import("../ApplicationAPIClient").Options} - Options
843
- * @returns {Promise<ActiveCardPaymentGatewayDetails>} - Success response
949
+ * @returns {Promise<ActiveCardPaymentGatewayResponse>} - Success response
844
950
  * @name getActiveCardAggregator
845
951
  * @summary: Retrieve active card aggregator
846
952
  * @description: Get details about the active card aggregator used by the user, including the aggregator name.You can refresh the data by setting the 'refresh' parameter to true if needed. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getActiveCardAggregator/).
@@ -886,7 +992,7 @@ class Payment {
886
992
  /**
887
993
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
888
994
  * @param {import("../ApplicationAPIClient").Options} - Options
889
- * @returns {Promise<TransferModeFetchDetails>} - Success response
995
+ * @returns {Promise<TransferModeResponse>} - Success response
890
996
  * @name getActiveRefundTransferModes
891
997
  * @summary: Get refund transfer modes
892
998
  * @description: Lists available refund modes, such as UPI, providing details like display name, logo, and ID for each mode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getActiveRefundTransferModes/).
@@ -931,9 +1037,9 @@ class Payment {
931
1037
  /**
932
1038
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
933
1039
  * @param {import("../ApplicationAPIClient").Options} - Options
934
- * @returns {Promise<ListCardsDetails>} - Success response
1040
+ * @returns {Promise<ListCardsResponse>} - Success response
935
1041
  * @name getActiveUserCards
936
- * @summary: Get customer cards
1042
+ * @summary: List user's cards.
937
1043
  * @description: List all active cards saved by the user.Includes details such as the card's aggregator name, card ID, token, reference, number, expiration date, type, issuer, brand, nickname, and whether it has expired. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getActiveUserCards/).
938
1044
  */
939
1045
  async getActiveUserCards(
@@ -977,7 +1083,7 @@ class Payment {
977
1083
  /**
978
1084
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
979
1085
  * @param {import("../ApplicationAPIClient").Options} - Options
980
- * @returns {Promise<AggregatorsConfigDetail>} - Success response
1086
+ * @returns {Promise<AggregatorsConfigDetailResponse>} - Success response
981
1087
  * @name getAggregatorsConfig
982
1088
  * @summary: Get payment aggregators
983
1089
  * @description: Get aggregator secret key of all payment gateways utilized for payments when using the SDK for the payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getAggregatorsConfig/).
@@ -1024,7 +1130,52 @@ class Payment {
1024
1130
  /**
1025
1131
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1026
1132
  * @param {import("../ApplicationAPIClient").Options} - Options
1027
- * @returns {Promise<EpaylaterBannerDetails>} - Success response
1133
+ * @returns {Promise<RefundOrderBenResponse>} - Success response
1134
+ * @name getBenficiaryOrder
1135
+ * @summary: Get Payment status and information for a list of order_ids
1136
+ * @description: Use this API to get Payment status and information for a list of order_ids. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getBenficiaryOrder/).
1137
+ */
1138
+ async getBenficiaryOrder(
1139
+ { body, requestHeaders } = { requestHeaders: {} },
1140
+ { responseHeaders } = { responseHeaders: false }
1141
+ ) {
1142
+ let invalidInput = [];
1143
+ if (invalidInput.length) {
1144
+ const error = new Error();
1145
+ error.message = "Missing required field";
1146
+ error.details = invalidInput;
1147
+ return Promise.reject(new FDKClientValidationError(error));
1148
+ }
1149
+
1150
+ const query_params = {};
1151
+
1152
+ const xHeaders = {};
1153
+
1154
+ const response = await ApplicationAPIClient.execute(
1155
+ this._conf,
1156
+ "post",
1157
+ constructUrl({
1158
+ url: this._urls["getBenficiaryOrder"],
1159
+ params: {},
1160
+ }),
1161
+ query_params,
1162
+ body,
1163
+ { ...xHeaders, ...requestHeaders },
1164
+ { responseHeaders }
1165
+ );
1166
+
1167
+ let responseData = response;
1168
+ if (responseHeaders) {
1169
+ responseData = response[0];
1170
+ }
1171
+
1172
+ return response;
1173
+ }
1174
+
1175
+ /**
1176
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1177
+ * @param {import("../ApplicationAPIClient").Options} - Options
1178
+ * @returns {Promise<EpaylaterBannerResponse>} - Success response
1028
1179
  * @name getEpaylaterBannerDetails
1029
1180
  * @summary: Epaylater banner info
1030
1181
  * @description: Get Epaylater payment banner details. It provides information about the banner's display status, along with relevant messages and the user's registration status. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getEpaylaterBannerDetails/).
@@ -1069,7 +1220,7 @@ class Payment {
1069
1220
  /**
1070
1221
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1071
1222
  * @param {import("../ApplicationAPIClient").Options} - Options
1072
- * @returns {Promise<OrderBeneficiaryFetchDetails>} - Success response
1223
+ * @returns {Promise<OrderBeneficiaryResponse>} - Success response
1073
1224
  * @name getOrderBeneficiariesDetail
1074
1225
  * @summary: Retrieve beneficiary details
1075
1226
  * @description: Get beneficiary details like bank name , ifsc code , branch name associated with a specific order for refund processing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getOrderBeneficiariesDetail/).
@@ -1122,9 +1273,9 @@ class Payment {
1122
1273
  /**
1123
1274
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1124
1275
  * @param {import("../ApplicationAPIClient").Options} - Options
1125
- * @returns {Promise<GetPaymentLinkDetails>} - Success response
1276
+ * @returns {Promise<GetPaymentLinkResponse>} - Success response
1126
1277
  * @name getPaymentLink
1127
- * @summary: Get payment link
1278
+ * @summary: Fetch payment link.
1128
1279
  * @description: Get a generated payment link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getPaymentLink/).
1129
1280
  */
1130
1281
  async getPaymentLink(
@@ -1168,7 +1319,66 @@ class Payment {
1168
1319
  /**
1169
1320
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1170
1321
  * @param {import("../ApplicationAPIClient").Options} - Options
1171
- * @returns {Promise<PaymentModeRouteDetails>} - Success response
1322
+ * @returns {Promise<GetPaymentLinkResponse>} - Success response
1323
+ * @name getPaymentLinkId
1324
+ * @summary: Get payment link
1325
+ * @description: get a payment link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getPaymentLinkId/).
1326
+ */
1327
+ async getPaymentLinkId(
1328
+ { id, paymentLinkId, requestHeaders } = { requestHeaders: {} },
1329
+ { responseHeaders } = { responseHeaders: false }
1330
+ ) {
1331
+ let invalidInput = [];
1332
+
1333
+ if (!id) {
1334
+ invalidInput.push({
1335
+ message: `The 'id' field is required.`,
1336
+ path: ["id"],
1337
+ });
1338
+ }
1339
+ if (!paymentLinkId) {
1340
+ invalidInput.push({
1341
+ message: `The 'paymentLinkId' field is required.`,
1342
+ path: ["paymentLinkId"],
1343
+ });
1344
+ }
1345
+ if (invalidInput.length) {
1346
+ const error = new Error();
1347
+ error.message = "Missing required field";
1348
+ error.details = invalidInput;
1349
+ return Promise.reject(new FDKClientValidationError(error));
1350
+ }
1351
+
1352
+ const query_params = {};
1353
+ query_params["payment_link_id"] = paymentLinkId;
1354
+
1355
+ const xHeaders = {};
1356
+
1357
+ const response = await ApplicationAPIClient.execute(
1358
+ this._conf,
1359
+ "get",
1360
+ constructUrl({
1361
+ url: this._urls["getPaymentLinkId"],
1362
+ params: { id },
1363
+ }),
1364
+ query_params,
1365
+ undefined,
1366
+ { ...xHeaders, ...requestHeaders },
1367
+ { responseHeaders }
1368
+ );
1369
+
1370
+ let responseData = response;
1371
+ if (responseHeaders) {
1372
+ responseData = response[0];
1373
+ }
1374
+
1375
+ return response;
1376
+ }
1377
+
1378
+ /**
1379
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1380
+ * @param {import("../ApplicationAPIClient").Options} - Options
1381
+ * @returns {Promise<PaymentModeRouteResponse>} - Success response
1172
1382
  * @name getPaymentModeRoutes
1173
1383
  * @summary: Get payment modes
1174
1384
  * @description: Get available payment methods on the payment page, specifying the aggregator for each option, such as 'Netbanking powered by Juspay' and 'Card powered by Razorpay'. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getPaymentModeRoutes/).
@@ -1197,12 +1407,6 @@ class Payment {
1197
1407
  path: ["amount"],
1198
1408
  });
1199
1409
  }
1200
- if (!cartId) {
1201
- invalidInput.push({
1202
- message: `The 'cartId' field is required.`,
1203
- path: ["cartId"],
1204
- });
1205
- }
1206
1410
  if (invalidInput.length) {
1207
1411
  const error = new Error();
1208
1412
  error.message = "Missing required field";
@@ -1248,9 +1452,9 @@ class Payment {
1248
1452
  /**
1249
1453
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1250
1454
  * @param {import("../ApplicationAPIClient").Options} - Options
1251
- * @returns {Promise<PaymentModeRouteDetails>} - Success response
1455
+ * @returns {Promise<PaymentModeRouteResponse>} - Success response
1252
1456
  * @name getPaymentModeRoutesPaymentLink
1253
- * @summary: Payment modes for payment link
1457
+ * @summary: Payment link modes.
1254
1458
  * @description: List payment modes available for a given payment link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getPaymentModeRoutesPaymentLink/).
1255
1459
  */
1256
1460
  async getPaymentModeRoutesPaymentLink(
@@ -1301,7 +1505,7 @@ class Payment {
1301
1505
  /**
1302
1506
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1303
1507
  * @param {import("../ApplicationAPIClient").Options} - Options
1304
- * @returns {Promise<PaymentModeRouteDetails>} - Success response
1508
+ * @returns {Promise<PaymentModeRouteResponse>} - Success response
1305
1509
  * @name getPosPaymentModeRoutes
1306
1510
  * @summary: POS payment modes
1307
1511
  * @description: Get available payment methods on the payment page for POS, specifying the aggregator for each option, such as 'CARD powered by Juspay' and 'QR powered by Razorpay'. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getPosPaymentModeRoutes/).
@@ -1309,9 +1513,9 @@ class Payment {
1309
1513
  async getPosPaymentModeRoutes(
1310
1514
  {
1311
1515
  amount,
1312
- cartId,
1313
1516
  pincode,
1314
1517
  orderType,
1518
+ cartId,
1315
1519
  checkoutMode,
1316
1520
  refresh,
1317
1521
  cardReference,
@@ -1328,12 +1532,6 @@ class Payment {
1328
1532
  path: ["amount"],
1329
1533
  });
1330
1534
  }
1331
- if (!cartId) {
1332
- invalidInput.push({
1333
- message: `The 'cartId' field is required.`,
1334
- path: ["cartId"],
1335
- });
1336
- }
1337
1535
  if (!pincode) {
1338
1536
  invalidInput.push({
1339
1537
  message: `The 'pincode' field is required.`,
@@ -1389,9 +1587,9 @@ class Payment {
1389
1587
  /**
1390
1588
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1391
1589
  * @param {import("../ApplicationAPIClient").Options} - Options
1392
- * @returns {Promise<RupifiBannerDetails>} - Success response
1590
+ * @returns {Promise<RupifiBannerResponse>} - Success response
1393
1591
  * @name getRupifiBannerDetails
1394
- * @summary: Rupifi banner info
1592
+ * @summary: Rupifi banner info.
1395
1593
  * @description: Get Rupifi payment banner details. It provides information such as the KYC URL and the current status of the Rupifi payment banner. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getRupifiBannerDetails/).
1396
1594
  */
1397
1595
  async getRupifiBannerDetails(
@@ -1434,7 +1632,67 @@ class Payment {
1434
1632
  /**
1435
1633
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1436
1634
  * @param {import("../ApplicationAPIClient").Options} - Options
1437
- * @returns {Promise<OrderBeneficiaryFetchDetails>} - Success response
1635
+ * @returns {Promise<SelectedRefundOptionResponse>} - Success response
1636
+ * @name getSelectedRefundOption
1637
+ * @summary: get the selected refund options for shipment id
1638
+ * @description: get the selected refund options for shipment id. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getSelectedRefundOption/).
1639
+ */
1640
+ async getSelectedRefundOption(
1641
+ { shipmentId, orderId, requestHeaders } = { requestHeaders: {} },
1642
+ { responseHeaders } = { responseHeaders: false }
1643
+ ) {
1644
+ let invalidInput = [];
1645
+
1646
+ if (!shipmentId) {
1647
+ invalidInput.push({
1648
+ message: `The 'shipmentId' field is required.`,
1649
+ path: ["shipmentId"],
1650
+ });
1651
+ }
1652
+ if (!orderId) {
1653
+ invalidInput.push({
1654
+ message: `The 'orderId' field is required.`,
1655
+ path: ["orderId"],
1656
+ });
1657
+ }
1658
+ if (invalidInput.length) {
1659
+ const error = new Error();
1660
+ error.message = "Missing required field";
1661
+ error.details = invalidInput;
1662
+ return Promise.reject(new FDKClientValidationError(error));
1663
+ }
1664
+
1665
+ const query_params = {};
1666
+ query_params["shipment_id"] = shipmentId;
1667
+ query_params["order_id"] = orderId;
1668
+
1669
+ const xHeaders = {};
1670
+
1671
+ const response = await ApplicationAPIClient.execute(
1672
+ this._conf,
1673
+ "get",
1674
+ constructUrl({
1675
+ url: this._urls["getSelectedRefundOption"],
1676
+ params: {},
1677
+ }),
1678
+ query_params,
1679
+ undefined,
1680
+ { ...xHeaders, ...requestHeaders },
1681
+ { responseHeaders }
1682
+ );
1683
+
1684
+ let responseData = response;
1685
+ if (responseHeaders) {
1686
+ responseData = response[0];
1687
+ }
1688
+
1689
+ return response;
1690
+ }
1691
+
1692
+ /**
1693
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1694
+ * @param {import("../ApplicationAPIClient").Options} - Options
1695
+ * @returns {Promise<OrderBeneficiaryResponse>} - Success response
1438
1696
  * @name getUserBeneficiariesDetail
1439
1697
  * @summary: Retrieve beneficiary details
1440
1698
  * @description: Get beneficiaries associated with the user for processing refunds, based on the provided order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getUserBeneficiariesDetail/).
@@ -1487,9 +1745,117 @@ class Payment {
1487
1745
  /**
1488
1746
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1489
1747
  * @param {import("../ApplicationAPIClient").Options} - Options
1490
- * @returns {Promise<PaymentInitializationDetails>} - Success response
1748
+ * @returns {Promise<OrderBeneficiaryResponseSchemaV2>} - Success response
1749
+ * @name getUserBeneficiariesDetailV2
1750
+ * @summary: Retrieve beneficiary details
1751
+ * @description: Get beneficiaries associated with the user for processing refunds, based on the provided order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getUserBeneficiariesDetailV2/).
1752
+ */
1753
+ async getUserBeneficiariesDetailV2(
1754
+ { orderId, shipmentId, mop, requestHeaders } = { requestHeaders: {} },
1755
+ { responseHeaders } = { responseHeaders: false }
1756
+ ) {
1757
+ let invalidInput = [];
1758
+ if (invalidInput.length) {
1759
+ const error = new Error();
1760
+ error.message = "Missing required field";
1761
+ error.details = invalidInput;
1762
+ return Promise.reject(new FDKClientValidationError(error));
1763
+ }
1764
+
1765
+ const query_params = {};
1766
+ query_params["order_id"] = orderId;
1767
+ query_params["shipment_id"] = shipmentId;
1768
+ query_params["mop"] = mop;
1769
+
1770
+ const xHeaders = {};
1771
+
1772
+ const response = await ApplicationAPIClient.execute(
1773
+ this._conf,
1774
+ "get",
1775
+ constructUrl({
1776
+ url: this._urls["getUserBeneficiariesDetailV2"],
1777
+ params: {},
1778
+ }),
1779
+ query_params,
1780
+ undefined,
1781
+ { ...xHeaders, ...requestHeaders },
1782
+ { responseHeaders }
1783
+ );
1784
+
1785
+ let responseData = response;
1786
+ if (responseHeaders) {
1787
+ responseData = response[0];
1788
+ }
1789
+
1790
+ return response;
1791
+ }
1792
+
1793
+ /**
1794
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1795
+ * @param {import("../ApplicationAPIClient").Options} - Options
1796
+ * @returns {Promise<AddBeneficiaryDetailsOTPResponse>} - Success response
1797
+ * @name getotpOrderBeneficiariesDetail
1798
+ * @summary: Lists the beneficiary of a refund
1799
+ * @description: Get the details of all active beneficiary added by a user for refund. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getotpOrderBeneficiariesDetail/).
1800
+ */
1801
+ async getotpOrderBeneficiariesDetail(
1802
+ { orderId, requestHash, requestHeaders } = { requestHeaders: {} },
1803
+ { responseHeaders } = { responseHeaders: false }
1804
+ ) {
1805
+ let invalidInput = [];
1806
+
1807
+ if (!orderId) {
1808
+ invalidInput.push({
1809
+ message: `The 'orderId' field is required.`,
1810
+ path: ["orderId"],
1811
+ });
1812
+ }
1813
+ if (!requestHash) {
1814
+ invalidInput.push({
1815
+ message: `The 'requestHash' field is required.`,
1816
+ path: ["requestHash"],
1817
+ });
1818
+ }
1819
+ if (invalidInput.length) {
1820
+ const error = new Error();
1821
+ error.message = "Missing required field";
1822
+ error.details = invalidInput;
1823
+ return Promise.reject(new FDKClientValidationError(error));
1824
+ }
1825
+
1826
+ const query_params = {};
1827
+ query_params["order_id"] = orderId;
1828
+ query_params["request_hash"] = requestHash;
1829
+
1830
+ const xHeaders = {};
1831
+
1832
+ const response = await ApplicationAPIClient.execute(
1833
+ this._conf,
1834
+ "get",
1835
+ constructUrl({
1836
+ url: this._urls["getotpOrderBeneficiariesDetail"],
1837
+ params: {},
1838
+ }),
1839
+ query_params,
1840
+ undefined,
1841
+ { ...xHeaders, ...requestHeaders },
1842
+ { responseHeaders }
1843
+ );
1844
+
1845
+ let responseData = response;
1846
+ if (responseHeaders) {
1847
+ responseData = response[0];
1848
+ }
1849
+
1850
+ return response;
1851
+ }
1852
+
1853
+ /**
1854
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1855
+ * @param {import("../ApplicationAPIClient").Options} - Options
1856
+ * @returns {Promise<PaymentInitializationResponse>} - Success response
1491
1857
  * @name initialisePayment
1492
- * @summary: Start payment process
1858
+ * @summary: Start payment process.
1493
1859
  * @description: Initiate the payment procedure for an order. Upon successful initiation, it returns a details including the success status, aggregator information, payment method, status, merchant order ID aggregator order , polling URL, timeout, virtual ID, Razorpay payment ID, customer ID, and device ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/initialisePayment/).
1494
1860
  */
1495
1861
  async initialisePayment(
@@ -1532,9 +1898,9 @@ class Payment {
1532
1898
  /**
1533
1899
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1534
1900
  * @param {import("../ApplicationAPIClient").Options} - Options
1535
- * @returns {Promise<PaymentInitializationDetails>} - Success response
1901
+ * @returns {Promise<PaymentInitializationResponse>} - Success response
1536
1902
  * @name initialisePaymentPaymentLink
1537
- * @summary: Initialize payment link
1903
+ * @summary: Initialise link payment.
1538
1904
  * @description: Begin payment process for an order by initializing it through a payment link.Upon successful initialization, the response includes details about the payment status, aggregator details, order IDs, polling URL for status updates, and other relevant information. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/initialisePaymentPaymentLink/).
1539
1905
  */
1540
1906
  async initialisePaymentPaymentLink(
@@ -1622,9 +1988,9 @@ class Payment {
1622
1988
  /**
1623
1989
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1624
1990
  * @param {import("../ApplicationAPIClient").Options} - Options
1625
- * @returns {Promise<OutstandingOrderDetails>} - Success response
1991
+ * @returns {Promise<OutstandingOrderDetailsResponse>} - Success response
1626
1992
  * @name outstandingOrderDetails
1627
- * @summary: Outstanding orders
1993
+ * @summary: Outstanding orders.
1628
1994
  * @description: Get details of orders with outstanding payments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/outstandingOrderDetails/).
1629
1995
  */
1630
1996
  async outstandingOrderDetails(
@@ -1668,7 +2034,7 @@ class Payment {
1668
2034
  /**
1669
2035
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1670
2036
  * @param {import("../ApplicationAPIClient").Options} - Options
1671
- * @returns {Promise<PaidOrderDetails>} - Success response
2037
+ * @returns {Promise<PaidOrderDetailsResponse>} - Success response
1672
2038
  * @name paidOrderDetails
1673
2039
  * @summary: Retrieve details of paid orders
1674
2040
  * @description: Get details of orders that have been paid for, including shipment ID, order ID, due date, payment date, amount, and transaction ID, based on the aggregator merchant user ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/paidOrderDetails/).
@@ -1714,9 +2080,9 @@ class Payment {
1714
2080
  /**
1715
2081
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1716
2082
  * @param {import("../ApplicationAPIClient").Options} - Options
1717
- * @returns {Promise<PollingPaymentLinkDetails>} - Success response
2083
+ * @returns {Promise<PollingPaymentLinkResponse>} - Success response
1718
2084
  * @name pollingPaymentLink
1719
- * @summary: Poll status of payment link
2085
+ * @summary: Poll payment link.
1720
2086
  * @description: Get real-time information about the payment link's current status, such as whether it has been processed, cancelled, or expired. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/pollingPaymentLink/).
1721
2087
  */
1722
2088
  async pollingPaymentLink(
@@ -1724,6 +2090,13 @@ class Payment {
1724
2090
  { responseHeaders } = { responseHeaders: false }
1725
2091
  ) {
1726
2092
  let invalidInput = [];
2093
+
2094
+ if (!paymentLinkId) {
2095
+ invalidInput.push({
2096
+ message: `The 'paymentLinkId' field is required.`,
2097
+ path: ["paymentLinkId"],
2098
+ });
2099
+ }
1727
2100
  if (invalidInput.length) {
1728
2101
  const error = new Error();
1729
2102
  error.message = "Missing required field";
@@ -1760,23 +2133,16 @@ class Payment {
1760
2133
  /**
1761
2134
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1762
2135
  * @param {import("../ApplicationAPIClient").Options} - Options
1763
- * @returns {Promise<RedirectToAggregatorDetails>} - Success response
2136
+ * @returns {Promise<RedirectToAggregatorResponse>} - Success response
1764
2137
  * @name redirectToAggregator
1765
2138
  * @summary: Redirects users to the payment aggregator's interface
1766
- * @description: This endpoint is used to redirect users to the payment aggregator's platform where they can complete the payment process. The request may include necessary details for initiating the payment on the aggregator’s side, and the user is transferred seamlessly to their interface. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/redirectToAggregator/).
2139
+ * @description: Get details about the active card aggregator used by the user, including the aggregator's name. You can refresh the data by setting the 'refresh' parameter to true if needed. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/redirectToAggregator/).
1767
2140
  */
1768
2141
  async redirectToAggregator(
1769
- { aggregator, source, requestHeaders } = { requestHeaders: {} },
2142
+ { source, aggregator, requestHeaders } = { requestHeaders: {} },
1770
2143
  { responseHeaders } = { responseHeaders: false }
1771
2144
  ) {
1772
2145
  let invalidInput = [];
1773
-
1774
- if (!aggregator) {
1775
- invalidInput.push({
1776
- message: `The 'aggregator' field is required.`,
1777
- path: ["aggregator"],
1778
- });
1779
- }
1780
2146
  if (invalidInput.length) {
1781
2147
  const error = new Error();
1782
2148
  error.message = "Missing required field";
@@ -1814,9 +2180,9 @@ class Payment {
1814
2180
  /**
1815
2181
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1816
2182
  * @param {import("../ApplicationAPIClient").Options} - Options
1817
- * @returns {Promise<RenderHTMLDetails>} - Success response
2183
+ * @returns {Promise<renderHTMLResponse>} - Success response
1818
2184
  * @name renderHTML
1819
- * @summary: Render HTML
2185
+ * @summary: Render HTML.
1820
2186
  * @description: Render HTML for a payment aggregator page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/renderHTML/).
1821
2187
  */
1822
2188
  async renderHTML(
@@ -1859,7 +2225,7 @@ class Payment {
1859
2225
  /**
1860
2226
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1861
2227
  * @param {import("../ApplicationAPIClient").Options} - Options
1862
- * @returns {Promise<ResendOrCancelPaymentDetails>} - Success response
2228
+ * @returns {Promise<ResendOrCancelPaymentResponse>} - Success response
1863
2229
  * @name resendOrCancelPayment
1864
2230
  * @summary: Resend or cancel a pending payment transaction
1865
2231
  * @description: Resend or cancel payment link that have been initiated but may require modification or cancellation for various reasons, ensuring flexibility and control in payment processing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/resendOrCancelPayment/).
@@ -1904,7 +2270,7 @@ class Payment {
1904
2270
  /**
1905
2271
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1906
2272
  * @param {import("../ApplicationAPIClient").Options} - Options
1907
- * @returns {Promise<ResendPaymentLinkDetails>} - Success response
2273
+ * @returns {Promise<ResendPaymentLinkResponse>} - Success response
1908
2274
  * @name resendPaymentLink
1909
2275
  * @summary: Resend payment link
1910
2276
  * @description: Resend an existing payment link to the user to complete the payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/resendPaymentLink/).
@@ -1949,7 +2315,97 @@ class Payment {
1949
2315
  /**
1950
2316
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1951
2317
  * @param {import("../ApplicationAPIClient").Options} - Options
1952
- * @returns {Promise<SetDefaultBeneficiaryDetails>} - Success response
2318
+ * @returns {Promise<ShipmentRefundResponse>} - Success response
2319
+ * @name setRefundOptionforShipment
2320
+ * @summary: Save refund source against shipment and order
2321
+ * @description: Save refund source against shipment and order. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/setRefundOptionforShipment/).
2322
+ */
2323
+ async setRefundOptionforShipment(
2324
+ { body, requestHeaders } = { requestHeaders: {} },
2325
+ { responseHeaders } = { responseHeaders: false }
2326
+ ) {
2327
+ let invalidInput = [];
2328
+ if (invalidInput.length) {
2329
+ const error = new Error();
2330
+ error.message = "Missing required field";
2331
+ error.details = invalidInput;
2332
+ return Promise.reject(new FDKClientValidationError(error));
2333
+ }
2334
+
2335
+ const query_params = {};
2336
+
2337
+ const xHeaders = {};
2338
+
2339
+ const response = await ApplicationAPIClient.execute(
2340
+ this._conf,
2341
+ "post",
2342
+ constructUrl({
2343
+ url: this._urls["setRefundOptionforShipment"],
2344
+ params: {},
2345
+ }),
2346
+ query_params,
2347
+ body,
2348
+ { ...xHeaders, ...requestHeaders },
2349
+ { responseHeaders }
2350
+ );
2351
+
2352
+ let responseData = response;
2353
+ if (responseHeaders) {
2354
+ responseData = response[0];
2355
+ }
2356
+
2357
+ return response;
2358
+ }
2359
+
2360
+ /**
2361
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2362
+ * @param {import("../ApplicationAPIClient").Options} - Options
2363
+ * @returns {Promise<UpdateCardResponse>} - Success response
2364
+ * @name updateActiveCards
2365
+ * @summary: update a card
2366
+ * @description: Use this API to update a card list added by a user on the payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/updateActiveCards/).
2367
+ */
2368
+ async updateActiveCards(
2369
+ { body, requestHeaders } = { requestHeaders: {} },
2370
+ { responseHeaders } = { responseHeaders: false }
2371
+ ) {
2372
+ let invalidInput = [];
2373
+ if (invalidInput.length) {
2374
+ const error = new Error();
2375
+ error.message = "Missing required field";
2376
+ error.details = invalidInput;
2377
+ return Promise.reject(new FDKClientValidationError(error));
2378
+ }
2379
+
2380
+ const query_params = {};
2381
+
2382
+ const xHeaders = {};
2383
+
2384
+ const response = await ApplicationAPIClient.execute(
2385
+ this._conf,
2386
+ "post",
2387
+ constructUrl({
2388
+ url: this._urls["updateActiveCards"],
2389
+ params: {},
2390
+ }),
2391
+ query_params,
2392
+ body,
2393
+ { ...xHeaders, ...requestHeaders },
2394
+ { responseHeaders }
2395
+ );
2396
+
2397
+ let responseData = response;
2398
+ if (responseHeaders) {
2399
+ responseData = response[0];
2400
+ }
2401
+
2402
+ return response;
2403
+ }
2404
+
2405
+ /**
2406
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2407
+ * @param {import("../ApplicationAPIClient").Options} - Options
2408
+ * @returns {Promise<SetDefaultBeneficiaryResponse>} - Success response
1953
2409
  * @name updateDefaultBeneficiary
1954
2410
  * @summary: Set default beneficiary for refund
1955
2411
  * @description: Update default beneficiary for the order refund of the user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/updateDefaultBeneficiary/).
@@ -1994,12 +2450,57 @@ class Payment {
1994
2450
  /**
1995
2451
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1996
2452
  * @param {import("../ApplicationAPIClient").Options} - Options
1997
- * @returns {Promise<ValidateCustomerCreditSchema>} - Success response
1998
- * @name validateCustomerAndCreditSummary
1999
- * @summary: Verify payment customer and show credit summary
2000
- * @description: Verify if the user is eligible for payment and also show credit summary if activated. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/validateCustomerAndCreditSummary/).
2453
+ * @returns {Promise<UpdateAggregatorCardResponse>} - Success response
2454
+ * @name updateUserCard
2455
+ * @summary: card aggregator
2456
+ * @description: Use this API to get card of user. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/updateUserCard/).
2457
+ */
2458
+ async updateUserCard(
2459
+ { body, requestHeaders } = { requestHeaders: {} },
2460
+ { responseHeaders } = { responseHeaders: false }
2461
+ ) {
2462
+ let invalidInput = [];
2463
+ if (invalidInput.length) {
2464
+ const error = new Error();
2465
+ error.message = "Missing required field";
2466
+ error.details = invalidInput;
2467
+ return Promise.reject(new FDKClientValidationError(error));
2468
+ }
2469
+
2470
+ const query_params = {};
2471
+
2472
+ const xHeaders = {};
2473
+
2474
+ const response = await ApplicationAPIClient.execute(
2475
+ this._conf,
2476
+ "post",
2477
+ constructUrl({
2478
+ url: this._urls["updateUserCard"],
2479
+ params: {},
2480
+ }),
2481
+ query_params,
2482
+ body,
2483
+ { ...xHeaders, ...requestHeaders },
2484
+ { responseHeaders }
2485
+ );
2486
+
2487
+ let responseData = response;
2488
+ if (responseHeaders) {
2489
+ responseData = response[0];
2490
+ }
2491
+
2492
+ return response;
2493
+ }
2494
+
2495
+ /**
2496
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2497
+ * @param {import("../ApplicationAPIClient").Options} - Options
2498
+ * @returns {Promise<ValidateValidateAddressResponse>} - Success response
2499
+ * @name validateBeneficiaryAddress
2500
+ * @summary: Validate UPI ID and IFSC code
2501
+ * @description: Validate UPI ID and IFSC code. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/validateBeneficiaryAddress/).
2001
2502
  */
2002
- async validateCustomerAndCreditSummary(
2503
+ async validateBeneficiaryAddress(
2003
2504
  { body, requestHeaders } = { requestHeaders: {} },
2004
2505
  { responseHeaders } = { responseHeaders: false }
2005
2506
  ) {
@@ -2019,7 +2520,7 @@ class Payment {
2019
2520
  this._conf,
2020
2521
  "post",
2021
2522
  constructUrl({
2022
- url: this._urls["validateCustomerAndCreditSummary"],
2523
+ url: this._urls["validateBeneficiaryAddress"],
2023
2524
  params: {},
2024
2525
  }),
2025
2526
  query_params,
@@ -2039,9 +2540,9 @@ class Payment {
2039
2540
  /**
2040
2541
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2041
2542
  * @param {import("../ApplicationAPIClient").Options} - Options
2042
- * @returns {Promise<ValidateVPADetails>} - Success response
2543
+ * @returns {Promise<ValidateVPAResponse>} - Success response
2043
2544
  * @name validateVPA
2044
- * @summary: Validate VPA
2545
+ * @summary: Validate VPA.
2045
2546
  * @description: Validate if a Virtual Payment Address (VPA) is valid for processing payments and returns the validation result.is_valid boolean value indicating whether the VPA is valid for payments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/validateVPA/).
2046
2547
  */
2047
2548
  async validateVPA(
@@ -2084,7 +2585,7 @@ class Payment {
2084
2585
  /**
2085
2586
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2086
2587
  * @param {import("../ApplicationAPIClient").Options} - Options
2087
- * @returns {Promise<ChargeCustomerDetails>} - Success response
2588
+ * @returns {Promise<ChargeCustomerResponse>} - Success response
2088
2589
  * @name verifyAndChargePayment
2089
2590
  * @summary: Verify order confirmation and charge
2090
2591
  * @description: Verify the payment status and charge from the customer's BNPL (Buy Now, Pay Later) account after order confirmation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/verifyAndChargePayment/).
@@ -2129,9 +2630,9 @@ class Payment {
2129
2630
  /**
2130
2631
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2131
2632
  * @param {import("../ApplicationAPIClient").Options} - Options
2132
- * @returns {Promise<ValidateCustomerDetails>} - Success response
2633
+ * @returns {Promise<ValidateCustomerResponse>} - Success response
2133
2634
  * @name verifyCustomerForPayment
2134
- * @summary: Verify payment customer
2635
+ * @summary: Verify payment customer.
2135
2636
  * @description: Verify if the user is eligible for pay-later payment from the payment aggregator side using the customer's phone number. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/verifyCustomerForPayment/).
2136
2637
  */
2137
2638
  async verifyCustomerForPayment(
@@ -2174,7 +2675,7 @@ class Payment {
2174
2675
  /**
2175
2676
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2176
2677
  * @param {import("../ApplicationAPIClient").Options} - Options
2177
- * @returns {Promise<IfscCodeDetails>} - Success response
2678
+ * @returns {Promise<IfscCodeResponse>} - Success response
2178
2679
  * @name verifyIfscCode
2179
2680
  * @summary: Verify IFSC
2180
2681
  * @description: Validate IFSC code and returns bank details if valid. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/verifyIfscCode/).
@@ -2220,9 +2721,9 @@ class Payment {
2220
2721
  /**
2221
2722
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2222
2723
  * @param {import("../ApplicationAPIClient").Options} - Options
2223
- * @returns {Promise<AddBeneficiaryViaOtpVerificationDetails>} - Success response
2724
+ * @returns {Promise<AddBeneficiaryViaOtpVerificationResponse>} - Success response
2224
2725
  * @name verifyOtpAndAddBeneficiaryForBank
2225
- * @summary: Verify OTP for bank and add beneficiary
2726
+ * @summary: Verify OTP for bank.
2226
2727
  * @description: Verify the OTP provided by the user and adds a bank beneficiary for refund processing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/verifyOtpAndAddBeneficiaryForBank/).
2227
2728
  */
2228
2729
  async verifyOtpAndAddBeneficiaryForBank(
@@ -2265,9 +2766,9 @@ class Payment {
2265
2766
  /**
2266
2767
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2267
2768
  * @param {import("../ApplicationAPIClient").Options} - Options
2268
- * @returns {Promise<WalletOtpDetails>} - Success response
2769
+ * @returns {Promise<WalletOtpResponse>} - Success response
2269
2770
  * @name verifyOtpAndAddBeneficiaryForWallet
2270
- * @summary: Verify OTP for wallet
2771
+ * @summary: Verify OTP for wallet.
2271
2772
  * @description: Verify OTP provided by the user and adds a wallet beneficiary. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/verifyOtpAndAddBeneficiaryForWallet/).
2272
2773
  */
2273
2774
  async verifyOtpAndAddBeneficiaryForWallet(