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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/README.md +23 -26
  2. package/package.json +5 -1
  3. package/sdk/application/ApplicationClient.d.ts +5 -6
  4. package/sdk/application/ApplicationClient.js +24 -20
  5. package/sdk/application/Cart/CartApplicationClient.d.ts +133 -83
  6. package/sdk/application/Cart/CartApplicationClient.js +444 -76
  7. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +132 -114
  8. package/sdk/application/Catalog/CatalogApplicationClient.js +209 -126
  9. package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
  10. package/sdk/application/Common/CommonApplicationClient.js +4 -4
  11. package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -3
  12. package/sdk/application/Communication/CommunicationApplicationClient.js +3 -3
  13. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +58 -36
  14. package/sdk/application/Configuration/ConfigurationApplicationClient.js +73 -29
  15. package/sdk/application/Content/ContentApplicationClient.d.ts +95 -66
  16. package/sdk/application/Content/ContentApplicationClient.js +274 -111
  17. package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -11
  18. package/sdk/application/FileStorage/FileStorageApplicationClient.js +10 -10
  19. package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
  20. package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
  21. package/sdk/application/Lead/LeadApplicationClient.d.ts +7 -7
  22. package/sdk/application/Lead/LeadApplicationClient.js +6 -6
  23. package/sdk/application/Logistic/LogisticApplicationClient.d.ts +37 -57
  24. package/sdk/application/Logistic/LogisticApplicationClient.js +117 -180
  25. package/sdk/application/Order/OrderApplicationClient.d.ts +63 -21
  26. package/sdk/application/Order/OrderApplicationClient.js +217 -17
  27. package/sdk/application/Payment/PaymentApplicationClient.d.ts +179 -149
  28. package/sdk/application/Payment/PaymentApplicationClient.js +301 -167
  29. package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
  30. package/sdk/application/Share/ShareApplicationClient.js +7 -7
  31. package/sdk/application/Theme/ThemeApplicationClient.d.ts +7 -7
  32. package/sdk/application/Theme/ThemeApplicationClient.js +10 -6
  33. package/sdk/application/User/UserApplicationClient.d.ts +103 -53
  34. package/sdk/application/User/UserApplicationClient.js +308 -49
  35. package/sdk/common/AxiosHelper.js +11 -4
  36. package/sdk/common/Constant.d.ts +27 -4
  37. package/sdk/common/Constant.js +33 -6
  38. package/sdk/common/utils.d.ts +10 -0
  39. package/sdk/common/utils.js +24 -3
  40. package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +46 -16
  41. package/sdk/partner/FileStorage/FileStoragePartnerClient.js +266 -40
  42. package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +163 -19
  43. package/sdk/partner/FileStorage/FileStoragePartnerModel.js +158 -14
  44. package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +5 -2
  45. package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +23 -7
  46. package/sdk/partner/Lead/LeadPartnerClient.d.ts +9 -9
  47. package/sdk/partner/Lead/LeadPartnerClient.js +9 -9
  48. package/sdk/partner/Lead/LeadPartnerModel.d.ts +14 -9
  49. package/sdk/partner/Lead/LeadPartnerModel.js +19 -17
  50. package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +264 -49
  51. package/sdk/partner/Logistics/LogisticsPartnerClient.js +2116 -252
  52. package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +2256 -258
  53. package/sdk/partner/Logistics/LogisticsPartnerModel.js +1187 -230
  54. package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +21 -1
  55. package/sdk/partner/Logistics/LogisticsPartnerValidator.js +218 -13
  56. package/sdk/partner/PartnerClient.d.ts +5 -2
  57. package/sdk/partner/PartnerClient.js +21 -7
  58. package/sdk/partner/Theme/ThemePartnerClient.d.ts +32 -34
  59. package/sdk/partner/Theme/ThemePartnerClient.js +42 -44
  60. package/sdk/partner/Theme/ThemePartnerModel.d.ts +142 -43
  61. package/sdk/partner/Theme/ThemePartnerModel.js +129 -44
  62. package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
  63. package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +83 -27
  64. package/sdk/partner/Webhook/WebhookPartnerClient.js +446 -27
  65. package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +920 -185
  66. package/sdk/partner/Webhook/WebhookPartnerModel.js +462 -154
  67. package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +5 -0
  68. package/sdk/partner/Webhook/WebhookPartnerValidator.js +41 -3
  69. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +8 -7
  70. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +17 -11
  71. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
  72. package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
  73. package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +68 -13
  74. package/sdk/platform/Analytics/AnalyticsPlatformModel.js +44 -6
  75. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +3 -33
  76. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +4 -244
  77. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
  78. package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
  79. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
  80. package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
  81. package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -15
  82. package/sdk/platform/Billing/BillingPlatformClient.js +18 -18
  83. package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
  84. package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
  85. package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
  86. package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
  87. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +266 -203
  88. package/sdk/platform/Cart/CartPlatformApplicationClient.js +1446 -500
  89. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +729 -100
  90. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +446 -82
  91. package/sdk/platform/Cart/CartPlatformModel.d.ts +6927 -1396
  92. package/sdk/platform/Cart/CartPlatformModel.js +3065 -1316
  93. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +433 -248
  94. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1662 -559
  95. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +464 -159
  96. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +304 -87
  97. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +383 -234
  98. package/sdk/platform/Catalog/CatalogPlatformClient.js +2475 -1557
  99. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9573 -2678
  100. package/sdk/platform/Catalog/CatalogPlatformModel.js +5033 -1973
  101. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
  103. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
  104. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  105. package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
  106. package/sdk/platform/Common/CommonPlatformModel.js +25 -14
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
  111. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
  112. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
  114. package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
  124. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
  126. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
  128. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  130. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
  132. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
  134. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
  135. package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
  136. package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
  137. package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
  138. package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
  139. package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
  140. package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
  141. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
  142. package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
  143. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
  144. package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
  145. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  146. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
  150. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
  152. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
  154. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  156. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  157. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
  158. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
  159. package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
  160. package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
  161. package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
  162. package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
  163. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
  164. package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
  165. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
  166. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
  167. package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
  168. package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
  169. package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
  170. package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
  171. package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
  172. package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
  173. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
  174. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
  175. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
  176. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
  177. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
  178. package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
  179. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
  180. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
  181. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
  182. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
  183. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
  184. package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
  185. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
  186. package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
  187. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  188. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  189. package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
  190. package/sdk/platform/PlatformApplicationClient.js +0 -4
  191. package/sdk/platform/PlatformClient.d.ts +5 -4
  192. package/sdk/platform/PlatformClient.js +32 -22
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
  203. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
  204. package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
  205. package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
  206. package/sdk/platform/Share/SharePlatformModel.js +31 -6
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
  208. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
  210. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
  211. package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
  212. package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
  214. package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
  215. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
  216. package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
  217. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
  218. package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
  219. package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
  220. package/sdk/platform/User/UserPlatformModel.js +607 -46
  221. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
  222. package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
  223. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
  224. package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
  225. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  226. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  227. package/sdk/platform/index.d.ts +0 -2
  228. package/sdk/platform/index.js +0 -4
  229. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  230. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  231. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  232. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  233. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  234. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
  239. package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
  240. package/sdk/public/Content/ContentPublicClient.js +1067 -17
  241. package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
  242. package/sdk/public/Content/ContentPublicModel.js +751 -3
  243. package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
  244. package/sdk/public/Content/ContentPublicValidator.js +119 -2
  245. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  246. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  247. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  248. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  249. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  250. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  251. package/sdk/public/PublicClient.d.ts +5 -2
  252. package/sdk/public/PublicClient.js +16 -6
  253. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
  254. package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
  255. package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
  256. package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
  257. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  258. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  259. package/sdk/public/index.d.ts +1 -0
  260. package/sdk/public/index.js +2 -0
  261. package/utility.d.ts +3 -0
  262. package/utility.js +7 -0
  263. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
  264. package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
  265. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
  266. package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
  267. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  268. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  269. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  270. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  271. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  272. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
@@ -12,9 +12,13 @@ class Payment {
12
12
  constructor(_conf) {
13
13
  this._conf = _conf;
14
14
  this._relativeUrls = {
15
+ addBeneficiary:
16
+ "/service/application/payment/v2.0/refund/user/beneficiary",
15
17
  addBeneficiaryDetails: "/service/application/payment/v1.0/refund/account",
16
18
  addRefundBankAccountUsingOTP:
17
19
  "/service/application/payment/v1.0/refund/account/otp",
20
+ addRefundBeneficiaryUsingOTPSession:
21
+ "/service/application/payment/v2.0/refund/user/beneficiary-otp",
18
22
  attachCardToCustomer: "/service/application/payment/v1.0/card/attach",
19
23
  cancelPaymentLink:
20
24
  "/service/application/payment/v1.0/cancel-payment-link/",
@@ -32,6 +36,8 @@ class Payment {
32
36
  customerCreditSummary:
33
37
  "/service/application/payment/v1.0/payment/credit-summary/",
34
38
  customerOnboard: "/service/application/payment/v1.0/credit-onboard/",
39
+ deleteBeneficiary:
40
+ "/service/application/payment/v1.0/refund/account/{id}",
35
41
  deleteUserCard: "/service/application/payment/v1.0/card/remove",
36
42
  delinkWallet:
37
43
  "/service/application/payment/v1.0/payment/options/wallet/delink",
@@ -44,8 +50,6 @@ class Payment {
44
50
  getActiveUserCards: "/service/application/payment/v1.0/cards",
45
51
  getAggregatorsConfig:
46
52
  "/service/application/payment/v1.0/config/aggregators/key",
47
- getEpaylaterBannerDetails:
48
- "/service/application/payment/v1.0/epaylater/banner",
49
53
  getOrderBeneficiariesDetail:
50
54
  "/service/application/payment/v1.0/refund/order/beneficiaries",
51
55
  getPaymentLink: "/service/application/payment/v1.0/create-payment-link/",
@@ -54,7 +58,10 @@ class Payment {
54
58
  "/service/application/payment/v1.0/payment/options/link/",
55
59
  getPosPaymentModeRoutes:
56
60
  "/service/application/payment/v1.0/payment/options/pos",
57
- getRupifiBannerDetails: "/service/application/payment/v1.0/rupifi/banner",
61
+ getRefundBeneficiaries:
62
+ "/service/application/payment/v2.0/refund/user/beneficiary",
63
+ getRefundBeneficiariesUsingOTPSession:
64
+ "/service/application/payment/v2.0/refund/user/beneficiary-otp",
58
65
  getUserBeneficiariesDetail:
59
66
  "/service/application/payment/v1.0/refund/user/beneficiary",
60
67
  initialisePayment: "/service/application/payment/v1.0/payment/request",
@@ -62,8 +69,6 @@ class Payment {
62
69
  "/service/application/payment/v1.0/payment/request/link/",
63
70
  linkWallet:
64
71
  "/service/application/payment/v1.0/payment/options/wallet/verify",
65
- outstandingOrderDetails:
66
- "/service/application/payment/v1.0/payment/outstanding-orders/",
67
72
  paidOrderDetails:
68
73
  "/service/application/payment/v1.0/payment/paid-orders/",
69
74
  pollingPaymentLink:
@@ -77,6 +82,8 @@ class Payment {
77
82
  "/service/application/payment/v1.0/resend-payment-link/",
78
83
  updateDefaultBeneficiary:
79
84
  "/service/application/payment/v1.0/refund/beneficiary/default",
85
+ validateCustomerAndCreditSummary:
86
+ "/service/application/payment/v1.0/payment/validate/customer-credits-v2",
80
87
  validateVPA: "/service/application/payment/v1.0/validate-vpa",
81
88
  verifyAndChargePayment:
82
89
  "/service/application/payment/v1.0/payment/confirm/charge",
@@ -109,10 +116,47 @@ class Payment {
109
116
  /**
110
117
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
111
118
  * @param {import("../ApplicationAPIClient").Options} - Options
112
- * @returns {Promise<RefundAccountResponse>} - Success response
119
+ * @returns {Promise<AddBeneficiaryResponseDetails>} - Success response
120
+ * @name addBeneficiary
121
+ * @summary: Add a beneficiary for refunds
122
+ * @description: Adds a bank or UPI beneficiary to the user account for processing refunds. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/addBeneficiary/).
123
+ */
124
+ async addBeneficiary(
125
+ { body, requestHeaders } = { requestHeaders: {} },
126
+ { responseHeaders } = { responseHeaders: false }
127
+ ) {
128
+ const query_params = {};
129
+
130
+ const xHeaders = {};
131
+
132
+ const response = await ApplicationAPIClient.execute(
133
+ this._conf,
134
+ "post",
135
+ constructUrl({
136
+ url: this._urls["addBeneficiary"],
137
+ params: {},
138
+ }),
139
+ query_params,
140
+ body,
141
+ { ...xHeaders, ...requestHeaders },
142
+ { responseHeaders }
143
+ );
144
+
145
+ let responseData = response;
146
+ if (responseHeaders) {
147
+ responseData = response[0];
148
+ }
149
+
150
+ return response;
151
+ }
152
+
153
+ /**
154
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
155
+ * @param {import("../ApplicationAPIClient").Options} - Options
156
+ * @returns {Promise<RefundAccountDetails>} - Success response
113
157
  * @name addBeneficiaryDetails
114
158
  * @summary: Add beneficiary for refund
115
- * @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/).
159
+ * @description: Add beneficiary details specifically for refund transactions, including account holder name, account number and bank details. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/addBeneficiaryDetails/).
116
160
  */
117
161
  async addBeneficiaryDetails(
118
162
  { body, requestHeaders } = { requestHeaders: {} },
@@ -146,10 +190,10 @@ class Payment {
146
190
  /**
147
191
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
148
192
  * @param {import("../ApplicationAPIClient").Options} - Options
149
- * @returns {Promise<RefundAccountResponse>} - Success response
193
+ * @returns {Promise<RefundAccountDetails>} - Success response
150
194
  * @name addRefundBankAccountUsingOTP
151
195
  * @summary: Add refund account using OTP verification
152
- * @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/).
196
+ * @description: Add bank account specifically for refunds, employing OTP verification for security. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/addRefundBankAccountUsingOTP/).
153
197
  */
154
198
  async addRefundBankAccountUsingOTP(
155
199
  { body, requestHeaders } = { requestHeaders: {} },
@@ -183,10 +227,47 @@ class Payment {
183
227
  /**
184
228
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
185
229
  * @param {import("../ApplicationAPIClient").Options} - Options
186
- * @returns {Promise<AttachCardsResponse>} - Success response
230
+ * @returns {Promise<AddBeneficiaryResponseDetails>} - Success response
231
+ * @name addRefundBeneficiaryUsingOTPSession
232
+ * @summary: Add a beneficiary for refunds using OTP session
233
+ * @description: Adds a bank or UPI beneficiary to the user account after completing an OTP verification session. The beneficiary details are securely linked with the user's refund preferences and will be used for processing refunds against specific orders and shipments. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/addRefundBeneficiaryUsingOTPSession/).
234
+ */
235
+ async addRefundBeneficiaryUsingOTPSession(
236
+ { body, requestHeaders } = { requestHeaders: {} },
237
+ { responseHeaders } = { responseHeaders: false }
238
+ ) {
239
+ const query_params = {};
240
+
241
+ const xHeaders = {};
242
+
243
+ const response = await ApplicationAPIClient.execute(
244
+ this._conf,
245
+ "post",
246
+ constructUrl({
247
+ url: this._urls["addRefundBeneficiaryUsingOTPSession"],
248
+ params: {},
249
+ }),
250
+ query_params,
251
+ body,
252
+ { ...xHeaders, ...requestHeaders },
253
+ { responseHeaders }
254
+ );
255
+
256
+ let responseData = response;
257
+ if (responseHeaders) {
258
+ responseData = response[0];
259
+ }
260
+
261
+ return response;
262
+ }
263
+
264
+ /**
265
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
266
+ * @param {import("../ApplicationAPIClient").Options} - Options
267
+ * @returns {Promise<AttachCardsDetails>} - Success response
187
268
  * @name attachCardToCustomer
188
269
  * @summary: Link payment card to customer
189
- * @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/).
270
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/attachCardToCustomer/).
190
271
  */
191
272
  async attachCardToCustomer(
192
273
  { body, requestHeaders } = { requestHeaders: {} },
@@ -220,10 +301,10 @@ class Payment {
220
301
  /**
221
302
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
222
303
  * @param {import("../ApplicationAPIClient").Options} - Options
223
- * @returns {Promise<CancelPaymentLinkResponse>} - Success response
304
+ * @returns {Promise<CancelPaymentLinkDetails>} - Success response
224
305
  * @name cancelPaymentLink
225
306
  * @summary: Cancel payment link
226
- * @description: Cancel previously generated payment link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/cancelPaymentLink/).
307
+ * @description: Cancel previously generated payment link. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/cancelPaymentLink/).
227
308
  */
228
309
  async cancelPaymentLink(
229
310
  { body, requestHeaders } = { requestHeaders: {} },
@@ -257,10 +338,10 @@ class Payment {
257
338
  /**
258
339
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
259
340
  * @param {import("../ApplicationAPIClient").Options} - Options
260
- * @returns {Promise<CardDetailsResponse>} - Success response
341
+ * @returns {Promise<CardDetailsFetchedDetails>} - Success response
261
342
  * @name cardDetails
262
343
  * @summary: Get card details
263
- * @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/).
344
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/cardDetails/).
264
345
  */
265
346
  async cardDetails(
266
347
  { cardInfo, aggregator, requestHeaders } = { requestHeaders: {} },
@@ -304,10 +385,10 @@ class Payment {
304
385
  /**
305
386
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
306
387
  * @param {import("../ApplicationAPIClient").Options} - Options
307
- * @returns {Promise<PaymentStatusUpdateResponse>} - Success response
388
+ * @returns {Promise<PaymentStatusUpdateDetails>} - Success response
308
389
  * @name checkAndUpdatePaymentStatus
309
390
  * @summary: Update payment status
310
- * @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/).
391
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/checkAndUpdatePaymentStatus/).
311
392
  */
312
393
  async checkAndUpdatePaymentStatus(
313
394
  { body, requestHeaders } = { requestHeaders: {} },
@@ -341,10 +422,10 @@ class Payment {
341
422
  /**
342
423
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
343
424
  * @param {import("../ApplicationAPIClient").Options} - Options
344
- * @returns {Promise<PaymentStatusUpdateResponse>} - Success response
425
+ * @returns {Promise<PaymentStatusUpdateDetails>} - Success response
345
426
  * @name checkAndUpdatePaymentStatusPaymentLink
346
427
  * @summary: Update payment link status
347
- * @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/).
428
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/checkAndUpdatePaymentStatusPaymentLink/).
348
429
  */
349
430
  async checkAndUpdatePaymentStatusPaymentLink(
350
431
  { body, requestHeaders } = { requestHeaders: {} },
@@ -378,10 +459,10 @@ class Payment {
378
459
  /**
379
460
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
380
461
  * @param {import("../ApplicationAPIClient").Options} - Options
381
- * @returns {Promise<CheckCreditResponse>} - Success response
462
+ * @returns {Promise<CheckCreditDetails>} - Success response
382
463
  * @name checkCredit
383
464
  * @summary: Verify credit availability and status
384
- * @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/).
465
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/checkCredit/).
385
466
  */
386
467
  async checkCredit(
387
468
  { aggregator, requestHeaders } = { requestHeaders: {} },
@@ -416,10 +497,10 @@ class Payment {
416
497
  /**
417
498
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
418
499
  * @param {import("../ApplicationAPIClient").Options} - Options
419
- * @returns {Promise<CreateOrderUserResponse>} - Success response
500
+ * @returns {Promise<CreateOrderUserDetails>} - Success response
420
501
  * @name createOrderHandlerPaymentLink
421
502
  * @summary: Create order for payment via link
422
- * @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/).
503
+ * @description: Initiate the creation of an order handler for processing payments through a link. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/createOrderHandlerPaymentLink/).
423
504
  */
424
505
  async createOrderHandlerPaymentLink(
425
506
  { body, requestHeaders } = { requestHeaders: {} },
@@ -453,10 +534,10 @@ class Payment {
453
534
  /**
454
535
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
455
536
  * @param {import("../ApplicationAPIClient").Options} - Options
456
- * @returns {Promise<CreatePaymentLinkResponse>} - Success response
537
+ * @returns {Promise<CreatePaymentLinkDetails>} - Success response
457
538
  * @name createPaymentLink
458
539
  * @summary: Create payment link
459
- * @description: Create new payment link for transactions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/createPaymentLink/).
540
+ * @description: Create new payment link for transactions. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/createPaymentLink/).
460
541
  */
461
542
  async createPaymentLink(
462
543
  { body, requestHeaders } = { requestHeaders: {} },
@@ -490,10 +571,10 @@ class Payment {
490
571
  /**
491
572
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
492
573
  * @param {import("../ApplicationAPIClient").Options} - Options
493
- * @returns {Promise<PaymentOrderResponse>} - Success response
574
+ * @returns {Promise<PaymentOrderDetails>} - Success response
494
575
  * @name createPaymentOrder
495
576
  * @summary: Create Order
496
- * @description: Create an order and payment on the aggregator side. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/createPaymentOrder/).
577
+ * @description: Create an order and payment on the aggregator side. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/createPaymentOrder/).
497
578
  */
498
579
  async createPaymentOrder(
499
580
  { body, requestHeaders } = { requestHeaders: {} },
@@ -527,10 +608,10 @@ class Payment {
527
608
  /**
528
609
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
529
610
  * @param {import("../ApplicationAPIClient").Options} - Options
530
- * @returns {Promise<CustomerCreditSummaryResponse>} - Success response
611
+ * @returns {Promise<CustomerCreditSummaryDetails>} - Success response
531
612
  * @name customerCreditSummary
532
613
  * @summary: Credit summary
533
- * @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/).
614
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/customerCreditSummary/).
534
615
  */
535
616
  async customerCreditSummary(
536
617
  { aggregator, requestHeaders } = { requestHeaders: {} },
@@ -565,10 +646,10 @@ class Payment {
565
646
  /**
566
647
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
567
648
  * @param {import("../ApplicationAPIClient").Options} - Options
568
- * @returns {Promise<CustomerOnboardingResponse>} - Success response
649
+ * @returns {Promise<CustomerOnboardingDetails>} - Success response
569
650
  * @name customerOnboard
570
651
  * @summary: Onboard customer for payment
571
- * @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/).
652
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/customerOnboard/).
572
653
  */
573
654
  async customerOnboard(
574
655
  { body, requestHeaders } = { requestHeaders: {} },
@@ -602,10 +683,56 @@ class Payment {
602
683
  /**
603
684
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
604
685
  * @param {import("../ApplicationAPIClient").Options} - Options
605
- * @returns {Promise<DeleteCardsResponse>} - Success response
686
+ * @returns {Promise<DeleteBeneficiaryDetails>} - Success response
687
+ * @name deleteBeneficiary
688
+ * @summary: Delete a refund beneficiary
689
+ * @description: This API endpoint is used to delete a refund beneficiary using their beneficiary ID. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/deleteBeneficiary/).
690
+ */
691
+ async deleteBeneficiary(
692
+ { id, requestHeaders } = { requestHeaders: {} },
693
+ { responseHeaders } = { responseHeaders: false }
694
+ ) {
695
+ const errors = validateRequiredParams(arguments[0], ["id"]);
696
+ if (errors.length > 0) {
697
+ const error = new FDKClientValidationError({
698
+ message: "Missing required field",
699
+ details: errors,
700
+ });
701
+ return Promise.reject(new FDKClientValidationError(error));
702
+ }
703
+
704
+ const query_params = {};
705
+
706
+ const xHeaders = {};
707
+
708
+ const response = await ApplicationAPIClient.execute(
709
+ this._conf,
710
+ "delete",
711
+ constructUrl({
712
+ url: this._urls["deleteBeneficiary"],
713
+ params: { id },
714
+ }),
715
+ query_params,
716
+ undefined,
717
+ { ...xHeaders, ...requestHeaders },
718
+ { responseHeaders }
719
+ );
720
+
721
+ let responseData = response;
722
+ if (responseHeaders) {
723
+ responseData = response[0];
724
+ }
725
+
726
+ return response;
727
+ }
728
+
729
+ /**
730
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
731
+ * @param {import("../ApplicationAPIClient").Options} - Options
732
+ * @returns {Promise<DeleteCardsDetails>} - Success response
606
733
  * @name deleteUserCard
607
734
  * @summary: Delete customer card
608
- * @description: Delete payment card from the user's account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/deleteUserCard/).
735
+ * @description: Delete payment card from the user's account. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/deleteUserCard/).
609
736
  */
610
737
  async deleteUserCard(
611
738
  { body, requestHeaders } = { requestHeaders: {} },
@@ -642,7 +769,7 @@ class Payment {
642
769
  * @returns {Promise<WalletResponseSchema>} - Success response
643
770
  * @name delinkWallet
644
771
  * @summary: Delink the wallet
645
- * @description: Delink the wallet. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/delinkWallet/).
772
+ * @description: Delink the wallet. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/delinkWallet/).
646
773
  */
647
774
  async delinkWallet(
648
775
  { body, requestHeaders } = { requestHeaders: {} },
@@ -676,10 +803,10 @@ class Payment {
676
803
  /**
677
804
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
678
805
  * @param {import("../ApplicationAPIClient").Options} - Options
679
- * @returns {Promise<UpdateRefundTransferModeResponse>} - Success response
806
+ * @returns {Promise<RefundTransferModeUpdateDetails>} - Success response
680
807
  * @name enableOrDisableRefundTransferMode
681
808
  * @summary: Toggle refund mode
682
- * @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/).
809
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/enableOrDisableRefundTransferMode/).
683
810
  */
684
811
  async enableOrDisableRefundTransferMode(
685
812
  { body, requestHeaders } = { requestHeaders: {} },
@@ -713,10 +840,10 @@ class Payment {
713
840
  /**
714
841
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
715
842
  * @param {import("../ApplicationAPIClient").Options} - Options
716
- * @returns {Promise<ActiveCardPaymentGatewayResponse>} - Success response
843
+ * @returns {Promise<ActiveCardPaymentGatewayDetails>} - Success response
717
844
  * @name getActiveCardAggregator
718
845
  * @summary: Retrieve active card aggregator
719
- * @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/).
846
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/getActiveCardAggregator/).
720
847
  */
721
848
  async getActiveCardAggregator(
722
849
  { refresh, requestHeaders } = { requestHeaders: {} },
@@ -751,10 +878,10 @@ class Payment {
751
878
  /**
752
879
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
753
880
  * @param {import("../ApplicationAPIClient").Options} - Options
754
- * @returns {Promise<TransferModeResponse>} - Success response
881
+ * @returns {Promise<TransferModeFetchDetails>} - Success response
755
882
  * @name getActiveRefundTransferModes
756
883
  * @summary: Get refund transfer modes
757
- * @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/).
884
+ * @description: Lists available refund modes, such as UPI, providing details like display name, logo, and ID for each mode. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getActiveRefundTransferModes/).
758
885
  */
759
886
  async getActiveRefundTransferModes(
760
887
  { requestHeaders } = { requestHeaders: {} },
@@ -788,10 +915,10 @@ class Payment {
788
915
  /**
789
916
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
790
917
  * @param {import("../ApplicationAPIClient").Options} - Options
791
- * @returns {Promise<ListCardsResponse>} - Success response
918
+ * @returns {Promise<ListCardsDetails>} - Success response
792
919
  * @name getActiveUserCards
793
920
  * @summary: Get customer cards
794
- * @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/).
921
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/getActiveUserCards/).
795
922
  */
796
923
  async getActiveUserCards(
797
924
  { forceRefresh, requestHeaders } = { requestHeaders: {} },
@@ -826,20 +953,19 @@ class Payment {
826
953
  /**
827
954
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
828
955
  * @param {import("../ApplicationAPIClient").Options} - Options
829
- * @returns {Promise<AggregatorsConfigDetailResponse>} - Success response
956
+ * @returns {Promise<AggregatorsConfigDetail>} - Success response
830
957
  * @name getAggregatorsConfig
831
958
  * @summary: Get payment aggregators
832
- * @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/).
959
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/getAggregatorsConfig/).
833
960
  */
834
961
  async getAggregatorsConfig(
835
- { xApiToken, refresh, requestHeaders } = { requestHeaders: {} },
962
+ { refresh, requestHeaders } = { requestHeaders: {} },
836
963
  { responseHeaders } = { responseHeaders: false }
837
964
  ) {
838
965
  const query_params = {};
839
966
  query_params["refresh"] = refresh;
840
967
 
841
968
  const xHeaders = {};
842
- xHeaders["x-api-token"] = xApiToken;
843
969
 
844
970
  const response = await ApplicationAPIClient.execute(
845
971
  this._conf,
@@ -865,47 +991,10 @@ class Payment {
865
991
  /**
866
992
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
867
993
  * @param {import("../ApplicationAPIClient").Options} - Options
868
- * @returns {Promise<EpaylaterBannerResponse>} - Success response
869
- * @name getEpaylaterBannerDetails
870
- * @summary: Epaylater banner info
871
- * @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/).
872
- */
873
- async getEpaylaterBannerDetails(
874
- { requestHeaders } = { requestHeaders: {} },
875
- { responseHeaders } = { responseHeaders: false }
876
- ) {
877
- const query_params = {};
878
-
879
- const xHeaders = {};
880
-
881
- const response = await ApplicationAPIClient.execute(
882
- this._conf,
883
- "get",
884
- constructUrl({
885
- url: this._urls["getEpaylaterBannerDetails"],
886
- params: {},
887
- }),
888
- query_params,
889
- undefined,
890
- { ...xHeaders, ...requestHeaders },
891
- { responseHeaders }
892
- );
893
-
894
- let responseData = response;
895
- if (responseHeaders) {
896
- responseData = response[0];
897
- }
898
-
899
- return response;
900
- }
901
-
902
- /**
903
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
904
- * @param {import("../ApplicationAPIClient").Options} - Options
905
- * @returns {Promise<OrderBeneficiaryResponse>} - Success response
994
+ * @returns {Promise<OrderBeneficiaryFetchDetails>} - Success response
906
995
  * @name getOrderBeneficiariesDetail
907
996
  * @summary: Retrieve beneficiary details
908
- * @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/).
997
+ * @description: Get beneficiary details like bank name , ifsc code , branch name associated with a specific order for refund processing. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getOrderBeneficiariesDetail/).
909
998
  */
910
999
  async getOrderBeneficiariesDetail(
911
1000
  { orderId, requestHeaders } = { requestHeaders: {} },
@@ -940,10 +1029,10 @@ class Payment {
940
1029
  /**
941
1030
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
942
1031
  * @param {import("../ApplicationAPIClient").Options} - Options
943
- * @returns {Promise<GetPaymentLinkResponse>} - Success response
1032
+ * @returns {Promise<GetPaymentLinkDetails>} - Success response
944
1033
  * @name getPaymentLink
945
1034
  * @summary: Get payment link
946
- * @description: Get a generated payment link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getPaymentLink/).
1035
+ * @description: Get a generated payment link. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getPaymentLink/).
947
1036
  */
948
1037
  async getPaymentLink(
949
1038
  { paymentLinkId, requestHeaders } = { requestHeaders: {} },
@@ -978,10 +1067,10 @@ class Payment {
978
1067
  /**
979
1068
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
980
1069
  * @param {import("../ApplicationAPIClient").Options} - Options
981
- * @returns {Promise<PaymentModeRouteResponse>} - Success response
1070
+ * @returns {Promise<PaymentModeRouteDetails>} - Success response
982
1071
  * @name getPaymentModeRoutes
983
1072
  * @summary: Get payment modes
984
- * @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/).
1073
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/getPaymentModeRoutes/).
985
1074
  */
986
1075
  async getPaymentModeRoutes(
987
1076
  {
@@ -995,6 +1084,7 @@ class Payment {
995
1084
  displaySplit,
996
1085
  advancePayment,
997
1086
  shipmentId,
1087
+ fulfillmentOption,
998
1088
  requestHeaders,
999
1089
  } = { requestHeaders: {} },
1000
1090
  { responseHeaders } = { responseHeaders: false }
@@ -1010,6 +1100,7 @@ class Payment {
1010
1100
  query_params["display_split"] = displaySplit;
1011
1101
  query_params["advance_payment"] = advancePayment;
1012
1102
  query_params["shipment_id"] = shipmentId;
1103
+ query_params["fulfillment_option"] = fulfillmentOption;
1013
1104
 
1014
1105
  const xHeaders = {};
1015
1106
 
@@ -1037,10 +1128,10 @@ class Payment {
1037
1128
  /**
1038
1129
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1039
1130
  * @param {import("../ApplicationAPIClient").Options} - Options
1040
- * @returns {Promise<PaymentModeRouteResponse>} - Success response
1131
+ * @returns {Promise<PaymentModeRouteDetails>} - Success response
1041
1132
  * @name getPaymentModeRoutesPaymentLink
1042
1133
  * @summary: Payment modes for payment link
1043
- * @description: List payment modes available for a given payment link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getPaymentModeRoutesPaymentLink/).
1134
+ * @description: List payment modes available for a given payment link. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getPaymentModeRoutesPaymentLink/).
1044
1135
  */
1045
1136
  async getPaymentModeRoutesPaymentLink(
1046
1137
  { paymentLinkId, requestHeaders } = { requestHeaders: {} },
@@ -1075,20 +1166,21 @@ class Payment {
1075
1166
  /**
1076
1167
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1077
1168
  * @param {import("../ApplicationAPIClient").Options} - Options
1078
- * @returns {Promise<PaymentModeRouteResponse>} - Success response
1169
+ * @returns {Promise<PaymentModeRouteDetails>} - Success response
1079
1170
  * @name getPosPaymentModeRoutes
1080
1171
  * @summary: POS payment modes
1081
- * @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/).
1172
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/getPosPaymentModeRoutes/).
1082
1173
  */
1083
1174
  async getPosPaymentModeRoutes(
1084
1175
  {
1085
1176
  amount,
1177
+ cartId,
1086
1178
  pincode,
1087
1179
  orderType,
1088
- cartId,
1089
1180
  checkoutMode,
1090
1181
  refresh,
1091
1182
  cardReference,
1183
+ fulfillmentOption,
1092
1184
  userDetails,
1093
1185
  requestHeaders,
1094
1186
  } = { requestHeaders: {} },
@@ -1102,6 +1194,7 @@ class Payment {
1102
1194
  query_params["refresh"] = refresh;
1103
1195
  query_params["card_reference"] = cardReference;
1104
1196
  query_params["order_type"] = orderType;
1197
+ query_params["fulfillment_option"] = fulfillmentOption;
1105
1198
  query_params["user_details"] = userDetails;
1106
1199
 
1107
1200
  const xHeaders = {};
@@ -1130,16 +1223,18 @@ class Payment {
1130
1223
  /**
1131
1224
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1132
1225
  * @param {import("../ApplicationAPIClient").Options} - Options
1133
- * @returns {Promise<RupifiBannerResponse>} - Success response
1134
- * @name getRupifiBannerDetails
1135
- * @summary: Rupifi banner info
1136
- * @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/).
1226
+ * @returns {Promise<GetRefundBeneficiary>} - Success response
1227
+ * @name getRefundBeneficiaries
1228
+ * @summary: Get Refund Beneficiaries
1229
+ * @description: Returns a list of UPI and Bank refund beneficiaries associated with a user. Both `order_id` and `shipment_id` are optional query parameters. Use the optional filter_by enum parameter to refine the response. When the value of filter_by is order, the API returns only beneficiaries associated with the order. When the value of filter_by is shipment, it returns only beneficiaries associated with the shipment. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getRefundBeneficiaries/).
1137
1230
  */
1138
- async getRupifiBannerDetails(
1139
- { requestHeaders } = { requestHeaders: {} },
1231
+ async getRefundBeneficiaries(
1232
+ { orderId, shipmentId, requestHeaders } = { requestHeaders: {} },
1140
1233
  { responseHeaders } = { responseHeaders: false }
1141
1234
  ) {
1142
1235
  const query_params = {};
1236
+ query_params["order_id"] = orderId;
1237
+ query_params["shipment_id"] = shipmentId;
1143
1238
 
1144
1239
  const xHeaders = {};
1145
1240
 
@@ -1147,7 +1242,7 @@ class Payment {
1147
1242
  this._conf,
1148
1243
  "get",
1149
1244
  constructUrl({
1150
- url: this._urls["getRupifiBannerDetails"],
1245
+ url: this._urls["getRefundBeneficiaries"],
1151
1246
  params: {},
1152
1247
  }),
1153
1248
  query_params,
@@ -1167,17 +1262,19 @@ class Payment {
1167
1262
  /**
1168
1263
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1169
1264
  * @param {import("../ApplicationAPIClient").Options} - Options
1170
- * @returns {Promise<OrderBeneficiaryResponse>} - Success response
1171
- * @name getUserBeneficiariesDetail
1172
- * @summary: Retrieve beneficiary details
1173
- * @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/).
1265
+ * @returns {Promise<GetRefundBeneficiary>} - Success response
1266
+ * @name getRefundBeneficiariesUsingOTPSession
1267
+ * @summary: Get Refund Beneficiaries using OTP session
1268
+ * @description: Returns a list of UPI and Bank refund beneficiaries associated with a user for a given order and shipment. Use the optional filter_by enum parameter to refine the response. When the value of filter_by is order, the API returns only beneficiaries associated with the order. When the value of filter_by is shipment, it returns only beneficiaries associated with the shipment. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getRefundBeneficiariesUsingOTPSession/).
1174
1269
  */
1175
- async getUserBeneficiariesDetail(
1176
- { orderId, requestHeaders } = { requestHeaders: {} },
1270
+ async getRefundBeneficiariesUsingOTPSession(
1271
+ { orderId, shipmentId, filterBy, requestHeaders } = { requestHeaders: {} },
1177
1272
  { responseHeaders } = { responseHeaders: false }
1178
1273
  ) {
1179
1274
  const query_params = {};
1180
1275
  query_params["order_id"] = orderId;
1276
+ query_params["shipment_id"] = shipmentId;
1277
+ query_params["filter_by"] = filterBy;
1181
1278
 
1182
1279
  const xHeaders = {};
1183
1280
 
@@ -1185,7 +1282,7 @@ class Payment {
1185
1282
  this._conf,
1186
1283
  "get",
1187
1284
  constructUrl({
1188
- url: this._urls["getUserBeneficiariesDetail"],
1285
+ url: this._urls["getRefundBeneficiariesUsingOTPSession"],
1189
1286
  params: {},
1190
1287
  }),
1191
1288
  query_params,
@@ -1205,28 +1302,29 @@ class Payment {
1205
1302
  /**
1206
1303
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1207
1304
  * @param {import("../ApplicationAPIClient").Options} - Options
1208
- * @returns {Promise<PaymentInitializationResponse>} - Success response
1209
- * @name initialisePayment
1210
- * @summary: Start payment process
1211
- * @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/).
1305
+ * @returns {Promise<OrderBeneficiaryFetchDetails>} - Success response
1306
+ * @name getUserBeneficiariesDetail
1307
+ * @summary: Retrieve beneficiary details
1308
+ * @description: Get beneficiaries associated with the user for processing refunds, based on the provided order ID. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/getUserBeneficiariesDetail/).
1212
1309
  */
1213
- async initialisePayment(
1214
- { body, requestHeaders } = { requestHeaders: {} },
1310
+ async getUserBeneficiariesDetail(
1311
+ { orderId, requestHeaders } = { requestHeaders: {} },
1215
1312
  { responseHeaders } = { responseHeaders: false }
1216
1313
  ) {
1217
1314
  const query_params = {};
1315
+ query_params["order_id"] = orderId;
1218
1316
 
1219
1317
  const xHeaders = {};
1220
1318
 
1221
1319
  const response = await ApplicationAPIClient.execute(
1222
1320
  this._conf,
1223
- "post",
1321
+ "get",
1224
1322
  constructUrl({
1225
- url: this._urls["initialisePayment"],
1323
+ url: this._urls["getUserBeneficiariesDetail"],
1226
1324
  params: {},
1227
1325
  }),
1228
1326
  query_params,
1229
- body,
1327
+ undefined,
1230
1328
  { ...xHeaders, ...requestHeaders },
1231
1329
  { responseHeaders }
1232
1330
  );
@@ -1242,12 +1340,12 @@ class Payment {
1242
1340
  /**
1243
1341
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1244
1342
  * @param {import("../ApplicationAPIClient").Options} - Options
1245
- * @returns {Promise<PaymentInitializationResponse>} - Success response
1246
- * @name initialisePaymentPaymentLink
1247
- * @summary: Initialize payment link
1248
- * @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/).
1343
+ * @returns {Promise<PaymentInitializationDetails>} - Success response
1344
+ * @name initialisePayment
1345
+ * @summary: Start payment process
1346
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/initialisePayment/).
1249
1347
  */
1250
- async initialisePaymentPaymentLink(
1348
+ async initialisePayment(
1251
1349
  { body, requestHeaders } = { requestHeaders: {} },
1252
1350
  { responseHeaders } = { responseHeaders: false }
1253
1351
  ) {
@@ -1259,7 +1357,7 @@ class Payment {
1259
1357
  this._conf,
1260
1358
  "post",
1261
1359
  constructUrl({
1262
- url: this._urls["initialisePaymentPaymentLink"],
1360
+ url: this._urls["initialisePayment"],
1263
1361
  params: {},
1264
1362
  }),
1265
1363
  query_params,
@@ -1279,12 +1377,12 @@ class Payment {
1279
1377
  /**
1280
1378
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1281
1379
  * @param {import("../ApplicationAPIClient").Options} - Options
1282
- * @returns {Promise<WalletResponseSchema>} - Success response
1283
- * @name linkWallet
1284
- * @summary: OTP verification
1285
- * @description: Verify the linking of wallet using OTP for further processing of payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/linkWallet/).
1380
+ * @returns {Promise<PaymentInitializationDetails>} - Success response
1381
+ * @name initialisePaymentPaymentLink
1382
+ * @summary: Initialize payment link
1383
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/initialisePaymentPaymentLink/).
1286
1384
  */
1287
- async linkWallet(
1385
+ async initialisePaymentPaymentLink(
1288
1386
  { body, requestHeaders } = { requestHeaders: {} },
1289
1387
  { responseHeaders } = { responseHeaders: false }
1290
1388
  ) {
@@ -1296,7 +1394,7 @@ class Payment {
1296
1394
  this._conf,
1297
1395
  "post",
1298
1396
  constructUrl({
1299
- url: this._urls["linkWallet"],
1397
+ url: this._urls["initialisePaymentPaymentLink"],
1300
1398
  params: {},
1301
1399
  }),
1302
1400
  query_params,
@@ -1316,29 +1414,28 @@ class Payment {
1316
1414
  /**
1317
1415
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1318
1416
  * @param {import("../ApplicationAPIClient").Options} - Options
1319
- * @returns {Promise<OutstandingOrderDetailsResponse>} - Success response
1320
- * @name outstandingOrderDetails
1321
- * @summary: Outstanding orders
1322
- * @description: Get details of orders with outstanding payments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/outstandingOrderDetails/).
1417
+ * @returns {Promise<WalletResponseSchema>} - Success response
1418
+ * @name linkWallet
1419
+ * @summary: OTP verification
1420
+ * @description: Verify the linking of wallet using OTP for further processing of payment. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/linkWallet/).
1323
1421
  */
1324
- async outstandingOrderDetails(
1325
- { aggregator, requestHeaders } = { requestHeaders: {} },
1422
+ async linkWallet(
1423
+ { body, requestHeaders } = { requestHeaders: {} },
1326
1424
  { responseHeaders } = { responseHeaders: false }
1327
1425
  ) {
1328
1426
  const query_params = {};
1329
- query_params["aggregator"] = aggregator;
1330
1427
 
1331
1428
  const xHeaders = {};
1332
1429
 
1333
1430
  const response = await ApplicationAPIClient.execute(
1334
1431
  this._conf,
1335
- "get",
1432
+ "post",
1336
1433
  constructUrl({
1337
- url: this._urls["outstandingOrderDetails"],
1434
+ url: this._urls["linkWallet"],
1338
1435
  params: {},
1339
1436
  }),
1340
1437
  query_params,
1341
- undefined,
1438
+ body,
1342
1439
  { ...xHeaders, ...requestHeaders },
1343
1440
  { responseHeaders }
1344
1441
  );
@@ -1354,10 +1451,10 @@ class Payment {
1354
1451
  /**
1355
1452
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1356
1453
  * @param {import("../ApplicationAPIClient").Options} - Options
1357
- * @returns {Promise<PaidOrderDetailsResponse>} - Success response
1454
+ * @returns {Promise<PaidOrderDetails>} - Success response
1358
1455
  * @name paidOrderDetails
1359
1456
  * @summary: Retrieve details of paid orders
1360
- * @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/).
1457
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/paidOrderDetails/).
1361
1458
  */
1362
1459
  async paidOrderDetails(
1363
1460
  { aggregator, requestHeaders } = { requestHeaders: {} },
@@ -1392,10 +1489,10 @@ class Payment {
1392
1489
  /**
1393
1490
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1394
1491
  * @param {import("../ApplicationAPIClient").Options} - Options
1395
- * @returns {Promise<PollingPaymentLinkResponse>} - Success response
1492
+ * @returns {Promise<PollingPaymentLinkDetails>} - Success response
1396
1493
  * @name pollingPaymentLink
1397
1494
  * @summary: Poll status of payment link
1398
- * @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/).
1495
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/pollingPaymentLink/).
1399
1496
  */
1400
1497
  async pollingPaymentLink(
1401
1498
  { paymentLinkId, requestHeaders } = { requestHeaders: {} },
@@ -1430,13 +1527,13 @@ class Payment {
1430
1527
  /**
1431
1528
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1432
1529
  * @param {import("../ApplicationAPIClient").Options} - Options
1433
- * @returns {Promise<RedirectToAggregatorResponse>} - Success response
1530
+ * @returns {Promise<RedirectToAggregatorDetails>} - Success response
1434
1531
  * @name redirectToAggregator
1435
1532
  * @summary: Redirects users to the payment aggregator's interface
1436
- * @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/).
1533
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/redirectToAggregator/).
1437
1534
  */
1438
1535
  async redirectToAggregator(
1439
- { source, aggregator, requestHeaders } = { requestHeaders: {} },
1536
+ { aggregator, source, requestHeaders } = { requestHeaders: {} },
1440
1537
  { responseHeaders } = { responseHeaders: false }
1441
1538
  ) {
1442
1539
  const query_params = {};
@@ -1469,10 +1566,10 @@ class Payment {
1469
1566
  /**
1470
1567
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1471
1568
  * @param {import("../ApplicationAPIClient").Options} - Options
1472
- * @returns {Promise<renderHTMLResponse>} - Success response
1569
+ * @returns {Promise<RenderHTMLDetails>} - Success response
1473
1570
  * @name renderHTML
1474
1571
  * @summary: Render HTML
1475
- * @description: Render HTML for a payment aggregator page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/renderHTML/).
1572
+ * @description: Render HTML for a payment aggregator page. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/renderHTML/).
1476
1573
  */
1477
1574
  async renderHTML(
1478
1575
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1506,10 +1603,10 @@ class Payment {
1506
1603
  /**
1507
1604
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1508
1605
  * @param {import("../ApplicationAPIClient").Options} - Options
1509
- * @returns {Promise<ResendOrCancelPaymentResponse>} - Success response
1606
+ * @returns {Promise<ResendOrCancelPaymentDetails>} - Success response
1510
1607
  * @name resendOrCancelPayment
1511
1608
  * @summary: Resend or cancel a pending payment transaction
1512
- * @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/).
1609
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/resendOrCancelPayment/).
1513
1610
  */
1514
1611
  async resendOrCancelPayment(
1515
1612
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1543,10 +1640,10 @@ class Payment {
1543
1640
  /**
1544
1641
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1545
1642
  * @param {import("../ApplicationAPIClient").Options} - Options
1546
- * @returns {Promise<ResendPaymentLinkResponse>} - Success response
1643
+ * @returns {Promise<ResendPaymentLinkDetails>} - Success response
1547
1644
  * @name resendPaymentLink
1548
1645
  * @summary: Resend payment link
1549
- * @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/).
1646
+ * @description: Resend an existing payment link to the user to complete the payment. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/resendPaymentLink/).
1550
1647
  */
1551
1648
  async resendPaymentLink(
1552
1649
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1580,10 +1677,10 @@ class Payment {
1580
1677
  /**
1581
1678
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1582
1679
  * @param {import("../ApplicationAPIClient").Options} - Options
1583
- * @returns {Promise<SetDefaultBeneficiaryResponse>} - Success response
1680
+ * @returns {Promise<SetDefaultBeneficiaryDetails>} - Success response
1584
1681
  * @name updateDefaultBeneficiary
1585
1682
  * @summary: Set default beneficiary for refund
1586
- * @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/).
1683
+ * @description: Update default beneficiary for the order refund of the user. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/updateDefaultBeneficiary/).
1587
1684
  */
1588
1685
  async updateDefaultBeneficiary(
1589
1686
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1617,10 +1714,47 @@ class Payment {
1617
1714
  /**
1618
1715
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1619
1716
  * @param {import("../ApplicationAPIClient").Options} - Options
1620
- * @returns {Promise<ValidateVPAResponse>} - Success response
1717
+ * @returns {Promise<ValidateCustomerCreditSchema>} - Success response
1718
+ * @name validateCustomerAndCreditSummary
1719
+ * @summary: Verify payment customer and show credit summary
1720
+ * @description: Verify if the user is eligible for payment and also show credit summary if activated. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/validateCustomerAndCreditSummary/).
1721
+ */
1722
+ async validateCustomerAndCreditSummary(
1723
+ { body, requestHeaders } = { requestHeaders: {} },
1724
+ { responseHeaders } = { responseHeaders: false }
1725
+ ) {
1726
+ const query_params = {};
1727
+
1728
+ const xHeaders = {};
1729
+
1730
+ const response = await ApplicationAPIClient.execute(
1731
+ this._conf,
1732
+ "post",
1733
+ constructUrl({
1734
+ url: this._urls["validateCustomerAndCreditSummary"],
1735
+ params: {},
1736
+ }),
1737
+ query_params,
1738
+ body,
1739
+ { ...xHeaders, ...requestHeaders },
1740
+ { responseHeaders }
1741
+ );
1742
+
1743
+ let responseData = response;
1744
+ if (responseHeaders) {
1745
+ responseData = response[0];
1746
+ }
1747
+
1748
+ return response;
1749
+ }
1750
+
1751
+ /**
1752
+ * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1753
+ * @param {import("../ApplicationAPIClient").Options} - Options
1754
+ * @returns {Promise<ValidateVPADetails>} - Success response
1621
1755
  * @name validateVPA
1622
1756
  * @summary: Validate VPA
1623
- * @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/).
1757
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/validateVPA/).
1624
1758
  */
1625
1759
  async validateVPA(
1626
1760
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1654,10 +1788,10 @@ class Payment {
1654
1788
  /**
1655
1789
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1656
1790
  * @param {import("../ApplicationAPIClient").Options} - Options
1657
- * @returns {Promise<ChargeCustomerResponse>} - Success response
1791
+ * @returns {Promise<ChargeCustomerDetails>} - Success response
1658
1792
  * @name verifyAndChargePayment
1659
1793
  * @summary: Verify order confirmation and charge
1660
- * @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/).
1794
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/verifyAndChargePayment/).
1661
1795
  */
1662
1796
  async verifyAndChargePayment(
1663
1797
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1691,10 +1825,10 @@ class Payment {
1691
1825
  /**
1692
1826
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1693
1827
  * @param {import("../ApplicationAPIClient").Options} - Options
1694
- * @returns {Promise<ValidateCustomerResponse>} - Success response
1828
+ * @returns {Promise<ValidateCustomerDetails>} - Success response
1695
1829
  * @name verifyCustomerForPayment
1696
1830
  * @summary: Verify payment customer
1697
- * @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/).
1831
+ * @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://docs.fynd.com/partners/commerce/sdk/application/payment/verifyCustomerForPayment/).
1698
1832
  */
1699
1833
  async verifyCustomerForPayment(
1700
1834
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1728,10 +1862,10 @@ class Payment {
1728
1862
  /**
1729
1863
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1730
1864
  * @param {import("../ApplicationAPIClient").Options} - Options
1731
- * @returns {Promise<IfscCodeResponse>} - Success response
1865
+ * @returns {Promise<IfscCodeDetails>} - Success response
1732
1866
  * @name verifyIfscCode
1733
1867
  * @summary: Verify IFSC
1734
- * @description: Validate IFSC code and returns bank details if valid. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/verifyIfscCode/).
1868
+ * @description: Validate IFSC code and returns bank details if valid. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/verifyIfscCode/).
1735
1869
  */
1736
1870
  async verifyIfscCode(
1737
1871
  { ifscCode, requestHeaders } = { requestHeaders: {} },
@@ -1766,10 +1900,10 @@ class Payment {
1766
1900
  /**
1767
1901
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1768
1902
  * @param {import("../ApplicationAPIClient").Options} - Options
1769
- * @returns {Promise<AddBeneficiaryViaOtpVerificationResponse>} - Success response
1903
+ * @returns {Promise<AddBeneficiaryViaOtpVerificationDetails>} - Success response
1770
1904
  * @name verifyOtpAndAddBeneficiaryForBank
1771
1905
  * @summary: Verify OTP for bank and add beneficiary
1772
- * @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/).
1906
+ * @description: Verify the OTP provided by the user and adds a bank beneficiary for refund processing. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/verifyOtpAndAddBeneficiaryForBank/).
1773
1907
  */
1774
1908
  async verifyOtpAndAddBeneficiaryForBank(
1775
1909
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1803,10 +1937,10 @@ class Payment {
1803
1937
  /**
1804
1938
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1805
1939
  * @param {import("../ApplicationAPIClient").Options} - Options
1806
- * @returns {Promise<WalletOtpResponse>} - Success response
1940
+ * @returns {Promise<WalletOtpDetails>} - Success response
1807
1941
  * @name verifyOtpAndAddBeneficiaryForWallet
1808
1942
  * @summary: Verify OTP for wallet
1809
- * @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/).
1943
+ * @description: Verify OTP provided by the user and adds a wallet beneficiary. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/verifyOtpAndAddBeneficiaryForWallet/).
1810
1944
  */
1811
1945
  async verifyOtpAndAddBeneficiaryForWallet(
1812
1946
  { body, requestHeaders } = { requestHeaders: {} },
@@ -1843,7 +1977,7 @@ class Payment {
1843
1977
  * @returns {Promise<WalletResponseSchema>} - Success response
1844
1978
  * @name walletLinkInitiate
1845
1979
  * @summary: Initiate linking of wallet
1846
- * @description: Link wallet for the aggregator for processing of payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/walletLinkInitiate/).
1980
+ * @description: Link wallet for the aggregator for processing of payment. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/application/payment/walletLinkInitiate/).
1847
1981
  */
1848
1982
  async walletLinkInitiate(
1849
1983
  { body, requestHeaders } = { requestHeaders: {} },