@gofynd/fdk-client-javascript 1.4.14 → 1.4.15-beta.10
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 +2 -2
- package/application.d.ts +1 -2
- package/application.js +2 -3
- package/index.d.ts +1 -2
- package/index.js +7 -1
- package/package.json +2 -3
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -20
- package/sdk/application/Cart/CartApplicationClient.d.ts +55 -97
- package/sdk/application/Cart/CartApplicationClient.js +60 -1262
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +80 -162
- package/sdk/application/Catalog/CatalogApplicationClient.js +148 -1313
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -9
- package/sdk/application/Common/CommonApplicationClient.js +5 -90
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +6 -19
- package/sdk/application/Communication/CommunicationApplicationClient.js +6 -145
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +32 -80
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +31 -725
- package/sdk/application/Content/ContentApplicationClient.d.ts +63 -85
- package/sdk/application/Content/ContentApplicationClient.js +126 -942
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +11 -15
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +26 -130
- package/sdk/application/Lead/LeadApplicationClient.d.ts +10 -17
- package/sdk/application/Lead/LeadApplicationClient.js +32 -201
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +22 -62
- package/sdk/application/Logistic/LogisticApplicationClient.js +51 -647
- package/sdk/application/Order/OrderApplicationClient.d.ts +22 -56
- package/sdk/application/Order/OrderApplicationClient.js +86 -555
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +92 -209
- package/sdk/application/Payment/PaymentApplicationClient.js +57 -2099
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +15 -26
- package/sdk/application/Rewards/RewardsApplicationClient.js +17 -303
- package/sdk/application/Share/ShareApplicationClient.d.ts +14 -24
- package/sdk/application/Share/ShareApplicationClient.js +34 -294
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +8 -14
- package/sdk/application/Theme/ThemeApplicationClient.js +30 -166
- package/sdk/application/User/UserApplicationClient.d.ts +87 -138
- package/sdk/application/User/UserApplicationClient.js +47 -1817
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -7
- package/sdk/application/Webhook/WebhookApplicationClient.js +6 -49
- package/sdk/application/index.d.ts +0 -19
- package/sdk/application/index.js +0 -35
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -86
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +24 -582
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +21 -116
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +16 -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/OAuthClient.js +1 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +10 -8
- package/sdk/partner/Theme/ThemePartnerClient.js +16 -14
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +39 -135
- package/sdk/partner/Theme/ThemePartnerModel.js +38 -114
- package/sdk/partner/Theme/ThemePartnerValidator.js +4 -4
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -28
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -103
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +179 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +150 -253
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -1
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -11
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +4 -5
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +8 -14
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +9 -59
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +4 -40
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +130 -11
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +152 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +388 -443
- package/sdk/platform/Billing/BillingPlatformModel.js +263 -280
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +18 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +9 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +103 -134
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +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 +1328 -4975
- package/sdk/platform/Cart/CartPlatformModel.js +1229 -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 +1744 -1501
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1211 -1383
- 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 +138 -283
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +100 -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 +39 -95
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +63 -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 +22 -20
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +24 -21
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +116 -370
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +104 -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 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +5 -175
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +4 -52
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +3 -34
- package/sdk/platform/Order/OrderPlatformClient.d.ts +103 -174
- package/sdk/platform/Order/OrderPlatformClient.js +275 -528
- package/sdk/platform/Order/OrderPlatformModel.d.ts +3078 -5449
- package/sdk/platform/Order/OrderPlatformModel.js +1659 -3501
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +219 -234
- package/sdk/platform/Order/OrderPlatformValidator.js +118 -146
- 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 +68 -62
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +396 -620
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +326 -501
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +11 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +10 -10
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.js +2 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +5 -36
- package/sdk/platform/Share/SharePlatformModel.js +4 -27
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +3 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +4 -8
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +0 -5
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +0 -2
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +13 -76
- package/sdk/platform/Theme/ThemePlatformModel.js +17 -57
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +12 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +12 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/User/UserPlatformApplicationValidator.js +2 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +21 -21
- package/sdk/platform/User/UserPlatformModel.js +23 -23
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +427 -720
- package/sdk/platform/Webhook/WebhookPlatformModel.js +386 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +2 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -8
- 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 +19 -793
- package/sdk/public/Content/ContentPublicModel.d.ts +3 -549
- package/sdk/public/Content/ContentPublicModel.js +3 -649
- package/sdk/public/Content/ContentPublicValidator.d.ts +3 -69
- package/sdk/public/Content/ContentPublicValidator.js +2 -88
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +14 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +13 -10
- 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/Cart/CartApplicationModel.d.ts +0 -4340
- package/sdk/application/Cart/CartApplicationModel.js +0 -2718
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -788
- package/sdk/application/Cart/CartApplicationValidator.js +0 -546
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +0 -3909
- package/sdk/application/Catalog/CatalogApplicationModel.js +0 -2667
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +0 -791
- package/sdk/application/Catalog/CatalogApplicationValidator.js +0 -551
- package/sdk/application/Common/CommonApplicationModel.d.ts +0 -449
- package/sdk/application/Common/CommonApplicationModel.js +0 -308
- package/sdk/application/Common/CommonApplicationValidator.d.ts +0 -46
- package/sdk/application/Common/CommonApplicationValidator.js +0 -38
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +0 -293
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -201
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +0 -29
- package/sdk/application/Communication/CommunicationApplicationValidator.js +0 -38
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +0 -2544
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -1875
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +0 -179
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +0 -176
- package/sdk/application/Content/ContentApplicationModel.d.ts +0 -2189
- package/sdk/application/Content/ContentApplicationModel.js +0 -1640
- package/sdk/application/Content/ContentApplicationValidator.d.ts +0 -290
- package/sdk/application/Content/ContentApplicationValidator.js +0 -269
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +0 -270
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -188
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +0 -56
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +0 -53
- 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
- package/sdk/application/Lead/LeadApplicationModel.d.ts +0 -590
- package/sdk/application/Lead/LeadApplicationModel.js +0 -480
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +0 -68
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -71
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +0 -2034
- package/sdk/application/Logistic/LogisticApplicationModel.js +0 -1391
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +0 -299
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -224
- package/sdk/application/Order/OrderApplicationModel.d.ts +0 -2612
- package/sdk/application/Order/OrderApplicationModel.js +0 -1669
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -279
- package/sdk/application/Order/OrderApplicationValidator.js +0 -210
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +0 -4062
- package/sdk/application/Payment/PaymentApplicationModel.js +0 -2632
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +0 -576
- package/sdk/application/Payment/PaymentApplicationValidator.js +0 -594
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +0 -365
- package/sdk/application/Rewards/RewardsApplicationModel.js +0 -396
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +0 -73
- package/sdk/application/Rewards/RewardsApplicationValidator.js +0 -84
- package/sdk/application/Share/ShareApplicationModel.d.ts +0 -339
- package/sdk/application/Share/ShareApplicationModel.js +0 -234
- package/sdk/application/Share/ShareApplicationValidator.d.ts +0 -90
- package/sdk/application/Share/ShareApplicationValidator.js +0 -91
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +0 -1744
- package/sdk/application/Theme/ThemeApplicationModel.js +0 -1446
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -79
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -65
- package/sdk/application/User/UserApplicationModel.d.ts +0 -1943
- package/sdk/application/User/UserApplicationModel.js +0 -1382
- package/sdk/application/User/UserApplicationValidator.d.ts +0 -560
- package/sdk/application/User/UserApplicationValidator.js +0 -573
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +0 -54
- package/sdk/application/Webhook/WebhookApplicationModel.js +0 -48
- package/sdk/application/Webhook/WebhookApplicationValidator.d.ts +0 -16
- package/sdk/application/Webhook/WebhookApplicationValidator.js +0 -19
- package/sdk/common/Clickstream.d.ts +0 -1
- package/sdk/common/Clickstream.js +0 -464
|
@@ -19,7 +19,7 @@ class Payment {
|
|
|
19
19
|
* @param {PaymentPlatformApplicationValidator.AddEdcDeviceParam} arg - Arg object
|
|
20
20
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
21
21
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
22
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
22
|
+
* @returns {Promise<PaymentPlatformModel.EdcDeviceUpdateResponse>} - Success response
|
|
23
23
|
* @name addEdcDevice
|
|
24
24
|
* @summary: Create an EDC device
|
|
25
25
|
* @description: Registration and addition of a new EDC device to the system - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/addEdcDevice/).
|
|
@@ -77,7 +77,7 @@ class Payment {
|
|
|
77
77
|
|
|
78
78
|
const {
|
|
79
79
|
error: res_error,
|
|
80
|
-
} = PaymentPlatformModel.
|
|
80
|
+
} = PaymentPlatformModel.EdcDeviceUpdateResponse().validate(responseData, {
|
|
81
81
|
abortEarly: false,
|
|
82
82
|
allowUnknown: true,
|
|
83
83
|
});
|
|
@@ -102,7 +102,7 @@ class Payment {
|
|
|
102
102
|
*
|
|
103
103
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
104
104
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
105
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
105
|
+
* @returns {Promise<PaymentPlatformModel.RefundAccountResponse>} - Success response
|
|
106
106
|
* @name addRefundBankAccountUsingOTP
|
|
107
107
|
* @summary: Create refund account
|
|
108
108
|
* @description: The addition of a bank account specifically for refunds, employing OTP verification for security - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/addRefundBankAccountUsingOTP/).
|
|
@@ -158,7 +158,7 @@ class Payment {
|
|
|
158
158
|
|
|
159
159
|
const {
|
|
160
160
|
error: res_error,
|
|
161
|
-
} = PaymentPlatformModel.
|
|
161
|
+
} = PaymentPlatformModel.RefundAccountResponse().validate(responseData, {
|
|
162
162
|
abortEarly: false,
|
|
163
163
|
allowUnknown: true,
|
|
164
164
|
});
|
|
@@ -183,7 +183,7 @@ class Payment {
|
|
|
183
183
|
*
|
|
184
184
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
185
185
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
186
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
186
|
+
* @returns {Promise<PaymentPlatformModel.CancelPaymentLinkResponse>} -
|
|
187
187
|
* Success response
|
|
188
188
|
* @name cancelPaymentLink
|
|
189
189
|
* @summary: Cancel payment link
|
|
@@ -240,10 +240,10 @@ class Payment {
|
|
|
240
240
|
|
|
241
241
|
const {
|
|
242
242
|
error: res_error,
|
|
243
|
-
} = PaymentPlatformModel.
|
|
244
|
-
|
|
245
|
-
allowUnknown: true
|
|
246
|
-
|
|
243
|
+
} = PaymentPlatformModel.CancelPaymentLinkResponse().validate(
|
|
244
|
+
responseData,
|
|
245
|
+
{ abortEarly: false, allowUnknown: true }
|
|
246
|
+
);
|
|
247
247
|
|
|
248
248
|
if (res_error) {
|
|
249
249
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -265,7 +265,7 @@ class Payment {
|
|
|
265
265
|
*
|
|
266
266
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
267
267
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
268
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
268
|
+
* @returns {Promise<PaymentPlatformModel.PaymentStatusUpdateResponse>} -
|
|
269
269
|
* Success response
|
|
270
270
|
* @name checkAndUpdatePaymentStatus
|
|
271
271
|
* @summary: Poll and update payment status
|
|
@@ -322,7 +322,7 @@ class Payment {
|
|
|
322
322
|
|
|
323
323
|
const {
|
|
324
324
|
error: res_error,
|
|
325
|
-
} = PaymentPlatformModel.
|
|
325
|
+
} = PaymentPlatformModel.PaymentStatusUpdateResponse().validate(
|
|
326
326
|
responseData,
|
|
327
327
|
{ abortEarly: false, allowUnknown: true }
|
|
328
328
|
);
|
|
@@ -345,7 +345,7 @@ class Payment {
|
|
|
345
345
|
* @param {PaymentPlatformApplicationValidator.ConfirmPaymentParam} arg - Arg object
|
|
346
346
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
347
347
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
348
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
348
|
+
* @returns {Promise<PaymentPlatformModel.PaymentConfirmationResponse>} -
|
|
349
349
|
* Success response
|
|
350
350
|
* @name confirmPayment
|
|
351
351
|
* @summary: Payment confirmation
|
|
@@ -402,7 +402,7 @@ class Payment {
|
|
|
402
402
|
|
|
403
403
|
const {
|
|
404
404
|
error: res_error,
|
|
405
|
-
} = PaymentPlatformModel.
|
|
405
|
+
} = PaymentPlatformModel.PaymentConfirmationResponse().validate(
|
|
406
406
|
responseData,
|
|
407
407
|
{ abortEarly: false, allowUnknown: true }
|
|
408
408
|
);
|
|
@@ -427,7 +427,9 @@ class Payment {
|
|
|
427
427
|
*
|
|
428
428
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
429
429
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
430
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
430
|
+
* @returns {Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>}
|
|
431
|
+
* - Success response
|
|
432
|
+
*
|
|
431
433
|
* @name createMerchantRefundPriority
|
|
432
434
|
* @summary: Create merchant refund priority
|
|
433
435
|
* @description: Create merchant refund priority configurations, with the provided refund sources priority details, and return the status of the operation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/createMerchantRefundPriority/).
|
|
@@ -485,10 +487,10 @@ class Payment {
|
|
|
485
487
|
|
|
486
488
|
const {
|
|
487
489
|
error: res_error,
|
|
488
|
-
} = PaymentPlatformModel.
|
|
489
|
-
|
|
490
|
-
allowUnknown: true
|
|
491
|
-
|
|
490
|
+
} = PaymentPlatformModel.RefundPriorityResponseSerializer().validate(
|
|
491
|
+
responseData,
|
|
492
|
+
{ abortEarly: false, allowUnknown: true }
|
|
493
|
+
);
|
|
492
494
|
|
|
493
495
|
if (res_error) {
|
|
494
496
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -510,7 +512,7 @@ class Payment {
|
|
|
510
512
|
*
|
|
511
513
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
512
514
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
513
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
515
|
+
* @returns {Promise<PaymentPlatformModel.CreatePaymentLinkResponse>} -
|
|
514
516
|
* Success response
|
|
515
517
|
* @name createPaymentLink
|
|
516
518
|
* @summary: Create payment link
|
|
@@ -567,10 +569,10 @@ class Payment {
|
|
|
567
569
|
|
|
568
570
|
const {
|
|
569
571
|
error: res_error,
|
|
570
|
-
} = PaymentPlatformModel.
|
|
571
|
-
|
|
572
|
-
allowUnknown: true
|
|
573
|
-
|
|
572
|
+
} = PaymentPlatformModel.CreatePaymentLinkResponse().validate(
|
|
573
|
+
responseData,
|
|
574
|
+
{ abortEarly: false, allowUnknown: true }
|
|
575
|
+
);
|
|
574
576
|
|
|
575
577
|
if (res_error) {
|
|
576
578
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -592,7 +594,7 @@ class Payment {
|
|
|
592
594
|
*
|
|
593
595
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
594
596
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
595
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
597
|
+
* @returns {Promise<PaymentPlatformModel.PaymentOrderResponse>} - Success response
|
|
596
598
|
* @name createPaymentOrder
|
|
597
599
|
* @summary: Create Order
|
|
598
600
|
* @description: Create an order and payment on the aggregator side - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/createPaymentOrder/).
|
|
@@ -648,7 +650,7 @@ class Payment {
|
|
|
648
650
|
|
|
649
651
|
const {
|
|
650
652
|
error: res_error,
|
|
651
|
-
} = PaymentPlatformModel.
|
|
653
|
+
} = PaymentPlatformModel.PaymentOrderResponse().validate(responseData, {
|
|
652
654
|
abortEarly: false,
|
|
653
655
|
allowUnknown: true,
|
|
654
656
|
});
|
|
@@ -673,7 +675,7 @@ class Payment {
|
|
|
673
675
|
*
|
|
674
676
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
675
677
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
676
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
678
|
+
* @returns {Promise<PaymentPlatformModel.EdcAggregatorAndModelListResponse>}
|
|
677
679
|
* - Success response
|
|
678
680
|
*
|
|
679
681
|
* @name edcAggregatorsAndModelList
|
|
@@ -727,7 +729,7 @@ class Payment {
|
|
|
727
729
|
|
|
728
730
|
const {
|
|
729
731
|
error: res_error,
|
|
730
|
-
} = PaymentPlatformModel.
|
|
732
|
+
} = PaymentPlatformModel.EdcAggregatorAndModelListResponse().validate(
|
|
731
733
|
responseData,
|
|
732
734
|
{ abortEarly: false, allowUnknown: true }
|
|
733
735
|
);
|
|
@@ -750,7 +752,7 @@ class Payment {
|
|
|
750
752
|
* @param {PaymentPlatformApplicationValidator.EdcDeviceListParam} arg - Arg object
|
|
751
753
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
752
754
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
753
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
755
|
+
* @returns {Promise<PaymentPlatformModel.EdcDeviceListResponse>} - Success response
|
|
754
756
|
* @name edcDeviceList
|
|
755
757
|
* @summary: List EDC devices
|
|
756
758
|
* @description: Retrieves a list of available Electronic Data Capture (EDC) devices. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/edcDeviceList/).
|
|
@@ -821,7 +823,7 @@ class Payment {
|
|
|
821
823
|
|
|
822
824
|
const {
|
|
823
825
|
error: res_error,
|
|
824
|
-
} = PaymentPlatformModel.
|
|
826
|
+
} = PaymentPlatformModel.EdcDeviceListResponse().validate(responseData, {
|
|
825
827
|
abortEarly: false,
|
|
826
828
|
allowUnknown: true,
|
|
827
829
|
});
|
|
@@ -844,7 +846,7 @@ class Payment {
|
|
|
844
846
|
* @param {PaymentPlatformApplicationValidator.EdcDeviceStatsParam} arg - Arg object
|
|
845
847
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
846
848
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
847
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
849
|
+
* @returns {Promise<PaymentPlatformModel.EdcDeviceStatsResponse>} - Success response
|
|
848
850
|
* @name edcDeviceStats
|
|
849
851
|
* @summary: EDC device stats
|
|
850
852
|
* @description: Information about EDC (Electronic Data Capture) devices linked to a specific application within a company. It provides statistics such as the count of active and inactive devices. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/edcDeviceStats/).
|
|
@@ -896,7 +898,7 @@ class Payment {
|
|
|
896
898
|
|
|
897
899
|
const {
|
|
898
900
|
error: res_error,
|
|
899
|
-
} = PaymentPlatformModel.
|
|
901
|
+
} = PaymentPlatformModel.EdcDeviceStatsResponse().validate(responseData, {
|
|
900
902
|
abortEarly: false,
|
|
901
903
|
allowUnknown: true,
|
|
902
904
|
});
|
|
@@ -921,7 +923,7 @@ class Payment {
|
|
|
921
923
|
*
|
|
922
924
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
923
925
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
924
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
926
|
+
* @returns {Promise<PaymentPlatformModel.RefundAccountResponse>} - Success response
|
|
925
927
|
* @name getBankAccountDetailsOpenAPI
|
|
926
928
|
* @summary: Get bank account details
|
|
927
929
|
* @description: Retrieve bank account information - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getBankAccountDetailsOpenAPI/).
|
|
@@ -983,7 +985,7 @@ class Payment {
|
|
|
983
985
|
|
|
984
986
|
const {
|
|
985
987
|
error: res_error,
|
|
986
|
-
} = PaymentPlatformModel.
|
|
988
|
+
} = PaymentPlatformModel.RefundAccountResponse().validate(responseData, {
|
|
987
989
|
abortEarly: false,
|
|
988
990
|
allowUnknown: true,
|
|
989
991
|
});
|
|
@@ -1008,7 +1010,7 @@ class Payment {
|
|
|
1008
1010
|
*
|
|
1009
1011
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1010
1012
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1011
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1013
|
+
* @returns {Promise<PaymentPlatformModel.PaymentGatewayConfigResponse>} -
|
|
1012
1014
|
* Success response
|
|
1013
1015
|
* @name getBrandPaymentGatewayConfig
|
|
1014
1016
|
* @summary: Get secrets for brand payment gateway
|
|
@@ -1069,7 +1071,7 @@ class Payment {
|
|
|
1069
1071
|
|
|
1070
1072
|
const {
|
|
1071
1073
|
error: res_error,
|
|
1072
|
-
} = PaymentPlatformModel.
|
|
1074
|
+
} = PaymentPlatformModel.PaymentGatewayConfigResponse().validate(
|
|
1073
1075
|
responseData,
|
|
1074
1076
|
{ abortEarly: false, allowUnknown: true }
|
|
1075
1077
|
);
|
|
@@ -1092,7 +1094,8 @@ class Payment {
|
|
|
1092
1094
|
* @param {PaymentPlatformApplicationValidator.GetEdcDeviceParam} arg - Arg object
|
|
1093
1095
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1094
1096
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1095
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1097
|
+
* @returns {Promise<PaymentPlatformModel.EdcDeviceDetailsResponse>} -
|
|
1098
|
+
* Success response
|
|
1096
1099
|
* @name getEdcDevice
|
|
1097
1100
|
* @summary: Get an EDC device
|
|
1098
1101
|
* @description: Retrieve comprehensive details regarding an Electronic Data Capture (EDC) device associated with a particular terminal unique identifier within a company's application.Upon success, it returns the detailed information of the EDC device, including terminal serial number, EDC device serial number, merchant store POS code, store ID, aggregator ID and name, device tag, activation status, and EDC model. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getEdcDevice/).
|
|
@@ -1148,7 +1151,7 @@ class Payment {
|
|
|
1148
1151
|
|
|
1149
1152
|
const {
|
|
1150
1153
|
error: res_error,
|
|
1151
|
-
} = PaymentPlatformModel.
|
|
1154
|
+
} = PaymentPlatformModel.EdcDeviceDetailsResponse().validate(responseData, {
|
|
1152
1155
|
abortEarly: false,
|
|
1153
1156
|
allowUnknown: true,
|
|
1154
1157
|
});
|
|
@@ -1173,7 +1176,7 @@ class Payment {
|
|
|
1173
1176
|
*
|
|
1174
1177
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1175
1178
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1176
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1179
|
+
* @returns {Promise<PaymentPlatformModel.AggregatorVersionResponse>} -
|
|
1177
1180
|
* Success response
|
|
1178
1181
|
* @name getMerchantAggregatorAppVersion
|
|
1179
1182
|
* @summary: Get app version for Aggregator
|
|
@@ -1249,10 +1252,10 @@ class Payment {
|
|
|
1249
1252
|
|
|
1250
1253
|
const {
|
|
1251
1254
|
error: res_error,
|
|
1252
|
-
} = PaymentPlatformModel.
|
|
1253
|
-
|
|
1254
|
-
allowUnknown: true
|
|
1255
|
-
|
|
1255
|
+
} = PaymentPlatformModel.AggregatorVersionResponse().validate(
|
|
1256
|
+
responseData,
|
|
1257
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1258
|
+
);
|
|
1256
1259
|
|
|
1257
1260
|
if (res_error) {
|
|
1258
1261
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1274,7 +1277,7 @@ class Payment {
|
|
|
1274
1277
|
*
|
|
1275
1278
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1276
1279
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1277
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1280
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
1278
1281
|
* Success response
|
|
1279
1282
|
* @name getMerchantAggregatorPaymentModeDetails
|
|
1280
1283
|
* @summary: Get merchant aggregator and their payment mode
|
|
@@ -1339,7 +1342,7 @@ class Payment {
|
|
|
1339
1342
|
|
|
1340
1343
|
const {
|
|
1341
1344
|
error: res_error,
|
|
1342
|
-
} = PaymentPlatformModel.
|
|
1345
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
1343
1346
|
responseData,
|
|
1344
1347
|
{ abortEarly: false, allowUnknown: true }
|
|
1345
1348
|
);
|
|
@@ -1364,7 +1367,7 @@ class Payment {
|
|
|
1364
1367
|
*
|
|
1365
1368
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1366
1369
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1367
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1370
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
1368
1371
|
* Success response
|
|
1369
1372
|
* @name getMerchantPaymentOption
|
|
1370
1373
|
* @summary: Get merchant payment option
|
|
@@ -1417,7 +1420,7 @@ class Payment {
|
|
|
1417
1420
|
|
|
1418
1421
|
const {
|
|
1419
1422
|
error: res_error,
|
|
1420
|
-
} = PaymentPlatformModel.
|
|
1423
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
1421
1424
|
responseData,
|
|
1422
1425
|
{ abortEarly: false, allowUnknown: true }
|
|
1423
1426
|
);
|
|
@@ -1442,7 +1445,9 @@ class Payment {
|
|
|
1442
1445
|
*
|
|
1443
1446
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1444
1447
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1445
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1448
|
+
* @returns {Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>}
|
|
1449
|
+
* - Success response
|
|
1450
|
+
*
|
|
1446
1451
|
* @name getMerchantRefundPriority
|
|
1447
1452
|
* @summary: Get merchant refund priority
|
|
1448
1453
|
* @description: Retrieve merchant refund priority configurations, returning the status of the update and the refund sources priority with their descriptions and priorities. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getMerchantRefundPriority/).
|
|
@@ -1498,10 +1503,10 @@ class Payment {
|
|
|
1498
1503
|
|
|
1499
1504
|
const {
|
|
1500
1505
|
error: res_error,
|
|
1501
|
-
} = PaymentPlatformModel.
|
|
1502
|
-
|
|
1503
|
-
allowUnknown: true
|
|
1504
|
-
|
|
1506
|
+
} = PaymentPlatformModel.RefundPriorityResponseSerializer().validate(
|
|
1507
|
+
responseData,
|
|
1508
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1509
|
+
);
|
|
1505
1510
|
|
|
1506
1511
|
if (res_error) {
|
|
1507
1512
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -1523,7 +1528,7 @@ class Payment {
|
|
|
1523
1528
|
*
|
|
1524
1529
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1525
1530
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1526
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1531
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
1527
1532
|
* Success response
|
|
1528
1533
|
* @name getPGConfigAggregators
|
|
1529
1534
|
* @summary: Get merchant aggregator payment mode
|
|
@@ -1576,7 +1581,7 @@ class Payment {
|
|
|
1576
1581
|
|
|
1577
1582
|
const {
|
|
1578
1583
|
error: res_error,
|
|
1579
|
-
} = PaymentPlatformModel.
|
|
1584
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
1580
1585
|
responseData,
|
|
1581
1586
|
{ abortEarly: false, allowUnknown: true }
|
|
1582
1587
|
);
|
|
@@ -1601,7 +1606,7 @@ class Payment {
|
|
|
1601
1606
|
*
|
|
1602
1607
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1603
1608
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1604
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1609
|
+
* @returns {Promise<PaymentPlatformModel.GetPaymentCodeResponse>} - Success response
|
|
1605
1610
|
* @name getPaymentCodeOption
|
|
1606
1611
|
* @summary: Get payment mode codes
|
|
1607
1612
|
* @description: Enables users to retrieve options for payment codes.users can access information such as payment method names, networks, and associated codes, facilitating seamless integration and management of payment modes - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentCodeOption/).
|
|
@@ -1653,7 +1658,7 @@ class Payment {
|
|
|
1653
1658
|
|
|
1654
1659
|
const {
|
|
1655
1660
|
error: res_error,
|
|
1656
|
-
} = PaymentPlatformModel.
|
|
1661
|
+
} = PaymentPlatformModel.GetPaymentCodeResponse().validate(responseData, {
|
|
1657
1662
|
abortEarly: false,
|
|
1658
1663
|
allowUnknown: true,
|
|
1659
1664
|
});
|
|
@@ -1676,7 +1681,7 @@ class Payment {
|
|
|
1676
1681
|
* @param {PaymentPlatformApplicationValidator.GetPaymentLinkParam} arg - Arg object
|
|
1677
1682
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1678
1683
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1679
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1684
|
+
* @returns {Promise<PaymentPlatformModel.GetPaymentLinkResponse>} - Success response
|
|
1680
1685
|
* @name getPaymentLink
|
|
1681
1686
|
* @summary: Get payment link
|
|
1682
1687
|
* @description: Retrieve a payment link for making payments. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentLink/).
|
|
@@ -1733,7 +1738,7 @@ class Payment {
|
|
|
1733
1738
|
|
|
1734
1739
|
const {
|
|
1735
1740
|
error: res_error,
|
|
1736
|
-
} = PaymentPlatformModel.
|
|
1741
|
+
} = PaymentPlatformModel.GetPaymentLinkResponse().validate(responseData, {
|
|
1737
1742
|
abortEarly: false,
|
|
1738
1743
|
allowUnknown: true,
|
|
1739
1744
|
});
|
|
@@ -1758,7 +1763,7 @@ class Payment {
|
|
|
1758
1763
|
*
|
|
1759
1764
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1760
1765
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1761
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1766
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
1762
1767
|
* Success response
|
|
1763
1768
|
* @name getPaymentModeControlRoutes
|
|
1764
1769
|
* @summary: Get offline/advance payment mode
|
|
@@ -1815,7 +1820,7 @@ class Payment {
|
|
|
1815
1820
|
|
|
1816
1821
|
const {
|
|
1817
1822
|
error: res_error,
|
|
1818
|
-
} = PaymentPlatformModel.
|
|
1823
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
1819
1824
|
responseData,
|
|
1820
1825
|
{ abortEarly: false, allowUnknown: true }
|
|
1821
1826
|
);
|
|
@@ -1923,13 +1928,13 @@ class Payment {
|
|
|
1923
1928
|
*
|
|
1924
1929
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1925
1930
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1926
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
1931
|
+
* @returns {Promise<PaymentPlatformModel.PaymentOptionsResponse>} - Success response
|
|
1927
1932
|
* @name getPaymentModeRoutes
|
|
1928
1933
|
* @summary: Get payment modes
|
|
1929
|
-
* @description:
|
|
1934
|
+
* @description: Get available payment methods on the payment page, specifying the aggregator for each option, such as 'Netbanking powered by Juspay' and 'Card powered by Razorpay'. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPaymentModeRoutes/).
|
|
1930
1935
|
*/
|
|
1931
1936
|
async getPaymentModeRoutes(
|
|
1932
|
-
{ refresh, requestType, orderId, shipmentId, requestHeaders } = {
|
|
1937
|
+
{ refresh, requestType, orderId, shipmentId, amount, requestHeaders } = {
|
|
1933
1938
|
requestHeaders: {},
|
|
1934
1939
|
},
|
|
1935
1940
|
{ responseHeaders } = { responseHeaders: false }
|
|
@@ -1942,6 +1947,7 @@ class Payment {
|
|
|
1942
1947
|
requestType,
|
|
1943
1948
|
orderId,
|
|
1944
1949
|
shipmentId,
|
|
1950
|
+
amount,
|
|
1945
1951
|
},
|
|
1946
1952
|
{ abortEarly: false, allowUnknown: true }
|
|
1947
1953
|
);
|
|
@@ -1958,6 +1964,7 @@ class Payment {
|
|
|
1958
1964
|
requestType,
|
|
1959
1965
|
orderId,
|
|
1960
1966
|
shipmentId,
|
|
1967
|
+
amount,
|
|
1961
1968
|
},
|
|
1962
1969
|
{ abortEarly: false, allowUnknown: false }
|
|
1963
1970
|
);
|
|
@@ -1973,6 +1980,7 @@ class Payment {
|
|
|
1973
1980
|
query_params["request_type"] = requestType;
|
|
1974
1981
|
query_params["order_id"] = orderId;
|
|
1975
1982
|
query_params["shipment_id"] = shipmentId;
|
|
1983
|
+
query_params["amount"] = amount;
|
|
1976
1984
|
|
|
1977
1985
|
const response = await PlatformAPIClient.execute(
|
|
1978
1986
|
this.config,
|
|
@@ -1991,7 +1999,7 @@ class Payment {
|
|
|
1991
1999
|
|
|
1992
2000
|
const {
|
|
1993
2001
|
error: res_error,
|
|
1994
|
-
} = PaymentPlatformModel.
|
|
2002
|
+
} = PaymentPlatformModel.PaymentOptionsResponse().validate(responseData, {
|
|
1995
2003
|
abortEarly: false,
|
|
1996
2004
|
allowUnknown: true,
|
|
1997
2005
|
});
|
|
@@ -2016,7 +2024,7 @@ class Payment {
|
|
|
2016
2024
|
*
|
|
2017
2025
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2018
2026
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2019
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2027
|
+
* @returns {Promise<PaymentPlatformModel.PaymentSessionSerializer>} -
|
|
2020
2028
|
* Success response
|
|
2021
2029
|
* @name getPaymentSession
|
|
2022
2030
|
* @summary: Get payment session
|
|
@@ -2076,10 +2084,10 @@ class Payment {
|
|
|
2076
2084
|
|
|
2077
2085
|
const {
|
|
2078
2086
|
error: res_error,
|
|
2079
|
-
} = PaymentPlatformModel.
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
);
|
|
2087
|
+
} = PaymentPlatformModel.PaymentSessionSerializer().validate(responseData, {
|
|
2088
|
+
abortEarly: false,
|
|
2089
|
+
allowUnknown: true,
|
|
2090
|
+
});
|
|
2083
2091
|
|
|
2084
2092
|
if (res_error) {
|
|
2085
2093
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2101,7 +2109,8 @@ class Payment {
|
|
|
2101
2109
|
*
|
|
2102
2110
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2103
2111
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2104
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2112
|
+
* @returns {Promise<PaymentPlatformModel.PaymentModeRouteResponse>} -
|
|
2113
|
+
* Success response
|
|
2105
2114
|
* @name getPosPaymentModeRoutes
|
|
2106
2115
|
* @summary: List POS payment modes
|
|
2107
2116
|
* @description: Available payment methods on the payment page for POS, specifying the aggregator for each option, such as 'CARD powered by Juspay' and 'QR powered by Razorpay'. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getPosPaymentModeRoutes/).
|
|
@@ -2205,7 +2214,7 @@ class Payment {
|
|
|
2205
2214
|
|
|
2206
2215
|
const {
|
|
2207
2216
|
error: res_error,
|
|
2208
|
-
} = PaymentPlatformModel.
|
|
2217
|
+
} = PaymentPlatformModel.PaymentModeRouteResponse().validate(responseData, {
|
|
2209
2218
|
abortEarly: false,
|
|
2210
2219
|
allowUnknown: true,
|
|
2211
2220
|
});
|
|
@@ -2230,7 +2239,7 @@ class Payment {
|
|
|
2230
2239
|
*
|
|
2231
2240
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2232
2241
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2233
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2242
|
+
* @returns {Promise<PaymentPlatformModel.OrderBeneficiaryResponse>} -
|
|
2234
2243
|
* Success response
|
|
2235
2244
|
* @name getUserBeneficiaries
|
|
2236
2245
|
* @summary: Get user beneficiaries
|
|
@@ -2284,10 +2293,10 @@ class Payment {
|
|
|
2284
2293
|
|
|
2285
2294
|
const {
|
|
2286
2295
|
error: res_error,
|
|
2287
|
-
} = PaymentPlatformModel.
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
);
|
|
2296
|
+
} = PaymentPlatformModel.OrderBeneficiaryResponse().validate(responseData, {
|
|
2297
|
+
abortEarly: false,
|
|
2298
|
+
allowUnknown: true,
|
|
2299
|
+
});
|
|
2291
2300
|
|
|
2292
2301
|
if (res_error) {
|
|
2293
2302
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2309,7 +2318,7 @@ class Payment {
|
|
|
2309
2318
|
*
|
|
2310
2319
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2311
2320
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2312
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2321
|
+
* @returns {Promise<PaymentPlatformModel.GetUserCODLimitResponse>} - Success response
|
|
2313
2322
|
* @name getUserCODlimitRoutes
|
|
2314
2323
|
* @summary: Get user COD
|
|
2315
2324
|
* @description: Retrieve user cod limt data of user i.e cod is active or not for user and remaining limit - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/getUserCODlimitRoutes/).
|
|
@@ -2369,7 +2378,7 @@ class Payment {
|
|
|
2369
2378
|
|
|
2370
2379
|
const {
|
|
2371
2380
|
error: res_error,
|
|
2372
|
-
} = PaymentPlatformModel.
|
|
2381
|
+
} = PaymentPlatformModel.GetUserCODLimitResponse().validate(responseData, {
|
|
2373
2382
|
abortEarly: false,
|
|
2374
2383
|
allowUnknown: true,
|
|
2375
2384
|
});
|
|
@@ -2394,7 +2403,7 @@ class Payment {
|
|
|
2394
2403
|
*
|
|
2395
2404
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2396
2405
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2397
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2406
|
+
* @returns {Promise<PaymentPlatformModel.OrderBeneficiaryResponse>} -
|
|
2398
2407
|
* Success response
|
|
2399
2408
|
* @name getUserOrderBeneficiaries
|
|
2400
2409
|
* @summary: Get user order beneficiaries
|
|
@@ -2448,10 +2457,10 @@ class Payment {
|
|
|
2448
2457
|
|
|
2449
2458
|
const {
|
|
2450
2459
|
error: res_error,
|
|
2451
|
-
} = PaymentPlatformModel.
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
);
|
|
2460
|
+
} = PaymentPlatformModel.OrderBeneficiaryResponse().validate(responseData, {
|
|
2461
|
+
abortEarly: false,
|
|
2462
|
+
allowUnknown: true,
|
|
2463
|
+
});
|
|
2455
2464
|
|
|
2456
2465
|
if (res_error) {
|
|
2457
2466
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -2473,7 +2482,7 @@ class Payment {
|
|
|
2473
2482
|
*
|
|
2474
2483
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2475
2484
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2476
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2485
|
+
* @returns {Promise<PaymentPlatformModel.PaymentInitializationResponse>} -
|
|
2477
2486
|
* Success response
|
|
2478
2487
|
* @name initialisePayment
|
|
2479
2488
|
* @summary: Start payment process
|
|
@@ -2530,7 +2539,7 @@ class Payment {
|
|
|
2530
2539
|
|
|
2531
2540
|
const {
|
|
2532
2541
|
error: res_error,
|
|
2533
|
-
} = PaymentPlatformModel.
|
|
2542
|
+
} = PaymentPlatformModel.PaymentInitializationResponse().validate(
|
|
2534
2543
|
responseData,
|
|
2535
2544
|
{ abortEarly: false, allowUnknown: true }
|
|
2536
2545
|
);
|
|
@@ -2555,7 +2564,7 @@ class Payment {
|
|
|
2555
2564
|
*
|
|
2556
2565
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2557
2566
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2558
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2567
|
+
* @returns {Promise<PaymentPlatformModel.MerchantOnBoardingResponse>} -
|
|
2559
2568
|
* Success response
|
|
2560
2569
|
* @name merchantOnBoarding
|
|
2561
2570
|
* @summary: Merchant onboarding for BNPL
|
|
@@ -2612,7 +2621,7 @@ class Payment {
|
|
|
2612
2621
|
|
|
2613
2622
|
const {
|
|
2614
2623
|
error: res_error,
|
|
2615
|
-
} = PaymentPlatformModel.
|
|
2624
|
+
} = PaymentPlatformModel.MerchantOnBoardingResponse().validate(
|
|
2616
2625
|
responseData,
|
|
2617
2626
|
{ abortEarly: false, allowUnknown: true }
|
|
2618
2627
|
);
|
|
@@ -2635,7 +2644,7 @@ class Payment {
|
|
|
2635
2644
|
* @param {PaymentPlatformApplicationValidator.OauthGetUrlParam} arg - Arg object
|
|
2636
2645
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2637
2646
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2638
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2647
|
+
* @returns {Promise<PaymentPlatformModel.GetOauthUrlResponse>} - Success response
|
|
2639
2648
|
* @name oauthGetUrl
|
|
2640
2649
|
* @summary: Get OAuth URL
|
|
2641
2650
|
* @description: This has been used when merchant is setup their razorpay payment gateway, they will redirect to razorpay site after submitting all their secrets for authetication. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/oauthGetUrl/).
|
|
@@ -2699,7 +2708,7 @@ class Payment {
|
|
|
2699
2708
|
|
|
2700
2709
|
const {
|
|
2701
2710
|
error: res_error,
|
|
2702
|
-
} = PaymentPlatformModel.
|
|
2711
|
+
} = PaymentPlatformModel.GetOauthUrlResponse().validate(responseData, {
|
|
2703
2712
|
abortEarly: false,
|
|
2704
2713
|
allowUnknown: true,
|
|
2705
2714
|
});
|
|
@@ -2724,7 +2733,7 @@ class Payment {
|
|
|
2724
2733
|
*
|
|
2725
2734
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2726
2735
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2727
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2736
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
2728
2737
|
* Success response
|
|
2729
2738
|
* @name patchMerchantAggregatorPaymentModeDetails
|
|
2730
2739
|
* @summary: Update merchant aggregator payment mode
|
|
@@ -2783,7 +2792,7 @@ class Payment {
|
|
|
2783
2792
|
|
|
2784
2793
|
const {
|
|
2785
2794
|
error: res_error,
|
|
2786
|
-
} = PaymentPlatformModel.
|
|
2795
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
2787
2796
|
responseData,
|
|
2788
2797
|
{ abortEarly: false, allowUnknown: true }
|
|
2789
2798
|
);
|
|
@@ -2808,7 +2817,7 @@ class Payment {
|
|
|
2808
2817
|
*
|
|
2809
2818
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2810
2819
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2811
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2820
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
2812
2821
|
* Success response
|
|
2813
2822
|
* @name patchMerchantPaymentOption
|
|
2814
2823
|
* @summary: Update payment gateways and payment mode
|
|
@@ -2865,7 +2874,7 @@ class Payment {
|
|
|
2865
2874
|
|
|
2866
2875
|
const {
|
|
2867
2876
|
error: res_error,
|
|
2868
|
-
} = PaymentPlatformModel.
|
|
2877
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
2869
2878
|
responseData,
|
|
2870
2879
|
{ abortEarly: false, allowUnknown: true }
|
|
2871
2880
|
);
|
|
@@ -2890,7 +2899,7 @@ class Payment {
|
|
|
2890
2899
|
*
|
|
2891
2900
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2892
2901
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2893
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2902
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
2894
2903
|
* Success response
|
|
2895
2904
|
* @name patchMerchantPaymentOptionVersion
|
|
2896
2905
|
* @summary: Update app version for Aggrgator
|
|
@@ -2949,7 +2958,7 @@ class Payment {
|
|
|
2949
2958
|
|
|
2950
2959
|
const {
|
|
2951
2960
|
error: res_error,
|
|
2952
|
-
} = PaymentPlatformModel.
|
|
2961
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
2953
2962
|
responseData,
|
|
2954
2963
|
{ abortEarly: false, allowUnknown: true }
|
|
2955
2964
|
);
|
|
@@ -2974,7 +2983,7 @@ class Payment {
|
|
|
2974
2983
|
*
|
|
2975
2984
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2976
2985
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2977
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
2986
|
+
* @returns {Promise<PaymentPlatformModel.PaymentStatusBulkHandlerResponse>}
|
|
2978
2987
|
* - Success response
|
|
2979
2988
|
*
|
|
2980
2989
|
* @name paymentStatusBulk
|
|
@@ -3032,7 +3041,7 @@ class Payment {
|
|
|
3032
3041
|
|
|
3033
3042
|
const {
|
|
3034
3043
|
error: res_error,
|
|
3035
|
-
} = PaymentPlatformModel.
|
|
3044
|
+
} = PaymentPlatformModel.PaymentStatusBulkHandlerResponse().validate(
|
|
3036
3045
|
responseData,
|
|
3037
3046
|
{ abortEarly: false, allowUnknown: true }
|
|
3038
3047
|
);
|
|
@@ -3057,7 +3066,7 @@ class Payment {
|
|
|
3057
3066
|
*
|
|
3058
3067
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3059
3068
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3060
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3069
|
+
* @returns {Promise<PaymentPlatformModel.PollingPaymentLinkResponse>} -
|
|
3061
3070
|
* Success response
|
|
3062
3071
|
* @name pollingPaymentLink
|
|
3063
3072
|
* @summary: Poll status of payment link
|
|
@@ -3115,7 +3124,7 @@ class Payment {
|
|
|
3115
3124
|
|
|
3116
3125
|
const {
|
|
3117
3126
|
error: res_error,
|
|
3118
|
-
} = PaymentPlatformModel.
|
|
3127
|
+
} = PaymentPlatformModel.PollingPaymentLinkResponse().validate(
|
|
3119
3128
|
responseData,
|
|
3120
3129
|
{ abortEarly: false, allowUnknown: true }
|
|
3121
3130
|
);
|
|
@@ -3138,7 +3147,7 @@ class Payment {
|
|
|
3138
3147
|
* @param {PaymentPlatformApplicationValidator.RepaymentDetailsParam} arg - Arg object
|
|
3139
3148
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3140
3149
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3141
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3150
|
+
* @returns {Promise<PaymentPlatformModel.RepaymentResponse>} - Success response
|
|
3142
3151
|
* @name repaymentDetails
|
|
3143
3152
|
* @summary: Repayment details for BNPL
|
|
3144
3153
|
* @description: Retrieve repayment details for Buy Now Pay Later (BNPL) payment - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/repaymentDetails/).
|
|
@@ -3194,7 +3203,7 @@ class Payment {
|
|
|
3194
3203
|
|
|
3195
3204
|
const {
|
|
3196
3205
|
error: res_error,
|
|
3197
|
-
} = PaymentPlatformModel.
|
|
3206
|
+
} = PaymentPlatformModel.RepaymentResponse().validate(responseData, {
|
|
3198
3207
|
abortEarly: false,
|
|
3199
3208
|
allowUnknown: true,
|
|
3200
3209
|
});
|
|
@@ -3219,7 +3228,7 @@ class Payment {
|
|
|
3219
3228
|
*
|
|
3220
3229
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3221
3230
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3222
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3231
|
+
* @returns {Promise<PaymentPlatformModel.ResendOrCancelPaymentResponse>} -
|
|
3223
3232
|
* Success response
|
|
3224
3233
|
* @name resendOrCancelPayment
|
|
3225
3234
|
* @summary: Resend or cancel payment
|
|
@@ -3276,7 +3285,7 @@ class Payment {
|
|
|
3276
3285
|
|
|
3277
3286
|
const {
|
|
3278
3287
|
error: res_error,
|
|
3279
|
-
} = PaymentPlatformModel.
|
|
3288
|
+
} = PaymentPlatformModel.ResendOrCancelPaymentResponse().validate(
|
|
3280
3289
|
responseData,
|
|
3281
3290
|
{ abortEarly: false, allowUnknown: true }
|
|
3282
3291
|
);
|
|
@@ -3301,7 +3310,7 @@ class Payment {
|
|
|
3301
3310
|
*
|
|
3302
3311
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3303
3312
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3304
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3313
|
+
* @returns {Promise<PaymentPlatformModel.ResendPaymentLinkResponse>} -
|
|
3305
3314
|
* Success response
|
|
3306
3315
|
* @name resendPaymentLink
|
|
3307
3316
|
* @summary: Resend payment link
|
|
@@ -3358,10 +3367,10 @@ class Payment {
|
|
|
3358
3367
|
|
|
3359
3368
|
const {
|
|
3360
3369
|
error: res_error,
|
|
3361
|
-
} = PaymentPlatformModel.
|
|
3362
|
-
|
|
3363
|
-
allowUnknown: true
|
|
3364
|
-
|
|
3370
|
+
} = PaymentPlatformModel.ResendPaymentLinkResponse().validate(
|
|
3371
|
+
responseData,
|
|
3372
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3373
|
+
);
|
|
3365
3374
|
|
|
3366
3375
|
if (res_error) {
|
|
3367
3376
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3544,7 +3553,7 @@ class Payment {
|
|
|
3544
3553
|
*
|
|
3545
3554
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3546
3555
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3547
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3556
|
+
* @returns {Promise<PaymentPlatformModel.PlatformPaymentModeResponse>} -
|
|
3548
3557
|
* Success response
|
|
3549
3558
|
* @name setMerchantModeControlRoutes
|
|
3550
3559
|
* @summary: Update offline payment mode
|
|
@@ -3603,7 +3612,7 @@ class Payment {
|
|
|
3603
3612
|
|
|
3604
3613
|
const {
|
|
3605
3614
|
error: res_error,
|
|
3606
|
-
} = PaymentPlatformModel.
|
|
3615
|
+
} = PaymentPlatformModel.PlatformPaymentModeResponse().validate(
|
|
3607
3616
|
responseData,
|
|
3608
3617
|
{ abortEarly: false, allowUnknown: true }
|
|
3609
3618
|
);
|
|
@@ -3713,7 +3722,7 @@ class Payment {
|
|
|
3713
3722
|
*
|
|
3714
3723
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3715
3724
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3716
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3725
|
+
* @returns {Promise<PaymentPlatformModel.SetCODOptionResponse>} - Success response
|
|
3717
3726
|
* @name setUserCODlimitRoutes
|
|
3718
3727
|
* @summary: Set user COD
|
|
3719
3728
|
* @description: This allows access to seller to enable disable cod of specific user - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/setUserCODlimitRoutes/).
|
|
@@ -3769,7 +3778,7 @@ class Payment {
|
|
|
3769
3778
|
|
|
3770
3779
|
const {
|
|
3771
3780
|
error: res_error,
|
|
3772
|
-
} = PaymentPlatformModel.
|
|
3781
|
+
} = PaymentPlatformModel.SetCODOptionResponse().validate(responseData, {
|
|
3773
3782
|
abortEarly: false,
|
|
3774
3783
|
allowUnknown: true,
|
|
3775
3784
|
});
|
|
@@ -3792,7 +3801,7 @@ class Payment {
|
|
|
3792
3801
|
* @param {PaymentPlatformApplicationValidator.UpdateEdcDeviceParam} arg - Arg object
|
|
3793
3802
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3794
3803
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3795
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3804
|
+
* @returns {Promise<PaymentPlatformModel.EdcDeviceAddResponse>} - Success response
|
|
3796
3805
|
* @name updateEdcDevice
|
|
3797
3806
|
* @summary: Update EDC device
|
|
3798
3807
|
* @description: Enables the modification of settings and details associated with an Electronic Data Capture (EDC) device linked to a specific application within a company. Upon success, it returns the updated information of the EDC device. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateEdcDevice/).
|
|
@@ -3848,7 +3857,7 @@ class Payment {
|
|
|
3848
3857
|
|
|
3849
3858
|
const {
|
|
3850
3859
|
error: res_error,
|
|
3851
|
-
} = PaymentPlatformModel.
|
|
3860
|
+
} = PaymentPlatformModel.EdcDeviceAddResponse().validate(responseData, {
|
|
3852
3861
|
abortEarly: false,
|
|
3853
3862
|
allowUnknown: true,
|
|
3854
3863
|
});
|
|
@@ -3873,7 +3882,9 @@ class Payment {
|
|
|
3873
3882
|
*
|
|
3874
3883
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3875
3884
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3876
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3885
|
+
* @returns {Promise<PaymentPlatformModel.RefundPriorityResponseSerializer>}
|
|
3886
|
+
* - Success response
|
|
3887
|
+
*
|
|
3877
3888
|
* @name updateMerchantRefundPriority
|
|
3878
3889
|
* @summary: Update merchant refund priority
|
|
3879
3890
|
* @description: Update merchant refund priority configurations, with the provided refund sources priority details, and return the status of the operation. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateMerchantRefundPriority/).
|
|
@@ -3931,10 +3942,10 @@ class Payment {
|
|
|
3931
3942
|
|
|
3932
3943
|
const {
|
|
3933
3944
|
error: res_error,
|
|
3934
|
-
} = PaymentPlatformModel.
|
|
3935
|
-
|
|
3936
|
-
allowUnknown: true
|
|
3937
|
-
|
|
3945
|
+
} = PaymentPlatformModel.RefundPriorityResponseSerializer().validate(
|
|
3946
|
+
responseData,
|
|
3947
|
+
{ abortEarly: false, allowUnknown: true }
|
|
3948
|
+
);
|
|
3938
3949
|
|
|
3939
3950
|
if (res_error) {
|
|
3940
3951
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -3956,8 +3967,9 @@ class Payment {
|
|
|
3956
3967
|
*
|
|
3957
3968
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
3958
3969
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
3959
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
3960
|
-
* Success response
|
|
3970
|
+
* @returns {Promise<PaymentPlatformModel.PaymentSessionResponseSerializer>}
|
|
3971
|
+
* - Success response
|
|
3972
|
+
*
|
|
3961
3973
|
* @name updatePaymentSession
|
|
3962
3974
|
* @summary: Update payment session
|
|
3963
3975
|
* @description: Update the details of a payment session associated with a given order ID or transaction ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updatePaymentSession/).
|
|
@@ -4015,10 +4027,10 @@ class Payment {
|
|
|
4015
4027
|
|
|
4016
4028
|
const {
|
|
4017
4029
|
error: res_error,
|
|
4018
|
-
} = PaymentPlatformModel.
|
|
4019
|
-
|
|
4020
|
-
allowUnknown: true
|
|
4021
|
-
|
|
4030
|
+
} = PaymentPlatformModel.PaymentSessionResponseSerializer().validate(
|
|
4031
|
+
responseData,
|
|
4032
|
+
{ abortEarly: false, allowUnknown: true }
|
|
4033
|
+
);
|
|
4022
4034
|
|
|
4023
4035
|
if (res_error) {
|
|
4024
4036
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4040,7 +4052,9 @@ class Payment {
|
|
|
4040
4052
|
*
|
|
4041
4053
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4042
4054
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4043
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
4055
|
+
* @returns {Promise<PaymentPlatformModel.RefundSessionResponseSerializer>}
|
|
4056
|
+
* - Success response
|
|
4057
|
+
*
|
|
4044
4058
|
* @name updateRefundSession
|
|
4045
4059
|
* @summary: Update refund session
|
|
4046
4060
|
* @description: Allows users to update the details of a refund session associated with a specific global identifier (GID) and request ID. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/updateRefundSession/).
|
|
@@ -4100,10 +4114,10 @@ class Payment {
|
|
|
4100
4114
|
|
|
4101
4115
|
const {
|
|
4102
4116
|
error: res_error,
|
|
4103
|
-
} = PaymentPlatformModel.
|
|
4104
|
-
|
|
4105
|
-
allowUnknown: true
|
|
4106
|
-
|
|
4117
|
+
} = PaymentPlatformModel.RefundSessionResponseSerializer().validate(
|
|
4118
|
+
responseData,
|
|
4119
|
+
{ abortEarly: false, allowUnknown: true }
|
|
4120
|
+
);
|
|
4107
4121
|
|
|
4108
4122
|
if (res_error) {
|
|
4109
4123
|
if (this.config.options.strictResponseCheck === true) {
|
|
@@ -4125,7 +4139,8 @@ class Payment {
|
|
|
4125
4139
|
*
|
|
4126
4140
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
4127
4141
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
4128
|
-
* @returns {Promise<PaymentPlatformModel.
|
|
4142
|
+
* @returns {Promise<PaymentPlatformModel.ValidateCustomerResponse>} -
|
|
4143
|
+
* Success response
|
|
4129
4144
|
* @name verifyCustomerForPayment
|
|
4130
4145
|
* @summary: Validate customer for paylater
|
|
4131
4146
|
* @description: Verify whether the user is eligible for pay-later payment from the payment aggregator's side using the customer's phone number - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/payment/verifyCustomerForPayment/).
|
|
@@ -4181,7 +4196,7 @@ class Payment {
|
|
|
4181
4196
|
|
|
4182
4197
|
const {
|
|
4183
4198
|
error: res_error,
|
|
4184
|
-
} = PaymentPlatformModel.
|
|
4199
|
+
} = PaymentPlatformModel.ValidateCustomerResponse().validate(responseData, {
|
|
4185
4200
|
abortEarly: false,
|
|
4186
4201
|
allowUnknown: true,
|
|
4187
4202
|
});
|