@gofynd/fdk-client-javascript 1.6.4 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +113 -93
- package/sdk/application/Cart/CartApplicationClient.js +270 -139
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
- package/sdk/application/Content/ContentApplicationClient.js +197 -36
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
- package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -670
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -268
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
- package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
- package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
- package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
- package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
- package/sdk/platform/Content/ContentPlatformModel.js +893 -582
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- 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 +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
- package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4103 -9109
- package/sdk/platform/Order/OrderPlatformModel.js +3198 -4245
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- 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 +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- 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 +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
- package/sdk/platform/Share/SharePlatformModel.js +3 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +18 -71
- package/sdk/platform/User/UserPlatformApplicationClient.js +27 -412
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +10 -114
- package/sdk/platform/User/UserPlatformApplicationValidator.js +7 -80
- package/sdk/platform/User/UserPlatformModel.d.ts +216 -264
- package/sdk/platform/User/UserPlatformModel.js +209 -216
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +428 -810
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -444
- 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/Billing/BillingPublicClient.d.ts +56 -0
- package/sdk/public/Billing/BillingPublicClient.js +397 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
- package/sdk/public/Billing/BillingPublicModel.js +560 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
- package/sdk/public/Billing/BillingPublicValidator.js +50 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -18,7 +18,7 @@ class Payment {
|
|
|
18
18
|
* @param {PaymentPlatformValidator.ActivateAndDectivatePayoutParam} arg - Arg object
|
|
19
19
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
20
20
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
21
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
21
|
+
* @returns {Promise<PaymentPlatformModel.UpdatePayoutResponse>} - Success response
|
|
22
22
|
* @name activateAndDectivatePayout
|
|
23
23
|
* @summary: Activate/Deactivate payout
|
|
24
24
|
* @description: Enable or disable payout functionality. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/activateAndDectivatePayout/).
|
|
@@ -78,7 +78,7 @@ class Payment {
|
|
|
78
78
|
|
|
79
79
|
const {
|
|
80
80
|
error: res_error,
|
|
81
|
-
} = PaymentPlatformModel.
|
|
81
|
+
} = PaymentPlatformModel.UpdatePayoutResponse().validate(responseData, {
|
|
82
82
|
abortEarly: false,
|
|
83
83
|
allowUnknown: true,
|
|
84
84
|
});
|
|
@@ -97,14 +97,95 @@ class Payment {
|
|
|
97
97
|
return response;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
/**
|
|
101
|
+
* @param {PaymentPlatformValidator.ActivateAndDectivatePayoutsParam} arg - Arg object
|
|
102
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
103
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
104
|
+
* @returns {Promise<PaymentPlatformModel.UpdatePayoutResponse>} - Success response
|
|
105
|
+
* @name activateAndDectivatePayouts
|
|
106
|
+
* @summary: Activate/Deactivate payout.
|
|
107
|
+
* @description: Enable or disable payout functionality. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/activateAndDectivatePayouts/).
|
|
108
|
+
*/
|
|
109
|
+
async activateAndDectivatePayouts(
|
|
110
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
111
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
112
|
+
) {
|
|
113
|
+
const {
|
|
114
|
+
error,
|
|
115
|
+
} = PaymentPlatformValidator.activateAndDectivatePayouts().validate(
|
|
116
|
+
{
|
|
117
|
+
body,
|
|
118
|
+
},
|
|
119
|
+
{ abortEarly: false, allowUnknown: true }
|
|
120
|
+
);
|
|
121
|
+
if (error) {
|
|
122
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// Showing warrnings if extra unknown parameters are found
|
|
126
|
+
const {
|
|
127
|
+
error: warrning,
|
|
128
|
+
} = PaymentPlatformValidator.activateAndDectivatePayouts().validate(
|
|
129
|
+
{
|
|
130
|
+
body,
|
|
131
|
+
},
|
|
132
|
+
{ abortEarly: false, allowUnknown: false }
|
|
133
|
+
);
|
|
134
|
+
if (warrning) {
|
|
135
|
+
Logger({
|
|
136
|
+
level: "WARN",
|
|
137
|
+
message: `Parameter Validation warrnings for platform > Payment > activateAndDectivatePayouts \n ${warrning}`,
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const query_params = {};
|
|
142
|
+
|
|
143
|
+
const xHeaders = {};
|
|
144
|
+
|
|
145
|
+
const response = await PlatformAPIClient.execute(
|
|
146
|
+
this.config,
|
|
147
|
+
"patch",
|
|
148
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/payouts`,
|
|
149
|
+
query_params,
|
|
150
|
+
body,
|
|
151
|
+
{ ...xHeaders, ...requestHeaders },
|
|
152
|
+
{ responseHeaders }
|
|
153
|
+
);
|
|
154
|
+
|
|
155
|
+
let responseData = response;
|
|
156
|
+
if (responseHeaders) {
|
|
157
|
+
responseData = response[0];
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
const {
|
|
161
|
+
error: res_error,
|
|
162
|
+
} = PaymentPlatformModel.UpdatePayoutResponse().validate(responseData, {
|
|
163
|
+
abortEarly: false,
|
|
164
|
+
allowUnknown: true,
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
if (res_error) {
|
|
168
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
169
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
170
|
+
} else {
|
|
171
|
+
Logger({
|
|
172
|
+
level: "WARN",
|
|
173
|
+
message: `Response Validation Warnings for platform > Payment > activateAndDectivatePayouts \n ${res_error}`,
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return response;
|
|
179
|
+
}
|
|
180
|
+
|
|
100
181
|
/**
|
|
101
182
|
* @param {PaymentPlatformValidator.DeletePayoutParam} arg - Arg object
|
|
102
183
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
103
184
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
104
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
185
|
+
* @returns {Promise<PaymentPlatformModel.DeletePayoutResponse>} - Success response
|
|
105
186
|
* @name deletePayout
|
|
106
|
-
* @summary: Delete
|
|
107
|
-
* @description:
|
|
187
|
+
* @summary: Delete Payout
|
|
188
|
+
* @description: Delete Payout - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/deletePayout/).
|
|
108
189
|
*/
|
|
109
190
|
async deletePayout(
|
|
110
191
|
{ uniqueTransferNo, requestHeaders } = { requestHeaders: {} },
|
|
@@ -157,7 +238,7 @@ class Payment {
|
|
|
157
238
|
|
|
158
239
|
const {
|
|
159
240
|
error: res_error,
|
|
160
|
-
} = PaymentPlatformModel.
|
|
241
|
+
} = PaymentPlatformModel.DeletePayoutResponse().validate(responseData, {
|
|
161
242
|
abortEarly: false,
|
|
162
243
|
allowUnknown: true,
|
|
163
244
|
});
|
|
@@ -177,30 +258,21 @@ class Payment {
|
|
|
177
258
|
}
|
|
178
259
|
|
|
179
260
|
/**
|
|
180
|
-
* @param {PaymentPlatformValidator.
|
|
181
|
-
* - Arg object
|
|
182
|
-
*
|
|
261
|
+
* @param {PaymentPlatformValidator.DeletePayoutsParam} arg - Arg object
|
|
183
262
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
184
263
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
185
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
* @
|
|
189
|
-
* @summary: Delete subscription payment method
|
|
190
|
-
* @description: Remove a payment method from subscription options. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/deleteSubscriptionPaymentMethod/).
|
|
264
|
+
* @returns {Promise<PaymentPlatformModel.DeletePayoutResponse>} - Success response
|
|
265
|
+
* @name deletePayouts
|
|
266
|
+
* @summary: Delete payout.
|
|
267
|
+
* @description: Remove a payout transaction from the system. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/deletePayouts/).
|
|
191
268
|
*/
|
|
192
|
-
async
|
|
193
|
-
{
|
|
194
|
-
requestHeaders: {},
|
|
195
|
-
},
|
|
269
|
+
async deletePayouts(
|
|
270
|
+
{ uniqueTransferNo, requestHeaders } = { requestHeaders: {} },
|
|
196
271
|
{ responseHeaders } = { responseHeaders: false }
|
|
197
272
|
) {
|
|
198
|
-
const {
|
|
199
|
-
error,
|
|
200
|
-
} = PaymentPlatformValidator.deleteSubscriptionPaymentMethod().validate(
|
|
273
|
+
const { error } = PaymentPlatformValidator.deletePayouts().validate(
|
|
201
274
|
{
|
|
202
|
-
|
|
203
|
-
paymentMethodId,
|
|
275
|
+
uniqueTransferNo,
|
|
204
276
|
},
|
|
205
277
|
{ abortEarly: false, allowUnknown: true }
|
|
206
278
|
);
|
|
@@ -211,30 +283,28 @@ class Payment {
|
|
|
211
283
|
// Showing warrnings if extra unknown parameters are found
|
|
212
284
|
const {
|
|
213
285
|
error: warrning,
|
|
214
|
-
} = PaymentPlatformValidator.
|
|
286
|
+
} = PaymentPlatformValidator.deletePayouts().validate(
|
|
215
287
|
{
|
|
216
|
-
|
|
217
|
-
paymentMethodId,
|
|
288
|
+
uniqueTransferNo,
|
|
218
289
|
},
|
|
219
290
|
{ abortEarly: false, allowUnknown: false }
|
|
220
291
|
);
|
|
221
292
|
if (warrning) {
|
|
222
293
|
Logger({
|
|
223
294
|
level: "WARN",
|
|
224
|
-
message: `Parameter Validation warrnings for platform > Payment >
|
|
295
|
+
message: `Parameter Validation warrnings for platform > Payment > deletePayouts \n ${warrning}`,
|
|
225
296
|
});
|
|
226
297
|
}
|
|
227
298
|
|
|
228
299
|
const query_params = {};
|
|
229
|
-
query_params["
|
|
230
|
-
query_params["payment_method_id"] = paymentMethodId;
|
|
300
|
+
query_params["unique_transfer_no"] = uniqueTransferNo;
|
|
231
301
|
|
|
232
302
|
const xHeaders = {};
|
|
233
303
|
|
|
234
304
|
const response = await PlatformAPIClient.execute(
|
|
235
305
|
this.config,
|
|
236
306
|
"delete",
|
|
237
|
-
`/service/platform/payment/v1.0/company/${this.config.companyId}/
|
|
307
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/payouts`,
|
|
238
308
|
query_params,
|
|
239
309
|
undefined,
|
|
240
310
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -248,10 +318,10 @@ class Payment {
|
|
|
248
318
|
|
|
249
319
|
const {
|
|
250
320
|
error: res_error,
|
|
251
|
-
} = PaymentPlatformModel.
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
);
|
|
321
|
+
} = PaymentPlatformModel.DeletePayoutResponse().validate(responseData, {
|
|
322
|
+
abortEarly: false,
|
|
323
|
+
allowUnknown: true,
|
|
324
|
+
});
|
|
255
325
|
|
|
256
326
|
if (res_error) {
|
|
257
327
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -259,7 +329,7 @@ class Payment {
|
|
|
259
329
|
} else {
|
|
260
330
|
Logger({
|
|
261
331
|
level: "WARN",
|
|
262
|
-
message: `Response Validation Warnings for platform > Payment >
|
|
332
|
+
message: `Response Validation Warnings for platform > Payment > deletePayouts \n ${res_error}`,
|
|
263
333
|
});
|
|
264
334
|
}
|
|
265
335
|
}
|
|
@@ -268,20 +338,23 @@ class Payment {
|
|
|
268
338
|
}
|
|
269
339
|
|
|
270
340
|
/**
|
|
271
|
-
* @param {PaymentPlatformValidator.
|
|
341
|
+
* @param {PaymentPlatformValidator.GetAllPayoutParam} arg - Arg object
|
|
272
342
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
273
343
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
274
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
275
|
-
* @name
|
|
276
|
-
* @summary:
|
|
277
|
-
* @description:
|
|
344
|
+
* @returns {Promise<PaymentPlatformModel.PayoutsResponse>} - Success response
|
|
345
|
+
* @name getAllPayout
|
|
346
|
+
* @summary: Get All Payouts
|
|
347
|
+
* @description: Get All Payouts - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getAllPayout/).
|
|
278
348
|
*/
|
|
279
|
-
async
|
|
280
|
-
{ uniqueExternalId, requestHeaders } = {
|
|
349
|
+
async getAllPayout(
|
|
350
|
+
{ uniqueTransferNo, uniqueExternalId, requestHeaders } = {
|
|
351
|
+
requestHeaders: {},
|
|
352
|
+
},
|
|
281
353
|
{ responseHeaders } = { responseHeaders: false }
|
|
282
354
|
) {
|
|
283
|
-
const { error } = PaymentPlatformValidator.
|
|
355
|
+
const { error } = PaymentPlatformValidator.getAllPayout().validate(
|
|
284
356
|
{
|
|
357
|
+
uniqueTransferNo,
|
|
285
358
|
uniqueExternalId,
|
|
286
359
|
},
|
|
287
360
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -293,8 +366,9 @@ class Payment {
|
|
|
293
366
|
// Showing warrnings if extra unknown parameters are found
|
|
294
367
|
const {
|
|
295
368
|
error: warrning,
|
|
296
|
-
} = PaymentPlatformValidator.
|
|
369
|
+
} = PaymentPlatformValidator.getAllPayout().validate(
|
|
297
370
|
{
|
|
371
|
+
uniqueTransferNo,
|
|
298
372
|
uniqueExternalId,
|
|
299
373
|
},
|
|
300
374
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -302,7 +376,7 @@ class Payment {
|
|
|
302
376
|
if (warrning) {
|
|
303
377
|
Logger({
|
|
304
378
|
level: "WARN",
|
|
305
|
-
message: `Parameter Validation warrnings for platform > Payment >
|
|
379
|
+
message: `Parameter Validation warrnings for platform > Payment > getAllPayout \n ${warrning}`,
|
|
306
380
|
});
|
|
307
381
|
}
|
|
308
382
|
|
|
@@ -314,7 +388,7 @@ class Payment {
|
|
|
314
388
|
const response = await PlatformAPIClient.execute(
|
|
315
389
|
this.config,
|
|
316
390
|
"get",
|
|
317
|
-
`/service/platform/payment/v1.0/company/${this.config.companyId}/payouts`,
|
|
391
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/payouts/${uniqueTransferNo}`,
|
|
318
392
|
query_params,
|
|
319
393
|
undefined,
|
|
320
394
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -328,7 +402,7 @@ class Payment {
|
|
|
328
402
|
|
|
329
403
|
const {
|
|
330
404
|
error: res_error,
|
|
331
|
-
} = PaymentPlatformModel.
|
|
405
|
+
} = PaymentPlatformModel.PayoutsResponse().validate(responseData, {
|
|
332
406
|
abortEarly: false,
|
|
333
407
|
allowUnknown: true,
|
|
334
408
|
});
|
|
@@ -339,7 +413,7 @@ class Payment {
|
|
|
339
413
|
} else {
|
|
340
414
|
Logger({
|
|
341
415
|
level: "WARN",
|
|
342
|
-
message: `Response Validation Warnings for platform > Payment >
|
|
416
|
+
message: `Response Validation Warnings for platform > Payment > getAllPayout \n ${res_error}`,
|
|
343
417
|
});
|
|
344
418
|
}
|
|
345
419
|
}
|
|
@@ -348,21 +422,22 @@ class Payment {
|
|
|
348
422
|
}
|
|
349
423
|
|
|
350
424
|
/**
|
|
351
|
-
* @param {PaymentPlatformValidator.
|
|
425
|
+
* @param {PaymentPlatformValidator.GetAllPayoutsParam} arg - Arg object
|
|
352
426
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
353
427
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
354
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
355
|
-
*
|
|
356
|
-
* @
|
|
357
|
-
* @
|
|
358
|
-
* @description: Retrieve configuration settings for subscriptions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getSubscriptionConfig/).
|
|
428
|
+
* @returns {Promise<PaymentPlatformModel.PayoutsResponse>} - Success response
|
|
429
|
+
* @name getAllPayouts
|
|
430
|
+
* @summary: List payouts
|
|
431
|
+
* @description: Retrieve a list of all payout transactions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getAllPayouts/).
|
|
359
432
|
*/
|
|
360
|
-
async
|
|
361
|
-
{ requestHeaders } = { requestHeaders: {} },
|
|
433
|
+
async getAllPayouts(
|
|
434
|
+
{ uniqueExternalId, requestHeaders } = { requestHeaders: {} },
|
|
362
435
|
{ responseHeaders } = { responseHeaders: false }
|
|
363
436
|
) {
|
|
364
|
-
const { error } = PaymentPlatformValidator.
|
|
365
|
-
{
|
|
437
|
+
const { error } = PaymentPlatformValidator.getAllPayouts().validate(
|
|
438
|
+
{
|
|
439
|
+
uniqueExternalId,
|
|
440
|
+
},
|
|
366
441
|
{ abortEarly: false, allowUnknown: true }
|
|
367
442
|
);
|
|
368
443
|
if (error) {
|
|
@@ -372,25 +447,28 @@ class Payment {
|
|
|
372
447
|
// Showing warrnings if extra unknown parameters are found
|
|
373
448
|
const {
|
|
374
449
|
error: warrning,
|
|
375
|
-
} = PaymentPlatformValidator.
|
|
376
|
-
{
|
|
450
|
+
} = PaymentPlatformValidator.getAllPayouts().validate(
|
|
451
|
+
{
|
|
452
|
+
uniqueExternalId,
|
|
453
|
+
},
|
|
377
454
|
{ abortEarly: false, allowUnknown: false }
|
|
378
455
|
);
|
|
379
456
|
if (warrning) {
|
|
380
457
|
Logger({
|
|
381
458
|
level: "WARN",
|
|
382
|
-
message: `Parameter Validation warrnings for platform > Payment >
|
|
459
|
+
message: `Parameter Validation warrnings for platform > Payment > getAllPayouts \n ${warrning}`,
|
|
383
460
|
});
|
|
384
461
|
}
|
|
385
462
|
|
|
386
463
|
const query_params = {};
|
|
464
|
+
query_params["unique_external_id"] = uniqueExternalId;
|
|
387
465
|
|
|
388
466
|
const xHeaders = {};
|
|
389
467
|
|
|
390
468
|
const response = await PlatformAPIClient.execute(
|
|
391
469
|
this.config,
|
|
392
470
|
"get",
|
|
393
|
-
`/service/platform/payment/v1.0/company/${this.config.companyId}/
|
|
471
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/payouts`,
|
|
394
472
|
query_params,
|
|
395
473
|
undefined,
|
|
396
474
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -404,10 +482,10 @@ class Payment {
|
|
|
404
482
|
|
|
405
483
|
const {
|
|
406
484
|
error: res_error,
|
|
407
|
-
} = PaymentPlatformModel.
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
);
|
|
485
|
+
} = PaymentPlatformModel.PayoutsResponse().validate(responseData, {
|
|
486
|
+
abortEarly: false,
|
|
487
|
+
allowUnknown: true,
|
|
488
|
+
});
|
|
411
489
|
|
|
412
490
|
if (res_error) {
|
|
413
491
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -415,7 +493,7 @@ class Payment {
|
|
|
415
493
|
} else {
|
|
416
494
|
Logger({
|
|
417
495
|
level: "WARN",
|
|
418
|
-
message: `Response Validation Warnings for platform > Payment >
|
|
496
|
+
message: `Response Validation Warnings for platform > Payment > getAllPayouts \n ${res_error}`,
|
|
419
497
|
});
|
|
420
498
|
}
|
|
421
499
|
}
|
|
@@ -424,28 +502,23 @@ class Payment {
|
|
|
424
502
|
}
|
|
425
503
|
|
|
426
504
|
/**
|
|
427
|
-
* @param {PaymentPlatformValidator.
|
|
428
|
-
* - Arg object
|
|
429
|
-
*
|
|
505
|
+
* @param {PaymentPlatformValidator.GetPaymentMethodConfigParam} arg - Arg object
|
|
430
506
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
431
507
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
432
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
433
|
-
*
|
|
434
|
-
*
|
|
435
|
-
* @
|
|
436
|
-
* @
|
|
437
|
-
* @description: Retrieve payment methods for subscriptions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getSubscriptionPaymentMethod/).
|
|
508
|
+
* @returns {Promise<PaymentPlatformModel.PaymentMethodConfigResponse>} -
|
|
509
|
+
* Success response
|
|
510
|
+
* @name getPaymentMethodConfig
|
|
511
|
+
* @summary: List Payment Method Configs
|
|
512
|
+
* @description: Get all active List Payment Method Configs - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentMethodConfig/).
|
|
438
513
|
*/
|
|
439
|
-
async
|
|
440
|
-
{
|
|
514
|
+
async getPaymentMethodConfig(
|
|
515
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
441
516
|
{ responseHeaders } = { responseHeaders: false }
|
|
442
517
|
) {
|
|
443
518
|
const {
|
|
444
519
|
error,
|
|
445
|
-
} = PaymentPlatformValidator.
|
|
446
|
-
{
|
|
447
|
-
uniqueExternalId,
|
|
448
|
-
},
|
|
520
|
+
} = PaymentPlatformValidator.getPaymentMethodConfig().validate(
|
|
521
|
+
{},
|
|
449
522
|
{ abortEarly: false, allowUnknown: true }
|
|
450
523
|
);
|
|
451
524
|
if (error) {
|
|
@@ -455,28 +528,25 @@ class Payment {
|
|
|
455
528
|
// Showing warrnings if extra unknown parameters are found
|
|
456
529
|
const {
|
|
457
530
|
error: warrning,
|
|
458
|
-
} = PaymentPlatformValidator.
|
|
459
|
-
{
|
|
460
|
-
uniqueExternalId,
|
|
461
|
-
},
|
|
531
|
+
} = PaymentPlatformValidator.getPaymentMethodConfig().validate(
|
|
532
|
+
{},
|
|
462
533
|
{ abortEarly: false, allowUnknown: false }
|
|
463
534
|
);
|
|
464
535
|
if (warrning) {
|
|
465
536
|
Logger({
|
|
466
537
|
level: "WARN",
|
|
467
|
-
message: `Parameter Validation warrnings for platform > Payment >
|
|
538
|
+
message: `Parameter Validation warrnings for platform > Payment > getPaymentMethodConfig \n ${warrning}`,
|
|
468
539
|
});
|
|
469
540
|
}
|
|
470
541
|
|
|
471
542
|
const query_params = {};
|
|
472
|
-
query_params["unique_external_id"] = uniqueExternalId;
|
|
473
543
|
|
|
474
544
|
const xHeaders = {};
|
|
475
545
|
|
|
476
546
|
const response = await PlatformAPIClient.execute(
|
|
477
547
|
this.config,
|
|
478
548
|
"get",
|
|
479
|
-
`/service/platform/payment/v1.0/company/${this.config.companyId}/
|
|
549
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/payment/methods/configs`,
|
|
480
550
|
query_params,
|
|
481
551
|
undefined,
|
|
482
552
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -490,7 +560,7 @@ class Payment {
|
|
|
490
560
|
|
|
491
561
|
const {
|
|
492
562
|
error: res_error,
|
|
493
|
-
} = PaymentPlatformModel.
|
|
563
|
+
} = PaymentPlatformModel.PaymentMethodConfigResponse().validate(
|
|
494
564
|
responseData,
|
|
495
565
|
{ abortEarly: false, allowUnknown: true }
|
|
496
566
|
);
|
|
@@ -501,7 +571,7 @@ class Payment {
|
|
|
501
571
|
} else {
|
|
502
572
|
Logger({
|
|
503
573
|
level: "WARN",
|
|
504
|
-
message: `Response Validation Warnings for platform > Payment >
|
|
574
|
+
message: `Response Validation Warnings for platform > Payment > getPaymentMethodConfig \n ${res_error}`,
|
|
505
575
|
});
|
|
506
576
|
}
|
|
507
577
|
}
|
|
@@ -513,9 +583,9 @@ class Payment {
|
|
|
513
583
|
* @param {PaymentPlatformValidator.SavePayoutParam} arg - Arg object
|
|
514
584
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
515
585
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
516
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
586
|
+
* @returns {Promise<PaymentPlatformModel.PayoutResponse>} - Success response
|
|
517
587
|
* @name savePayout
|
|
518
|
-
* @summary: Save payout
|
|
588
|
+
* @summary: Save payout.
|
|
519
589
|
* @description: Store and process a payout transaction. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/savePayout/).
|
|
520
590
|
*/
|
|
521
591
|
async savePayout(
|
|
@@ -567,7 +637,7 @@ class Payment {
|
|
|
567
637
|
|
|
568
638
|
const {
|
|
569
639
|
error: res_error,
|
|
570
|
-
} = PaymentPlatformModel.
|
|
640
|
+
} = PaymentPlatformModel.PayoutResponse().validate(responseData, {
|
|
571
641
|
abortEarly: false,
|
|
572
642
|
allowUnknown: true,
|
|
573
643
|
});
|
|
@@ -587,24 +657,21 @@ class Payment {
|
|
|
587
657
|
}
|
|
588
658
|
|
|
589
659
|
/**
|
|
590
|
-
* @param {PaymentPlatformValidator.
|
|
660
|
+
* @param {PaymentPlatformValidator.SavePayoutsParam} arg - Arg object
|
|
591
661
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
592
662
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
593
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
594
|
-
*
|
|
595
|
-
*
|
|
596
|
-
* @
|
|
597
|
-
* @summary: Save subscription setup intent
|
|
598
|
-
* @description: Store and process setup intent for subscriptions. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/saveSubscriptionSetupIntent/).
|
|
663
|
+
* @returns {Promise<PaymentPlatformModel.PayoutResponse>} - Success response
|
|
664
|
+
* @name savePayouts
|
|
665
|
+
* @summary: Save Payout
|
|
666
|
+
* @description: Save Payout - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/savePayouts/).
|
|
599
667
|
*/
|
|
600
|
-
async
|
|
601
|
-
{ body, requestHeaders } = { requestHeaders: {} },
|
|
668
|
+
async savePayouts(
|
|
669
|
+
{ uniqueTransferNo, body, requestHeaders } = { requestHeaders: {} },
|
|
602
670
|
{ responseHeaders } = { responseHeaders: false }
|
|
603
671
|
) {
|
|
604
|
-
const {
|
|
605
|
-
error,
|
|
606
|
-
} = PaymentPlatformValidator.saveSubscriptionSetupIntent().validate(
|
|
672
|
+
const { error } = PaymentPlatformValidator.savePayouts().validate(
|
|
607
673
|
{
|
|
674
|
+
uniqueTransferNo,
|
|
608
675
|
body,
|
|
609
676
|
},
|
|
610
677
|
{ abortEarly: false, allowUnknown: true }
|
|
@@ -614,10 +681,9 @@ class Payment {
|
|
|
614
681
|
}
|
|
615
682
|
|
|
616
683
|
// Showing warrnings if extra unknown parameters are found
|
|
617
|
-
const {
|
|
618
|
-
error: warrning,
|
|
619
|
-
} = PaymentPlatformValidator.saveSubscriptionSetupIntent().validate(
|
|
684
|
+
const { error: warrning } = PaymentPlatformValidator.savePayouts().validate(
|
|
620
685
|
{
|
|
686
|
+
uniqueTransferNo,
|
|
621
687
|
body,
|
|
622
688
|
},
|
|
623
689
|
{ abortEarly: false, allowUnknown: false }
|
|
@@ -625,7 +691,7 @@ class Payment {
|
|
|
625
691
|
if (warrning) {
|
|
626
692
|
Logger({
|
|
627
693
|
level: "WARN",
|
|
628
|
-
message: `Parameter Validation warrnings for platform > Payment >
|
|
694
|
+
message: `Parameter Validation warrnings for platform > Payment > savePayouts \n ${warrning}`,
|
|
629
695
|
});
|
|
630
696
|
}
|
|
631
697
|
|
|
@@ -636,7 +702,7 @@ class Payment {
|
|
|
636
702
|
const response = await PlatformAPIClient.execute(
|
|
637
703
|
this.config,
|
|
638
704
|
"post",
|
|
639
|
-
`/service/platform/payment/v1.0/company/${this.config.companyId}/
|
|
705
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/payouts/${uniqueTransferNo}`,
|
|
640
706
|
query_params,
|
|
641
707
|
body,
|
|
642
708
|
{ ...xHeaders, ...requestHeaders },
|
|
@@ -650,10 +716,10 @@ class Payment {
|
|
|
650
716
|
|
|
651
717
|
const {
|
|
652
718
|
error: res_error,
|
|
653
|
-
} = PaymentPlatformModel.
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
);
|
|
719
|
+
} = PaymentPlatformModel.PayoutResponse().validate(responseData, {
|
|
720
|
+
abortEarly: false,
|
|
721
|
+
allowUnknown: true,
|
|
722
|
+
});
|
|
657
723
|
|
|
658
724
|
if (res_error) {
|
|
659
725
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -661,7 +727,7 @@ class Payment {
|
|
|
661
727
|
} else {
|
|
662
728
|
Logger({
|
|
663
729
|
level: "WARN",
|
|
664
|
-
message: `Response Validation Warnings for platform > Payment >
|
|
730
|
+
message: `Response Validation Warnings for platform > Payment > savePayouts \n ${res_error}`,
|
|
665
731
|
});
|
|
666
732
|
}
|
|
667
733
|
}
|
|
@@ -673,10 +739,10 @@ class Payment {
|
|
|
673
739
|
* @param {PaymentPlatformValidator.UpdatePayoutParam} arg - Arg object
|
|
674
740
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
675
741
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
676
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
742
|
+
* @returns {Promise<PaymentPlatformModel.UpdatePayoutResponse>} - Success response
|
|
677
743
|
* @name updatePayout
|
|
678
|
-
* @summary: Update
|
|
679
|
-
* @description:
|
|
744
|
+
* @summary: Update Payout
|
|
745
|
+
* @description: Update Payout - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updatePayout/).
|
|
680
746
|
*/
|
|
681
747
|
async updatePayout(
|
|
682
748
|
{ uniqueTransferNo, body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -731,7 +797,7 @@ class Payment {
|
|
|
731
797
|
|
|
732
798
|
const {
|
|
733
799
|
error: res_error,
|
|
734
|
-
} = PaymentPlatformModel.
|
|
800
|
+
} = PaymentPlatformModel.UpdatePayoutResponse().validate(responseData, {
|
|
735
801
|
abortEarly: false,
|
|
736
802
|
allowUnknown: true,
|
|
737
803
|
});
|
|
@@ -750,13 +816,92 @@ class Payment {
|
|
|
750
816
|
return response;
|
|
751
817
|
}
|
|
752
818
|
|
|
819
|
+
/**
|
|
820
|
+
* @param {PaymentPlatformValidator.UpdatePayoutsParam} arg - Arg object
|
|
821
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
822
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
823
|
+
* @returns {Promise<PaymentPlatformModel.UpdatePayoutResponse>} - Success response
|
|
824
|
+
* @name updatePayouts
|
|
825
|
+
* @summary: Update payout.
|
|
826
|
+
* @description: Modify the details of a payout transaction. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updatePayouts/).
|
|
827
|
+
*/
|
|
828
|
+
async updatePayouts(
|
|
829
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
830
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
831
|
+
) {
|
|
832
|
+
const { error } = PaymentPlatformValidator.updatePayouts().validate(
|
|
833
|
+
{
|
|
834
|
+
body,
|
|
835
|
+
},
|
|
836
|
+
{ abortEarly: false, allowUnknown: true }
|
|
837
|
+
);
|
|
838
|
+
if (error) {
|
|
839
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
// Showing warrnings if extra unknown parameters are found
|
|
843
|
+
const {
|
|
844
|
+
error: warrning,
|
|
845
|
+
} = PaymentPlatformValidator.updatePayouts().validate(
|
|
846
|
+
{
|
|
847
|
+
body,
|
|
848
|
+
},
|
|
849
|
+
{ abortEarly: false, allowUnknown: false }
|
|
850
|
+
);
|
|
851
|
+
if (warrning) {
|
|
852
|
+
Logger({
|
|
853
|
+
level: "WARN",
|
|
854
|
+
message: `Parameter Validation warrnings for platform > Payment > updatePayouts \n ${warrning}`,
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
const query_params = {};
|
|
859
|
+
|
|
860
|
+
const xHeaders = {};
|
|
861
|
+
|
|
862
|
+
const response = await PlatformAPIClient.execute(
|
|
863
|
+
this.config,
|
|
864
|
+
"put",
|
|
865
|
+
`/service/platform/payment/v1.0/company/${this.config.companyId}/payouts`,
|
|
866
|
+
query_params,
|
|
867
|
+
body,
|
|
868
|
+
{ ...xHeaders, ...requestHeaders },
|
|
869
|
+
{ responseHeaders }
|
|
870
|
+
);
|
|
871
|
+
|
|
872
|
+
let responseData = response;
|
|
873
|
+
if (responseHeaders) {
|
|
874
|
+
responseData = response[0];
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
const {
|
|
878
|
+
error: res_error,
|
|
879
|
+
} = PaymentPlatformModel.UpdatePayoutResponse().validate(responseData, {
|
|
880
|
+
abortEarly: false,
|
|
881
|
+
allowUnknown: true,
|
|
882
|
+
});
|
|
883
|
+
|
|
884
|
+
if (res_error) {
|
|
885
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
886
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
887
|
+
} else {
|
|
888
|
+
Logger({
|
|
889
|
+
level: "WARN",
|
|
890
|
+
message: `Response Validation Warnings for platform > Payment > updatePayouts \n ${res_error}`,
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
return response;
|
|
896
|
+
}
|
|
897
|
+
|
|
753
898
|
/**
|
|
754
899
|
* @param {PaymentPlatformValidator.VerifyIfscCodeParam} arg - Arg object
|
|
755
900
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
756
901
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
757
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
902
|
+
* @returns {Promise<PaymentPlatformModel.IfscCodeResponse>} - Success response
|
|
758
903
|
* @name verifyIfscCode
|
|
759
|
-
* @summary: Verify IFSC code
|
|
904
|
+
* @summary: Verify IFSC code.
|
|
760
905
|
* @description: Checks the validity of the provided IFSC code and returns bank details if valid. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/verifyIfscCode/).
|
|
761
906
|
*/
|
|
762
907
|
async verifyIfscCode(
|
|
@@ -811,7 +956,7 @@ class Payment {
|
|
|
811
956
|
|
|
812
957
|
const {
|
|
813
958
|
error: res_error,
|
|
814
|
-
} = PaymentPlatformModel.
|
|
959
|
+
} = PaymentPlatformModel.IfscCodeResponse().validate(responseData, {
|
|
815
960
|
abortEarly: false,
|
|
816
961
|
allowUnknown: true,
|
|
817
962
|
});
|