@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.2
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 +53 -60
- package/sdk/application/Cart/CartApplicationClient.js +53 -130
- package/sdk/application/Cart/CartApplicationModel.d.ts +143 -489
- package/sdk/application/Cart/CartApplicationModel.js +159 -380
- package/sdk/application/Cart/CartApplicationValidator.d.ts +19 -38
- package/sdk/application/Cart/CartApplicationValidator.js +18 -34
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +68 -88
- package/sdk/application/Catalog/CatalogApplicationClient.js +94 -114
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +142 -194
- package/sdk/application/Catalog/CatalogApplicationModel.js +133 -171
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -3
- package/sdk/application/Common/CommonApplicationClient.js +5 -6
- package/sdk/application/Common/CommonApplicationModel.d.ts +9 -9
- package/sdk/application/Common/CommonApplicationModel.js +6 -6
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +27 -34
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +57 -45
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +47 -35
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +2 -2
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +2 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +33 -23
- package/sdk/application/Content/ContentApplicationClient.js +75 -54
- package/sdk/application/Content/ContentApplicationModel.d.ts +37 -93
- package/sdk/application/Content/ContentApplicationModel.js +32 -83
- package/sdk/application/Content/ContentApplicationValidator.d.ts +17 -23
- package/sdk/application/Content/ContentApplicationValidator.js +10 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +8 -9
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +13 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +25 -23
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +18 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +6 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -2
- package/sdk/application/Lead/LeadApplicationClient.js +3 -2
- package/sdk/application/Lead/LeadApplicationModel.d.ts +11 -11
- package/sdk/application/Lead/LeadApplicationModel.js +19 -19
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +16 -39
- package/sdk/application/Logistic/LogisticApplicationClient.js +21 -189
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +173 -532
- package/sdk/application/Logistic/LogisticApplicationModel.js +139 -409
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +9 -54
- package/sdk/application/Logistic/LogisticApplicationValidator.js +8 -42
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -24
- package/sdk/application/Order/OrderApplicationClient.js +13 -96
- package/sdk/application/Order/OrderApplicationModel.d.ts +120 -436
- package/sdk/application/Order/OrderApplicationModel.js +81 -279
- package/sdk/application/Order/OrderApplicationValidator.d.ts +3 -17
- package/sdk/application/Order/OrderApplicationValidator.js +2 -15
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +99 -96
- package/sdk/application/Payment/PaymentApplicationClient.js +114 -111
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +289 -293
- package/sdk/application/Payment/PaymentApplicationModel.js +241 -243
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +46 -46
- package/sdk/application/Payment/PaymentApplicationValidator.js +46 -46
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +22 -19
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +37 -37
- package/sdk/application/Rewards/RewardsApplicationModel.js +29 -29
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +6 -6
- package/sdk/application/Rewards/RewardsApplicationValidator.js +6 -6
- package/sdk/application/Share/ShareApplicationModel.js +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +2 -2
- package/sdk/application/Theme/ThemeApplicationClient.js +6 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +17 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +22 -42
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +3 -16
- package/sdk/application/Theme/ThemeApplicationValidator.js +2 -9
- package/sdk/application/User/UserApplicationClient.d.ts +10 -10
- package/sdk/application/User/UserApplicationClient.js +10 -10
- package/sdk/application/User/UserApplicationModel.d.ts +17 -17
- package/sdk/application/User/UserApplicationModel.js +16 -16
- package/sdk/application/User/UserApplicationValidator.d.ts +2 -2
- package/sdk/application/User/UserApplicationValidator.js +2 -2
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -4
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +9 -11
- package/sdk/application/Webhook/WebhookApplicationModel.js +6 -8
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +2 -2
- package/sdk/application/Webhook/WebhookApplicationValidator.js +2 -2
- package/sdk/application/index.d.ts +0 -1
- package/sdk/application/index.js +0 -2
- 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 +85 -767
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +76 -429
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -10
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +6 -120
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +37 -96
- package/sdk/partner/Theme/ThemePartnerModel.js +36 -90
- 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 +112 -407
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +65 -111
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +44 -106
- package/sdk/platform/Cart/CartPlatformModel.d.ts +1321 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1226 -1922
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +183 -208
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +358 -383
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +126 -122
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +68 -66
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +118 -141
- package/sdk/platform/Catalog/CatalogPlatformClient.js +170 -193
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1751 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1224 -1393
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +18 -18
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +18 -18
- 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 +124 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +94 -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 +4 -15
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -83
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -25
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -16
- package/sdk/platform/Order/OrderPlatformClient.d.ts +97 -178
- package/sdk/platform/Order/OrderPlatformClient.js +245 -597
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3071 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1656 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +190 -237
- package/sdk/platform/Order/OrderPlatformValidator.js +105 -153
- 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 +106 -94
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +146 -131
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -64
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -62
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -20
- package/sdk/platform/Payment/PaymentPlatformClient.js +20 -20
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +507 -386
- package/sdk/platform/Payment/PaymentPlatformModel.js +376 -323
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +10 -10
- package/sdk/platform/Payment/PaymentPlatformValidator.js +10 -10
- 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 +35 -45
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +38 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +13 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +12 -24
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +46 -40
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +64 -58
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +8 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +8 -8
- 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 +11 -37
- package/sdk/platform/Theme/ThemePlatformModel.js +15 -33
- 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 +5 -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 +5 -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/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -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 -36
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -202
- package/sdk/application/Finance/FinanceApplicationModel.d.ts +0 -289
- package/sdk/application/Finance/FinanceApplicationModel.js +0 -208
- package/sdk/application/Finance/FinanceApplicationValidator.d.ts +0 -25
- package/sdk/application/Finance/FinanceApplicationValidator.js +0 -31
|
@@ -112,7 +112,8 @@ class Payment {
|
|
|
112
112
|
* @param {PaymentApplicationValidator.AddBeneficiaryDetailsParam} arg - Arg object.
|
|
113
113
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
114
114
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
115
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
115
|
+
* @returns {Promise<PaymentApplicationModel.RefundAccountResponse>} -
|
|
116
|
+
* Success response
|
|
116
117
|
* @name addBeneficiaryDetails
|
|
117
118
|
* @summary: Add beneficiary for refund
|
|
118
119
|
* @description: Add beneficiary details specifically for refund transactions, including account holder name, account number and bank details. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/addBeneficiaryDetails/).
|
|
@@ -169,7 +170,7 @@ class Payment {
|
|
|
169
170
|
|
|
170
171
|
const {
|
|
171
172
|
error: res_error,
|
|
172
|
-
} = PaymentApplicationModel.
|
|
173
|
+
} = PaymentApplicationModel.RefundAccountResponse().validate(responseData, {
|
|
173
174
|
abortEarly: false,
|
|
174
175
|
allowUnknown: true,
|
|
175
176
|
});
|
|
@@ -194,7 +195,8 @@ class Payment {
|
|
|
194
195
|
*
|
|
195
196
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
196
197
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
197
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
198
|
+
* @returns {Promise<PaymentApplicationModel.RefundAccountResponse>} -
|
|
199
|
+
* Success response
|
|
198
200
|
* @name addRefundBankAccountUsingOTP
|
|
199
201
|
* @summary: Add refund account using OTP verification
|
|
200
202
|
* @description: Add bank account specifically for refunds, employing OTP verification for security. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/addRefundBankAccountUsingOTP/).
|
|
@@ -251,7 +253,7 @@ class Payment {
|
|
|
251
253
|
|
|
252
254
|
const {
|
|
253
255
|
error: res_error,
|
|
254
|
-
} = PaymentApplicationModel.
|
|
256
|
+
} = PaymentApplicationModel.RefundAccountResponse().validate(responseData, {
|
|
255
257
|
abortEarly: false,
|
|
256
258
|
allowUnknown: true,
|
|
257
259
|
});
|
|
@@ -274,7 +276,7 @@ class Payment {
|
|
|
274
276
|
* @param {PaymentApplicationValidator.AttachCardToCustomerParam} arg - Arg object.
|
|
275
277
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
276
278
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
277
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
279
|
+
* @returns {Promise<PaymentApplicationModel.AttachCardsResponse>} - Success response
|
|
278
280
|
* @name attachCardToCustomer
|
|
279
281
|
* @summary: Link payment card to customer
|
|
280
282
|
* @description: Link payment card to a user account for seamless transactions. Upon successful linking, the card becomes associated with the user's profile, enabling secure and convenient payments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/attachCardToCustomer/).
|
|
@@ -331,7 +333,7 @@ class Payment {
|
|
|
331
333
|
|
|
332
334
|
const {
|
|
333
335
|
error: res_error,
|
|
334
|
-
} = PaymentApplicationModel.
|
|
336
|
+
} = PaymentApplicationModel.AttachCardsResponse().validate(responseData, {
|
|
335
337
|
abortEarly: false,
|
|
336
338
|
allowUnknown: true,
|
|
337
339
|
});
|
|
@@ -354,7 +356,7 @@ class Payment {
|
|
|
354
356
|
* @param {PaymentApplicationValidator.CancelPaymentLinkParam} arg - Arg object.
|
|
355
357
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
356
358
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
357
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
359
|
+
* @returns {Promise<PaymentApplicationModel.CancelPaymentLinkResponse>} -
|
|
358
360
|
* Success response
|
|
359
361
|
* @name cancelPaymentLink
|
|
360
362
|
* @summary: Cancel payment link
|
|
@@ -410,7 +412,7 @@ class Payment {
|
|
|
410
412
|
|
|
411
413
|
const {
|
|
412
414
|
error: res_error,
|
|
413
|
-
} = PaymentApplicationModel.
|
|
415
|
+
} = PaymentApplicationModel.CancelPaymentLinkResponse().validate(
|
|
414
416
|
responseData,
|
|
415
417
|
{ abortEarly: false, allowUnknown: true }
|
|
416
418
|
);
|
|
@@ -433,8 +435,7 @@ class Payment {
|
|
|
433
435
|
* @param {PaymentApplicationValidator.CardDetailsParam} arg - Arg object.
|
|
434
436
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
435
437
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
436
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
437
|
-
* Success response
|
|
438
|
+
* @returns {Promise<PaymentApplicationModel.CardDetailsResponse>} - Success response
|
|
438
439
|
* @name cardDetails
|
|
439
440
|
* @summary: Get card details
|
|
440
441
|
* @description: Get details of a specified payment card, including information such as the card type, brand, country, and expiration date. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/cardDetails/).
|
|
@@ -490,10 +491,10 @@ class Payment {
|
|
|
490
491
|
|
|
491
492
|
const {
|
|
492
493
|
error: res_error,
|
|
493
|
-
} = PaymentApplicationModel.
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
);
|
|
494
|
+
} = PaymentApplicationModel.CardDetailsResponse().validate(responseData, {
|
|
495
|
+
abortEarly: false,
|
|
496
|
+
allowUnknown: true,
|
|
497
|
+
});
|
|
497
498
|
|
|
498
499
|
if (res_error) {
|
|
499
500
|
if (this._conf.options.strictResponseCheck === true) {
|
|
@@ -515,8 +516,9 @@ class Payment {
|
|
|
515
516
|
*
|
|
516
517
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
517
518
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
518
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
519
|
-
* Success response
|
|
519
|
+
* @returns {Promise<PaymentApplicationModel.PaymentStatusUpdateResponse>}
|
|
520
|
+
* - Success response
|
|
521
|
+
*
|
|
520
522
|
* @name checkAndUpdatePaymentStatus
|
|
521
523
|
* @summary: Update payment status
|
|
522
524
|
* @description: Polling process to confirm the payment status. It periodically checks and updates the current status of a payment, ensuring timely and accurate confirmation of payment transactions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/checkAndUpdatePaymentStatus/).
|
|
@@ -573,7 +575,7 @@ class Payment {
|
|
|
573
575
|
|
|
574
576
|
const {
|
|
575
577
|
error: res_error,
|
|
576
|
-
} = PaymentApplicationModel.
|
|
578
|
+
} = PaymentApplicationModel.PaymentStatusUpdateResponse().validate(
|
|
577
579
|
responseData,
|
|
578
580
|
{ abortEarly: false, allowUnknown: true }
|
|
579
581
|
);
|
|
@@ -598,8 +600,9 @@ class Payment {
|
|
|
598
600
|
*
|
|
599
601
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
600
602
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
601
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
602
|
-
* Success response
|
|
603
|
+
* @returns {Promise<PaymentApplicationModel.PaymentStatusUpdateResponse>}
|
|
604
|
+
* - Success response
|
|
605
|
+
*
|
|
603
606
|
* @name checkAndUpdatePaymentStatusPaymentLink
|
|
604
607
|
* @summary: Update payment link status
|
|
605
608
|
* @description: Verify and update status of a payment made through a link.Upon successful verification and update, the response includes details about the aggregator name, payment status, and whether retrying the process is required. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/checkAndUpdatePaymentStatusPaymentLink/).
|
|
@@ -656,7 +659,7 @@ class Payment {
|
|
|
656
659
|
|
|
657
660
|
const {
|
|
658
661
|
error: res_error,
|
|
659
|
-
} = PaymentApplicationModel.
|
|
662
|
+
} = PaymentApplicationModel.PaymentStatusUpdateResponse().validate(
|
|
660
663
|
responseData,
|
|
661
664
|
{ abortEarly: false, allowUnknown: true }
|
|
662
665
|
);
|
|
@@ -679,7 +682,7 @@ class Payment {
|
|
|
679
682
|
* @param {PaymentApplicationValidator.CheckCreditParam} arg - Arg object.
|
|
680
683
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
681
684
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
682
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
685
|
+
* @returns {Promise<PaymentApplicationModel.CheckCreditResponse>} - Success response
|
|
683
686
|
* @name checkCredit
|
|
684
687
|
* @summary: Verify credit availability and status
|
|
685
688
|
* @description: Check the availability and status of customer credit, providing the status of payment along with registration information and signup URL if the customer is not registered. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/checkCredit/).
|
|
@@ -735,7 +738,7 @@ class Payment {
|
|
|
735
738
|
|
|
736
739
|
const {
|
|
737
740
|
error: res_error,
|
|
738
|
-
} = PaymentApplicationModel.
|
|
741
|
+
} = PaymentApplicationModel.CheckCreditResponse().validate(responseData, {
|
|
739
742
|
abortEarly: false,
|
|
740
743
|
allowUnknown: true,
|
|
741
744
|
});
|
|
@@ -760,7 +763,7 @@ class Payment {
|
|
|
760
763
|
*
|
|
761
764
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
762
765
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
763
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
766
|
+
* @returns {Promise<PaymentApplicationModel.CreateOrderUserResponse>} -
|
|
764
767
|
* Success response
|
|
765
768
|
* @name createOrderHandlerPaymentLink
|
|
766
769
|
* @summary: Create order for payment via link
|
|
@@ -818,7 +821,7 @@ class Payment {
|
|
|
818
821
|
|
|
819
822
|
const {
|
|
820
823
|
error: res_error,
|
|
821
|
-
} = PaymentApplicationModel.
|
|
824
|
+
} = PaymentApplicationModel.CreateOrderUserResponse().validate(
|
|
822
825
|
responseData,
|
|
823
826
|
{ abortEarly: false, allowUnknown: true }
|
|
824
827
|
);
|
|
@@ -841,7 +844,7 @@ class Payment {
|
|
|
841
844
|
* @param {PaymentApplicationValidator.CreatePaymentLinkParam} arg - Arg object.
|
|
842
845
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
843
846
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
844
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
847
|
+
* @returns {Promise<PaymentApplicationModel.CreatePaymentLinkResponse>} -
|
|
845
848
|
* Success response
|
|
846
849
|
* @name createPaymentLink
|
|
847
850
|
* @summary: Create payment link
|
|
@@ -897,7 +900,7 @@ class Payment {
|
|
|
897
900
|
|
|
898
901
|
const {
|
|
899
902
|
error: res_error,
|
|
900
|
-
} = PaymentApplicationModel.
|
|
903
|
+
} = PaymentApplicationModel.CreatePaymentLinkResponse().validate(
|
|
901
904
|
responseData,
|
|
902
905
|
{ abortEarly: false, allowUnknown: true }
|
|
903
906
|
);
|
|
@@ -920,7 +923,7 @@ class Payment {
|
|
|
920
923
|
* @param {PaymentApplicationValidator.CreatePaymentOrderParam} arg - Arg object.
|
|
921
924
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
922
925
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
923
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
926
|
+
* @returns {Promise<PaymentApplicationModel.PaymentOrderResponse>} - Success response
|
|
924
927
|
* @name createPaymentOrder
|
|
925
928
|
* @summary: Create Order
|
|
926
929
|
* @description: Create an order and payment on the aggregator side. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/createPaymentOrder/).
|
|
@@ -975,7 +978,7 @@ class Payment {
|
|
|
975
978
|
|
|
976
979
|
const {
|
|
977
980
|
error: res_error,
|
|
978
|
-
} = PaymentApplicationModel.
|
|
981
|
+
} = PaymentApplicationModel.PaymentOrderResponse().validate(responseData, {
|
|
979
982
|
abortEarly: false,
|
|
980
983
|
allowUnknown: true,
|
|
981
984
|
});
|
|
@@ -998,7 +1001,7 @@ class Payment {
|
|
|
998
1001
|
* @param {PaymentApplicationValidator.CustomerCreditSummaryParam} arg - Arg object.
|
|
999
1002
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1000
1003
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1001
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
1004
|
+
* @returns {Promise<PaymentApplicationModel.CustomerCreditSummaryResponse>}
|
|
1002
1005
|
* - Success response
|
|
1003
1006
|
*
|
|
1004
1007
|
* @name customerCreditSummary
|
|
@@ -1058,7 +1061,7 @@ class Payment {
|
|
|
1058
1061
|
|
|
1059
1062
|
const {
|
|
1060
1063
|
error: res_error,
|
|
1061
|
-
} = PaymentApplicationModel.
|
|
1064
|
+
} = PaymentApplicationModel.CustomerCreditSummaryResponse().validate(
|
|
1062
1065
|
responseData,
|
|
1063
1066
|
{ abortEarly: false, allowUnknown: true }
|
|
1064
1067
|
);
|
|
@@ -1081,7 +1084,7 @@ class Payment {
|
|
|
1081
1084
|
* @param {PaymentApplicationValidator.CustomerOnboardParam} arg - Arg object.
|
|
1082
1085
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1083
1086
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1084
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
1087
|
+
* @returns {Promise<PaymentApplicationModel.CustomerOnboardingResponse>} -
|
|
1085
1088
|
* Success response
|
|
1086
1089
|
* @name customerOnboard
|
|
1087
1090
|
* @summary: Onboard customer for payment
|
|
@@ -1137,7 +1140,7 @@ class Payment {
|
|
|
1137
1140
|
|
|
1138
1141
|
const {
|
|
1139
1142
|
error: res_error,
|
|
1140
|
-
} = PaymentApplicationModel.
|
|
1143
|
+
} = PaymentApplicationModel.CustomerOnboardingResponse().validate(
|
|
1141
1144
|
responseData,
|
|
1142
1145
|
{ abortEarly: false, allowUnknown: true }
|
|
1143
1146
|
);
|
|
@@ -1160,7 +1163,7 @@ class Payment {
|
|
|
1160
1163
|
* @param {PaymentApplicationValidator.DeleteUserCardParam} arg - Arg object.
|
|
1161
1164
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1162
1165
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1163
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
1166
|
+
* @returns {Promise<PaymentApplicationModel.DeleteCardsResponse>} - Success response
|
|
1164
1167
|
* @name deleteUserCard
|
|
1165
1168
|
* @summary: Delete customer card
|
|
1166
1169
|
* @description: Delete payment card from the user's account. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/deleteUserCard/).
|
|
@@ -1215,7 +1218,7 @@ class Payment {
|
|
|
1215
1218
|
|
|
1216
1219
|
const {
|
|
1217
1220
|
error: res_error,
|
|
1218
|
-
} = PaymentApplicationModel.
|
|
1221
|
+
} = PaymentApplicationModel.DeleteCardsResponse().validate(responseData, {
|
|
1219
1222
|
abortEarly: false,
|
|
1220
1223
|
allowUnknown: true,
|
|
1221
1224
|
});
|
|
@@ -1318,7 +1321,7 @@ class Payment {
|
|
|
1318
1321
|
*
|
|
1319
1322
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1320
1323
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1321
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
1324
|
+
* @returns {Promise<PaymentApplicationModel.UpdateRefundTransferModeResponse>}
|
|
1322
1325
|
* - Success response
|
|
1323
1326
|
*
|
|
1324
1327
|
* @name enableOrDisableRefundTransferMode
|
|
@@ -1377,7 +1380,7 @@ class Payment {
|
|
|
1377
1380
|
|
|
1378
1381
|
const {
|
|
1379
1382
|
error: res_error,
|
|
1380
|
-
} = PaymentApplicationModel.
|
|
1383
|
+
} = PaymentApplicationModel.UpdateRefundTransferModeResponse().validate(
|
|
1381
1384
|
responseData,
|
|
1382
1385
|
{ abortEarly: false, allowUnknown: true }
|
|
1383
1386
|
);
|
|
@@ -1400,7 +1403,7 @@ class Payment {
|
|
|
1400
1403
|
* @param {PaymentApplicationValidator.GetActiveCardAggregatorParam} arg - Arg object.
|
|
1401
1404
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1402
1405
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1403
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
1406
|
+
* @returns {Promise<PaymentApplicationModel.ActiveCardPaymentGatewayResponse>}
|
|
1404
1407
|
* - Success response
|
|
1405
1408
|
*
|
|
1406
1409
|
* @name getActiveCardAggregator
|
|
@@ -1460,7 +1463,7 @@ class Payment {
|
|
|
1460
1463
|
|
|
1461
1464
|
const {
|
|
1462
1465
|
error: res_error,
|
|
1463
|
-
} = PaymentApplicationModel.
|
|
1466
|
+
} = PaymentApplicationModel.ActiveCardPaymentGatewayResponse().validate(
|
|
1464
1467
|
responseData,
|
|
1465
1468
|
{ abortEarly: false, allowUnknown: true }
|
|
1466
1469
|
);
|
|
@@ -1485,8 +1488,7 @@ class Payment {
|
|
|
1485
1488
|
*
|
|
1486
1489
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1487
1490
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1488
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
1489
|
-
* Success response
|
|
1491
|
+
* @returns {Promise<PaymentApplicationModel.TransferModeResponse>} - Success response
|
|
1490
1492
|
* @name getActiveRefundTransferModes
|
|
1491
1493
|
* @summary: Get refund transfer modes
|
|
1492
1494
|
* @description: Lists available refund modes, such as UPI, providing details like display name, logo, and ID for each mode. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getActiveRefundTransferModes/).
|
|
@@ -1543,10 +1545,10 @@ class Payment {
|
|
|
1543
1545
|
|
|
1544
1546
|
const {
|
|
1545
1547
|
error: res_error,
|
|
1546
|
-
} = PaymentApplicationModel.
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
);
|
|
1548
|
+
} = PaymentApplicationModel.TransferModeResponse().validate(responseData, {
|
|
1549
|
+
abortEarly: false,
|
|
1550
|
+
allowUnknown: true,
|
|
1551
|
+
});
|
|
1550
1552
|
|
|
1551
1553
|
if (res_error) {
|
|
1552
1554
|
if (this._conf.options.strictResponseCheck === true) {
|
|
@@ -1566,7 +1568,7 @@ class Payment {
|
|
|
1566
1568
|
* @param {PaymentApplicationValidator.GetActiveUserCardsParam} arg - Arg object.
|
|
1567
1569
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1568
1570
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1569
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
1571
|
+
* @returns {Promise<PaymentApplicationModel.ListCardsResponse>} - Success response
|
|
1570
1572
|
* @name getActiveUserCards
|
|
1571
1573
|
* @summary: Get customer cards
|
|
1572
1574
|
* @description: List all active cards saved by the user.Includes details such as the card's aggregator name, card ID, token, reference, number, expiration date, type, issuer, brand, nickname, and whether it has expired. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getActiveUserCards/).
|
|
@@ -1622,7 +1624,7 @@ class Payment {
|
|
|
1622
1624
|
|
|
1623
1625
|
const {
|
|
1624
1626
|
error: res_error,
|
|
1625
|
-
} = PaymentApplicationModel.
|
|
1627
|
+
} = PaymentApplicationModel.ListCardsResponse().validate(responseData, {
|
|
1626
1628
|
abortEarly: false,
|
|
1627
1629
|
allowUnknown: true,
|
|
1628
1630
|
});
|
|
@@ -1645,8 +1647,9 @@ class Payment {
|
|
|
1645
1647
|
* @param {PaymentApplicationValidator.GetAggregatorsConfigParam} arg - Arg object.
|
|
1646
1648
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1647
1649
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1648
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
1649
|
-
* Success response
|
|
1650
|
+
* @returns {Promise<PaymentApplicationModel.AggregatorsConfigDetailResponse>}
|
|
1651
|
+
* - Success response
|
|
1652
|
+
*
|
|
1650
1653
|
* @name getAggregatorsConfig
|
|
1651
1654
|
* @summary: Get payment aggregators
|
|
1652
1655
|
* @description: Get aggregator secret key of all payment gateways utilized for payments when using the SDK for the payment gateway. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getAggregatorsConfig/).
|
|
@@ -1705,7 +1708,7 @@ class Payment {
|
|
|
1705
1708
|
|
|
1706
1709
|
const {
|
|
1707
1710
|
error: res_error,
|
|
1708
|
-
} = PaymentApplicationModel.
|
|
1711
|
+
} = PaymentApplicationModel.AggregatorsConfigDetailResponse().validate(
|
|
1709
1712
|
responseData,
|
|
1710
1713
|
{ abortEarly: false, allowUnknown: true }
|
|
1711
1714
|
);
|
|
@@ -1730,7 +1733,7 @@ class Payment {
|
|
|
1730
1733
|
*
|
|
1731
1734
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1732
1735
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1733
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
1736
|
+
* @returns {Promise<PaymentApplicationModel.EpaylaterBannerResponse>} -
|
|
1734
1737
|
* Success response
|
|
1735
1738
|
* @name getEpaylaterBannerDetails
|
|
1736
1739
|
* @summary: Epaylater banner info
|
|
@@ -1788,7 +1791,7 @@ class Payment {
|
|
|
1788
1791
|
|
|
1789
1792
|
const {
|
|
1790
1793
|
error: res_error,
|
|
1791
|
-
} = PaymentApplicationModel.
|
|
1794
|
+
} = PaymentApplicationModel.EpaylaterBannerResponse().validate(
|
|
1792
1795
|
responseData,
|
|
1793
1796
|
{ abortEarly: false, allowUnknown: true }
|
|
1794
1797
|
);
|
|
@@ -1813,9 +1816,8 @@ class Payment {
|
|
|
1813
1816
|
*
|
|
1814
1817
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1815
1818
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1816
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
1817
|
-
*
|
|
1818
|
-
*
|
|
1819
|
+
* @returns {Promise<PaymentApplicationModel.OrderBeneficiaryResponse>} -
|
|
1820
|
+
* Success response
|
|
1819
1821
|
* @name getOrderBeneficiariesDetail
|
|
1820
1822
|
* @summary: Retrieve beneficiary details
|
|
1821
1823
|
* @description: Get beneficiary details like bank name , ifsc code , branch name associated with a specific order for refund processing. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getOrderBeneficiariesDetail/).
|
|
@@ -1873,7 +1875,7 @@ class Payment {
|
|
|
1873
1875
|
|
|
1874
1876
|
const {
|
|
1875
1877
|
error: res_error,
|
|
1876
|
-
} = PaymentApplicationModel.
|
|
1878
|
+
} = PaymentApplicationModel.OrderBeneficiaryResponse().validate(
|
|
1877
1879
|
responseData,
|
|
1878
1880
|
{ abortEarly: false, allowUnknown: true }
|
|
1879
1881
|
);
|
|
@@ -1896,7 +1898,7 @@ class Payment {
|
|
|
1896
1898
|
* @param {PaymentApplicationValidator.GetPaymentLinkParam} arg - Arg object.
|
|
1897
1899
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1898
1900
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1899
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
1901
|
+
* @returns {Promise<PaymentApplicationModel.GetPaymentLinkResponse>} -
|
|
1900
1902
|
* Success response
|
|
1901
1903
|
* @name getPaymentLink
|
|
1902
1904
|
* @summary: Get payment link
|
|
@@ -1953,10 +1955,10 @@ class Payment {
|
|
|
1953
1955
|
|
|
1954
1956
|
const {
|
|
1955
1957
|
error: res_error,
|
|
1956
|
-
} = PaymentApplicationModel.
|
|
1957
|
-
|
|
1958
|
-
allowUnknown: true
|
|
1959
|
-
|
|
1958
|
+
} = PaymentApplicationModel.GetPaymentLinkResponse().validate(
|
|
1959
|
+
responseData,
|
|
1960
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1961
|
+
);
|
|
1960
1962
|
|
|
1961
1963
|
if (res_error) {
|
|
1962
1964
|
if (this._conf.options.strictResponseCheck === true) {
|
|
@@ -1976,7 +1978,7 @@ class Payment {
|
|
|
1976
1978
|
* @param {PaymentApplicationValidator.GetPaymentModeRoutesParam} arg - Arg object.
|
|
1977
1979
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1978
1980
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
1979
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
1981
|
+
* @returns {Promise<PaymentApplicationModel.PaymentModeRouteResponse>} -
|
|
1980
1982
|
* Success response
|
|
1981
1983
|
* @name getPaymentModeRoutes
|
|
1982
1984
|
* @summary: Get payment modes
|
|
@@ -2078,7 +2080,7 @@ class Payment {
|
|
|
2078
2080
|
|
|
2079
2081
|
const {
|
|
2080
2082
|
error: res_error,
|
|
2081
|
-
} = PaymentApplicationModel.
|
|
2083
|
+
} = PaymentApplicationModel.PaymentModeRouteResponse().validate(
|
|
2082
2084
|
responseData,
|
|
2083
2085
|
{ abortEarly: false, allowUnknown: true }
|
|
2084
2086
|
);
|
|
@@ -2103,7 +2105,7 @@ class Payment {
|
|
|
2103
2105
|
*
|
|
2104
2106
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2105
2107
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2106
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
2108
|
+
* @returns {Promise<PaymentApplicationModel.PaymentModeRouteResponse>} -
|
|
2107
2109
|
* Success response
|
|
2108
2110
|
* @name getPaymentModeRoutesPaymentLink
|
|
2109
2111
|
* @summary: Payment modes for payment link
|
|
@@ -2162,7 +2164,7 @@ class Payment {
|
|
|
2162
2164
|
|
|
2163
2165
|
const {
|
|
2164
2166
|
error: res_error,
|
|
2165
|
-
} = PaymentApplicationModel.
|
|
2167
|
+
} = PaymentApplicationModel.PaymentModeRouteResponse().validate(
|
|
2166
2168
|
responseData,
|
|
2167
2169
|
{ abortEarly: false, allowUnknown: true }
|
|
2168
2170
|
);
|
|
@@ -2185,7 +2187,7 @@ class Payment {
|
|
|
2185
2187
|
* @param {PaymentApplicationValidator.GetPosPaymentModeRoutesParam} arg - Arg object.
|
|
2186
2188
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2187
2189
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2188
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
2190
|
+
* @returns {Promise<PaymentApplicationModel.PaymentModeRouteResponse>} -
|
|
2189
2191
|
* Success response
|
|
2190
2192
|
* @name getPosPaymentModeRoutes
|
|
2191
2193
|
* @summary: POS payment modes
|
|
@@ -2279,7 +2281,7 @@ class Payment {
|
|
|
2279
2281
|
|
|
2280
2282
|
const {
|
|
2281
2283
|
error: res_error,
|
|
2282
|
-
} = PaymentApplicationModel.
|
|
2284
|
+
} = PaymentApplicationModel.PaymentModeRouteResponse().validate(
|
|
2283
2285
|
responseData,
|
|
2284
2286
|
{ abortEarly: false, allowUnknown: true }
|
|
2285
2287
|
);
|
|
@@ -2302,7 +2304,7 @@ class Payment {
|
|
|
2302
2304
|
* @param {PaymentApplicationValidator.GetRupifiBannerDetailsParam} arg - Arg object.
|
|
2303
2305
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2304
2306
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2305
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
2307
|
+
* @returns {Promise<PaymentApplicationModel.RupifiBannerResponse>} - Success response
|
|
2306
2308
|
* @name getRupifiBannerDetails
|
|
2307
2309
|
* @summary: Rupifi banner info
|
|
2308
2310
|
* @description: Get Rupifi payment banner details. It provides information such as the KYC URL and the current status of the Rupifi payment banner. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getRupifiBannerDetails/).
|
|
@@ -2359,7 +2361,7 @@ class Payment {
|
|
|
2359
2361
|
|
|
2360
2362
|
const {
|
|
2361
2363
|
error: res_error,
|
|
2362
|
-
} = PaymentApplicationModel.
|
|
2364
|
+
} = PaymentApplicationModel.RupifiBannerResponse().validate(responseData, {
|
|
2363
2365
|
abortEarly: false,
|
|
2364
2366
|
allowUnknown: true,
|
|
2365
2367
|
});
|
|
@@ -2384,9 +2386,8 @@ class Payment {
|
|
|
2384
2386
|
*
|
|
2385
2387
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2386
2388
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2387
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
2388
|
-
*
|
|
2389
|
-
*
|
|
2389
|
+
* @returns {Promise<PaymentApplicationModel.OrderBeneficiaryResponse>} -
|
|
2390
|
+
* Success response
|
|
2390
2391
|
* @name getUserBeneficiariesDetail
|
|
2391
2392
|
* @summary: Retrieve beneficiary details
|
|
2392
2393
|
* @description: Get beneficiaries associated with the user for processing refunds, based on the provided order ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/getUserBeneficiariesDetail/).
|
|
@@ -2444,7 +2445,7 @@ class Payment {
|
|
|
2444
2445
|
|
|
2445
2446
|
const {
|
|
2446
2447
|
error: res_error,
|
|
2447
|
-
} = PaymentApplicationModel.
|
|
2448
|
+
} = PaymentApplicationModel.OrderBeneficiaryResponse().validate(
|
|
2448
2449
|
responseData,
|
|
2449
2450
|
{ abortEarly: false, allowUnknown: true }
|
|
2450
2451
|
);
|
|
@@ -2467,7 +2468,7 @@ class Payment {
|
|
|
2467
2468
|
* @param {PaymentApplicationValidator.InitialisePaymentParam} arg - Arg object.
|
|
2468
2469
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2469
2470
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2470
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
2471
|
+
* @returns {Promise<PaymentApplicationModel.PaymentInitializationResponse>}
|
|
2471
2472
|
* - Success response
|
|
2472
2473
|
*
|
|
2473
2474
|
* @name initialisePayment
|
|
@@ -2524,7 +2525,7 @@ class Payment {
|
|
|
2524
2525
|
|
|
2525
2526
|
const {
|
|
2526
2527
|
error: res_error,
|
|
2527
|
-
} = PaymentApplicationModel.
|
|
2528
|
+
} = PaymentApplicationModel.PaymentInitializationResponse().validate(
|
|
2528
2529
|
responseData,
|
|
2529
2530
|
{ abortEarly: false, allowUnknown: true }
|
|
2530
2531
|
);
|
|
@@ -2549,7 +2550,7 @@ class Payment {
|
|
|
2549
2550
|
*
|
|
2550
2551
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2551
2552
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2552
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
2553
|
+
* @returns {Promise<PaymentApplicationModel.PaymentInitializationResponse>}
|
|
2553
2554
|
* - Success response
|
|
2554
2555
|
*
|
|
2555
2556
|
* @name initialisePaymentPaymentLink
|
|
@@ -2608,7 +2609,7 @@ class Payment {
|
|
|
2608
2609
|
|
|
2609
2610
|
const {
|
|
2610
2611
|
error: res_error,
|
|
2611
|
-
} = PaymentApplicationModel.
|
|
2612
|
+
} = PaymentApplicationModel.PaymentInitializationResponse().validate(
|
|
2612
2613
|
responseData,
|
|
2613
2614
|
{ abortEarly: false, allowUnknown: true }
|
|
2614
2615
|
);
|
|
@@ -2709,8 +2710,9 @@ class Payment {
|
|
|
2709
2710
|
* @param {PaymentApplicationValidator.OutstandingOrderDetailsParam} arg - Arg object.
|
|
2710
2711
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2711
2712
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2712
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
2713
|
-
* Success response
|
|
2713
|
+
* @returns {Promise<PaymentApplicationModel.OutstandingOrderDetailsResponse>}
|
|
2714
|
+
* - Success response
|
|
2715
|
+
*
|
|
2714
2716
|
* @name outstandingOrderDetails
|
|
2715
2717
|
* @summary: Outstanding orders
|
|
2716
2718
|
* @description: Get details of orders with outstanding payments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/outstandingOrderDetails/).
|
|
@@ -2768,7 +2770,7 @@ class Payment {
|
|
|
2768
2770
|
|
|
2769
2771
|
const {
|
|
2770
2772
|
error: res_error,
|
|
2771
|
-
} = PaymentApplicationModel.
|
|
2773
|
+
} = PaymentApplicationModel.OutstandingOrderDetailsResponse().validate(
|
|
2772
2774
|
responseData,
|
|
2773
2775
|
{ abortEarly: false, allowUnknown: true }
|
|
2774
2776
|
);
|
|
@@ -2791,7 +2793,8 @@ class Payment {
|
|
|
2791
2793
|
* @param {PaymentApplicationValidator.PaidOrderDetailsParam} arg - Arg object.
|
|
2792
2794
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2793
2795
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2794
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
2796
|
+
* @returns {Promise<PaymentApplicationModel.PaidOrderDetailsResponse>} -
|
|
2797
|
+
* Success response
|
|
2795
2798
|
* @name paidOrderDetails
|
|
2796
2799
|
* @summary: Retrieve details of paid orders
|
|
2797
2800
|
* @description: Get details of orders that have been paid for, including shipment ID, order ID, due date, payment date, amount, and transaction ID, based on the aggregator merchant user ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/paidOrderDetails/).
|
|
@@ -2847,10 +2850,10 @@ class Payment {
|
|
|
2847
2850
|
|
|
2848
2851
|
const {
|
|
2849
2852
|
error: res_error,
|
|
2850
|
-
} = PaymentApplicationModel.
|
|
2851
|
-
|
|
2852
|
-
allowUnknown: true
|
|
2853
|
-
|
|
2853
|
+
} = PaymentApplicationModel.PaidOrderDetailsResponse().validate(
|
|
2854
|
+
responseData,
|
|
2855
|
+
{ abortEarly: false, allowUnknown: true }
|
|
2856
|
+
);
|
|
2854
2857
|
|
|
2855
2858
|
if (res_error) {
|
|
2856
2859
|
if (this._conf.options.strictResponseCheck === true) {
|
|
@@ -2870,7 +2873,7 @@ class Payment {
|
|
|
2870
2873
|
* @param {PaymentApplicationValidator.PollingPaymentLinkParam} arg - Arg object.
|
|
2871
2874
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2872
2875
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2873
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
2876
|
+
* @returns {Promise<PaymentApplicationModel.PollingPaymentLinkResponse>} -
|
|
2874
2877
|
* Success response
|
|
2875
2878
|
* @name pollingPaymentLink
|
|
2876
2879
|
* @summary: Poll status of payment link
|
|
@@ -2927,7 +2930,7 @@ class Payment {
|
|
|
2927
2930
|
|
|
2928
2931
|
const {
|
|
2929
2932
|
error: res_error,
|
|
2930
|
-
} = PaymentApplicationModel.
|
|
2933
|
+
} = PaymentApplicationModel.PollingPaymentLinkResponse().validate(
|
|
2931
2934
|
responseData,
|
|
2932
2935
|
{ abortEarly: false, allowUnknown: true }
|
|
2933
2936
|
);
|
|
@@ -2950,7 +2953,7 @@ class Payment {
|
|
|
2950
2953
|
* @param {PaymentApplicationValidator.RedirectToAggregatorParam} arg - Arg object.
|
|
2951
2954
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2952
2955
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
2953
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
2956
|
+
* @returns {Promise<PaymentApplicationModel.RedirectToAggregatorResponse>}
|
|
2954
2957
|
* - Success response
|
|
2955
2958
|
*
|
|
2956
2959
|
* @name redirectToAggregator
|
|
@@ -3011,7 +3014,7 @@ class Payment {
|
|
|
3011
3014
|
|
|
3012
3015
|
const {
|
|
3013
3016
|
error: res_error,
|
|
3014
|
-
} = PaymentApplicationModel.
|
|
3017
|
+
} = PaymentApplicationModel.RedirectToAggregatorResponse().validate(
|
|
3015
3018
|
responseData,
|
|
3016
3019
|
{ abortEarly: false, allowUnknown: true }
|
|
3017
3020
|
);
|
|
@@ -3034,7 +3037,7 @@ class Payment {
|
|
|
3034
3037
|
* @param {PaymentApplicationValidator.RenderHTMLParam} arg - Arg object.
|
|
3035
3038
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3036
3039
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3037
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
3040
|
+
* @returns {Promise<PaymentApplicationModel.renderHTMLResponse>} - Success response
|
|
3038
3041
|
* @name renderHTML
|
|
3039
3042
|
* @summary: Render HTML
|
|
3040
3043
|
* @description: Render HTML for a payment aggregator page. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/renderHTML/).
|
|
@@ -3089,7 +3092,7 @@ class Payment {
|
|
|
3089
3092
|
|
|
3090
3093
|
const {
|
|
3091
3094
|
error: res_error,
|
|
3092
|
-
} = PaymentApplicationModel.
|
|
3095
|
+
} = PaymentApplicationModel.renderHTMLResponse().validate(responseData, {
|
|
3093
3096
|
abortEarly: false,
|
|
3094
3097
|
allowUnknown: true,
|
|
3095
3098
|
});
|
|
@@ -3112,7 +3115,7 @@ class Payment {
|
|
|
3112
3115
|
* @param {PaymentApplicationValidator.ResendOrCancelPaymentParam} arg - Arg object.
|
|
3113
3116
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3114
3117
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3115
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
3118
|
+
* @returns {Promise<PaymentApplicationModel.ResendOrCancelPaymentResponse>}
|
|
3116
3119
|
* - Success response
|
|
3117
3120
|
*
|
|
3118
3121
|
* @name resendOrCancelPayment
|
|
@@ -3171,7 +3174,7 @@ class Payment {
|
|
|
3171
3174
|
|
|
3172
3175
|
const {
|
|
3173
3176
|
error: res_error,
|
|
3174
|
-
} = PaymentApplicationModel.
|
|
3177
|
+
} = PaymentApplicationModel.ResendOrCancelPaymentResponse().validate(
|
|
3175
3178
|
responseData,
|
|
3176
3179
|
{ abortEarly: false, allowUnknown: true }
|
|
3177
3180
|
);
|
|
@@ -3194,7 +3197,7 @@ class Payment {
|
|
|
3194
3197
|
* @param {PaymentApplicationValidator.ResendPaymentLinkParam} arg - Arg object.
|
|
3195
3198
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3196
3199
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3197
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
3200
|
+
* @returns {Promise<PaymentApplicationModel.ResendPaymentLinkResponse>} -
|
|
3198
3201
|
* Success response
|
|
3199
3202
|
* @name resendPaymentLink
|
|
3200
3203
|
* @summary: Resend payment link
|
|
@@ -3250,7 +3253,7 @@ class Payment {
|
|
|
3250
3253
|
|
|
3251
3254
|
const {
|
|
3252
3255
|
error: res_error,
|
|
3253
|
-
} = PaymentApplicationModel.
|
|
3256
|
+
} = PaymentApplicationModel.ResendPaymentLinkResponse().validate(
|
|
3254
3257
|
responseData,
|
|
3255
3258
|
{ abortEarly: false, allowUnknown: true }
|
|
3256
3259
|
);
|
|
@@ -3274,7 +3277,7 @@ class Payment {
|
|
|
3274
3277
|
* Arg object.
|
|
3275
3278
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3276
3279
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3277
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
3280
|
+
* @returns {Promise<PaymentApplicationModel.SetDefaultBeneficiaryResponse>}
|
|
3278
3281
|
* - Success response
|
|
3279
3282
|
*
|
|
3280
3283
|
* @name updateDefaultBeneficiary
|
|
@@ -3333,7 +3336,7 @@ class Payment {
|
|
|
3333
3336
|
|
|
3334
3337
|
const {
|
|
3335
3338
|
error: res_error,
|
|
3336
|
-
} = PaymentApplicationModel.
|
|
3339
|
+
} = PaymentApplicationModel.SetDefaultBeneficiaryResponse().validate(
|
|
3337
3340
|
responseData,
|
|
3338
3341
|
{ abortEarly: false, allowUnknown: true }
|
|
3339
3342
|
);
|
|
@@ -3356,7 +3359,7 @@ class Payment {
|
|
|
3356
3359
|
* @param {PaymentApplicationValidator.ValidateVPAParam} arg - Arg object.
|
|
3357
3360
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3358
3361
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3359
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
3362
|
+
* @returns {Promise<PaymentApplicationModel.ValidateVPAResponse>} - Success response
|
|
3360
3363
|
* @name validateVPA
|
|
3361
3364
|
* @summary: Validate VPA
|
|
3362
3365
|
* @description: Validate if a Virtual Payment Address (VPA) is valid for processing payments and returns the validation result.is_valid boolean value indicating whether the VPA is valid for payments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/validateVPA/).
|
|
@@ -3411,7 +3414,7 @@ class Payment {
|
|
|
3411
3414
|
|
|
3412
3415
|
const {
|
|
3413
3416
|
error: res_error,
|
|
3414
|
-
} = PaymentApplicationModel.
|
|
3417
|
+
} = PaymentApplicationModel.ValidateVPAResponse().validate(responseData, {
|
|
3415
3418
|
abortEarly: false,
|
|
3416
3419
|
allowUnknown: true,
|
|
3417
3420
|
});
|
|
@@ -3434,7 +3437,7 @@ class Payment {
|
|
|
3434
3437
|
* @param {PaymentApplicationValidator.VerifyAndChargePaymentParam} arg - Arg object.
|
|
3435
3438
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3436
3439
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3437
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
3440
|
+
* @returns {Promise<PaymentApplicationModel.ChargeCustomerResponse>} -
|
|
3438
3441
|
* Success response
|
|
3439
3442
|
* @name verifyAndChargePayment
|
|
3440
3443
|
* @summary: Verify order confirmation and charge
|
|
@@ -3492,10 +3495,10 @@ class Payment {
|
|
|
3492
3495
|
|
|
3493
3496
|
const {
|
|
3494
3497
|
error: res_error,
|
|
3495
|
-
} = PaymentApplicationModel.
|
|
3496
|
-
|
|
3497
|
-
allowUnknown: true
|
|
3498
|
-
|
|
3498
|
+
} = PaymentApplicationModel.ChargeCustomerResponse().validate(
|
|
3499
|
+
responseData,
|
|
3500
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3501
|
+
);
|
|
3499
3502
|
|
|
3500
3503
|
if (res_error) {
|
|
3501
3504
|
if (this._conf.options.strictResponseCheck === true) {
|
|
@@ -3516,7 +3519,7 @@ class Payment {
|
|
|
3516
3519
|
* Arg object.
|
|
3517
3520
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3518
3521
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3519
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
3522
|
+
* @returns {Promise<PaymentApplicationModel.ValidateCustomerResponse>} -
|
|
3520
3523
|
* Success response
|
|
3521
3524
|
* @name verifyCustomerForPayment
|
|
3522
3525
|
* @summary: Verify payment customer
|
|
@@ -3574,7 +3577,7 @@ class Payment {
|
|
|
3574
3577
|
|
|
3575
3578
|
const {
|
|
3576
3579
|
error: res_error,
|
|
3577
|
-
} = PaymentApplicationModel.
|
|
3580
|
+
} = PaymentApplicationModel.ValidateCustomerResponse().validate(
|
|
3578
3581
|
responseData,
|
|
3579
3582
|
{ abortEarly: false, allowUnknown: true }
|
|
3580
3583
|
);
|
|
@@ -3597,7 +3600,7 @@ class Payment {
|
|
|
3597
3600
|
* @param {PaymentApplicationValidator.VerifyIfscCodeParam} arg - Arg object.
|
|
3598
3601
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3599
3602
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3600
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
3603
|
+
* @returns {Promise<PaymentApplicationModel.IfscCodeResponse>} - Success response
|
|
3601
3604
|
* @name verifyIfscCode
|
|
3602
3605
|
* @summary: Verify IFSC
|
|
3603
3606
|
* @description: Validate IFSC code and returns bank details if valid. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/verifyIfscCode/).
|
|
@@ -3653,7 +3656,7 @@ class Payment {
|
|
|
3653
3656
|
|
|
3654
3657
|
const {
|
|
3655
3658
|
error: res_error,
|
|
3656
|
-
} = PaymentApplicationModel.
|
|
3659
|
+
} = PaymentApplicationModel.IfscCodeResponse().validate(responseData, {
|
|
3657
3660
|
abortEarly: false,
|
|
3658
3661
|
allowUnknown: true,
|
|
3659
3662
|
});
|
|
@@ -3678,7 +3681,7 @@ class Payment {
|
|
|
3678
3681
|
*
|
|
3679
3682
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3680
3683
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3681
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
3684
|
+
* @returns {Promise<PaymentApplicationModel.AddBeneficiaryViaOtpVerificationResponse>}
|
|
3682
3685
|
* - Success response
|
|
3683
3686
|
*
|
|
3684
3687
|
* @name verifyOtpAndAddBeneficiaryForBank
|
|
@@ -3737,7 +3740,7 @@ class Payment {
|
|
|
3737
3740
|
|
|
3738
3741
|
const {
|
|
3739
3742
|
error: res_error,
|
|
3740
|
-
} = PaymentApplicationModel.
|
|
3743
|
+
} = PaymentApplicationModel.AddBeneficiaryViaOtpVerificationResponse().validate(
|
|
3741
3744
|
responseData,
|
|
3742
3745
|
{ abortEarly: false, allowUnknown: true }
|
|
3743
3746
|
);
|
|
@@ -3762,7 +3765,7 @@ class Payment {
|
|
|
3762
3765
|
*
|
|
3763
3766
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3764
3767
|
* @param {import("../ApplicationAPIClient").Options} - Options
|
|
3765
|
-
* @returns {Promise<PaymentApplicationModel.
|
|
3768
|
+
* @returns {Promise<PaymentApplicationModel.WalletOtpResponse>} - Success response
|
|
3766
3769
|
* @name verifyOtpAndAddBeneficiaryForWallet
|
|
3767
3770
|
* @summary: Verify OTP for wallet
|
|
3768
3771
|
* @description: Verify OTP provided by the user and adds a wallet beneficiary. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/application/payment/verifyOtpAndAddBeneficiaryForWallet/).
|
|
@@ -3819,7 +3822,7 @@ class Payment {
|
|
|
3819
3822
|
|
|
3820
3823
|
const {
|
|
3821
3824
|
error: res_error,
|
|
3822
|
-
} = PaymentApplicationModel.
|
|
3825
|
+
} = PaymentApplicationModel.WalletOtpResponse().validate(responseData, {
|
|
3823
3826
|
abortEarly: false,
|
|
3824
3827
|
allowUnknown: true,
|
|
3825
3828
|
});
|