@gofynd/fdk-client-javascript 1.4.15-beta.3 → 1.4.15-beta.5
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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +48 -68
- package/sdk/application/Cart/CartApplicationClient.js +304 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +58 -59
- package/sdk/application/Catalog/CatalogApplicationClient.js +437 -30
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +22 -1
- package/sdk/application/Communication/CommunicationApplicationClient.js +29 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +20 -20
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +157 -10
- package/sdk/application/Content/ContentApplicationClient.d.ts +30 -19
- package/sdk/application/Content/ContentApplicationClient.js +297 -28
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -8
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +50 -7
- package/sdk/application/Lead/LeadApplicationClient.d.ts +2 -2
- package/sdk/application/Lead/LeadApplicationClient.js +74 -1
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +15 -35
- package/sdk/application/Logistic/LogisticApplicationClient.js +159 -87
- package/sdk/application/Order/OrderApplicationClient.d.ts +12 -22
- package/sdk/application/Order/OrderApplicationClient.js +195 -47
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +87 -87
- package/sdk/application/Payment/PaymentApplicationClient.js +473 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +75 -7
- package/sdk/application/Share/ShareApplicationClient.js +96 -0
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +66 -4
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +418 -6
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +16 -3
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +19 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +14 -121
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -8
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -51
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +2 -2
- package/sdk/partner/Lead/LeadPartnerClient.js +2 -2
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerModel.js +15 -15
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +20 -126
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +20 -970
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +167 -1200
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +160 -571
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +7 -121
- package/sdk/partner/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +115 -419
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -118
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -109
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1298 -5037
- package/sdk/platform/Cart/CartPlatformModel.js +1217 -1976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -209
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +400 -457
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +142 -185
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +78 -96
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +117 -154
- package/sdk/platform/Catalog/CatalogPlatformClient.js +172 -292
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1647 -6385
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1680 -3217
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +31 -72
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +24 -50
- package/sdk/platform/Common/CommonPlatformClient.d.ts +2 -3
- package/sdk/platform/Common/CommonPlatformClient.js +2 -3
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +17 -16
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +8 -8
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +8 -8
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +33 -43
- package/sdk/platform/Communication/CommunicationPlatformModel.js +34 -38
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +42 -46
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +43 -47
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +223 -223
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +212 -210
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +12 -12
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +12 -12
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +33 -46
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +54 -67
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +18 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +24 -45
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +30 -134
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +131 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +97 -219
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +9 -37
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +8 -27
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +141 -124
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +422 -449
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +141 -179
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +130 -168
- package/sdk/platform/Content/ContentPlatformClient.d.ts +106 -142
- package/sdk/platform/Content/ContentPlatformClient.js +336 -523
- package/sdk/platform/Content/ContentPlatformModel.d.ts +395 -1241
- package/sdk/platform/Content/ContentPlatformModel.js +390 -521
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +117 -168
- package/sdk/platform/Content/ContentPlatformValidator.js +108 -162
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +12 -14
- package/sdk/platform/Discount/DiscountPlatformClient.js +12 -14
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +13 -13
- package/sdk/platform/Discount/DiscountPlatformModel.js +12 -12
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +36 -94
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +60 -462
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +15 -62
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +13 -75
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +19 -19
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +21 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +101 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +84 -313
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2890 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2148 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -2
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -2
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +5 -5
- package/sdk/platform/Lead/LeadPlatformModel.js +16 -16
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -17
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +7 -85
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +24 -95
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +19 -39
- package/sdk/platform/Order/OrderPlatformClient.d.ts +96 -153
- package/sdk/platform/Order/OrderPlatformClient.js +198 -416
- package/sdk/platform/Order/OrderPlatformModel.d.ts +1286 -7619
- package/sdk/platform/Order/OrderPlatformModel.js +1265 -3922
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +109 -270
- package/sdk/platform/Order/OrderPlatformValidator.js +77 -135
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +105 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +141 -129
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +48 -48
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +48 -48
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +319 -333
- package/sdk/platform/Payment/PaymentPlatformModel.js +278 -288
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +8 -8
- package/sdk/platform/Payment/PaymentPlatformValidator.js +8 -8
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +9 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +36 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +41 -132
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +17 -46
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +14 -34
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +612 -1845
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +554 -886
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +46 -42
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +28 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +21 -6
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +9 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.js +6 -6
- package/sdk/public/Content/ContentPublicClient.d.ts +2 -112
- package/sdk/public/Content/ContentPublicClient.js +20 -791
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Partner/PartnerPublicClient.js +15 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +48 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +21 -21
- package/sdk/public/Webhook/WebhookPublicModel.js +15 -15
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -105
|
@@ -19,7 +19,7 @@ class Payment {
|
|
|
19
19
|
* @param {PaymentPlatformApplicationValidator.AddEdcDeviceParam} arg - Arg object
|
|
20
20
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
21
21
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
22
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
22
|
+
* @returns {Promise<PaymentPlatformModel.EdcDeviceUpdateResponse>} - Success response
|
|
23
23
|
* @name addEdcDevice
|
|
24
24
|
* @summary: Create an EDC device
|
|
25
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/).
|
|
@@ -77,7 +77,7 @@ class Payment {
|
|
|
77
77
|
|
|
78
78
|
const {
|
|
79
79
|
error: res_error,
|
|
80
|
-
} = PaymentPlatformModel.
|
|
80
|
+
} = PaymentPlatformModel.EdcDeviceUpdateResponse().validate(responseData, {
|
|
81
81
|
abortEarly: false,
|
|
82
82
|
allowUnknown: true,
|
|
83
83
|
});
|
|
@@ -102,7 +102,7 @@ class Payment {
|
|
|
102
102
|
*
|
|
103
103
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
104
104
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
105
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
105
|
+
* @returns {Promise<PaymentPlatformModel.RefundAccountResponse>} - Success response
|
|
106
106
|
* @name addRefundBankAccountUsingOTP
|
|
107
107
|
* @summary: Create refund account
|
|
108
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/).
|
|
@@ -158,7 +158,7 @@ class Payment {
|
|
|
158
158
|
|
|
159
159
|
const {
|
|
160
160
|
error: res_error,
|
|
161
|
-
} = PaymentPlatformModel.
|
|
161
|
+
} = PaymentPlatformModel.RefundAccountResponse().validate(responseData, {
|
|
162
162
|
abortEarly: false,
|
|
163
163
|
allowUnknown: true,
|
|
164
164
|
});
|
|
@@ -183,7 +183,7 @@ class Payment {
|
|
|
183
183
|
*
|
|
184
184
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
185
185
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
186
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
186
|
+
* @returns {Promise<PaymentPlatformModel.CancelPaymentLinkResponse>} -
|
|
187
187
|
* Success response
|
|
188
188
|
* @name cancelPaymentLink
|
|
189
189
|
* @summary: Cancel payment link
|
|
@@ -240,10 +240,10 @@ class Payment {
|
|
|
240
240
|
|
|
241
241
|
const {
|
|
242
242
|
error: res_error,
|
|
243
|
-
} = PaymentPlatformModel.
|
|
244
|
-
|
|
245
|
-
allowUnknown: true
|
|
246
|
-
|
|
243
|
+
} = PaymentPlatformModel.CancelPaymentLinkResponse().validate(
|
|
244
|
+
responseData,
|
|
245
|
+
{ abortEarly: false, allowUnknown: true }
|
|
246
|
+
);
|
|
247
247
|
|
|
248
248
|
if (res_error) {
|
|
249
249
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -265,7 +265,7 @@ class Payment {
|
|
|
265
265
|
*
|
|
266
266
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
267
267
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
268
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
268
|
+
* @returns {Promise<PaymentPlatformModel.PaymentStatusUpdateResponse>} -
|
|
269
269
|
* Success response
|
|
270
270
|
* @name checkAndUpdatePaymentStatus
|
|
271
271
|
* @summary: Poll and update payment status
|
|
@@ -322,7 +322,7 @@ class Payment {
|
|
|
322
322
|
|
|
323
323
|
const {
|
|
324
324
|
error: res_error,
|
|
325
|
-
} = PaymentPlatformModel.
|
|
325
|
+
} = PaymentPlatformModel.PaymentStatusUpdateResponse().validate(
|
|
326
326
|
responseData,
|
|
327
327
|
{ abortEarly: false, allowUnknown: true }
|
|
328
328
|
);
|
|
@@ -345,7 +345,7 @@ class Payment {
|
|
|
345
345
|
* @param {PaymentPlatformApplicationValidator.ConfirmPaymentParam} arg - Arg object
|
|
346
346
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
347
347
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
348
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
348
|
+
* @returns {Promise<PaymentPlatformModel.PaymentConfirmationResponse>} -
|
|
349
349
|
* Success response
|
|
350
350
|
* @name confirmPayment
|
|
351
351
|
* @summary: Payment confirmation
|
|
@@ -402,7 +402,7 @@ class Payment {
|
|
|
402
402
|
|
|
403
403
|
const {
|
|
404
404
|
error: res_error,
|
|
405
|
-
} = PaymentPlatformModel.
|
|
405
|
+
} = PaymentPlatformModel.PaymentConfirmationResponse().validate(
|
|
406
406
|
responseData,
|
|
407
407
|
{ abortEarly: false, allowUnknown: true }
|
|
408
408
|
);
|
|
@@ -427,7 +427,9 @@ class Payment {
|
|
|
427
427
|
*
|
|
428
428
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
429
429
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
430
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
430
|
+
* @returns {Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>}
|
|
431
|
+
* - Success response
|
|
432
|
+
*
|
|
431
433
|
* @name createMerchantRefundPriority
|
|
432
434
|
* @summary: Create merchant refund priority
|
|
433
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/).
|
|
@@ -485,10 +487,10 @@ class Payment {
|
|
|
485
487
|
|
|
486
488
|
const {
|
|
487
489
|
error: res_error,
|
|
488
|
-
} = PaymentPlatformModel.
|
|
489
|
-
|
|
490
|
-
allowUnknown: true
|
|
491
|
-
|
|
490
|
+
} = PaymentPlatformModel.RefundPriorityResponseSerializer().validate(
|
|
491
|
+
responseData,
|
|
492
|
+
{ abortEarly: false, allowUnknown: true }
|
|
493
|
+
);
|
|
492
494
|
|
|
493
495
|
if (res_error) {
|
|
494
496
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -510,7 +512,7 @@ class Payment {
|
|
|
510
512
|
*
|
|
511
513
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
512
514
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
513
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
515
|
+
* @returns {Promise<PaymentPlatformModel.CreatePaymentLinkResponse>} -
|
|
514
516
|
* Success response
|
|
515
517
|
* @name createPaymentLink
|
|
516
518
|
* @summary: Create payment link
|
|
@@ -567,10 +569,10 @@ class Payment {
|
|
|
567
569
|
|
|
568
570
|
const {
|
|
569
571
|
error: res_error,
|
|
570
|
-
} = PaymentPlatformModel.
|
|
571
|
-
|
|
572
|
-
allowUnknown: true
|
|
573
|
-
|
|
572
|
+
} = PaymentPlatformModel.CreatePaymentLinkResponse().validate(
|
|
573
|
+
responseData,
|
|
574
|
+
{ abortEarly: false, allowUnknown: true }
|
|
575
|
+
);
|
|
574
576
|
|
|
575
577
|
if (res_error) {
|
|
576
578
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -592,7 +594,7 @@ class Payment {
|
|
|
592
594
|
*
|
|
593
595
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
594
596
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
595
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
597
|
+
* @returns {Promise<PaymentPlatformModel.PaymentOrderResponse>} - Success response
|
|
596
598
|
* @name createPaymentOrder
|
|
597
599
|
* @summary: Create Order
|
|
598
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/).
|
|
@@ -648,7 +650,7 @@ class Payment {
|
|
|
648
650
|
|
|
649
651
|
const {
|
|
650
652
|
error: res_error,
|
|
651
|
-
} = PaymentPlatformModel.
|
|
653
|
+
} = PaymentPlatformModel.PaymentOrderResponse().validate(responseData, {
|
|
652
654
|
abortEarly: false,
|
|
653
655
|
allowUnknown: true,
|
|
654
656
|
});
|
|
@@ -673,7 +675,7 @@ class Payment {
|
|
|
673
675
|
*
|
|
674
676
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
675
677
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
676
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
678
|
+
* @returns {Promise<PaymentPlatformModel.EdcAggregatorAndModelListResponse>}
|
|
677
679
|
* - Success response
|
|
678
680
|
*
|
|
679
681
|
* @name edcAggregatorsAndModelList
|
|
@@ -727,7 +729,7 @@ class Payment {
|
|
|
727
729
|
|
|
728
730
|
const {
|
|
729
731
|
error: res_error,
|
|
730
|
-
} = PaymentPlatformModel.
|
|
732
|
+
} = PaymentPlatformModel.EdcAggregatorAndModelListResponse().validate(
|
|
731
733
|
responseData,
|
|
732
734
|
{ abortEarly: false, allowUnknown: true }
|
|
733
735
|
);
|
|
@@ -750,7 +752,7 @@ class Payment {
|
|
|
750
752
|
* @param {PaymentPlatformApplicationValidator.EdcDeviceListParam} arg - Arg object
|
|
751
753
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
752
754
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
753
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
755
|
+
* @returns {Promise<PaymentPlatformModel.EdcDeviceListResponse>} - Success response
|
|
754
756
|
* @name edcDeviceList
|
|
755
757
|
* @summary: List EDC devices
|
|
756
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/).
|
|
@@ -821,7 +823,7 @@ class Payment {
|
|
|
821
823
|
|
|
822
824
|
const {
|
|
823
825
|
error: res_error,
|
|
824
|
-
} = PaymentPlatformModel.
|
|
826
|
+
} = PaymentPlatformModel.EdcDeviceListResponse().validate(responseData, {
|
|
825
827
|
abortEarly: false,
|
|
826
828
|
allowUnknown: true,
|
|
827
829
|
});
|
|
@@ -844,7 +846,7 @@ class Payment {
|
|
|
844
846
|
* @param {PaymentPlatformApplicationValidator.EdcDeviceStatsParam} arg - Arg object
|
|
845
847
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
846
848
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
847
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
849
|
+
* @returns {Promise<PaymentPlatformModel.EdcDeviceStatsResponse>} - Success response
|
|
848
850
|
* @name edcDeviceStats
|
|
849
851
|
* @summary: EDC device stats
|
|
850
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/).
|
|
@@ -896,7 +898,7 @@ class Payment {
|
|
|
896
898
|
|
|
897
899
|
const {
|
|
898
900
|
error: res_error,
|
|
899
|
-
} = PaymentPlatformModel.
|
|
901
|
+
} = PaymentPlatformModel.EdcDeviceStatsResponse().validate(responseData, {
|
|
900
902
|
abortEarly: false,
|
|
901
903
|
allowUnknown: true,
|
|
902
904
|
});
|
|
@@ -921,7 +923,7 @@ class Payment {
|
|
|
921
923
|
*
|
|
922
924
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
923
925
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
924
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
926
|
+
* @returns {Promise<PaymentPlatformModel.RefundAccountResponse>} - Success response
|
|
925
927
|
* @name getBankAccountDetailsOpenAPI
|
|
926
928
|
* @summary: Get bank account details
|
|
927
929
|
* @description: Retrieve bank account information - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getBankAccountDetailsOpenAPI/).
|
|
@@ -983,7 +985,7 @@ class Payment {
|
|
|
983
985
|
|
|
984
986
|
const {
|
|
985
987
|
error: res_error,
|
|
986
|
-
} = PaymentPlatformModel.
|
|
988
|
+
} = PaymentPlatformModel.RefundAccountResponse().validate(responseData, {
|
|
987
989
|
abortEarly: false,
|
|
988
990
|
allowUnknown: true,
|
|
989
991
|
});
|
|
@@ -1008,7 +1010,7 @@ class Payment {
|
|
|
1008
1010
|
*
|
|
1009
1011
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1010
1012
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1011
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1013
|
+
* @returns {Promise<PaymentPlatformModel.PaymentGatewayConfigResponse>} -
|
|
1012
1014
|
* Success response
|
|
1013
1015
|
* @name getBrandPaymentGatewayConfig
|
|
1014
1016
|
* @summary: Get secrets for brand payment gateway
|
|
@@ -1069,7 +1071,7 @@ class Payment {
|
|
|
1069
1071
|
|
|
1070
1072
|
const {
|
|
1071
1073
|
error: res_error,
|
|
1072
|
-
} = PaymentPlatformModel.
|
|
1074
|
+
} = PaymentPlatformModel.PaymentGatewayConfigResponse().validate(
|
|
1073
1075
|
responseData,
|
|
1074
1076
|
{ abortEarly: false, allowUnknown: true }
|
|
1075
1077
|
);
|
|
@@ -1092,7 +1094,8 @@ class Payment {
|
|
|
1092
1094
|
* @param {PaymentPlatformApplicationValidator.GetEdcDeviceParam} arg - Arg object
|
|
1093
1095
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1094
1096
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1095
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1097
|
+
* @returns {Promise<PaymentPlatformModel.EdcDeviceDetailsResponse>} -
|
|
1098
|
+
* Success response
|
|
1096
1099
|
* @name getEdcDevice
|
|
1097
1100
|
* @summary: Get an EDC device
|
|
1098
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/).
|
|
@@ -1148,7 +1151,7 @@ class Payment {
|
|
|
1148
1151
|
|
|
1149
1152
|
const {
|
|
1150
1153
|
error: res_error,
|
|
1151
|
-
} = PaymentPlatformModel.
|
|
1154
|
+
} = PaymentPlatformModel.EdcDeviceDetailsResponse().validate(responseData, {
|
|
1152
1155
|
abortEarly: false,
|
|
1153
1156
|
allowUnknown: true,
|
|
1154
1157
|
});
|
|
@@ -1173,7 +1176,7 @@ class Payment {
|
|
|
1173
1176
|
*
|
|
1174
1177
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1175
1178
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1176
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1179
|
+
* @returns {Promise<PaymentPlatformModel.AggregatorVersionResponse>} -
|
|
1177
1180
|
* Success response
|
|
1178
1181
|
* @name getMerchantAggregatorAppVersion
|
|
1179
1182
|
* @summary: Get app version for Aggregator
|
|
@@ -1249,10 +1252,10 @@ class Payment {
|
|
|
1249
1252
|
|
|
1250
1253
|
const {
|
|
1251
1254
|
error: res_error,
|
|
1252
|
-
} = PaymentPlatformModel.
|
|
1253
|
-
|
|
1254
|
-
allowUnknown: true
|
|
1255
|
-
|
|
1255
|
+
} = PaymentPlatformModel.AggregatorVersionResponse().validate(
|
|
1256
|
+
responseData,
|
|
1257
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1258
|
+
);
|
|
1256
1259
|
|
|
1257
1260
|
if (res_error) {
|
|
1258
1261
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1274,7 +1277,7 @@ class Payment {
|
|
|
1274
1277
|
*
|
|
1275
1278
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1276
1279
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1277
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1280
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
1278
1281
|
* Success response
|
|
1279
1282
|
* @name getMerchantAggregatorPaymentModeDetails
|
|
1280
1283
|
* @summary: Get merchant aggregator and their payment mode
|
|
@@ -1339,7 +1342,7 @@ class Payment {
|
|
|
1339
1342
|
|
|
1340
1343
|
const {
|
|
1341
1344
|
error: res_error,
|
|
1342
|
-
} = PaymentPlatformModel.
|
|
1345
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
1343
1346
|
responseData,
|
|
1344
1347
|
{ abortEarly: false, allowUnknown: true }
|
|
1345
1348
|
);
|
|
@@ -1364,7 +1367,7 @@ class Payment {
|
|
|
1364
1367
|
*
|
|
1365
1368
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1366
1369
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1367
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1370
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
1368
1371
|
* Success response
|
|
1369
1372
|
* @name getMerchantPaymentOption
|
|
1370
1373
|
* @summary: Get merchant payment option
|
|
@@ -1417,7 +1420,7 @@ class Payment {
|
|
|
1417
1420
|
|
|
1418
1421
|
const {
|
|
1419
1422
|
error: res_error,
|
|
1420
|
-
} = PaymentPlatformModel.
|
|
1423
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
1421
1424
|
responseData,
|
|
1422
1425
|
{ abortEarly: false, allowUnknown: true }
|
|
1423
1426
|
);
|
|
@@ -1442,7 +1445,9 @@ class Payment {
|
|
|
1442
1445
|
*
|
|
1443
1446
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1444
1447
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1445
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1448
|
+
* @returns {Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>}
|
|
1449
|
+
* - Success response
|
|
1450
|
+
*
|
|
1446
1451
|
* @name getMerchantRefundPriority
|
|
1447
1452
|
* @summary: Get merchant refund priority
|
|
1448
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/).
|
|
@@ -1498,10 +1503,10 @@ class Payment {
|
|
|
1498
1503
|
|
|
1499
1504
|
const {
|
|
1500
1505
|
error: res_error,
|
|
1501
|
-
} = PaymentPlatformModel.
|
|
1502
|
-
|
|
1503
|
-
allowUnknown: true
|
|
1504
|
-
|
|
1506
|
+
} = PaymentPlatformModel.RefundPriorityResponseSerializer().validate(
|
|
1507
|
+
responseData,
|
|
1508
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1509
|
+
);
|
|
1505
1510
|
|
|
1506
1511
|
if (res_error) {
|
|
1507
1512
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1523,7 +1528,7 @@ class Payment {
|
|
|
1523
1528
|
*
|
|
1524
1529
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1525
1530
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1526
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1531
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
1527
1532
|
* Success response
|
|
1528
1533
|
* @name getPGConfigAggregators
|
|
1529
1534
|
* @summary: Get merchant aggregator payment mode
|
|
@@ -1576,7 +1581,7 @@ class Payment {
|
|
|
1576
1581
|
|
|
1577
1582
|
const {
|
|
1578
1583
|
error: res_error,
|
|
1579
|
-
} = PaymentPlatformModel.
|
|
1584
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
1580
1585
|
responseData,
|
|
1581
1586
|
{ abortEarly: false, allowUnknown: true }
|
|
1582
1587
|
);
|
|
@@ -1601,7 +1606,7 @@ class Payment {
|
|
|
1601
1606
|
*
|
|
1602
1607
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1603
1608
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1604
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1609
|
+
* @returns {Promise<PaymentPlatformModel.GetPaymentCodeResponse>} - Success response
|
|
1605
1610
|
* @name getPaymentCodeOption
|
|
1606
1611
|
* @summary: Get payment mode codes
|
|
1607
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/).
|
|
@@ -1653,7 +1658,7 @@ class Payment {
|
|
|
1653
1658
|
|
|
1654
1659
|
const {
|
|
1655
1660
|
error: res_error,
|
|
1656
|
-
} = PaymentPlatformModel.
|
|
1661
|
+
} = PaymentPlatformModel.GetPaymentCodeResponse().validate(responseData, {
|
|
1657
1662
|
abortEarly: false,
|
|
1658
1663
|
allowUnknown: true,
|
|
1659
1664
|
});
|
|
@@ -1676,7 +1681,7 @@ class Payment {
|
|
|
1676
1681
|
* @param {PaymentPlatformApplicationValidator.GetPaymentLinkParam} arg - Arg object
|
|
1677
1682
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1678
1683
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1679
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1684
|
+
* @returns {Promise<PaymentPlatformModel.GetPaymentLinkResponse>} - Success response
|
|
1680
1685
|
* @name getPaymentLink
|
|
1681
1686
|
* @summary: Get payment link
|
|
1682
1687
|
* @description: Retrieve a payment link for making payments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentLink/).
|
|
@@ -1733,7 +1738,7 @@ class Payment {
|
|
|
1733
1738
|
|
|
1734
1739
|
const {
|
|
1735
1740
|
error: res_error,
|
|
1736
|
-
} = PaymentPlatformModel.
|
|
1741
|
+
} = PaymentPlatformModel.GetPaymentLinkResponse().validate(responseData, {
|
|
1737
1742
|
abortEarly: false,
|
|
1738
1743
|
allowUnknown: true,
|
|
1739
1744
|
});
|
|
@@ -1758,7 +1763,7 @@ class Payment {
|
|
|
1758
1763
|
*
|
|
1759
1764
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1760
1765
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1761
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1766
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
1762
1767
|
* Success response
|
|
1763
1768
|
* @name getPaymentModeControlRoutes
|
|
1764
1769
|
* @summary: Get offline/advance payment mode
|
|
@@ -1815,7 +1820,7 @@ class Payment {
|
|
|
1815
1820
|
|
|
1816
1821
|
const {
|
|
1817
1822
|
error: res_error,
|
|
1818
|
-
} = PaymentPlatformModel.
|
|
1823
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
1819
1824
|
responseData,
|
|
1820
1825
|
{ abortEarly: false, allowUnknown: true }
|
|
1821
1826
|
);
|
|
@@ -1923,7 +1928,7 @@ class Payment {
|
|
|
1923
1928
|
*
|
|
1924
1929
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1925
1930
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1926
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1931
|
+
* @returns {Promise<PaymentPlatformModel.PaymentOptionsResponse>} - Success response
|
|
1927
1932
|
* @name getPaymentModeRoutes
|
|
1928
1933
|
* @summary: Get payment modes
|
|
1929
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/).
|
|
@@ -1994,7 +1999,7 @@ class Payment {
|
|
|
1994
1999
|
|
|
1995
2000
|
const {
|
|
1996
2001
|
error: res_error,
|
|
1997
|
-
} = PaymentPlatformModel.
|
|
2002
|
+
} = PaymentPlatformModel.PaymentOptionsResponse().validate(responseData, {
|
|
1998
2003
|
abortEarly: false,
|
|
1999
2004
|
allowUnknown: true,
|
|
2000
2005
|
});
|
|
@@ -2019,7 +2024,7 @@ class Payment {
|
|
|
2019
2024
|
*
|
|
2020
2025
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2021
2026
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2022
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2027
|
+
* @returns {Promise<PaymentPlatformModel.PaymentSessionSerializer>} -
|
|
2023
2028
|
* Success response
|
|
2024
2029
|
* @name getPaymentSession
|
|
2025
2030
|
* @summary: Get payment session
|
|
@@ -2079,10 +2084,10 @@ class Payment {
|
|
|
2079
2084
|
|
|
2080
2085
|
const {
|
|
2081
2086
|
error: res_error,
|
|
2082
|
-
} = PaymentPlatformModel.
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
);
|
|
2087
|
+
} = PaymentPlatformModel.PaymentSessionSerializer().validate(responseData, {
|
|
2088
|
+
abortEarly: false,
|
|
2089
|
+
allowUnknown: true,
|
|
2090
|
+
});
|
|
2086
2091
|
|
|
2087
2092
|
if (res_error) {
|
|
2088
2093
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2104,7 +2109,8 @@ class Payment {
|
|
|
2104
2109
|
*
|
|
2105
2110
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2106
2111
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2107
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2112
|
+
* @returns {Promise<PaymentPlatformModel.PaymentModeRouteResponse>} -
|
|
2113
|
+
* Success response
|
|
2108
2114
|
* @name getPosPaymentModeRoutes
|
|
2109
2115
|
* @summary: List POS payment modes
|
|
2110
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/).
|
|
@@ -2208,7 +2214,7 @@ class Payment {
|
|
|
2208
2214
|
|
|
2209
2215
|
const {
|
|
2210
2216
|
error: res_error,
|
|
2211
|
-
} = PaymentPlatformModel.
|
|
2217
|
+
} = PaymentPlatformModel.PaymentModeRouteResponse().validate(responseData, {
|
|
2212
2218
|
abortEarly: false,
|
|
2213
2219
|
allowUnknown: true,
|
|
2214
2220
|
});
|
|
@@ -2233,7 +2239,7 @@ class Payment {
|
|
|
2233
2239
|
*
|
|
2234
2240
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2235
2241
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2236
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2242
|
+
* @returns {Promise<PaymentPlatformModel.OrderBeneficiaryResponse>} -
|
|
2237
2243
|
* Success response
|
|
2238
2244
|
* @name getUserBeneficiaries
|
|
2239
2245
|
* @summary: Get user beneficiaries
|
|
@@ -2287,10 +2293,10 @@ class Payment {
|
|
|
2287
2293
|
|
|
2288
2294
|
const {
|
|
2289
2295
|
error: res_error,
|
|
2290
|
-
} = PaymentPlatformModel.
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
);
|
|
2296
|
+
} = PaymentPlatformModel.OrderBeneficiaryResponse().validate(responseData, {
|
|
2297
|
+
abortEarly: false,
|
|
2298
|
+
allowUnknown: true,
|
|
2299
|
+
});
|
|
2294
2300
|
|
|
2295
2301
|
if (res_error) {
|
|
2296
2302
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2312,7 +2318,7 @@ class Payment {
|
|
|
2312
2318
|
*
|
|
2313
2319
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2314
2320
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2315
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2321
|
+
* @returns {Promise<PaymentPlatformModel.GetUserCODLimitResponse>} - Success response
|
|
2316
2322
|
* @name getUserCODlimitRoutes
|
|
2317
2323
|
* @summary: Get user COD
|
|
2318
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/).
|
|
@@ -2372,7 +2378,7 @@ class Payment {
|
|
|
2372
2378
|
|
|
2373
2379
|
const {
|
|
2374
2380
|
error: res_error,
|
|
2375
|
-
} = PaymentPlatformModel.
|
|
2381
|
+
} = PaymentPlatformModel.GetUserCODLimitResponse().validate(responseData, {
|
|
2376
2382
|
abortEarly: false,
|
|
2377
2383
|
allowUnknown: true,
|
|
2378
2384
|
});
|
|
@@ -2397,7 +2403,7 @@ class Payment {
|
|
|
2397
2403
|
*
|
|
2398
2404
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2399
2405
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2400
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2406
|
+
* @returns {Promise<PaymentPlatformModel.OrderBeneficiaryResponse>} -
|
|
2401
2407
|
* Success response
|
|
2402
2408
|
* @name getUserOrderBeneficiaries
|
|
2403
2409
|
* @summary: Get user order beneficiaries
|
|
@@ -2451,10 +2457,10 @@ class Payment {
|
|
|
2451
2457
|
|
|
2452
2458
|
const {
|
|
2453
2459
|
error: res_error,
|
|
2454
|
-
} = PaymentPlatformModel.
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
);
|
|
2460
|
+
} = PaymentPlatformModel.OrderBeneficiaryResponse().validate(responseData, {
|
|
2461
|
+
abortEarly: false,
|
|
2462
|
+
allowUnknown: true,
|
|
2463
|
+
});
|
|
2458
2464
|
|
|
2459
2465
|
if (res_error) {
|
|
2460
2466
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2476,7 +2482,7 @@ class Payment {
|
|
|
2476
2482
|
*
|
|
2477
2483
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2478
2484
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2479
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2485
|
+
* @returns {Promise<PaymentPlatformModel.PaymentInitializationResponse>} -
|
|
2480
2486
|
* Success response
|
|
2481
2487
|
* @name initialisePayment
|
|
2482
2488
|
* @summary: Start payment process
|
|
@@ -2533,7 +2539,7 @@ class Payment {
|
|
|
2533
2539
|
|
|
2534
2540
|
const {
|
|
2535
2541
|
error: res_error,
|
|
2536
|
-
} = PaymentPlatformModel.
|
|
2542
|
+
} = PaymentPlatformModel.PaymentInitializationResponse().validate(
|
|
2537
2543
|
responseData,
|
|
2538
2544
|
{ abortEarly: false, allowUnknown: true }
|
|
2539
2545
|
);
|
|
@@ -2558,7 +2564,7 @@ class Payment {
|
|
|
2558
2564
|
*
|
|
2559
2565
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2560
2566
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2561
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2567
|
+
* @returns {Promise<PaymentPlatformModel.MerchantOnBoardingResponse>} -
|
|
2562
2568
|
* Success response
|
|
2563
2569
|
* @name merchantOnBoarding
|
|
2564
2570
|
* @summary: Merchant onboarding for BNPL
|
|
@@ -2615,7 +2621,7 @@ class Payment {
|
|
|
2615
2621
|
|
|
2616
2622
|
const {
|
|
2617
2623
|
error: res_error,
|
|
2618
|
-
} = PaymentPlatformModel.
|
|
2624
|
+
} = PaymentPlatformModel.MerchantOnBoardingResponse().validate(
|
|
2619
2625
|
responseData,
|
|
2620
2626
|
{ abortEarly: false, allowUnknown: true }
|
|
2621
2627
|
);
|
|
@@ -2638,7 +2644,7 @@ class Payment {
|
|
|
2638
2644
|
* @param {PaymentPlatformApplicationValidator.OauthGetUrlParam} arg - Arg object
|
|
2639
2645
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2640
2646
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2641
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2647
|
+
* @returns {Promise<PaymentPlatformModel.GetOauthUrlResponse>} - Success response
|
|
2642
2648
|
* @name oauthGetUrl
|
|
2643
2649
|
* @summary: Get OAuth URL
|
|
2644
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/).
|
|
@@ -2702,7 +2708,7 @@ class Payment {
|
|
|
2702
2708
|
|
|
2703
2709
|
const {
|
|
2704
2710
|
error: res_error,
|
|
2705
|
-
} = PaymentPlatformModel.
|
|
2711
|
+
} = PaymentPlatformModel.GetOauthUrlResponse().validate(responseData, {
|
|
2706
2712
|
abortEarly: false,
|
|
2707
2713
|
allowUnknown: true,
|
|
2708
2714
|
});
|
|
@@ -2727,7 +2733,7 @@ class Payment {
|
|
|
2727
2733
|
*
|
|
2728
2734
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2729
2735
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2730
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2736
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
2731
2737
|
* Success response
|
|
2732
2738
|
* @name patchMerchantAggregatorPaymentModeDetails
|
|
2733
2739
|
* @summary: Update merchant aggregator payment mode
|
|
@@ -2786,7 +2792,7 @@ class Payment {
|
|
|
2786
2792
|
|
|
2787
2793
|
const {
|
|
2788
2794
|
error: res_error,
|
|
2789
|
-
} = PaymentPlatformModel.
|
|
2795
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
2790
2796
|
responseData,
|
|
2791
2797
|
{ abortEarly: false, allowUnknown: true }
|
|
2792
2798
|
);
|
|
@@ -2811,7 +2817,7 @@ class Payment {
|
|
|
2811
2817
|
*
|
|
2812
2818
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2813
2819
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2814
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2820
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
2815
2821
|
* Success response
|
|
2816
2822
|
* @name patchMerchantPaymentOption
|
|
2817
2823
|
* @summary: Update payment gateways and payment mode
|
|
@@ -2868,7 +2874,7 @@ class Payment {
|
|
|
2868
2874
|
|
|
2869
2875
|
const {
|
|
2870
2876
|
error: res_error,
|
|
2871
|
-
} = PaymentPlatformModel.
|
|
2877
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
2872
2878
|
responseData,
|
|
2873
2879
|
{ abortEarly: false, allowUnknown: true }
|
|
2874
2880
|
);
|
|
@@ -2893,7 +2899,7 @@ class Payment {
|
|
|
2893
2899
|
*
|
|
2894
2900
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2895
2901
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2896
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2902
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
2897
2903
|
* Success response
|
|
2898
2904
|
* @name patchMerchantPaymentOptionVersion
|
|
2899
2905
|
* @summary: Update app version for Aggrgator
|
|
@@ -2952,7 +2958,7 @@ class Payment {
|
|
|
2952
2958
|
|
|
2953
2959
|
const {
|
|
2954
2960
|
error: res_error,
|
|
2955
|
-
} = PaymentPlatformModel.
|
|
2961
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
2956
2962
|
responseData,
|
|
2957
2963
|
{ abortEarly: false, allowUnknown: true }
|
|
2958
2964
|
);
|
|
@@ -2977,7 +2983,7 @@ class Payment {
|
|
|
2977
2983
|
*
|
|
2978
2984
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2979
2985
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2980
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2986
|
+
* @returns {Promise<PaymentPlatformModel.PaymentStatusBulkHandlerResponse>}
|
|
2981
2987
|
* - Success response
|
|
2982
2988
|
*
|
|
2983
2989
|
* @name paymentStatusBulk
|
|
@@ -3035,7 +3041,7 @@ class Payment {
|
|
|
3035
3041
|
|
|
3036
3042
|
const {
|
|
3037
3043
|
error: res_error,
|
|
3038
|
-
} = PaymentPlatformModel.
|
|
3044
|
+
} = PaymentPlatformModel.PaymentStatusBulkHandlerResponse().validate(
|
|
3039
3045
|
responseData,
|
|
3040
3046
|
{ abortEarly: false, allowUnknown: true }
|
|
3041
3047
|
);
|
|
@@ -3060,7 +3066,7 @@ class Payment {
|
|
|
3060
3066
|
*
|
|
3061
3067
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3062
3068
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3063
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3069
|
+
* @returns {Promise<PaymentPlatformModel.PollingPaymentLinkResponse>} -
|
|
3064
3070
|
* Success response
|
|
3065
3071
|
* @name pollingPaymentLink
|
|
3066
3072
|
* @summary: Poll status of payment link
|
|
@@ -3118,7 +3124,7 @@ class Payment {
|
|
|
3118
3124
|
|
|
3119
3125
|
const {
|
|
3120
3126
|
error: res_error,
|
|
3121
|
-
} = PaymentPlatformModel.
|
|
3127
|
+
} = PaymentPlatformModel.PollingPaymentLinkResponse().validate(
|
|
3122
3128
|
responseData,
|
|
3123
3129
|
{ abortEarly: false, allowUnknown: true }
|
|
3124
3130
|
);
|
|
@@ -3141,7 +3147,7 @@ class Payment {
|
|
|
3141
3147
|
* @param {PaymentPlatformApplicationValidator.RepaymentDetailsParam} arg - Arg object
|
|
3142
3148
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3143
3149
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3144
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3150
|
+
* @returns {Promise<PaymentPlatformModel.RepaymentResponse>} - Success response
|
|
3145
3151
|
* @name repaymentDetails
|
|
3146
3152
|
* @summary: Repayment details for BNPL
|
|
3147
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/).
|
|
@@ -3197,7 +3203,7 @@ class Payment {
|
|
|
3197
3203
|
|
|
3198
3204
|
const {
|
|
3199
3205
|
error: res_error,
|
|
3200
|
-
} = PaymentPlatformModel.
|
|
3206
|
+
} = PaymentPlatformModel.RepaymentResponse().validate(responseData, {
|
|
3201
3207
|
abortEarly: false,
|
|
3202
3208
|
allowUnknown: true,
|
|
3203
3209
|
});
|
|
@@ -3222,7 +3228,7 @@ class Payment {
|
|
|
3222
3228
|
*
|
|
3223
3229
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3224
3230
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3225
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3231
|
+
* @returns {Promise<PaymentPlatformModel.ResendOrCancelPaymentResponse>} -
|
|
3226
3232
|
* Success response
|
|
3227
3233
|
* @name resendOrCancelPayment
|
|
3228
3234
|
* @summary: Resend or cancel payment
|
|
@@ -3279,7 +3285,7 @@ class Payment {
|
|
|
3279
3285
|
|
|
3280
3286
|
const {
|
|
3281
3287
|
error: res_error,
|
|
3282
|
-
} = PaymentPlatformModel.
|
|
3288
|
+
} = PaymentPlatformModel.ResendOrCancelPaymentResponse().validate(
|
|
3283
3289
|
responseData,
|
|
3284
3290
|
{ abortEarly: false, allowUnknown: true }
|
|
3285
3291
|
);
|
|
@@ -3304,7 +3310,7 @@ class Payment {
|
|
|
3304
3310
|
*
|
|
3305
3311
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3306
3312
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3307
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3313
|
+
* @returns {Promise<PaymentPlatformModel.ResendPaymentLinkResponse>} -
|
|
3308
3314
|
* Success response
|
|
3309
3315
|
* @name resendPaymentLink
|
|
3310
3316
|
* @summary: Resend payment link
|
|
@@ -3361,10 +3367,10 @@ class Payment {
|
|
|
3361
3367
|
|
|
3362
3368
|
const {
|
|
3363
3369
|
error: res_error,
|
|
3364
|
-
} = PaymentPlatformModel.
|
|
3365
|
-
|
|
3366
|
-
allowUnknown: true
|
|
3367
|
-
|
|
3370
|
+
} = PaymentPlatformModel.ResendPaymentLinkResponse().validate(
|
|
3371
|
+
responseData,
|
|
3372
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3373
|
+
);
|
|
3368
3374
|
|
|
3369
3375
|
if (res_error) {
|
|
3370
3376
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3547,7 +3553,7 @@ class Payment {
|
|
|
3547
3553
|
*
|
|
3548
3554
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3549
3555
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3550
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3556
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
3551
3557
|
* Success response
|
|
3552
3558
|
* @name setMerchantModeControlRoutes
|
|
3553
3559
|
* @summary: Update offline payment mode
|
|
@@ -3606,7 +3612,7 @@ class Payment {
|
|
|
3606
3612
|
|
|
3607
3613
|
const {
|
|
3608
3614
|
error: res_error,
|
|
3609
|
-
} = PaymentPlatformModel.
|
|
3615
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
3610
3616
|
responseData,
|
|
3611
3617
|
{ abortEarly: false, allowUnknown: true }
|
|
3612
3618
|
);
|
|
@@ -3716,7 +3722,7 @@ class Payment {
|
|
|
3716
3722
|
*
|
|
3717
3723
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3718
3724
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3719
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3725
|
+
* @returns {Promise<PaymentPlatformModel.SetCODOptionResponse>} - Success response
|
|
3720
3726
|
* @name setUserCODlimitRoutes
|
|
3721
3727
|
* @summary: Set user COD
|
|
3722
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/).
|
|
@@ -3772,7 +3778,7 @@ class Payment {
|
|
|
3772
3778
|
|
|
3773
3779
|
const {
|
|
3774
3780
|
error: res_error,
|
|
3775
|
-
} = PaymentPlatformModel.
|
|
3781
|
+
} = PaymentPlatformModel.SetCODOptionResponse().validate(responseData, {
|
|
3776
3782
|
abortEarly: false,
|
|
3777
3783
|
allowUnknown: true,
|
|
3778
3784
|
});
|
|
@@ -3795,7 +3801,7 @@ class Payment {
|
|
|
3795
3801
|
* @param {PaymentPlatformApplicationValidator.UpdateEdcDeviceParam} arg - Arg object
|
|
3796
3802
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3797
3803
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3798
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3804
|
+
* @returns {Promise<PaymentPlatformModel.EdcDeviceAddResponse>} - Success response
|
|
3799
3805
|
* @name updateEdcDevice
|
|
3800
3806
|
* @summary: Update EDC device
|
|
3801
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/).
|
|
@@ -3851,7 +3857,7 @@ class Payment {
|
|
|
3851
3857
|
|
|
3852
3858
|
const {
|
|
3853
3859
|
error: res_error,
|
|
3854
|
-
} = PaymentPlatformModel.
|
|
3860
|
+
} = PaymentPlatformModel.EdcDeviceAddResponse().validate(responseData, {
|
|
3855
3861
|
abortEarly: false,
|
|
3856
3862
|
allowUnknown: true,
|
|
3857
3863
|
});
|
|
@@ -3876,7 +3882,9 @@ class Payment {
|
|
|
3876
3882
|
*
|
|
3877
3883
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3878
3884
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3879
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3885
|
+
* @returns {Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>}
|
|
3886
|
+
* - Success response
|
|
3887
|
+
*
|
|
3880
3888
|
* @name updateMerchantRefundPriority
|
|
3881
3889
|
* @summary: Update merchant refund priority
|
|
3882
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/).
|
|
@@ -3934,10 +3942,10 @@ class Payment {
|
|
|
3934
3942
|
|
|
3935
3943
|
const {
|
|
3936
3944
|
error: res_error,
|
|
3937
|
-
} = PaymentPlatformModel.
|
|
3938
|
-
|
|
3939
|
-
allowUnknown: true
|
|
3940
|
-
|
|
3945
|
+
} = PaymentPlatformModel.RefundPriorityResponseSerializer().validate(
|
|
3946
|
+
responseData,
|
|
3947
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3948
|
+
);
|
|
3941
3949
|
|
|
3942
3950
|
if (res_error) {
|
|
3943
3951
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3959,8 +3967,9 @@ class Payment {
|
|
|
3959
3967
|
*
|
|
3960
3968
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3961
3969
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3962
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3963
|
-
* Success response
|
|
3970
|
+
* @returns {Promise<PaymentPlatformModel.PaymentSessionResponseSerializer>}
|
|
3971
|
+
* - Success response
|
|
3972
|
+
*
|
|
3964
3973
|
* @name updatePaymentSession
|
|
3965
3974
|
* @summary: Update payment session
|
|
3966
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/).
|
|
@@ -4018,10 +4027,10 @@ class Payment {
|
|
|
4018
4027
|
|
|
4019
4028
|
const {
|
|
4020
4029
|
error: res_error,
|
|
4021
|
-
} = PaymentPlatformModel.
|
|
4022
|
-
|
|
4023
|
-
allowUnknown: true
|
|
4024
|
-
|
|
4030
|
+
} = PaymentPlatformModel.PaymentSessionResponseSerializer().validate(
|
|
4031
|
+
responseData,
|
|
4032
|
+
{ abortEarly: false, allowUnknown: true }
|
|
4033
|
+
);
|
|
4025
4034
|
|
|
4026
4035
|
if (res_error) {
|
|
4027
4036
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4043,7 +4052,9 @@ class Payment {
|
|
|
4043
4052
|
*
|
|
4044
4053
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4045
4054
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4046
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
4055
|
+
* @returns {Promise<PaymentPlatformModel.RefundSessionResponseSerializer>}
|
|
4056
|
+
* - Success response
|
|
4057
|
+
*
|
|
4047
4058
|
* @name updateRefundSession
|
|
4048
4059
|
* @summary: Update refund session
|
|
4049
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/).
|
|
@@ -4103,10 +4114,10 @@ class Payment {
|
|
|
4103
4114
|
|
|
4104
4115
|
const {
|
|
4105
4116
|
error: res_error,
|
|
4106
|
-
} = PaymentPlatformModel.
|
|
4107
|
-
|
|
4108
|
-
allowUnknown: true
|
|
4109
|
-
|
|
4117
|
+
} = PaymentPlatformModel.RefundSessionResponseSerializer().validate(
|
|
4118
|
+
responseData,
|
|
4119
|
+
{ abortEarly: false, allowUnknown: true }
|
|
4120
|
+
);
|
|
4110
4121
|
|
|
4111
4122
|
if (res_error) {
|
|
4112
4123
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4128,7 +4139,8 @@ class Payment {
|
|
|
4128
4139
|
*
|
|
4129
4140
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4130
4141
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4131
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
4142
|
+
* @returns {Promise<PaymentPlatformModel.ValidateCustomerResponse>} -
|
|
4143
|
+
* Success response
|
|
4132
4144
|
* @name verifyCustomerForPayment
|
|
4133
4145
|
* @summary: Validate customer for paylater
|
|
4134
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/).
|
|
@@ -4184,7 +4196,7 @@ class Payment {
|
|
|
4184
4196
|
|
|
4185
4197
|
const {
|
|
4186
4198
|
error: res_error,
|
|
4187
|
-
} = PaymentPlatformModel.
|
|
4199
|
+
} = PaymentPlatformModel.ValidateCustomerResponse().validate(responseData, {
|
|
4188
4200
|
abortEarly: false,
|
|
4189
4201
|
allowUnknown: true,
|
|
4190
4202
|
});
|