@gofynd/fdk-client-javascript 1.4.15-beta.13 → 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 +9571 -2674
  100. package/sdk/platform/Catalog/CatalogPlatformModel.js +5081 -2019
  101. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +364 -117
  102. package/sdk/platform/Catalog/CatalogPlatformValidator.js +281 -104
  103. package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -4
  104. package/sdk/platform/Common/CommonPlatformClient.js +6 -5
  105. package/sdk/platform/Common/CommonPlatformModel.d.ts +36 -25
  106. package/sdk/platform/Common/CommonPlatformModel.js +25 -14
  107. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -153
  108. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +102 -541
  109. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +36 -49
  110. package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +20 -60
  111. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +1 -1
  112. package/sdk/platform/Communication/CommunicationPlatformClient.js +1 -1
  113. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +189 -43
  114. package/sdk/platform/Communication/CommunicationPlatformModel.js +165 -42
  115. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +58 -81
  116. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +68 -116
  117. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +291 -249
  118. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +243 -234
  119. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
  120. package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
  121. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +78 -65
  122. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +101 -88
  123. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +20 -20
  124. package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +19 -19
  125. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +68 -34
  126. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +174 -41
  127. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +667 -244
  128. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +474 -155
  129. package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +37 -9
  130. package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +27 -8
  131. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +366 -280
  132. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1435 -753
  133. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +323 -223
  134. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +335 -205
  135. package/sdk/platform/Content/ContentPlatformClient.d.ts +304 -106
  136. package/sdk/platform/Content/ContentPlatformClient.js +1842 -450
  137. package/sdk/platform/Content/ContentPlatformModel.d.ts +2582 -566
  138. package/sdk/platform/Content/ContentPlatformModel.js +1426 -558
  139. package/sdk/platform/Content/ContentPlatformValidator.d.ts +293 -114
  140. package/sdk/platform/Content/ContentPlatformValidator.js +328 -101
  141. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +59 -23
  142. package/sdk/platform/Discount/DiscountPlatformClient.js +84 -23
  143. package/sdk/platform/Discount/DiscountPlatformModel.d.ts +403 -110
  144. package/sdk/platform/Discount/DiscountPlatformModel.js +121 -107
  145. package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
  146. package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
  147. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +12 -110
  148. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +14 -684
  149. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -94
  150. package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -115
  151. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +20 -20
  152. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +22 -22
  153. package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +90 -920
  154. package/sdk/platform/FileStorage/FileStoragePlatformModel.js +53 -949
  155. package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
  156. package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
  157. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +10 -10
  158. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +10 -10
  159. package/sdk/platform/Lead/LeadPlatformClient.d.ts +11 -11
  160. package/sdk/platform/Lead/LeadPlatformClient.js +11 -11
  161. package/sdk/platform/Lead/LeadPlatformModel.d.ts +14 -9
  162. package/sdk/platform/Lead/LeadPlatformModel.js +20 -18
  163. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +56 -9
  164. package/sdk/platform/Order/OrderPlatformApplicationClient.js +340 -10
  165. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +128 -24
  166. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +81 -19
  167. package/sdk/platform/Order/OrderPlatformClient.d.ts +517 -160
  168. package/sdk/platform/Order/OrderPlatformClient.js +1623 -384
  169. package/sdk/platform/Order/OrderPlatformModel.d.ts +10372 -1587
  170. package/sdk/platform/Order/OrderPlatformModel.js +5726 -1512
  171. package/sdk/platform/Order/OrderPlatformValidator.d.ts +539 -123
  172. package/sdk/platform/Order/OrderPlatformValidator.js +323 -92
  173. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +8 -6
  174. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +11 -9
  175. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +6 -4
  176. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +3 -2
  177. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +77 -25
  178. package/sdk/platform/Partner/PartnerPlatformModel.js +32 -21
  179. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +144 -219
  180. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +307 -796
  181. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +86 -121
  182. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +80 -138
  183. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +30 -30
  184. package/sdk/platform/Payment/PaymentPlatformClient.js +30 -30
  185. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +901 -761
  186. package/sdk/platform/Payment/PaymentPlatformModel.js +663 -583
  187. package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
  188. package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
  189. package/sdk/platform/PlatformApplicationClient.d.ts +0 -2
  190. package/sdk/platform/PlatformApplicationClient.js +0 -4
  191. package/sdk/platform/PlatformClient.d.ts +5 -4
  192. package/sdk/platform/PlatformClient.js +32 -22
  193. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +526 -69
  194. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +3337 -337
  195. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +603 -38
  196. package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +529 -32
  197. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +184 -133
  198. package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +780 -491
  199. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +9408 -1666
  200. package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +5720 -1765
  201. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +257 -180
  202. package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +185 -127
  203. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +7 -7
  204. package/sdk/platform/Share/SharePlatformApplicationClient.js +7 -7
  205. package/sdk/platform/Share/SharePlatformModel.d.ts +45 -9
  206. package/sdk/platform/Share/SharePlatformModel.js +31 -6
  207. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -26
  208. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +38 -29
  209. package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -3
  210. package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +10 -2
  211. package/sdk/platform/Theme/ThemePlatformClient.d.ts +4 -4
  212. package/sdk/platform/Theme/ThemePlatformClient.js +4 -4
  213. package/sdk/platform/Theme/ThemePlatformModel.d.ts +103 -17
  214. package/sdk/platform/Theme/ThemePlatformModel.js +92 -23
  215. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +167 -45
  216. package/sdk/platform/User/UserPlatformApplicationClient.js +950 -67
  217. package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +189 -3
  218. package/sdk/platform/User/UserPlatformApplicationValidator.js +157 -3
  219. package/sdk/platform/User/UserPlatformModel.d.ts +880 -47
  220. package/sdk/platform/User/UserPlatformModel.js +607 -46
  221. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +33 -86
  222. package/sdk/platform/Webhook/WebhookPlatformClient.js +79 -474
  223. package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +861 -422
  224. package/sdk/platform/Webhook/WebhookPlatformModel.js +469 -391
  225. package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
  226. package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
  227. package/sdk/platform/index.d.ts +0 -2
  228. package/sdk/platform/index.js +0 -4
  229. package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
  230. package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
  231. package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
  232. package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
  233. package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
  234. package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
  235. package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -4
  236. package/sdk/public/Configuration/ConfigurationPublicClient.js +9 -8
  237. package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +41 -21
  238. package/sdk/public/Configuration/ConfigurationPublicModel.js +28 -12
  239. package/sdk/public/Content/ContentPublicClient.d.ts +145 -2
  240. package/sdk/public/Content/ContentPublicClient.js +1067 -17
  241. package/sdk/public/Content/ContentPublicModel.d.ts +704 -3
  242. package/sdk/public/Content/ContentPublicModel.js +751 -3
  243. package/sdk/public/Content/ContentPublicValidator.d.ts +94 -3
  244. package/sdk/public/Content/ContentPublicValidator.js +119 -2
  245. package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
  246. package/sdk/public/Partner/PartnerPublicClient.js +1 -1
  247. package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
  248. package/sdk/public/Partner/PartnerPublicModel.js +81 -71
  249. package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
  250. package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
  251. package/sdk/public/PublicClient.d.ts +5 -2
  252. package/sdk/public/PublicClient.js +16 -6
  253. package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -13
  254. package/sdk/public/Webhook/WebhookPublicClient.js +13 -13
  255. package/sdk/public/Webhook/WebhookPublicModel.d.ts +249 -67
  256. package/sdk/public/Webhook/WebhookPublicModel.js +81 -61
  257. package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
  258. package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
  259. package/sdk/public/index.d.ts +1 -0
  260. package/sdk/public/index.js +2 -0
  261. package/utility.d.ts +3 -0
  262. package/utility.js +7 -0
  263. package/sdk/application/Rewards/RewardsApplicationClient.d.ts +0 -79
  264. package/sdk/application/Rewards/RewardsApplicationClient.js +0 -315
  265. package/sdk/application/Webhook/WebhookApplicationClient.d.ts +0 -19
  266. package/sdk/application/Webhook/WebhookApplicationClient.js +0 -72
  267. package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
  268. package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
  269. package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2890
  270. package/sdk/platform/Finance/FinancePlatformModel.js +0 -2148
  271. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
  272. package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
  273. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +0 -136
  274. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +0 -976
  275. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +0 -152
  276. package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +0 -157
  277. package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +0 -382
  278. package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -408
@@ -15,97 +15,16 @@ class Payment {
15
15
  this.applicationId = applicationId;
16
16
  }
17
17
 
18
- /**
19
- * @param {PaymentPlatformApplicationValidator.AddEdcDeviceParam} arg - Arg object
20
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
21
- * @param {import("../PlatformAPIClient").Options} - Options
22
- * @returns {Promise<PaymentPlatformModel.EdcDeviceUpdateResponse>} - Success response
23
- * @name addEdcDevice
24
- * @summary: Create an EDC device
25
- * @description: Registration and addition of a new EDC device to the system - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/addEdcDevice/).
26
- */
27
- async addEdcDevice(
28
- { terminalUniqueIdentifier, body, requestHeaders } = { requestHeaders: {} },
29
- { responseHeaders } = { responseHeaders: false }
30
- ) {
31
- const {
32
- error,
33
- } = PaymentPlatformApplicationValidator.addEdcDevice().validate(
34
- {
35
- terminalUniqueIdentifier,
36
- body,
37
- },
38
- { abortEarly: false, allowUnknown: true }
39
- );
40
- if (error) {
41
- return Promise.reject(new FDKClientValidationError(error));
42
- }
43
-
44
- // Showing warrnings if extra unknown parameters are found
45
- const {
46
- error: warrning,
47
- } = PaymentPlatformApplicationValidator.addEdcDevice().validate(
48
- {
49
- terminalUniqueIdentifier,
50
- body,
51
- },
52
- { abortEarly: false, allowUnknown: false }
53
- );
54
- if (warrning) {
55
- Logger({
56
- level: "WARN",
57
- message: `Parameter Validation warrnings for platform > Payment > addEdcDevice \n ${warrning}`,
58
- });
59
- }
60
-
61
- const query_params = {};
62
-
63
- const response = await PlatformAPIClient.execute(
64
- this.config,
65
- "put",
66
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/edc-device/${terminalUniqueIdentifier}`,
67
- query_params,
68
- body,
69
- requestHeaders,
70
- { responseHeaders }
71
- );
72
-
73
- let responseData = response;
74
- if (responseHeaders) {
75
- responseData = response[0];
76
- }
77
-
78
- const {
79
- error: res_error,
80
- } = PaymentPlatformModel.EdcDeviceUpdateResponse().validate(responseData, {
81
- abortEarly: false,
82
- allowUnknown: true,
83
- });
84
-
85
- if (res_error) {
86
- if (this.config.options.strictResponseCheck === true) {
87
- return Promise.reject(new FDKResponseValidationError(res_error));
88
- } else {
89
- Logger({
90
- level: "WARN",
91
- message: `Response Validation Warnings for platform > Payment > addEdcDevice \n ${res_error}`,
92
- });
93
- }
94
- }
95
-
96
- return response;
97
- }
98
-
99
18
  /**
100
19
  * @param {PaymentPlatformApplicationValidator.AddRefundBankAccountUsingOTPParam} arg
101
20
  * - Arg object
102
21
  *
103
22
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
104
23
  * @param {import("../PlatformAPIClient").Options} - Options
105
- * @returns {Promise<PaymentPlatformModel.RefundAccountResponse>} - Success response
24
+ * @returns {Promise<PaymentPlatformModel.RefundAccountDetails>} - Success response
106
25
  * @name addRefundBankAccountUsingOTP
107
26
  * @summary: Create refund account
108
- * @description: The addition of a bank account specifically for refunds, employing OTP verification for security - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/addRefundBankAccountUsingOTP/).
27
+ * @description: The addition of a bank account specifically for refunds, employing OTP verification for security - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/addRefundBankAccountUsingOTP/).
109
28
  */
110
29
  async addRefundBankAccountUsingOTP(
111
30
  { body, requestHeaders } = { requestHeaders: {} },
@@ -158,7 +77,7 @@ class Payment {
158
77
 
159
78
  const {
160
79
  error: res_error,
161
- } = PaymentPlatformModel.RefundAccountResponse().validate(responseData, {
80
+ } = PaymentPlatformModel.RefundAccountDetails().validate(responseData, {
162
81
  abortEarly: false,
163
82
  allowUnknown: true,
164
83
  });
@@ -183,11 +102,11 @@ class Payment {
183
102
  *
184
103
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
185
104
  * @param {import("../PlatformAPIClient").Options} - Options
186
- * @returns {Promise<PaymentPlatformModel.CancelPaymentLinkResponse>} -
105
+ * @returns {Promise<PaymentPlatformModel.CancelPaymentLinkDetails>} -
187
106
  * Success response
188
107
  * @name cancelPaymentLink
189
108
  * @summary: Cancel payment link
190
- * @description: Deactivate and cancel a payment link. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/cancelPaymentLink/).
109
+ * @description: Deactivate and cancel a payment link. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/cancelPaymentLink/).
191
110
  */
192
111
  async cancelPaymentLink(
193
112
  { body, requestHeaders } = { requestHeaders: {} },
@@ -240,10 +159,10 @@ class Payment {
240
159
 
241
160
  const {
242
161
  error: res_error,
243
- } = PaymentPlatformModel.CancelPaymentLinkResponse().validate(
244
- responseData,
245
- { abortEarly: false, allowUnknown: true }
246
- );
162
+ } = PaymentPlatformModel.CancelPaymentLinkDetails().validate(responseData, {
163
+ abortEarly: false,
164
+ allowUnknown: true,
165
+ });
247
166
 
248
167
  if (res_error) {
249
168
  if (this.config.options.strictResponseCheck === true) {
@@ -265,11 +184,11 @@ class Payment {
265
184
  *
266
185
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
267
186
  * @param {import("../PlatformAPIClient").Options} - Options
268
- * @returns {Promise<PaymentPlatformModel.PaymentStatusUpdateResponse>} -
187
+ * @returns {Promise<PaymentPlatformModel.PaymentStatusUpdateDetails>} -
269
188
  * Success response
270
189
  * @name checkAndUpdatePaymentStatus
271
190
  * @summary: Poll and update payment status
272
- * @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/platform/payment/checkAndUpdatePaymentStatus/).
191
+ * @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/platform/payment/checkAndUpdatePaymentStatus/).
273
192
  */
274
193
  async checkAndUpdatePaymentStatus(
275
194
  { body, requestHeaders } = { requestHeaders: {} },
@@ -322,7 +241,7 @@ class Payment {
322
241
 
323
242
  const {
324
243
  error: res_error,
325
- } = PaymentPlatformModel.PaymentStatusUpdateResponse().validate(
244
+ } = PaymentPlatformModel.PaymentStatusUpdateDetails().validate(
326
245
  responseData,
327
246
  { abortEarly: false, allowUnknown: true }
328
247
  );
@@ -345,11 +264,11 @@ class Payment {
345
264
  * @param {PaymentPlatformApplicationValidator.ConfirmPaymentParam} arg - Arg object
346
265
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
347
266
  * @param {import("../PlatformAPIClient").Options} - Options
348
- * @returns {Promise<PaymentPlatformModel.PaymentConfirmationResponse>} -
267
+ * @returns {Promise<PaymentPlatformModel.PaymentConfirmationDetails>} -
349
268
  * Success response
350
269
  * @name confirmPayment
351
270
  * @summary: Payment confirmation
352
- * @description: Authentication and confirmation of a payment.It requires details such as the order ID and payment methods in the request body to authenticate and confirm the payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/confirmPayment/).
271
+ * @description: Authentication and confirmation of a payment.It requires details such as the order ID and payment methods in the request body to authenticate and confirm the payment. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/confirmPayment/).
353
272
  */
354
273
  async confirmPayment(
355
274
  { body, requestHeaders } = { requestHeaders: {} },
@@ -402,7 +321,7 @@ class Payment {
402
321
 
403
322
  const {
404
323
  error: res_error,
405
- } = PaymentPlatformModel.PaymentConfirmationResponse().validate(
324
+ } = PaymentPlatformModel.PaymentConfirmationDetails().validate(
406
325
  responseData,
407
326
  { abortEarly: false, allowUnknown: true }
408
327
  );
@@ -427,12 +346,10 @@ class Payment {
427
346
  *
428
347
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
429
348
  * @param {import("../PlatformAPIClient").Options} - Options
430
- * @returns {Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>}
431
- * - Success response
432
- *
349
+ * @returns {Promise<PaymentPlatformModel.RefundPriorityDetails>} - Success response
433
350
  * @name createMerchantRefundPriority
434
351
  * @summary: Create merchant refund priority
435
- * @description: Create merchant refund priority configurations, with the provided refund sources priority details, and return the status of the operation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/createMerchantRefundPriority/).
352
+ * @description: Create merchant refund priority configurations, with the provided refund sources priority details, and return the status of the operation. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/createMerchantRefundPriority/).
436
353
  */
437
354
  async createMerchantRefundPriority(
438
355
  { configType, body, requestHeaders } = { requestHeaders: {} },
@@ -487,10 +404,10 @@ class Payment {
487
404
 
488
405
  const {
489
406
  error: res_error,
490
- } = PaymentPlatformModel.RefundPriorityResponseSerializer().validate(
491
- responseData,
492
- { abortEarly: false, allowUnknown: true }
493
- );
407
+ } = PaymentPlatformModel.RefundPriorityDetails().validate(responseData, {
408
+ abortEarly: false,
409
+ allowUnknown: true,
410
+ });
494
411
 
495
412
  if (res_error) {
496
413
  if (this.config.options.strictResponseCheck === true) {
@@ -512,11 +429,11 @@ class Payment {
512
429
  *
513
430
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
514
431
  * @param {import("../PlatformAPIClient").Options} - Options
515
- * @returns {Promise<PaymentPlatformModel.CreatePaymentLinkResponse>} -
432
+ * @returns {Promise<PaymentPlatformModel.CreatePaymentLinkDetails>} -
516
433
  * Success response
517
434
  * @name createPaymentLink
518
435
  * @summary: Create payment link
519
- * @description: Generate a payment link for accepting payments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/createPaymentLink/).
436
+ * @description: Generate a payment link for accepting payments. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/createPaymentLink/).
520
437
  */
521
438
  async createPaymentLink(
522
439
  { body, requestHeaders } = { requestHeaders: {} },
@@ -569,10 +486,10 @@ class Payment {
569
486
 
570
487
  const {
571
488
  error: res_error,
572
- } = PaymentPlatformModel.CreatePaymentLinkResponse().validate(
573
- responseData,
574
- { abortEarly: false, allowUnknown: true }
575
- );
489
+ } = PaymentPlatformModel.CreatePaymentLinkDetails().validate(responseData, {
490
+ abortEarly: false,
491
+ allowUnknown: true,
492
+ });
576
493
 
577
494
  if (res_error) {
578
495
  if (this.config.options.strictResponseCheck === true) {
@@ -594,10 +511,10 @@ class Payment {
594
511
  *
595
512
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
596
513
  * @param {import("../PlatformAPIClient").Options} - Options
597
- * @returns {Promise<PaymentPlatformModel.PaymentOrderResponse>} - Success response
514
+ * @returns {Promise<PaymentPlatformModel.PaymentOrderDetails>} - Success response
598
515
  * @name createPaymentOrder
599
516
  * @summary: Create Order
600
- * @description: Create an order and payment on the aggregator side - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/createPaymentOrder/).
517
+ * @description: Create an order and payment on the aggregator side - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/createPaymentOrder/).
601
518
  */
602
519
  async createPaymentOrder(
603
520
  { body, requestHeaders } = { requestHeaders: {} },
@@ -650,7 +567,7 @@ class Payment {
650
567
 
651
568
  const {
652
569
  error: res_error,
653
- } = PaymentPlatformModel.PaymentOrderResponse().validate(responseData, {
570
+ } = PaymentPlatformModel.PaymentOrderDetails().validate(responseData, {
654
571
  abortEarly: false,
655
572
  allowUnknown: true,
656
573
  });
@@ -669,264 +586,16 @@ class Payment {
669
586
  return response;
670
587
  }
671
588
 
672
- /**
673
- * @param {PaymentPlatformApplicationValidator.EdcAggregatorsAndModelListParam} arg
674
- * - Arg object
675
- *
676
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
677
- * @param {import("../PlatformAPIClient").Options} - Options
678
- * @returns {Promise<PaymentPlatformModel.EdcAggregatorAndModelListResponse>}
679
- * - Success response
680
- *
681
- * @name edcAggregatorsAndModelList
682
- * @summary: EDC aggregators and model list
683
- * @description: Retrieve a list of EDC (Electronic Data Capture) aggregators and models. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/edcAggregatorsAndModelList/).
684
- */
685
- async edcAggregatorsAndModelList(
686
- { requestHeaders } = { requestHeaders: {} },
687
- { responseHeaders } = { responseHeaders: false }
688
- ) {
689
- const {
690
- error,
691
- } = PaymentPlatformApplicationValidator.edcAggregatorsAndModelList().validate(
692
- {},
693
- { abortEarly: false, allowUnknown: true }
694
- );
695
- if (error) {
696
- return Promise.reject(new FDKClientValidationError(error));
697
- }
698
-
699
- // Showing warrnings if extra unknown parameters are found
700
- const {
701
- error: warrning,
702
- } = PaymentPlatformApplicationValidator.edcAggregatorsAndModelList().validate(
703
- {},
704
- { abortEarly: false, allowUnknown: false }
705
- );
706
- if (warrning) {
707
- Logger({
708
- level: "WARN",
709
- message: `Parameter Validation warrnings for platform > Payment > edcAggregatorsAndModelList \n ${warrning}`,
710
- });
711
- }
712
-
713
- const query_params = {};
714
-
715
- const response = await PlatformAPIClient.execute(
716
- this.config,
717
- "get",
718
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/edc-aggregator-list`,
719
- query_params,
720
- undefined,
721
- requestHeaders,
722
- { responseHeaders }
723
- );
724
-
725
- let responseData = response;
726
- if (responseHeaders) {
727
- responseData = response[0];
728
- }
729
-
730
- const {
731
- error: res_error,
732
- } = PaymentPlatformModel.EdcAggregatorAndModelListResponse().validate(
733
- responseData,
734
- { abortEarly: false, allowUnknown: true }
735
- );
736
-
737
- if (res_error) {
738
- if (this.config.options.strictResponseCheck === true) {
739
- return Promise.reject(new FDKResponseValidationError(res_error));
740
- } else {
741
- Logger({
742
- level: "WARN",
743
- message: `Response Validation Warnings for platform > Payment > edcAggregatorsAndModelList \n ${res_error}`,
744
- });
745
- }
746
- }
747
-
748
- return response;
749
- }
750
-
751
- /**
752
- * @param {PaymentPlatformApplicationValidator.EdcDeviceListParam} arg - Arg object
753
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
754
- * @param {import("../PlatformAPIClient").Options} - Options
755
- * @returns {Promise<PaymentPlatformModel.EdcDeviceListResponse>} - Success response
756
- * @name edcDeviceList
757
- * @summary: List EDC devices
758
- * @description: Retrieves a list of available Electronic Data Capture (EDC) devices. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/edcDeviceList/).
759
- */
760
- async edcDeviceList(
761
- { pageNo, pageSize, isActive, storeId, deviceTag, requestHeaders } = {
762
- requestHeaders: {},
763
- },
764
- { responseHeaders } = { responseHeaders: false }
765
- ) {
766
- const {
767
- error,
768
- } = PaymentPlatformApplicationValidator.edcDeviceList().validate(
769
- {
770
- pageNo,
771
- pageSize,
772
- isActive,
773
- storeId,
774
- deviceTag,
775
- },
776
- { abortEarly: false, allowUnknown: true }
777
- );
778
- if (error) {
779
- return Promise.reject(new FDKClientValidationError(error));
780
- }
781
-
782
- // Showing warrnings if extra unknown parameters are found
783
- const {
784
- error: warrning,
785
- } = PaymentPlatformApplicationValidator.edcDeviceList().validate(
786
- {
787
- pageNo,
788
- pageSize,
789
- isActive,
790
- storeId,
791
- deviceTag,
792
- },
793
- { abortEarly: false, allowUnknown: false }
794
- );
795
- if (warrning) {
796
- Logger({
797
- level: "WARN",
798
- message: `Parameter Validation warrnings for platform > Payment > edcDeviceList \n ${warrning}`,
799
- });
800
- }
801
-
802
- const query_params = {};
803
- query_params["page_no"] = pageNo;
804
- query_params["page_size"] = pageSize;
805
- query_params["is_active"] = isActive;
806
- query_params["store_id"] = storeId;
807
- query_params["device_tag"] = deviceTag;
808
-
809
- const response = await PlatformAPIClient.execute(
810
- this.config,
811
- "get",
812
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/edc-device-list`,
813
- query_params,
814
- undefined,
815
- requestHeaders,
816
- { responseHeaders }
817
- );
818
-
819
- let responseData = response;
820
- if (responseHeaders) {
821
- responseData = response[0];
822
- }
823
-
824
- const {
825
- error: res_error,
826
- } = PaymentPlatformModel.EdcDeviceListResponse().validate(responseData, {
827
- abortEarly: false,
828
- allowUnknown: true,
829
- });
830
-
831
- if (res_error) {
832
- if (this.config.options.strictResponseCheck === true) {
833
- return Promise.reject(new FDKResponseValidationError(res_error));
834
- } else {
835
- Logger({
836
- level: "WARN",
837
- message: `Response Validation Warnings for platform > Payment > edcDeviceList \n ${res_error}`,
838
- });
839
- }
840
- }
841
-
842
- return response;
843
- }
844
-
845
- /**
846
- * @param {PaymentPlatformApplicationValidator.EdcDeviceStatsParam} arg - Arg object
847
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
848
- * @param {import("../PlatformAPIClient").Options} - Options
849
- * @returns {Promise<PaymentPlatformModel.EdcDeviceStatsResponse>} - Success response
850
- * @name edcDeviceStats
851
- * @summary: EDC device stats
852
- * @description: Information about EDC (Electronic Data Capture) devices linked to a specific application within a company. It provides statistics such as the count of active and inactive devices. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/edcDeviceStats/).
853
- */
854
- async edcDeviceStats(
855
- { requestHeaders } = { requestHeaders: {} },
856
- { responseHeaders } = { responseHeaders: false }
857
- ) {
858
- const {
859
- error,
860
- } = PaymentPlatformApplicationValidator.edcDeviceStats().validate(
861
- {},
862
- { abortEarly: false, allowUnknown: true }
863
- );
864
- if (error) {
865
- return Promise.reject(new FDKClientValidationError(error));
866
- }
867
-
868
- // Showing warrnings if extra unknown parameters are found
869
- const {
870
- error: warrning,
871
- } = PaymentPlatformApplicationValidator.edcDeviceStats().validate(
872
- {},
873
- { abortEarly: false, allowUnknown: false }
874
- );
875
- if (warrning) {
876
- Logger({
877
- level: "WARN",
878
- message: `Parameter Validation warrnings for platform > Payment > edcDeviceStats \n ${warrning}`,
879
- });
880
- }
881
-
882
- const query_params = {};
883
-
884
- const response = await PlatformAPIClient.execute(
885
- this.config,
886
- "get",
887
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/edc-device-stats`,
888
- query_params,
889
- undefined,
890
- requestHeaders,
891
- { responseHeaders }
892
- );
893
-
894
- let responseData = response;
895
- if (responseHeaders) {
896
- responseData = response[0];
897
- }
898
-
899
- const {
900
- error: res_error,
901
- } = PaymentPlatformModel.EdcDeviceStatsResponse().validate(responseData, {
902
- abortEarly: false,
903
- allowUnknown: true,
904
- });
905
-
906
- if (res_error) {
907
- if (this.config.options.strictResponseCheck === true) {
908
- return Promise.reject(new FDKResponseValidationError(res_error));
909
- } else {
910
- Logger({
911
- level: "WARN",
912
- message: `Response Validation Warnings for platform > Payment > edcDeviceStats \n ${res_error}`,
913
- });
914
- }
915
- }
916
-
917
- return response;
918
- }
919
-
920
589
  /**
921
590
  * @param {PaymentPlatformApplicationValidator.GetBankAccountDetailsOpenAPIParam} arg
922
591
  * - Arg object
923
592
  *
924
593
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
925
594
  * @param {import("../PlatformAPIClient").Options} - Options
926
- * @returns {Promise<PaymentPlatformModel.RefundAccountResponse>} - Success response
595
+ * @returns {Promise<PaymentPlatformModel.RefundAccountDetails>} - Success response
927
596
  * @name getBankAccountDetailsOpenAPI
928
597
  * @summary: Get bank account details
929
- * @description: Retrieve bank account information - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getBankAccountDetailsOpenAPI/).
598
+ * @description: Retrieve bank account information - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getBankAccountDetailsOpenAPI/).
930
599
  */
931
600
  async getBankAccountDetailsOpenAPI(
932
601
  { orderId, requestHash, requestHeaders } = { requestHeaders: {} },
@@ -985,7 +654,7 @@ class Payment {
985
654
 
986
655
  const {
987
656
  error: res_error,
988
- } = PaymentPlatformModel.RefundAccountResponse().validate(responseData, {
657
+ } = PaymentPlatformModel.RefundAccountDetails().validate(responseData, {
989
658
  abortEarly: false,
990
659
  allowUnknown: true,
991
660
  });
@@ -1010,11 +679,11 @@ class Payment {
1010
679
  *
1011
680
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1012
681
  * @param {import("../PlatformAPIClient").Options} - Options
1013
- * @returns {Promise<PaymentPlatformModel.PaymentGatewayConfigResponse>} -
682
+ * @returns {Promise<PaymentPlatformModel.PaymentGatewayConfigDetails>} -
1014
683
  * Success response
1015
684
  * @name getBrandPaymentGatewayConfig
1016
685
  * @summary: Get secrets for brand payment gateway
1017
- * @description: Retrieve configuration settings like key, secret, webhook url, merchant salt for brand payment gateways. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getBrandPaymentGatewayConfig/).
686
+ * @description: Retrieve configuration settings like key, secret, webhook url, merchant salt for brand payment gateways. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getBrandPaymentGatewayConfig/).
1018
687
  */
1019
688
  async getBrandPaymentGatewayConfig(
1020
689
  { aggregator, configType, requestHeaders } = { requestHeaders: {} },
@@ -1071,7 +740,7 @@ class Payment {
1071
740
 
1072
741
  const {
1073
742
  error: res_error,
1074
- } = PaymentPlatformModel.PaymentGatewayConfigResponse().validate(
743
+ } = PaymentPlatformModel.PaymentGatewayConfigDetails().validate(
1075
744
  responseData,
1076
745
  { abortEarly: false, allowUnknown: true }
1077
746
  );
@@ -1090,97 +759,17 @@ class Payment {
1090
759
  return response;
1091
760
  }
1092
761
 
1093
- /**
1094
- * @param {PaymentPlatformApplicationValidator.GetEdcDeviceParam} arg - Arg object
1095
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1096
- * @param {import("../PlatformAPIClient").Options} - Options
1097
- * @returns {Promise<PaymentPlatformModel.EdcDeviceDetailsResponse>} -
1098
- * Success response
1099
- * @name getEdcDevice
1100
- * @summary: Get an EDC device
1101
- * @description: Retrieve comprehensive details regarding an Electronic Data Capture (EDC) device associated with a particular terminal unique identifier within a company's application.Upon success, it returns the detailed information of the EDC device, including terminal serial number, EDC device serial number, merchant store POS code, store ID, aggregator ID and name, device tag, activation status, and EDC model. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getEdcDevice/).
1102
- */
1103
- async getEdcDevice(
1104
- { terminalUniqueIdentifier, requestHeaders } = { requestHeaders: {} },
1105
- { responseHeaders } = { responseHeaders: false }
1106
- ) {
1107
- const {
1108
- error,
1109
- } = PaymentPlatformApplicationValidator.getEdcDevice().validate(
1110
- {
1111
- terminalUniqueIdentifier,
1112
- },
1113
- { abortEarly: false, allowUnknown: true }
1114
- );
1115
- if (error) {
1116
- return Promise.reject(new FDKClientValidationError(error));
1117
- }
1118
-
1119
- // Showing warrnings if extra unknown parameters are found
1120
- const {
1121
- error: warrning,
1122
- } = PaymentPlatformApplicationValidator.getEdcDevice().validate(
1123
- {
1124
- terminalUniqueIdentifier,
1125
- },
1126
- { abortEarly: false, allowUnknown: false }
1127
- );
1128
- if (warrning) {
1129
- Logger({
1130
- level: "WARN",
1131
- message: `Parameter Validation warrnings for platform > Payment > getEdcDevice \n ${warrning}`,
1132
- });
1133
- }
1134
-
1135
- const query_params = {};
1136
-
1137
- const response = await PlatformAPIClient.execute(
1138
- this.config,
1139
- "get",
1140
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/edc-device/${terminalUniqueIdentifier}`,
1141
- query_params,
1142
- undefined,
1143
- requestHeaders,
1144
- { responseHeaders }
1145
- );
1146
-
1147
- let responseData = response;
1148
- if (responseHeaders) {
1149
- responseData = response[0];
1150
- }
1151
-
1152
- const {
1153
- error: res_error,
1154
- } = PaymentPlatformModel.EdcDeviceDetailsResponse().validate(responseData, {
1155
- abortEarly: false,
1156
- allowUnknown: true,
1157
- });
1158
-
1159
- if (res_error) {
1160
- if (this.config.options.strictResponseCheck === true) {
1161
- return Promise.reject(new FDKResponseValidationError(res_error));
1162
- } else {
1163
- Logger({
1164
- level: "WARN",
1165
- message: `Response Validation Warnings for platform > Payment > getEdcDevice \n ${res_error}`,
1166
- });
1167
- }
1168
- }
1169
-
1170
- return response;
1171
- }
1172
-
1173
762
  /**
1174
763
  * @param {PaymentPlatformApplicationValidator.GetMerchantAggregatorAppVersionParam} arg
1175
764
  * - Arg object
1176
765
  *
1177
766
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1178
767
  * @param {import("../PlatformAPIClient").Options} - Options
1179
- * @returns {Promise<PaymentPlatformModel.AggregatorVersionResponse>} -
768
+ * @returns {Promise<PaymentPlatformModel.AggregatorVersionDetails>} -
1180
769
  * Success response
1181
770
  * @name getMerchantAggregatorAppVersion
1182
771
  * @summary: Get app version for Aggregator
1183
- * @description: Get app version required for Payment Mode or sub payment mode for an Aggregator.if merchant required any PG payment mode after certain version for mobile app. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getMerchantAggregatorAppVersion/).
772
+ * @description: Get app version required for Payment Mode or sub payment mode for an Aggregator.if merchant required any PG payment mode after certain version for mobile app. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getMerchantAggregatorAppVersion/).
1184
773
  */
1185
774
  async getMerchantAggregatorAppVersion(
1186
775
  {
@@ -1252,10 +841,10 @@ class Payment {
1252
841
 
1253
842
  const {
1254
843
  error: res_error,
1255
- } = PaymentPlatformModel.AggregatorVersionResponse().validate(
1256
- responseData,
1257
- { abortEarly: false, allowUnknown: true }
1258
- );
844
+ } = PaymentPlatformModel.AggregatorVersionDetails().validate(responseData, {
845
+ abortEarly: false,
846
+ allowUnknown: true,
847
+ });
1259
848
 
1260
849
  if (res_error) {
1261
850
  if (this.config.options.strictResponseCheck === true) {
@@ -1277,11 +866,10 @@ class Payment {
1277
866
  *
1278
867
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1279
868
  * @param {import("../PlatformAPIClient").Options} - Options
1280
- * @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
1281
- * Success response
869
+ * @returns {Promise<PaymentPlatformModel.PaymentModeConfig>} - Success response
1282
870
  * @name getMerchantAggregatorPaymentModeDetails
1283
871
  * @summary: Get merchant aggregator and their payment mode
1284
- * @description: Get available payment gateways and payment mode and it's sub payment mode details like for razorpay their active/inactive payment modes netbanking , wallet, upi are shown. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getMerchantAggregatorPaymentModeDetails/).
872
+ * @description: Get available payment gateways and payment mode and it's sub payment mode details like for razorpay their active/inactive payment modes netbanking , wallet, upi are shown. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getMerchantAggregatorPaymentModeDetails/).
1285
873
  */
1286
874
  async getMerchantAggregatorPaymentModeDetails(
1287
875
  { aggregatorId, businessUnit, device, requestHeaders } = {
@@ -1342,10 +930,10 @@ class Payment {
1342
930
 
1343
931
  const {
1344
932
  error: res_error,
1345
- } = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
1346
- responseData,
1347
- { abortEarly: false, allowUnknown: true }
1348
- );
933
+ } = PaymentPlatformModel.PaymentModeConfig().validate(responseData, {
934
+ abortEarly: false,
935
+ allowUnknown: true,
936
+ });
1349
937
 
1350
938
  if (res_error) {
1351
939
  if (this.config.options.strictResponseCheck === true) {
@@ -1367,11 +955,11 @@ class Payment {
1367
955
  *
1368
956
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1369
957
  * @param {import("../PlatformAPIClient").Options} - Options
1370
- * @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
958
+ * @returns {Promise<PaymentPlatformModel.PlatformPaymentModeDetails>} -
1371
959
  * Success response
1372
960
  * @name getMerchantPaymentOption
1373
961
  * @summary: Get merchant payment option
1374
- * @description: Retrieve available payment gateways and offline payment mode details for a merchant by providing company ID and application ID, returning a list of active payment gateways and their configurations, including online and offline options. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getMerchantPaymentOption/).
962
+ * @description: Retrieve available payment gateways and offline payment mode details for a merchant by providing company ID and application ID, returning a list of active payment gateways and their configurations, including online and offline options. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getMerchantPaymentOption/).
1375
963
  */
1376
964
  async getMerchantPaymentOption(
1377
965
  { requestHeaders } = { requestHeaders: {} },
@@ -1420,7 +1008,7 @@ class Payment {
1420
1008
 
1421
1009
  const {
1422
1010
  error: res_error,
1423
- } = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
1011
+ } = PaymentPlatformModel.PlatformPaymentModeDetails().validate(
1424
1012
  responseData,
1425
1013
  { abortEarly: false, allowUnknown: true }
1426
1014
  );
@@ -1445,12 +1033,10 @@ class Payment {
1445
1033
  *
1446
1034
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1447
1035
  * @param {import("../PlatformAPIClient").Options} - Options
1448
- * @returns {Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>}
1449
- * - Success response
1450
- *
1036
+ * @returns {Promise<PaymentPlatformModel.RefundPriorityDetails>} - Success response
1451
1037
  * @name getMerchantRefundPriority
1452
1038
  * @summary: Get merchant refund priority
1453
- * @description: Retrieve merchant refund priority configurations, returning the status of the update and the refund sources priority with their descriptions and priorities. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getMerchantRefundPriority/).
1039
+ * @description: Retrieve merchant refund priority configurations, returning the status of the update and the refund sources priority with their descriptions and priorities. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getMerchantRefundPriority/).
1454
1040
  */
1455
1041
  async getMerchantRefundPriority(
1456
1042
  { configType, requestHeaders } = { requestHeaders: {} },
@@ -1503,10 +1089,10 @@ class Payment {
1503
1089
 
1504
1090
  const {
1505
1091
  error: res_error,
1506
- } = PaymentPlatformModel.RefundPriorityResponseSerializer().validate(
1507
- responseData,
1508
- { abortEarly: false, allowUnknown: true }
1509
- );
1092
+ } = PaymentPlatformModel.RefundPriorityDetails().validate(responseData, {
1093
+ abortEarly: false,
1094
+ allowUnknown: true,
1095
+ });
1510
1096
 
1511
1097
  if (res_error) {
1512
1098
  if (this.config.options.strictResponseCheck === true) {
@@ -1528,11 +1114,11 @@ class Payment {
1528
1114
  *
1529
1115
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1530
1116
  * @param {import("../PlatformAPIClient").Options} - Options
1531
- * @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
1117
+ * @returns {Promise<PaymentPlatformModel.PlatformPaymentModeDetails>} -
1532
1118
  * Success response
1533
1119
  * @name getPGConfigAggregators
1534
1120
  * @summary: Get merchant aggregator payment mode
1535
- * @description: Get payment gateway and it's payment mode and it's sub payment mode details like for razorpay update active/inactive payment modes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPGConfigAggregators/).
1121
+ * @description: Get payment gateway and it's payment mode and it's sub payment mode details like for razorpay update active/inactive payment modes. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getPGConfigAggregators/).
1536
1122
  */
1537
1123
  async getPGConfigAggregators(
1538
1124
  { requestHeaders } = { requestHeaders: {} },
@@ -1581,7 +1167,7 @@ class Payment {
1581
1167
 
1582
1168
  const {
1583
1169
  error: res_error,
1584
- } = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
1170
+ } = PaymentPlatformModel.PlatformPaymentModeDetails().validate(
1585
1171
  responseData,
1586
1172
  { abortEarly: false, allowUnknown: true }
1587
1173
  );
@@ -1606,10 +1192,10 @@ class Payment {
1606
1192
  *
1607
1193
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1608
1194
  * @param {import("../PlatformAPIClient").Options} - Options
1609
- * @returns {Promise<PaymentPlatformModel.GetPaymentCodeResponse>} - Success response
1195
+ * @returns {Promise<PaymentPlatformModel.GetPaymentCodeDetails>} - Success response
1610
1196
  * @name getPaymentCodeOption
1611
1197
  * @summary: Get payment mode codes
1612
- * @description: Enables users to retrieve options for payment codes.users can access information such as payment method names, networks, and associated codes, facilitating seamless integration and management of payment modes - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentCodeOption/).
1198
+ * @description: Enables users to retrieve options for payment codes.users can access information such as payment method names, networks, and associated codes, facilitating seamless integration and management of payment modes - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getPaymentCodeOption/).
1613
1199
  */
1614
1200
  async getPaymentCodeOption(
1615
1201
  { requestHeaders } = { requestHeaders: {} },
@@ -1658,7 +1244,7 @@ class Payment {
1658
1244
 
1659
1245
  const {
1660
1246
  error: res_error,
1661
- } = PaymentPlatformModel.GetPaymentCodeResponse().validate(responseData, {
1247
+ } = PaymentPlatformModel.GetPaymentCodeDetails().validate(responseData, {
1662
1248
  abortEarly: false,
1663
1249
  allowUnknown: true,
1664
1250
  });
@@ -1681,10 +1267,10 @@ class Payment {
1681
1267
  * @param {PaymentPlatformApplicationValidator.GetPaymentLinkParam} arg - Arg object
1682
1268
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1683
1269
  * @param {import("../PlatformAPIClient").Options} - Options
1684
- * @returns {Promise<PaymentPlatformModel.GetPaymentLinkResponse>} - Success response
1270
+ * @returns {Promise<PaymentPlatformModel.GetPaymentLinkDetails>} - Success response
1685
1271
  * @name getPaymentLink
1686
1272
  * @summary: Get payment link
1687
- * @description: Retrieve a payment link for making payments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentLink/).
1273
+ * @description: Retrieve a payment link for making payments. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getPaymentLink/).
1688
1274
  */
1689
1275
  async getPaymentLink(
1690
1276
  { paymentLinkId, requestHeaders } = { requestHeaders: {} },
@@ -1738,7 +1324,7 @@ class Payment {
1738
1324
 
1739
1325
  const {
1740
1326
  error: res_error,
1741
- } = PaymentPlatformModel.GetPaymentLinkResponse().validate(responseData, {
1327
+ } = PaymentPlatformModel.GetPaymentLinkDetails().validate(responseData, {
1742
1328
  abortEarly: false,
1743
1329
  allowUnknown: true,
1744
1330
  });
@@ -1763,11 +1349,11 @@ class Payment {
1763
1349
  *
1764
1350
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1765
1351
  * @param {import("../PlatformAPIClient").Options} - Options
1766
- * @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
1352
+ * @returns {Promise<PaymentPlatformModel.PlatformPaymentModeDetails>} -
1767
1353
  * Success response
1768
1354
  * @name getPaymentModeControlRoutes
1769
1355
  * @summary: Get offline/advance payment mode
1770
- * @description: Get details of offline / advance payment mode like for cod offline payment mode get user level cod limit, order level cod limit, cod charge. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentModeControlRoutes/).
1356
+ * @description: Get details of offline / advance payment mode like for cod offline payment mode get user level cod limit, order level cod limit, cod charge. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getPaymentModeControlRoutes/).
1771
1357
  */
1772
1358
  async getPaymentModeControlRoutes(
1773
1359
  { mode, requestHeaders } = { requestHeaders: {} },
@@ -1820,7 +1406,7 @@ class Payment {
1820
1406
 
1821
1407
  const {
1822
1408
  error: res_error,
1823
- } = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
1409
+ } = PaymentPlatformModel.PlatformPaymentModeDetails().validate(
1824
1410
  responseData,
1825
1411
  { abortEarly: false, allowUnknown: true }
1826
1412
  );
@@ -1850,7 +1436,7 @@ class Payment {
1850
1436
  *
1851
1437
  * @name getPaymentModeCustomConfig
1852
1438
  * @summary: Get advance payment custom configurations
1853
- * @description: Merchants to fetch detailed information regarding advance payment custom configurations tailored to their specific business needs. merchants can access settings such as customer restrictions, available payment modes for both pre-order and post-order transactions - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentModeCustomConfig/).
1439
+ * @description: Merchants to fetch detailed information regarding advance payment custom configurations tailored to their specific business needs. merchants can access settings such as customer restrictions, available payment modes for both pre-order and post-order transactions - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getPaymentModeCustomConfig/).
1854
1440
  */
1855
1441
  async getPaymentModeCustomConfig(
1856
1442
  { mode, requestHeaders } = { requestHeaders: {} },
@@ -1928,10 +1514,10 @@ class Payment {
1928
1514
  *
1929
1515
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
1930
1516
  * @param {import("../PlatformAPIClient").Options} - Options
1931
- * @returns {Promise<PaymentPlatformModel.PaymentOptionsResponse>} - Success response
1517
+ * @returns {Promise<PaymentPlatformModel.PaymentOptionsDetails>} - Success response
1932
1518
  * @name getPaymentModeRoutes
1933
1519
  * @summary: Get payment modes
1934
- * @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/platform/payment/getPaymentModeRoutes/).
1520
+ * @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/platform/payment/getPaymentModeRoutes/).
1935
1521
  */
1936
1522
  async getPaymentModeRoutes(
1937
1523
  { refresh, requestType, orderId, shipmentId, amount, requestHeaders } = {
@@ -1999,7 +1585,7 @@ class Payment {
1999
1585
 
2000
1586
  const {
2001
1587
  error: res_error,
2002
- } = PaymentPlatformModel.PaymentOptionsResponse().validate(responseData, {
1588
+ } = PaymentPlatformModel.PaymentOptionsDetails().validate(responseData, {
2003
1589
  abortEarly: false,
2004
1590
  allowUnknown: true,
2005
1591
  });
@@ -2024,11 +1610,11 @@ class Payment {
2024
1610
  *
2025
1611
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2026
1612
  * @param {import("../PlatformAPIClient").Options} - Options
2027
- * @returns {Promise<PaymentPlatformModel.PaymentSessionSerializer>} -
1613
+ * @returns {Promise<PaymentPlatformModel.PaymentSessionFetchDetails>} -
2028
1614
  * Success response
2029
1615
  * @name getPaymentSession
2030
1616
  * @summary: Get payment session
2031
- * @description: Allows users to fetch the payment session details associated with a given order ID or transaction ID - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentSession/).
1617
+ * @description: Allows users to fetch the payment session details associated with a given order ID or transaction ID - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getPaymentSession/).
2032
1618
  */
2033
1619
  async getPaymentSession(
2034
1620
  { gid, lineItem, requestHeaders } = { requestHeaders: {} },
@@ -2084,10 +1670,10 @@ class Payment {
2084
1670
 
2085
1671
  const {
2086
1672
  error: res_error,
2087
- } = PaymentPlatformModel.PaymentSessionSerializer().validate(responseData, {
2088
- abortEarly: false,
2089
- allowUnknown: true,
2090
- });
1673
+ } = PaymentPlatformModel.PaymentSessionFetchDetails().validate(
1674
+ responseData,
1675
+ { abortEarly: false, allowUnknown: true }
1676
+ );
2091
1677
 
2092
1678
  if (res_error) {
2093
1679
  if (this.config.options.strictResponseCheck === true) {
@@ -2109,17 +1695,17 @@ class Payment {
2109
1695
  *
2110
1696
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2111
1697
  * @param {import("../PlatformAPIClient").Options} - Options
2112
- * @returns {Promise<PaymentPlatformModel.PaymentModeRouteResponse>} -
2113
- * Success response
1698
+ * @returns {Promise<PaymentPlatformModel.PaymentModeRouteDetails>} - Success response
2114
1699
  * @name getPosPaymentModeRoutes
2115
1700
  * @summary: List POS payment modes
2116
- * @description: 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/platform/payment/getPosPaymentModeRoutes/).
1701
+ * @description: 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/platform/payment/getPosPaymentModeRoutes/).
2117
1702
  */
2118
1703
  async getPosPaymentModeRoutes(
2119
1704
  {
2120
1705
  amount,
2121
1706
  pincode,
2122
1707
  orderType,
1708
+ xOrderingSource,
2123
1709
  cartId,
2124
1710
  checkoutMode,
2125
1711
  refresh,
@@ -2129,6 +1715,7 @@ class Payment {
2129
1715
  displaySplit,
2130
1716
  advancePayment,
2131
1717
  shipmentId,
1718
+ customerId,
2132
1719
  requestHeaders,
2133
1720
  } = { requestHeaders: {} },
2134
1721
  { responseHeaders } = { responseHeaders: false }
@@ -2140,6 +1727,7 @@ class Payment {
2140
1727
  amount,
2141
1728
  pincode,
2142
1729
  orderType,
1730
+ xOrderingSource,
2143
1731
  cartId,
2144
1732
  checkoutMode,
2145
1733
  refresh,
@@ -2149,6 +1737,7 @@ class Payment {
2149
1737
  displaySplit,
2150
1738
  advancePayment,
2151
1739
  shipmentId,
1740
+ customerId,
2152
1741
  },
2153
1742
  { abortEarly: false, allowUnknown: true }
2154
1743
  );
@@ -2164,6 +1753,7 @@ class Payment {
2164
1753
  amount,
2165
1754
  pincode,
2166
1755
  orderType,
1756
+ xOrderingSource,
2167
1757
  cartId,
2168
1758
  checkoutMode,
2169
1759
  refresh,
@@ -2173,6 +1763,7 @@ class Payment {
2173
1763
  displaySplit,
2174
1764
  advancePayment,
2175
1765
  shipmentId,
1766
+ customerId,
2176
1767
  },
2177
1768
  { abortEarly: false, allowUnknown: false }
2178
1769
  );
@@ -2196,6 +1787,7 @@ class Payment {
2196
1787
  query_params["display_split"] = displaySplit;
2197
1788
  query_params["advance_payment"] = advancePayment;
2198
1789
  query_params["shipment_id"] = shipmentId;
1790
+ query_params["customer_id"] = customerId;
2199
1791
 
2200
1792
  const response = await PlatformAPIClient.execute(
2201
1793
  this.config,
@@ -2214,7 +1806,7 @@ class Payment {
2214
1806
 
2215
1807
  const {
2216
1808
  error: res_error,
2217
- } = PaymentPlatformModel.PaymentModeRouteResponse().validate(responseData, {
1809
+ } = PaymentPlatformModel.PaymentModeRouteDetails().validate(responseData, {
2218
1810
  abortEarly: false,
2219
1811
  allowUnknown: true,
2220
1812
  });
@@ -2239,11 +1831,11 @@ class Payment {
2239
1831
  *
2240
1832
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2241
1833
  * @param {import("../PlatformAPIClient").Options} - Options
2242
- * @returns {Promise<PaymentPlatformModel.OrderBeneficiaryResponse>} -
1834
+ * @returns {Promise<PaymentPlatformModel.OrderBeneficiaryFetchResults>} -
2243
1835
  * Success response
2244
1836
  * @name getUserBeneficiaries
2245
1837
  * @summary: Get user beneficiaries
2246
- * @description: Retrieves information about 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/platform/payment/getUserBeneficiaries/).
1838
+ * @description: Retrieves information about 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/platform/payment/getUserBeneficiaries/).
2247
1839
  */
2248
1840
  async getUserBeneficiaries(
2249
1841
  { orderId, requestHeaders } = { requestHeaders: {} },
@@ -2293,10 +1885,10 @@ class Payment {
2293
1885
 
2294
1886
  const {
2295
1887
  error: res_error,
2296
- } = PaymentPlatformModel.OrderBeneficiaryResponse().validate(responseData, {
2297
- abortEarly: false,
2298
- allowUnknown: true,
2299
- });
1888
+ } = PaymentPlatformModel.OrderBeneficiaryFetchResults().validate(
1889
+ responseData,
1890
+ { abortEarly: false, allowUnknown: true }
1891
+ );
2300
1892
 
2301
1893
  if (res_error) {
2302
1894
  if (this.config.options.strictResponseCheck === true) {
@@ -2318,10 +1910,10 @@ class Payment {
2318
1910
  *
2319
1911
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2320
1912
  * @param {import("../PlatformAPIClient").Options} - Options
2321
- * @returns {Promise<PaymentPlatformModel.GetUserCODLimitResponse>} - Success response
1913
+ * @returns {Promise<PaymentPlatformModel.GetUserCODLimitDetails>} - Success response
2322
1914
  * @name getUserCODlimitRoutes
2323
1915
  * @summary: Get user COD
2324
- * @description: Retrieve user cod limt data of user i.e cod is active or not for user and remaining limit - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getUserCODlimitRoutes/).
1916
+ * @description: Retrieve user cod limt data of user i.e cod is active or not for user and remaining limit - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/getUserCODlimitRoutes/).
2325
1917
  */
2326
1918
  async getUserCODlimitRoutes(
2327
1919
  { merchantUserId, mobileNo, requestHeaders } = { requestHeaders: {} },
@@ -2378,7 +1970,7 @@ class Payment {
2378
1970
 
2379
1971
  const {
2380
1972
  error: res_error,
2381
- } = PaymentPlatformModel.GetUserCODLimitResponse().validate(responseData, {
1973
+ } = PaymentPlatformModel.GetUserCODLimitDetails().validate(responseData, {
2382
1974
  abortEarly: false,
2383
1975
  allowUnknown: true,
2384
1976
  });
@@ -2403,11 +1995,11 @@ class Payment {
2403
1995
  *
2404
1996
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2405
1997
  * @param {import("../PlatformAPIClient").Options} - Options
2406
- * @returns {Promise<PaymentPlatformModel.OrderBeneficiaryResponse>} -
1998
+ * @returns {Promise<PaymentPlatformModel.OrderBeneficiaryFetchResults>} -
2407
1999
  * Success response
2408
2000
  * @name getUserOrderBeneficiaries
2409
2001
  * @summary: Get user order beneficiaries
2410
- * @description: Retrieve 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/platform/payment/getUserOrderBeneficiaries/).
2002
+ * @description: Retrieve 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/platform/payment/getUserOrderBeneficiaries/).
2411
2003
  */
2412
2004
  async getUserOrderBeneficiaries(
2413
2005
  { orderId, requestHeaders } = { requestHeaders: {} },
@@ -2442,92 +2034,10 @@ class Payment {
2442
2034
 
2443
2035
  const response = await PlatformAPIClient.execute(
2444
2036
  this.config,
2445
- "get",
2446
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund/accounts/order`,
2447
- query_params,
2448
- undefined,
2449
- requestHeaders,
2450
- { responseHeaders }
2451
- );
2452
-
2453
- let responseData = response;
2454
- if (responseHeaders) {
2455
- responseData = response[0];
2456
- }
2457
-
2458
- const {
2459
- error: res_error,
2460
- } = PaymentPlatformModel.OrderBeneficiaryResponse().validate(responseData, {
2461
- abortEarly: false,
2462
- allowUnknown: true,
2463
- });
2464
-
2465
- if (res_error) {
2466
- if (this.config.options.strictResponseCheck === true) {
2467
- return Promise.reject(new FDKResponseValidationError(res_error));
2468
- } else {
2469
- Logger({
2470
- level: "WARN",
2471
- message: `Response Validation Warnings for platform > Payment > getUserOrderBeneficiaries \n ${res_error}`,
2472
- });
2473
- }
2474
- }
2475
-
2476
- return response;
2477
- }
2478
-
2479
- /**
2480
- * @param {PaymentPlatformApplicationValidator.InitialisePaymentParam} arg
2481
- * - Arg object
2482
- *
2483
- * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2484
- * @param {import("../PlatformAPIClient").Options} - Options
2485
- * @returns {Promise<PaymentPlatformModel.PaymentInitializationResponse>} -
2486
- * Success response
2487
- * @name initialisePayment
2488
- * @summary: Start payment process
2489
- * @description: Initiates 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/platform/payment/initialisePayment/).
2490
- */
2491
- async initialisePayment(
2492
- { body, requestHeaders } = { requestHeaders: {} },
2493
- { responseHeaders } = { responseHeaders: false }
2494
- ) {
2495
- const {
2496
- error,
2497
- } = PaymentPlatformApplicationValidator.initialisePayment().validate(
2498
- {
2499
- body,
2500
- },
2501
- { abortEarly: false, allowUnknown: true }
2502
- );
2503
- if (error) {
2504
- return Promise.reject(new FDKClientValidationError(error));
2505
- }
2506
-
2507
- // Showing warrnings if extra unknown parameters are found
2508
- const {
2509
- error: warrning,
2510
- } = PaymentPlatformApplicationValidator.initialisePayment().validate(
2511
- {
2512
- body,
2513
- },
2514
- { abortEarly: false, allowUnknown: false }
2515
- );
2516
- if (warrning) {
2517
- Logger({
2518
- level: "WARN",
2519
- message: `Parameter Validation warrnings for platform > Payment > initialisePayment \n ${warrning}`,
2520
- });
2521
- }
2522
-
2523
- const query_params = {};
2524
-
2525
- const response = await PlatformAPIClient.execute(
2526
- this.config,
2527
- "post",
2528
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/request`,
2037
+ "get",
2038
+ `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund/accounts/order`,
2529
2039
  query_params,
2530
- body,
2040
+ undefined,
2531
2041
  requestHeaders,
2532
2042
  { responseHeaders }
2533
2043
  );
@@ -2539,7 +2049,7 @@ class Payment {
2539
2049
 
2540
2050
  const {
2541
2051
  error: res_error,
2542
- } = PaymentPlatformModel.PaymentInitializationResponse().validate(
2052
+ } = PaymentPlatformModel.OrderBeneficiaryFetchResults().validate(
2543
2053
  responseData,
2544
2054
  { abortEarly: false, allowUnknown: true }
2545
2055
  );
@@ -2550,7 +2060,7 @@ class Payment {
2550
2060
  } else {
2551
2061
  Logger({
2552
2062
  level: "WARN",
2553
- message: `Response Validation Warnings for platform > Payment > initialisePayment \n ${res_error}`,
2063
+ message: `Response Validation Warnings for platform > Payment > getUserOrderBeneficiaries \n ${res_error}`,
2554
2064
  });
2555
2065
  }
2556
2066
  }
@@ -2559,24 +2069,24 @@ class Payment {
2559
2069
  }
2560
2070
 
2561
2071
  /**
2562
- * @param {PaymentPlatformApplicationValidator.MerchantOnBoardingParam} arg
2072
+ * @param {PaymentPlatformApplicationValidator.InitialisePaymentParam} arg
2563
2073
  * - Arg object
2564
2074
  *
2565
2075
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2566
2076
  * @param {import("../PlatformAPIClient").Options} - Options
2567
- * @returns {Promise<PaymentPlatformModel.MerchantOnBoardingResponse>} -
2077
+ * @returns {Promise<PaymentPlatformModel.PaymentInitializationDetails>} -
2568
2078
  * Success response
2569
- * @name merchantOnBoarding
2570
- * @summary: Merchant onboarding for BNPL
2571
- * @description: Initiate the merchant onboarding process for Buy Now Pay Later (BNPL). - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/merchantOnBoarding/).
2079
+ * @name initialisePayment
2080
+ * @summary: Start payment process
2081
+ * @description: Initiates 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/platform/payment/initialisePayment/).
2572
2082
  */
2573
- async merchantOnBoarding(
2083
+ async initialisePayment(
2574
2084
  { body, requestHeaders } = { requestHeaders: {} },
2575
2085
  { responseHeaders } = { responseHeaders: false }
2576
2086
  ) {
2577
2087
  const {
2578
2088
  error,
2579
- } = PaymentPlatformApplicationValidator.merchantOnBoarding().validate(
2089
+ } = PaymentPlatformApplicationValidator.initialisePayment().validate(
2580
2090
  {
2581
2091
  body,
2582
2092
  },
@@ -2589,7 +2099,7 @@ class Payment {
2589
2099
  // Showing warrnings if extra unknown parameters are found
2590
2100
  const {
2591
2101
  error: warrning,
2592
- } = PaymentPlatformApplicationValidator.merchantOnBoarding().validate(
2102
+ } = PaymentPlatformApplicationValidator.initialisePayment().validate(
2593
2103
  {
2594
2104
  body,
2595
2105
  },
@@ -2598,7 +2108,7 @@ class Payment {
2598
2108
  if (warrning) {
2599
2109
  Logger({
2600
2110
  level: "WARN",
2601
- message: `Parameter Validation warrnings for platform > Payment > merchantOnBoarding \n ${warrning}`,
2111
+ message: `Parameter Validation warrnings for platform > Payment > initialisePayment \n ${warrning}`,
2602
2112
  });
2603
2113
  }
2604
2114
 
@@ -2607,7 +2117,7 @@ class Payment {
2607
2117
  const response = await PlatformAPIClient.execute(
2608
2118
  this.config,
2609
2119
  "post",
2610
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/merchant-onboarding`,
2120
+ `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/request`,
2611
2121
  query_params,
2612
2122
  body,
2613
2123
  requestHeaders,
@@ -2621,7 +2131,7 @@ class Payment {
2621
2131
 
2622
2132
  const {
2623
2133
  error: res_error,
2624
- } = PaymentPlatformModel.MerchantOnBoardingResponse().validate(
2134
+ } = PaymentPlatformModel.PaymentInitializationDetails().validate(
2625
2135
  responseData,
2626
2136
  { abortEarly: false, allowUnknown: true }
2627
2137
  );
@@ -2632,7 +2142,7 @@ class Payment {
2632
2142
  } else {
2633
2143
  Logger({
2634
2144
  level: "WARN",
2635
- message: `Response Validation Warnings for platform > Payment > merchantOnBoarding \n ${res_error}`,
2145
+ message: `Response Validation Warnings for platform > Payment > initialisePayment \n ${res_error}`,
2636
2146
  });
2637
2147
  }
2638
2148
  }
@@ -2644,10 +2154,10 @@ class Payment {
2644
2154
  * @param {PaymentPlatformApplicationValidator.OauthGetUrlParam} arg - Arg object
2645
2155
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2646
2156
  * @param {import("../PlatformAPIClient").Options} - Options
2647
- * @returns {Promise<PaymentPlatformModel.GetOauthUrlResponse>} - Success response
2157
+ * @returns {Promise<PaymentPlatformModel.GetOauthUrlDetails>} - Success response
2648
2158
  * @name oauthGetUrl
2649
2159
  * @summary: Get OAuth URL
2650
- * @description: This has been used when merchant is setup their razorpay payment gateway, they will redirect to razorpay site after submitting all their secrets for authetication. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/oauthGetUrl/).
2160
+ * @description: This has been used when merchant is setup their razorpay payment gateway, they will redirect to razorpay site after submitting all their secrets for authetication. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/oauthGetUrl/).
2651
2161
  */
2652
2162
  async oauthGetUrl(
2653
2163
  { aggregator, successRedirectUrl, failureRedirectUrl, requestHeaders } = {
@@ -2708,7 +2218,7 @@ class Payment {
2708
2218
 
2709
2219
  const {
2710
2220
  error: res_error,
2711
- } = PaymentPlatformModel.GetOauthUrlResponse().validate(responseData, {
2221
+ } = PaymentPlatformModel.GetOauthUrlDetails().validate(responseData, {
2712
2222
  abortEarly: false,
2713
2223
  allowUnknown: true,
2714
2224
  });
@@ -2733,11 +2243,11 @@ class Payment {
2733
2243
  *
2734
2244
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2735
2245
  * @param {import("../PlatformAPIClient").Options} - Options
2736
- * @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
2246
+ * @returns {Promise<PaymentPlatformModel.PlatformPaymentModeDetails>} -
2737
2247
  * Success response
2738
2248
  * @name patchMerchantAggregatorPaymentModeDetails
2739
2249
  * @summary: Update merchant aggregator payment mode
2740
- * @description: update payment gateway and it's payment mode and it's sub payment mode details like for razorpay update active/inactive payment modes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/patchMerchantAggregatorPaymentModeDetails/).
2250
+ * @description: update payment gateway and it's payment mode and it's sub payment mode details like for razorpay update active/inactive payment modes. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/patchMerchantAggregatorPaymentModeDetails/).
2741
2251
  */
2742
2252
  async patchMerchantAggregatorPaymentModeDetails(
2743
2253
  { aggregatorId, body, requestHeaders } = { requestHeaders: {} },
@@ -2792,7 +2302,7 @@ class Payment {
2792
2302
 
2793
2303
  const {
2794
2304
  error: res_error,
2795
- } = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
2305
+ } = PaymentPlatformModel.PlatformPaymentModeDetails().validate(
2796
2306
  responseData,
2797
2307
  { abortEarly: false, allowUnknown: true }
2798
2308
  );
@@ -2817,11 +2327,11 @@ class Payment {
2817
2327
  *
2818
2328
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2819
2329
  * @param {import("../PlatformAPIClient").Options} - Options
2820
- * @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
2330
+ * @returns {Promise<PaymentPlatformModel.PlatformPaymentModeDetails>} -
2821
2331
  * Success response
2822
2332
  * @name patchMerchantPaymentOption
2823
2333
  * @summary: Update payment gateways and payment mode
2824
- * @description: Updated online/offline payment as active/inactive like disable offline payment mode will disable offline payment modes on checkout page on merchant's website - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/patchMerchantPaymentOption/).
2334
+ * @description: Updated online/offline payment as active/inactive like disable offline payment mode will disable offline payment modes on checkout page on merchant's website - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/patchMerchantPaymentOption/).
2825
2335
  */
2826
2336
  async patchMerchantPaymentOption(
2827
2337
  { body, requestHeaders } = { requestHeaders: {} },
@@ -2874,7 +2384,7 @@ class Payment {
2874
2384
 
2875
2385
  const {
2876
2386
  error: res_error,
2877
- } = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
2387
+ } = PaymentPlatformModel.PlatformPaymentModeDetails().validate(
2878
2388
  responseData,
2879
2389
  { abortEarly: false, allowUnknown: true }
2880
2390
  );
@@ -2899,11 +2409,11 @@ class Payment {
2899
2409
  *
2900
2410
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2901
2411
  * @param {import("../PlatformAPIClient").Options} - Options
2902
- * @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
2412
+ * @returns {Promise<PaymentPlatformModel.PlatformPaymentModeDetails>} -
2903
2413
  * Success response
2904
2414
  * @name patchMerchantPaymentOptionVersion
2905
2415
  * @summary: Update app version for Aggrgator
2906
- * @description: Update app version required for Payment Mode or sub payment mode for an Aggregator.if merchant required any PG payment mode after certain version for mobile app. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/patchMerchantPaymentOptionVersion/).
2416
+ * @description: Update app version required for Payment Mode or sub payment mode for an Aggregator.if merchant required any PG payment mode after certain version for mobile app. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/patchMerchantPaymentOptionVersion/).
2907
2417
  */
2908
2418
  async patchMerchantPaymentOptionVersion(
2909
2419
  { aggregatorId, body, requestHeaders } = { requestHeaders: {} },
@@ -2958,7 +2468,7 @@ class Payment {
2958
2468
 
2959
2469
  const {
2960
2470
  error: res_error,
2961
- } = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
2471
+ } = PaymentPlatformModel.PlatformPaymentModeDetails().validate(
2962
2472
  responseData,
2963
2473
  { abortEarly: false, allowUnknown: true }
2964
2474
  );
@@ -2983,12 +2493,12 @@ class Payment {
2983
2493
  *
2984
2494
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
2985
2495
  * @param {import("../PlatformAPIClient").Options} - Options
2986
- * @returns {Promise<PaymentPlatformModel.PaymentStatusBulkHandlerResponse>}
2496
+ * @returns {Promise<PaymentPlatformModel.PaymentStatusBulkHandlerDetails>}
2987
2497
  * - Success response
2988
2498
  *
2989
2499
  * @name paymentStatusBulk
2990
2500
  * @summary: Retrieve status of multiple payments in bulk
2991
- * @description: Retrieve status of multiple payments in bulk and returns the status of each payment along with associated details such as payment ID, amount, currency, status, payment mode, and payment gateway in the response - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/paymentStatusBulk/).
2501
+ * @description: Retrieve status of multiple payments in bulk and returns the status of each payment along with associated details such as payment ID, amount, currency, status, payment mode, and payment gateway in the response - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/paymentStatusBulk/).
2992
2502
  */
2993
2503
  async paymentStatusBulk(
2994
2504
  { body, requestHeaders } = { requestHeaders: {} },
@@ -3041,7 +2551,7 @@ class Payment {
3041
2551
 
3042
2552
  const {
3043
2553
  error: res_error,
3044
- } = PaymentPlatformModel.PaymentStatusBulkHandlerResponse().validate(
2554
+ } = PaymentPlatformModel.PaymentStatusBulkHandlerDetails().validate(
3045
2555
  responseData,
3046
2556
  { abortEarly: false, allowUnknown: true }
3047
2557
  );
@@ -3066,11 +2576,11 @@ class Payment {
3066
2576
  *
3067
2577
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3068
2578
  * @param {import("../PlatformAPIClient").Options} - Options
3069
- * @returns {Promise<PaymentPlatformModel.PollingPaymentLinkResponse>} -
2579
+ * @returns {Promise<PaymentPlatformModel.PollingPaymentLinkDetails>} -
3070
2580
  * Success response
3071
2581
  * @name pollingPaymentLink
3072
2582
  * @summary: Poll status of payment link
3073
- * @description: Periodically checks the status of a payment link to monitor for any updates or changes.retrieve 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/platform/payment/pollingPaymentLink/).
2583
+ * @description: Periodically checks the status of a payment link to monitor for any updates or changes.retrieve 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/platform/payment/pollingPaymentLink/).
3074
2584
  */
3075
2585
  async pollingPaymentLink(
3076
2586
  { paymentLinkId, requestHeaders } = { requestHeaders: {} },
@@ -3124,7 +2634,7 @@ class Payment {
3124
2634
 
3125
2635
  const {
3126
2636
  error: res_error,
3127
- } = PaymentPlatformModel.PollingPaymentLinkResponse().validate(
2637
+ } = PaymentPlatformModel.PollingPaymentLinkDetails().validate(
3128
2638
  responseData,
3129
2639
  { abortEarly: false, allowUnknown: true }
3130
2640
  );
@@ -3144,21 +2654,24 @@ class Payment {
3144
2654
  }
3145
2655
 
3146
2656
  /**
3147
- * @param {PaymentPlatformApplicationValidator.RepaymentDetailsParam} arg - Arg object
2657
+ * @param {PaymentPlatformApplicationValidator.ResendOrCancelPaymentParam} arg
2658
+ * - Arg object
2659
+ *
3148
2660
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3149
2661
  * @param {import("../PlatformAPIClient").Options} - Options
3150
- * @returns {Promise<PaymentPlatformModel.RepaymentResponse>} - Success response
3151
- * @name repaymentDetails
3152
- * @summary: Repayment details for BNPL
3153
- * @description: Retrieve repayment details for Buy Now Pay Later (BNPL) payment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/repaymentDetails/).
2662
+ * @returns {Promise<PaymentPlatformModel.ResendOrCancelPaymentDetails>} -
2663
+ * Success response
2664
+ * @name resendOrCancelPayment
2665
+ * @summary: Resend or cancel payment
2666
+ * @description: Enable you to perform actions related to the resending and cancellation of payment links through SMS or EMAIL. 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/platform/payment/resendOrCancelPayment/).
3154
2667
  */
3155
- async repaymentDetails(
2668
+ async resendOrCancelPayment(
3156
2669
  { body, requestHeaders } = { requestHeaders: {} },
3157
2670
  { responseHeaders } = { responseHeaders: false }
3158
2671
  ) {
3159
2672
  const {
3160
2673
  error,
3161
- } = PaymentPlatformApplicationValidator.repaymentDetails().validate(
2674
+ } = PaymentPlatformApplicationValidator.resendOrCancelPayment().validate(
3162
2675
  {
3163
2676
  body,
3164
2677
  },
@@ -3171,7 +2684,7 @@ class Payment {
3171
2684
  // Showing warrnings if extra unknown parameters are found
3172
2685
  const {
3173
2686
  error: warrning,
3174
- } = PaymentPlatformApplicationValidator.repaymentDetails().validate(
2687
+ } = PaymentPlatformApplicationValidator.resendOrCancelPayment().validate(
3175
2688
  {
3176
2689
  body,
3177
2690
  },
@@ -3180,7 +2693,7 @@ class Payment {
3180
2693
  if (warrning) {
3181
2694
  Logger({
3182
2695
  level: "WARN",
3183
- message: `Parameter Validation warrnings for platform > Payment > repaymentDetails \n ${warrning}`,
2696
+ message: `Parameter Validation warrnings for platform > Payment > resendOrCancelPayment \n ${warrning}`,
3184
2697
  });
3185
2698
  }
3186
2699
 
@@ -3189,7 +2702,7 @@ class Payment {
3189
2702
  const response = await PlatformAPIClient.execute(
3190
2703
  this.config,
3191
2704
  "post",
3192
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/repayment-details`,
2705
+ `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/cancel`,
3193
2706
  query_params,
3194
2707
  body,
3195
2708
  requestHeaders,
@@ -3203,10 +2716,10 @@ class Payment {
3203
2716
 
3204
2717
  const {
3205
2718
  error: res_error,
3206
- } = PaymentPlatformModel.RepaymentResponse().validate(responseData, {
3207
- abortEarly: false,
3208
- allowUnknown: true,
3209
- });
2719
+ } = PaymentPlatformModel.ResendOrCancelPaymentDetails().validate(
2720
+ responseData,
2721
+ { abortEarly: false, allowUnknown: true }
2722
+ );
3210
2723
 
3211
2724
  if (res_error) {
3212
2725
  if (this.config.options.strictResponseCheck === true) {
@@ -3214,7 +2727,7 @@ class Payment {
3214
2727
  } else {
3215
2728
  Logger({
3216
2729
  level: "WARN",
3217
- message: `Response Validation Warnings for platform > Payment > repaymentDetails \n ${res_error}`,
2730
+ message: `Response Validation Warnings for platform > Payment > resendOrCancelPayment \n ${res_error}`,
3218
2731
  });
3219
2732
  }
3220
2733
  }
@@ -3223,24 +2736,24 @@ class Payment {
3223
2736
  }
3224
2737
 
3225
2738
  /**
3226
- * @param {PaymentPlatformApplicationValidator.ResendOrCancelPaymentParam} arg
2739
+ * @param {PaymentPlatformApplicationValidator.ResendPaymentLinkParam} arg
3227
2740
  * - Arg object
3228
2741
  *
3229
2742
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3230
2743
  * @param {import("../PlatformAPIClient").Options} - Options
3231
- * @returns {Promise<PaymentPlatformModel.ResendOrCancelPaymentResponse>} -
2744
+ * @returns {Promise<PaymentPlatformModel.ResendPaymentLinkDetails>} -
3232
2745
  * Success response
3233
- * @name resendOrCancelPayment
3234
- * @summary: Resend or cancel payment
3235
- * @description: Enable you to perform actions related to the resending and cancellation of payment links through SMS or EMAIL. 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/platform/payment/resendOrCancelPayment/).
2746
+ * @name resendPaymentLink
2747
+ * @summary: Resend payment link
2748
+ * @description: Resends an existing payment link to the user to complete the payment. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/resendPaymentLink/).
3236
2749
  */
3237
- async resendOrCancelPayment(
2750
+ async resendPaymentLink(
3238
2751
  { body, requestHeaders } = { requestHeaders: {} },
3239
2752
  { responseHeaders } = { responseHeaders: false }
3240
2753
  ) {
3241
2754
  const {
3242
2755
  error,
3243
- } = PaymentPlatformApplicationValidator.resendOrCancelPayment().validate(
2756
+ } = PaymentPlatformApplicationValidator.resendPaymentLink().validate(
3244
2757
  {
3245
2758
  body,
3246
2759
  },
@@ -3253,7 +2766,7 @@ class Payment {
3253
2766
  // Showing warrnings if extra unknown parameters are found
3254
2767
  const {
3255
2768
  error: warrning,
3256
- } = PaymentPlatformApplicationValidator.resendOrCancelPayment().validate(
2769
+ } = PaymentPlatformApplicationValidator.resendPaymentLink().validate(
3257
2770
  {
3258
2771
  body,
3259
2772
  },
@@ -3262,7 +2775,7 @@ class Payment {
3262
2775
  if (warrning) {
3263
2776
  Logger({
3264
2777
  level: "WARN",
3265
- message: `Parameter Validation warrnings for platform > Payment > resendOrCancelPayment \n ${warrning}`,
2778
+ message: `Parameter Validation warrnings for platform > Payment > resendPaymentLink \n ${warrning}`,
3266
2779
  });
3267
2780
  }
3268
2781
 
@@ -3271,7 +2784,7 @@ class Payment {
3271
2784
  const response = await PlatformAPIClient.execute(
3272
2785
  this.config,
3273
2786
  "post",
3274
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/cancel`,
2787
+ `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/resend-payment-link/`,
3275
2788
  query_params,
3276
2789
  body,
3277
2790
  requestHeaders,
@@ -3285,10 +2798,10 @@ class Payment {
3285
2798
 
3286
2799
  const {
3287
2800
  error: res_error,
3288
- } = PaymentPlatformModel.ResendOrCancelPaymentResponse().validate(
3289
- responseData,
3290
- { abortEarly: false, allowUnknown: true }
3291
- );
2801
+ } = PaymentPlatformModel.ResendPaymentLinkDetails().validate(responseData, {
2802
+ abortEarly: false,
2803
+ allowUnknown: true,
2804
+ });
3292
2805
 
3293
2806
  if (res_error) {
3294
2807
  if (this.config.options.strictResponseCheck === true) {
@@ -3296,7 +2809,7 @@ class Payment {
3296
2809
  } else {
3297
2810
  Logger({
3298
2811
  level: "WARN",
3299
- message: `Response Validation Warnings for platform > Payment > resendOrCancelPayment \n ${res_error}`,
2812
+ message: `Response Validation Warnings for platform > Payment > resendPaymentLink \n ${res_error}`,
3300
2813
  });
3301
2814
  }
3302
2815
  }
@@ -3305,26 +2818,23 @@ class Payment {
3305
2818
  }
3306
2819
 
3307
2820
  /**
3308
- * @param {PaymentPlatformApplicationValidator.ResendPaymentLinkParam} arg
3309
- * - Arg object
3310
- *
2821
+ * @param {PaymentPlatformApplicationValidator.RevokeOauthTokenParam} arg - Arg object
3311
2822
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3312
2823
  * @param {import("../PlatformAPIClient").Options} - Options
3313
- * @returns {Promise<PaymentPlatformModel.ResendPaymentLinkResponse>} -
3314
- * Success response
3315
- * @name resendPaymentLink
3316
- * @summary: Resend payment link
3317
- * @description: Resends an existing payment link to the user to complete the payment. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/resendPaymentLink/).
2824
+ * @returns {Promise<PaymentPlatformModel.RevokeOAuthToken>} - Success response
2825
+ * @name revokeOauthToken
2826
+ * @summary: Revoke OAuth token
2827
+ * @description: Revoke the creds for payment aggregator razropay. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/revokeOauthToken/).
3318
2828
  */
3319
- async resendPaymentLink(
3320
- { body, requestHeaders } = { requestHeaders: {} },
2829
+ async revokeOauthToken(
2830
+ { aggregator, requestHeaders } = { requestHeaders: {} },
3321
2831
  { responseHeaders } = { responseHeaders: false }
3322
2832
  ) {
3323
2833
  const {
3324
2834
  error,
3325
- } = PaymentPlatformApplicationValidator.resendPaymentLink().validate(
2835
+ } = PaymentPlatformApplicationValidator.revokeOauthToken().validate(
3326
2836
  {
3327
- body,
2837
+ aggregator,
3328
2838
  },
3329
2839
  { abortEarly: false, allowUnknown: true }
3330
2840
  );
@@ -3335,16 +2845,16 @@ class Payment {
3335
2845
  // Showing warrnings if extra unknown parameters are found
3336
2846
  const {
3337
2847
  error: warrning,
3338
- } = PaymentPlatformApplicationValidator.resendPaymentLink().validate(
2848
+ } = PaymentPlatformApplicationValidator.revokeOauthToken().validate(
3339
2849
  {
3340
- body,
2850
+ aggregator,
3341
2851
  },
3342
2852
  { abortEarly: false, allowUnknown: false }
3343
2853
  );
3344
2854
  if (warrning) {
3345
2855
  Logger({
3346
2856
  level: "WARN",
3347
- message: `Parameter Validation warrnings for platform > Payment > resendPaymentLink \n ${warrning}`,
2857
+ message: `Parameter Validation warrnings for platform > Payment > revokeOauthToken \n ${warrning}`,
3348
2858
  });
3349
2859
  }
3350
2860
 
@@ -3353,9 +2863,9 @@ class Payment {
3353
2863
  const response = await PlatformAPIClient.execute(
3354
2864
  this.config,
3355
2865
  "post",
3356
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/resend-payment-link/`,
2866
+ `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/revoke/${aggregator}/`,
3357
2867
  query_params,
3358
- body,
2868
+ undefined,
3359
2869
  requestHeaders,
3360
2870
  { responseHeaders }
3361
2871
  );
@@ -3367,10 +2877,10 @@ class Payment {
3367
2877
 
3368
2878
  const {
3369
2879
  error: res_error,
3370
- } = PaymentPlatformModel.ResendPaymentLinkResponse().validate(
3371
- responseData,
3372
- { abortEarly: false, allowUnknown: true }
3373
- );
2880
+ } = PaymentPlatformModel.RevokeOAuthToken().validate(responseData, {
2881
+ abortEarly: false,
2882
+ allowUnknown: true,
2883
+ });
3374
2884
 
3375
2885
  if (res_error) {
3376
2886
  if (this.config.options.strictResponseCheck === true) {
@@ -3378,7 +2888,7 @@ class Payment {
3378
2888
  } else {
3379
2889
  Logger({
3380
2890
  level: "WARN",
3381
- message: `Response Validation Warnings for platform > Payment > resendPaymentLink \n ${res_error}`,
2891
+ message: `Response Validation Warnings for platform > Payment > revokeOauthToken \n ${res_error}`,
3382
2892
  });
3383
2893
  }
3384
2894
  }
@@ -3387,23 +2897,26 @@ class Payment {
3387
2897
  }
3388
2898
 
3389
2899
  /**
3390
- * @param {PaymentPlatformApplicationValidator.RevokeOauthTokenParam} arg - Arg object
2900
+ * @param {PaymentPlatformApplicationValidator.SaveBrandPaymentGatewayConfigParam} arg
2901
+ * - Arg object
2902
+ *
3391
2903
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3392
2904
  * @param {import("../PlatformAPIClient").Options} - Options
3393
- * @returns {Promise<PaymentPlatformModel.RevokeOAuthToken>} - Success response
3394
- * @name revokeOauthToken
3395
- * @summary: Revoke OAuth token
3396
- * @description: Revoke the creds for payment aggregator razropay. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/revokeOauthToken/).
2905
+ * @returns {Promise<PaymentPlatformModel.PaymentGatewayToBeReviewed>} -
2906
+ * Success response
2907
+ * @name saveBrandPaymentGatewayConfig
2908
+ * @summary: Save brand payment gateway config
2909
+ * @description: Store and update configuration settings for brand payment gateways i.e required for payment for a payment gateway like key, secret, merchant salt. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/saveBrandPaymentGatewayConfig/).
3397
2910
  */
3398
- async revokeOauthToken(
3399
- { aggregator, requestHeaders } = { requestHeaders: {} },
2911
+ async saveBrandPaymentGatewayConfig(
2912
+ { body, requestHeaders } = { requestHeaders: {} },
3400
2913
  { responseHeaders } = { responseHeaders: false }
3401
2914
  ) {
3402
2915
  const {
3403
2916
  error,
3404
- } = PaymentPlatformApplicationValidator.revokeOauthToken().validate(
2917
+ } = PaymentPlatformApplicationValidator.saveBrandPaymentGatewayConfig().validate(
3405
2918
  {
3406
- aggregator,
2919
+ body,
3407
2920
  },
3408
2921
  { abortEarly: false, allowUnknown: true }
3409
2922
  );
@@ -3414,16 +2927,16 @@ class Payment {
3414
2927
  // Showing warrnings if extra unknown parameters are found
3415
2928
  const {
3416
2929
  error: warrning,
3417
- } = PaymentPlatformApplicationValidator.revokeOauthToken().validate(
2930
+ } = PaymentPlatformApplicationValidator.saveBrandPaymentGatewayConfig().validate(
3418
2931
  {
3419
- aggregator,
2932
+ body,
3420
2933
  },
3421
2934
  { abortEarly: false, allowUnknown: false }
3422
2935
  );
3423
2936
  if (warrning) {
3424
2937
  Logger({
3425
2938
  level: "WARN",
3426
- message: `Parameter Validation warrnings for platform > Payment > revokeOauthToken \n ${warrning}`,
2939
+ message: `Parameter Validation warrnings for platform > Payment > saveBrandPaymentGatewayConfig \n ${warrning}`,
3427
2940
  });
3428
2941
  }
3429
2942
 
@@ -3432,9 +2945,9 @@ class Payment {
3432
2945
  const response = await PlatformAPIClient.execute(
3433
2946
  this.config,
3434
2947
  "post",
3435
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/revoke/${aggregator}/`,
2948
+ `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/aggregator/request`,
3436
2949
  query_params,
3437
- undefined,
2950
+ body,
3438
2951
  requestHeaders,
3439
2952
  { responseHeaders }
3440
2953
  );
@@ -3446,10 +2959,10 @@ class Payment {
3446
2959
 
3447
2960
  const {
3448
2961
  error: res_error,
3449
- } = PaymentPlatformModel.RevokeOAuthToken().validate(responseData, {
3450
- abortEarly: false,
3451
- allowUnknown: true,
3452
- });
2962
+ } = PaymentPlatformModel.PaymentGatewayToBeReviewed().validate(
2963
+ responseData,
2964
+ { abortEarly: false, allowUnknown: true }
2965
+ );
3453
2966
 
3454
2967
  if (res_error) {
3455
2968
  if (this.config.options.strictResponseCheck === true) {
@@ -3457,7 +2970,7 @@ class Payment {
3457
2970
  } else {
3458
2971
  Logger({
3459
2972
  level: "WARN",
3460
- message: `Response Validation Warnings for platform > Payment > revokeOauthToken \n ${res_error}`,
2973
+ message: `Response Validation Warnings for platform > Payment > saveBrandPaymentGatewayConfig \n ${res_error}`,
3461
2974
  });
3462
2975
  }
3463
2976
  }
@@ -3466,25 +2979,25 @@ class Payment {
3466
2979
  }
3467
2980
 
3468
2981
  /**
3469
- * @param {PaymentPlatformApplicationValidator.SaveBrandPaymentGatewayConfigParam} arg
2982
+ * @param {PaymentPlatformApplicationValidator.SaveTokenForAggregatorParam} arg
3470
2983
  * - Arg object
3471
2984
  *
3472
2985
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3473
2986
  * @param {import("../PlatformAPIClient").Options} - Options
3474
- * @returns {Promise<PaymentPlatformModel.PaymentGatewayToBeReviewed>} -
3475
- * Success response
3476
- * @name saveBrandPaymentGatewayConfig
3477
- * @summary: Save brand payment gateway config
3478
- * @description: Store and update configuration settings for brand payment gateways i.e required for payment for a payment gateway like key, secret, merchant salt. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/saveBrandPaymentGatewayConfig/).
2987
+ * @returns {Promise<PaymentPlatformModel.OperationResponseSchema>} - Success response
2988
+ * @name saveTokenForAggregator
2989
+ * @summary: Save token details for a payment aggregator
2990
+ * @description: Save token and verification status for a specific payment aggregator, such as Apple Pay or others. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/saveTokenForAggregator/).
3479
2991
  */
3480
- async saveBrandPaymentGatewayConfig(
3481
- { body, requestHeaders } = { requestHeaders: {} },
2992
+ async saveTokenForAggregator(
2993
+ { aggregatorId, body, requestHeaders } = { requestHeaders: {} },
3482
2994
  { responseHeaders } = { responseHeaders: false }
3483
2995
  ) {
3484
2996
  const {
3485
2997
  error,
3486
- } = PaymentPlatformApplicationValidator.saveBrandPaymentGatewayConfig().validate(
2998
+ } = PaymentPlatformApplicationValidator.saveTokenForAggregator().validate(
3487
2999
  {
3000
+ aggregatorId,
3488
3001
  body,
3489
3002
  },
3490
3003
  { abortEarly: false, allowUnknown: true }
@@ -3496,8 +3009,9 @@ class Payment {
3496
3009
  // Showing warrnings if extra unknown parameters are found
3497
3010
  const {
3498
3011
  error: warrning,
3499
- } = PaymentPlatformApplicationValidator.saveBrandPaymentGatewayConfig().validate(
3012
+ } = PaymentPlatformApplicationValidator.saveTokenForAggregator().validate(
3500
3013
  {
3014
+ aggregatorId,
3501
3015
  body,
3502
3016
  },
3503
3017
  { abortEarly: false, allowUnknown: false }
@@ -3505,7 +3019,7 @@ class Payment {
3505
3019
  if (warrning) {
3506
3020
  Logger({
3507
3021
  level: "WARN",
3508
- message: `Parameter Validation warrnings for platform > Payment > saveBrandPaymentGatewayConfig \n ${warrning}`,
3022
+ message: `Parameter Validation warrnings for platform > Payment > saveTokenForAggregator \n ${warrning}`,
3509
3023
  });
3510
3024
  }
3511
3025
 
@@ -3514,7 +3028,7 @@ class Payment {
3514
3028
  const response = await PlatformAPIClient.execute(
3515
3029
  this.config,
3516
3030
  "post",
3517
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/aggregator/request`,
3031
+ `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/aggregators/${aggregatorId}/token`,
3518
3032
  query_params,
3519
3033
  body,
3520
3034
  requestHeaders,
@@ -3528,10 +3042,10 @@ class Payment {
3528
3042
 
3529
3043
  const {
3530
3044
  error: res_error,
3531
- } = PaymentPlatformModel.PaymentGatewayToBeReviewed().validate(
3532
- responseData,
3533
- { abortEarly: false, allowUnknown: true }
3534
- );
3045
+ } = PaymentPlatformModel.OperationResponseSchema().validate(responseData, {
3046
+ abortEarly: false,
3047
+ allowUnknown: true,
3048
+ });
3535
3049
 
3536
3050
  if (res_error) {
3537
3051
  if (this.config.options.strictResponseCheck === true) {
@@ -3539,7 +3053,7 @@ class Payment {
3539
3053
  } else {
3540
3054
  Logger({
3541
3055
  level: "WARN",
3542
- message: `Response Validation Warnings for platform > Payment > saveBrandPaymentGatewayConfig \n ${res_error}`,
3056
+ message: `Response Validation Warnings for platform > Payment > saveTokenForAggregator \n ${res_error}`,
3543
3057
  });
3544
3058
  }
3545
3059
  }
@@ -3553,11 +3067,11 @@ class Payment {
3553
3067
  *
3554
3068
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3555
3069
  * @param {import("../PlatformAPIClient").Options} - Options
3556
- * @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
3070
+ * @returns {Promise<PaymentPlatformModel.PlatformPaymentModeDetails>} -
3557
3071
  * Success response
3558
3072
  * @name setMerchantModeControlRoutes
3559
3073
  * @summary: Update offline payment mode
3560
- * @description: Update offline payment mode details for the merchant like update for cod offline payment mode get user level cod limit, order level cod limit, cod charge, enable/disable device for cod. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/setMerchantModeControlRoutes/).
3074
+ * @description: Update offline payment mode details for the merchant like update for cod offline payment mode get user level cod limit, order level cod limit, cod charge, enable/disable device for cod. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/setMerchantModeControlRoutes/).
3561
3075
  */
3562
3076
  async setMerchantModeControlRoutes(
3563
3077
  { mode, body, requestHeaders } = { requestHeaders: {} },
@@ -3612,7 +3126,7 @@ class Payment {
3612
3126
 
3613
3127
  const {
3614
3128
  error: res_error,
3615
- } = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
3129
+ } = PaymentPlatformModel.PlatformPaymentModeDetails().validate(
3616
3130
  responseData,
3617
3131
  { abortEarly: false, allowUnknown: true }
3618
3132
  );
@@ -3642,7 +3156,7 @@ class Payment {
3642
3156
  *
3643
3157
  * @name setPaymentModeCustomConfig
3644
3158
  * @summary: Update advance payment custom configurations
3645
- * @description: Allows merchants to modify specific details of advance payment custom configurations tailored to their business requirements. By providing the company ID, application ID, and payment mode, merchants can update settings such as minimum order value, customer restrictions, and available payment modes for both pre-order and post-order transactions - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/setPaymentModeCustomConfig/).
3159
+ * @description: Allows merchants to modify specific details of advance payment custom configurations tailored to their business requirements. By providing the company ID, application ID, and payment mode, merchants can update settings such as minimum order value, customer restrictions, and available payment modes for both pre-order and post-order transactions - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/setPaymentModeCustomConfig/).
3646
3160
  */
3647
3161
  async setPaymentModeCustomConfig(
3648
3162
  { mode, body, requestHeaders } = { requestHeaders: {} },
@@ -3722,10 +3236,10 @@ class Payment {
3722
3236
  *
3723
3237
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3724
3238
  * @param {import("../PlatformAPIClient").Options} - Options
3725
- * @returns {Promise<PaymentPlatformModel.SetCODOptionResponse>} - Success response
3239
+ * @returns {Promise<PaymentPlatformModel.SetCODOptionDetails>} - Success response
3726
3240
  * @name setUserCODlimitRoutes
3727
3241
  * @summary: Set user COD
3728
- * @description: This allows access to seller to enable disable cod of specific user - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/setUserCODlimitRoutes/).
3242
+ * @description: This allows access to seller to enable disable cod of specific user - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/setUserCODlimitRoutes/).
3729
3243
  */
3730
3244
  async setUserCODlimitRoutes(
3731
3245
  { body, requestHeaders } = { requestHeaders: {} },
@@ -3778,7 +3292,7 @@ class Payment {
3778
3292
 
3779
3293
  const {
3780
3294
  error: res_error,
3781
- } = PaymentPlatformModel.SetCODOptionResponse().validate(responseData, {
3295
+ } = PaymentPlatformModel.SetCODOptionDetails().validate(responseData, {
3782
3296
  abortEarly: false,
3783
3297
  allowUnknown: true,
3784
3298
  });
@@ -3798,22 +3312,25 @@ class Payment {
3798
3312
  }
3799
3313
 
3800
3314
  /**
3801
- * @param {PaymentPlatformApplicationValidator.UpdateEdcDeviceParam} arg - Arg object
3315
+ * @param {PaymentPlatformApplicationValidator.UpdateMerchantRefundPriorityParam} arg
3316
+ * - Arg object
3317
+ *
3802
3318
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3803
3319
  * @param {import("../PlatformAPIClient").Options} - Options
3804
- * @returns {Promise<PaymentPlatformModel.EdcDeviceAddResponse>} - Success response
3805
- * @name updateEdcDevice
3806
- * @summary: Update EDC device
3807
- * @description: Enables the modification of settings and details associated with an Electronic Data Capture (EDC) device linked to a specific application within a company. Upon success, it returns the updated information of the EDC device. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateEdcDevice/).
3320
+ * @returns {Promise<PaymentPlatformModel.RefundPriorityDetails>} - Success response
3321
+ * @name updateMerchantRefundPriority
3322
+ * @summary: Update merchant refund priority
3323
+ * @description: Update merchant refund priority configurations, with the provided refund sources priority details, and return the status of the operation. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/updateMerchantRefundPriority/).
3808
3324
  */
3809
- async updateEdcDevice(
3810
- { body, requestHeaders } = { requestHeaders: {} },
3325
+ async updateMerchantRefundPriority(
3326
+ { configType, body, requestHeaders } = { requestHeaders: {} },
3811
3327
  { responseHeaders } = { responseHeaders: false }
3812
3328
  ) {
3813
3329
  const {
3814
3330
  error,
3815
- } = PaymentPlatformApplicationValidator.updateEdcDevice().validate(
3331
+ } = PaymentPlatformApplicationValidator.updateMerchantRefundPriority().validate(
3816
3332
  {
3333
+ configType,
3817
3334
  body,
3818
3335
  },
3819
3336
  { abortEarly: false, allowUnknown: true }
@@ -3825,8 +3342,9 @@ class Payment {
3825
3342
  // Showing warrnings if extra unknown parameters are found
3826
3343
  const {
3827
3344
  error: warrning,
3828
- } = PaymentPlatformApplicationValidator.updateEdcDevice().validate(
3345
+ } = PaymentPlatformApplicationValidator.updateMerchantRefundPriority().validate(
3829
3346
  {
3347
+ configType,
3830
3348
  body,
3831
3349
  },
3832
3350
  { abortEarly: false, allowUnknown: false }
@@ -3834,7 +3352,7 @@ class Payment {
3834
3352
  if (warrning) {
3835
3353
  Logger({
3836
3354
  level: "WARN",
3837
- message: `Parameter Validation warrnings for platform > Payment > updateEdcDevice \n ${warrning}`,
3355
+ message: `Parameter Validation warrnings for platform > Payment > updateMerchantRefundPriority \n ${warrning}`,
3838
3356
  });
3839
3357
  }
3840
3358
 
@@ -3842,8 +3360,8 @@ class Payment {
3842
3360
 
3843
3361
  const response = await PlatformAPIClient.execute(
3844
3362
  this.config,
3845
- "post",
3846
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/edc-device`,
3363
+ "put",
3364
+ `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund_priority/config/${configType}`,
3847
3365
  query_params,
3848
3366
  body,
3849
3367
  requestHeaders,
@@ -3857,7 +3375,7 @@ class Payment {
3857
3375
 
3858
3376
  const {
3859
3377
  error: res_error,
3860
- } = PaymentPlatformModel.EdcDeviceAddResponse().validate(responseData, {
3378
+ } = PaymentPlatformModel.RefundPriorityDetails().validate(responseData, {
3861
3379
  abortEarly: false,
3862
3380
  allowUnknown: true,
3863
3381
  });
@@ -3868,7 +3386,7 @@ class Payment {
3868
3386
  } else {
3869
3387
  Logger({
3870
3388
  level: "WARN",
3871
- message: `Response Validation Warnings for platform > Payment > updateEdcDevice \n ${res_error}`,
3389
+ message: `Response Validation Warnings for platform > Payment > updateMerchantRefundPriority \n ${res_error}`,
3872
3390
  });
3873
3391
  }
3874
3392
  }
@@ -3877,27 +3395,26 @@ class Payment {
3877
3395
  }
3878
3396
 
3879
3397
  /**
3880
- * @param {PaymentPlatformApplicationValidator.UpdateMerchantRefundPriorityParam} arg
3398
+ * @param {PaymentPlatformApplicationValidator.UpdatePaymentSessionParam} arg
3881
3399
  * - Arg object
3882
3400
  *
3883
3401
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3884
3402
  * @param {import("../PlatformAPIClient").Options} - Options
3885
- * @returns {Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>}
3886
- * - Success response
3887
- *
3888
- * @name updateMerchantRefundPriority
3889
- * @summary: Update merchant refund priority
3890
- * @description: Update merchant refund priority configurations, with the provided refund sources priority details, and return the status of the operation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateMerchantRefundPriority/).
3403
+ * @returns {Promise<PaymentPlatformModel.PaymentSessionPutDetails>} -
3404
+ * Success response
3405
+ * @name updatePaymentSession
3406
+ * @summary: Update payment session
3407
+ * @description: Update the details of a payment session associated with a given order ID or transaction ID. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/updatePaymentSession/).
3891
3408
  */
3892
- async updateMerchantRefundPriority(
3893
- { configType, body, requestHeaders } = { requestHeaders: {} },
3409
+ async updatePaymentSession(
3410
+ { gid, body, requestHeaders } = { requestHeaders: {} },
3894
3411
  { responseHeaders } = { responseHeaders: false }
3895
3412
  ) {
3896
3413
  const {
3897
3414
  error,
3898
- } = PaymentPlatformApplicationValidator.updateMerchantRefundPriority().validate(
3415
+ } = PaymentPlatformApplicationValidator.updatePaymentSession().validate(
3899
3416
  {
3900
- configType,
3417
+ gid,
3901
3418
  body,
3902
3419
  },
3903
3420
  { abortEarly: false, allowUnknown: true }
@@ -3909,9 +3426,9 @@ class Payment {
3909
3426
  // Showing warrnings if extra unknown parameters are found
3910
3427
  const {
3911
3428
  error: warrning,
3912
- } = PaymentPlatformApplicationValidator.updateMerchantRefundPriority().validate(
3429
+ } = PaymentPlatformApplicationValidator.updatePaymentSession().validate(
3913
3430
  {
3914
- configType,
3431
+ gid,
3915
3432
  body,
3916
3433
  },
3917
3434
  { abortEarly: false, allowUnknown: false }
@@ -3919,7 +3436,7 @@ class Payment {
3919
3436
  if (warrning) {
3920
3437
  Logger({
3921
3438
  level: "WARN",
3922
- message: `Parameter Validation warrnings for platform > Payment > updateMerchantRefundPriority \n ${warrning}`,
3439
+ message: `Parameter Validation warrnings for platform > Payment > updatePaymentSession \n ${warrning}`,
3923
3440
  });
3924
3441
  }
3925
3442
 
@@ -3928,7 +3445,7 @@ class Payment {
3928
3445
  const response = await PlatformAPIClient.execute(
3929
3446
  this.config,
3930
3447
  "put",
3931
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/refund_priority/config/${configType}`,
3448
+ `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/session/${gid}`,
3932
3449
  query_params,
3933
3450
  body,
3934
3451
  requestHeaders,
@@ -3942,10 +3459,10 @@ class Payment {
3942
3459
 
3943
3460
  const {
3944
3461
  error: res_error,
3945
- } = PaymentPlatformModel.RefundPriorityResponseSerializer().validate(
3946
- responseData,
3947
- { abortEarly: false, allowUnknown: true }
3948
- );
3462
+ } = PaymentPlatformModel.PaymentSessionPutDetails().validate(responseData, {
3463
+ abortEarly: false,
3464
+ allowUnknown: true,
3465
+ });
3949
3466
 
3950
3467
  if (res_error) {
3951
3468
  if (this.config.options.strictResponseCheck === true) {
@@ -3953,7 +3470,7 @@ class Payment {
3953
3470
  } else {
3954
3471
  Logger({
3955
3472
  level: "WARN",
3956
- message: `Response Validation Warnings for platform > Payment > updateMerchantRefundPriority \n ${res_error}`,
3473
+ message: `Response Validation Warnings for platform > Payment > updatePaymentSession \n ${res_error}`,
3957
3474
  });
3958
3475
  }
3959
3476
  }
@@ -3962,27 +3479,26 @@ class Payment {
3962
3479
  }
3963
3480
 
3964
3481
  /**
3965
- * @param {PaymentPlatformApplicationValidator.UpdatePaymentSessionParam} arg
3482
+ * @param {PaymentPlatformApplicationValidator.UpdateRefundSessionParam} arg
3966
3483
  * - Arg object
3967
3484
  *
3968
3485
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
3969
3486
  * @param {import("../PlatformAPIClient").Options} - Options
3970
- * @returns {Promise<PaymentPlatformModel.PaymentSessionResponseSerializer>}
3971
- * - Success response
3972
- *
3973
- * @name updatePaymentSession
3974
- * @summary: Update payment session
3975
- * @description: Update the details of a payment session associated with a given order ID or transaction ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updatePaymentSession/).
3487
+ * @returns {Promise<PaymentPlatformModel.RefundSessionDetails>} - Success response
3488
+ * @name updateRefundSession
3489
+ * @summary: Update refund session
3490
+ * @description: Allows users to update the details of a refund session associated with a specific global identifier (GID) and request ID. - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/updateRefundSession/).
3976
3491
  */
3977
- async updatePaymentSession(
3978
- { gid, body, requestHeaders } = { requestHeaders: {} },
3492
+ async updateRefundSession(
3493
+ { gid, requestId, body, requestHeaders } = { requestHeaders: {} },
3979
3494
  { responseHeaders } = { responseHeaders: false }
3980
3495
  ) {
3981
3496
  const {
3982
3497
  error,
3983
- } = PaymentPlatformApplicationValidator.updatePaymentSession().validate(
3498
+ } = PaymentPlatformApplicationValidator.updateRefundSession().validate(
3984
3499
  {
3985
3500
  gid,
3501
+ requestId,
3986
3502
  body,
3987
3503
  },
3988
3504
  { abortEarly: false, allowUnknown: true }
@@ -3994,9 +3510,10 @@ class Payment {
3994
3510
  // Showing warrnings if extra unknown parameters are found
3995
3511
  const {
3996
3512
  error: warrning,
3997
- } = PaymentPlatformApplicationValidator.updatePaymentSession().validate(
3513
+ } = PaymentPlatformApplicationValidator.updateRefundSession().validate(
3998
3514
  {
3999
3515
  gid,
3516
+ requestId,
4000
3517
  body,
4001
3518
  },
4002
3519
  { abortEarly: false, allowUnknown: false }
@@ -4004,7 +3521,7 @@ class Payment {
4004
3521
  if (warrning) {
4005
3522
  Logger({
4006
3523
  level: "WARN",
4007
- message: `Parameter Validation warrnings for platform > Payment > updatePaymentSession \n ${warrning}`,
3524
+ message: `Parameter Validation warrnings for platform > Payment > updateRefundSession \n ${warrning}`,
4008
3525
  });
4009
3526
  }
4010
3527
 
@@ -4013,7 +3530,7 @@ class Payment {
4013
3530
  const response = await PlatformAPIClient.execute(
4014
3531
  this.config,
4015
3532
  "put",
4016
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/session/${gid}`,
3533
+ `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/${gid}/refund/session/${requestId}`,
4017
3534
  query_params,
4018
3535
  body,
4019
3536
  requestHeaders,
@@ -4027,10 +3544,10 @@ class Payment {
4027
3544
 
4028
3545
  const {
4029
3546
  error: res_error,
4030
- } = PaymentPlatformModel.PaymentSessionResponseSerializer().validate(
4031
- responseData,
4032
- { abortEarly: false, allowUnknown: true }
4033
- );
3547
+ } = PaymentPlatformModel.RefundSessionDetails().validate(responseData, {
3548
+ abortEarly: false,
3549
+ allowUnknown: true,
3550
+ });
4034
3551
 
4035
3552
  if (res_error) {
4036
3553
  if (this.config.options.strictResponseCheck === true) {
@@ -4038,7 +3555,7 @@ class Payment {
4038
3555
  } else {
4039
3556
  Logger({
4040
3557
  level: "WARN",
4041
- message: `Response Validation Warnings for platform > Payment > updatePaymentSession \n ${res_error}`,
3558
+ message: `Response Validation Warnings for platform > Payment > updateRefundSession \n ${res_error}`,
4042
3559
  });
4043
3560
  }
4044
3561
  }
@@ -4047,28 +3564,25 @@ class Payment {
4047
3564
  }
4048
3565
 
4049
3566
  /**
4050
- * @param {PaymentPlatformApplicationValidator.UpdateRefundSessionParam} arg
3567
+ * @param {PaymentPlatformApplicationValidator.ValidateCustomerAndCreditSummaryParam} arg
4051
3568
  * - Arg object
4052
3569
  *
4053
3570
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4054
3571
  * @param {import("../PlatformAPIClient").Options} - Options
4055
- * @returns {Promise<PaymentPlatformModel.RefundSessionResponseSerializer>}
4056
- * - Success response
4057
- *
4058
- * @name updateRefundSession
4059
- * @summary: Update refund session
4060
- * @description: Allows users to update the details of a refund session associated with a specific global identifier (GID) and request ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateRefundSession/).
3572
+ * @returns {Promise<PaymentPlatformModel.ValidateCustomerCreditSchema>} -
3573
+ * Success response
3574
+ * @name validateCustomerAndCreditSummary
3575
+ * @summary: Verify payment customer and show credit summary
3576
+ * @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/platform/payment/validateCustomerAndCreditSummary/).
4061
3577
  */
4062
- async updateRefundSession(
4063
- { gid, requestId, body, requestHeaders } = { requestHeaders: {} },
3578
+ async validateCustomerAndCreditSummary(
3579
+ { body, requestHeaders } = { requestHeaders: {} },
4064
3580
  { responseHeaders } = { responseHeaders: false }
4065
3581
  ) {
4066
3582
  const {
4067
3583
  error,
4068
- } = PaymentPlatformApplicationValidator.updateRefundSession().validate(
3584
+ } = PaymentPlatformApplicationValidator.validateCustomerAndCreditSummary().validate(
4069
3585
  {
4070
- gid,
4071
- requestId,
4072
3586
  body,
4073
3587
  },
4074
3588
  { abortEarly: false, allowUnknown: true }
@@ -4080,10 +3594,8 @@ class Payment {
4080
3594
  // Showing warrnings if extra unknown parameters are found
4081
3595
  const {
4082
3596
  error: warrning,
4083
- } = PaymentPlatformApplicationValidator.updateRefundSession().validate(
3597
+ } = PaymentPlatformApplicationValidator.validateCustomerAndCreditSummary().validate(
4084
3598
  {
4085
- gid,
4086
- requestId,
4087
3599
  body,
4088
3600
  },
4089
3601
  { abortEarly: false, allowUnknown: false }
@@ -4091,7 +3603,7 @@ class Payment {
4091
3603
  if (warrning) {
4092
3604
  Logger({
4093
3605
  level: "WARN",
4094
- message: `Parameter Validation warrnings for platform > Payment > updateRefundSession \n ${warrning}`,
3606
+ message: `Parameter Validation warrnings for platform > Payment > validateCustomerAndCreditSummary \n ${warrning}`,
4095
3607
  });
4096
3608
  }
4097
3609
 
@@ -4099,8 +3611,8 @@ class Payment {
4099
3611
 
4100
3612
  const response = await PlatformAPIClient.execute(
4101
3613
  this.config,
4102
- "put",
4103
- `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/${gid}/refund/session/${requestId}`,
3614
+ "post",
3615
+ `/service/platform/payment/v1.0/company/${this.config.companyId}/application/${this.applicationId}/payment/validate/customer-credits`,
4104
3616
  query_params,
4105
3617
  body,
4106
3618
  requestHeaders,
@@ -4114,7 +3626,7 @@ class Payment {
4114
3626
 
4115
3627
  const {
4116
3628
  error: res_error,
4117
- } = PaymentPlatformModel.RefundSessionResponseSerializer().validate(
3629
+ } = PaymentPlatformModel.ValidateCustomerCreditSchema().validate(
4118
3630
  responseData,
4119
3631
  { abortEarly: false, allowUnknown: true }
4120
3632
  );
@@ -4125,7 +3637,7 @@ class Payment {
4125
3637
  } else {
4126
3638
  Logger({
4127
3639
  level: "WARN",
4128
- message: `Response Validation Warnings for platform > Payment > updateRefundSession \n ${res_error}`,
3640
+ message: `Response Validation Warnings for platform > Payment > validateCustomerAndCreditSummary \n ${res_error}`,
4129
3641
  });
4130
3642
  }
4131
3643
  }
@@ -4139,11 +3651,10 @@ class Payment {
4139
3651
  *
4140
3652
  * @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
4141
3653
  * @param {import("../PlatformAPIClient").Options} - Options
4142
- * @returns {Promise<PaymentPlatformModel.ValidateCustomerResponse>} -
4143
- * Success response
3654
+ * @returns {Promise<PaymentPlatformModel.ValidateCustomerDetails>} - Success response
4144
3655
  * @name verifyCustomerForPayment
4145
3656
  * @summary: Validate customer for paylater
4146
- * @description: Verify whether the user is eligible for pay-later payment from the payment aggregator's side using the customer's phone number - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/verifyCustomerForPayment/).
3657
+ * @description: Verify whether the user is eligible for pay-later payment from the payment aggregator's side using the customer's phone number - Check out [method documentation](https://docs.fynd.com/partners/commerce/sdk/platform/payment/verifyCustomerForPayment/).
4147
3658
  */
4148
3659
  async verifyCustomerForPayment(
4149
3660
  { body, requestHeaders } = { requestHeaders: {} },
@@ -4196,7 +3707,7 @@ class Payment {
4196
3707
 
4197
3708
  const {
4198
3709
  error: res_error,
4199
- } = PaymentPlatformModel.ValidateCustomerResponse().validate(responseData, {
3710
+ } = PaymentPlatformModel.ValidateCustomerDetails().validate(responseData, {
4200
3711
  abortEarly: false,
4201
3712
  allowUnknown: true,
4202
3713
  });