@gofynd/fdk-client-javascript 3.0.0-beta.1 → 3.0.0
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 +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +93 -113
- package/sdk/application/Cart/CartApplicationClient.js +157 -530
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -19
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
- package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
- package/sdk/application/Content/ContentApplicationClient.d.ts +65 -55
- package/sdk/application/Content/ContentApplicationClient.js +211 -341
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +14 -33
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
- package/sdk/application/Lead/LeadApplicationClient.js +24 -55
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +32 -87
- package/sdk/application/Logistic/LogisticApplicationClient.js +126 -383
- package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
- package/sdk/application/Order/OrderApplicationClient.js +89 -293
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
- package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
- package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
- package/sdk/application/Share/ShareApplicationClient.js +35 -89
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
- package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
- package/sdk/application/User/UserApplicationClient.d.ts +23 -13
- package/sdk/application/User/UserApplicationClient.js +49 -407
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
- 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 +18 -62
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +40 -372
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +99 -33
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +84 -25
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +7 -38
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
- package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
- package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
- package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
- package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
- package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +15 -406
- package/sdk/platform/Billing/BillingPlatformClient.js +76 -3214
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +459 -3798
- package/sdk/platform/Billing/BillingPlatformModel.js +338 -2573
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +24 -465
- package/sdk/platform/Billing/BillingPlatformValidator.js +14 -490
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +205 -284
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +554 -672
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +132 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4865 -3148
- package/sdk/platform/Cart/CartPlatformModel.js +2071 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +419 -1015
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6444
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +226 -1117
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +127 -919
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +574 -372
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1315 -1238
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9334 -7634
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6980 -9652
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +239 -294
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +186 -246
- package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
- package/sdk/platform/Common/CommonPlatformModel.js +11 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +236 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +579 -868
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +314 -422
- package/sdk/platform/Communication/CommunicationPlatformModel.js +382 -538
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -68
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -84
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +118 -333
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +565 -1282
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +369 -1034
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -246
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1297 -776
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
- package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
- package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2374 -877
- package/sdk/platform/Content/ContentPlatformModel.js +1304 -930
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
- package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
- package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- 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 +24 -4
- package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
- package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
- package/sdk/platform/Order/OrderPlatformClient.d.ts +421 -418
- package/sdk/platform/Order/OrderPlatformClient.js +1194 -1350
- package/sdk/platform/Order/OrderPlatformModel.d.ts +9145 -4107
- package/sdk/platform/Order/OrderPlatformModel.js +4257 -3197
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +641 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +341 -311
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
- package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +934 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +93 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +70 -305
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
- package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1327 -3529
- package/sdk/platform/Payment/PaymentPlatformModel.js +1397 -3693
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
- package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- 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 +12 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -513
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -103
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -99
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +162 -127
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +775 -435
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6250 -3861
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3178 -3798
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +295 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -133
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
- package/sdk/platform/Share/SharePlatformModel.d.ts +53 -4
- package/sdk/platform/Share/SharePlatformModel.js +45 -3
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +4 -26
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +10 -157
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +10 -21
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +6 -23
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
- package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
- package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
- package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
- package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
- package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
- package/sdk/platform/User/UserPlatformModel.js +253 -210
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
- package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
- package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
- package/sdk/public/Content/ContentPublicClient.js +254 -280
- package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
- package/sdk/public/Content/ContentPublicModel.js +98 -44
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
- package/sdk/public/Content/ContentPublicValidator.js +26 -19
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- 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 +9 -48
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
- 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/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
- package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
- package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
- package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
- package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
- package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -56
- package/sdk/public/Billing/BillingPublicClient.js +0 -397
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -919
- package/sdk/public/Billing/BillingPublicModel.js +0 -560
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -43
- package/sdk/public/Billing/BillingPublicValidator.js +0 -50
|
@@ -5,65 +5,43 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
5
5
|
/**
|
|
6
6
|
* @typedef AddEdcDeviceParam
|
|
7
7
|
* @property {string} terminalUniqueIdentifier - Terminal unique identifier
|
|
8
|
-
* @property {PaymentPlatformModel.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @typedef AddRefundBankAccountParam
|
|
13
|
-
* @property {PaymentPlatformModel.AddBeneficiaryDetailsOTPRequest} body
|
|
8
|
+
* @property {PaymentPlatformModel.EdcUpdate} body
|
|
14
9
|
*/
|
|
15
10
|
|
|
16
11
|
/**
|
|
17
12
|
* @typedef AddRefundBankAccountUsingOTPParam
|
|
18
|
-
* @property {PaymentPlatformModel.
|
|
13
|
+
* @property {PaymentPlatformModel.AddBeneficiaryDetailsOTPCreation} body
|
|
19
14
|
*/
|
|
20
15
|
|
|
21
16
|
/**
|
|
22
17
|
* @typedef CancelPaymentLinkParam
|
|
23
|
-
* @property {PaymentPlatformModel.
|
|
18
|
+
* @property {PaymentPlatformModel.CancelOrResendPaymentLinkCreation} body
|
|
24
19
|
*/
|
|
25
20
|
|
|
26
21
|
/**
|
|
27
22
|
* @typedef CheckAndUpdatePaymentStatusParam
|
|
28
|
-
* @property {PaymentPlatformModel.
|
|
23
|
+
* @property {PaymentPlatformModel.PaymentStatusUpdateCreation} body
|
|
29
24
|
*/
|
|
30
25
|
|
|
31
26
|
/**
|
|
32
27
|
* @typedef ConfirmPaymentParam
|
|
33
|
-
* @property {PaymentPlatformModel.
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @typedef CopyConfigAggPaymentModesParam
|
|
38
|
-
* @property {string} aggregatorId - Aggregator Id
|
|
39
|
-
* @property {PaymentPlatformModel.PlatformPaymentModeCopyConfigRequest} body
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @typedef CopyConfigPaymentModesParam
|
|
44
|
-
* @property {PaymentPlatformModel.PlatformPaymentModeCopyConfigRequest} body
|
|
28
|
+
* @property {PaymentPlatformModel.PaymentConfirmationCreation} body
|
|
45
29
|
*/
|
|
46
30
|
|
|
47
31
|
/**
|
|
48
32
|
* @typedef CreateMerchantRefundPriorityParam
|
|
49
33
|
* @property {string} configType - Configuration for merchant or customer
|
|
50
|
-
* @property {
|
|
51
|
-
* @property {PaymentPlatformModel.RefundPriorityRequestSerializer} body
|
|
34
|
+
* @property {PaymentPlatformModel.RefundPriorityCreation} body
|
|
52
35
|
*/
|
|
53
36
|
|
|
54
37
|
/**
|
|
55
38
|
* @typedef CreatePaymentLinkParam
|
|
56
|
-
* @property {PaymentPlatformModel.
|
|
39
|
+
* @property {PaymentPlatformModel.CreatePaymentLinkCreation} body
|
|
57
40
|
*/
|
|
58
41
|
|
|
59
42
|
/**
|
|
60
43
|
* @typedef CreatePaymentOrderParam
|
|
61
|
-
* @property {PaymentPlatformModel.
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @typedef DeleteBeneficiaryDetailsParam
|
|
66
|
-
* @property {PaymentPlatformModel.DeleteBeneficiaryRequest} body
|
|
44
|
+
* @property {PaymentPlatformModel.PaymentOrderCreation} body
|
|
67
45
|
*/
|
|
68
46
|
|
|
69
47
|
/** @typedef EdcAggregatorsAndModelListParam */
|
|
@@ -79,20 +57,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
79
57
|
|
|
80
58
|
/** @typedef EdcDeviceStatsParam */
|
|
81
59
|
|
|
82
|
-
/**
|
|
83
|
-
* @typedef GetAggregatorCredentialParam
|
|
84
|
-
* @property {string} aggregator - The aggregator for which credentials are requested
|
|
85
|
-
* @property {string} configType - The configuration type for which credentials
|
|
86
|
-
* are requested
|
|
87
|
-
*/
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @typedef GetAggregatorCredentialHistoryParam
|
|
91
|
-
* @property {string} aggregator - The aggregator for which credentials are requested
|
|
92
|
-
* @property {string} configType - The configuration type for which credentials
|
|
93
|
-
* are requested
|
|
94
|
-
*/
|
|
95
|
-
|
|
96
60
|
/**
|
|
97
61
|
* @typedef GetBankAccountDetailsOpenAPIParam
|
|
98
62
|
* @property {string} orderId
|
|
@@ -105,8 +69,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
105
69
|
* @property {string} [configType]
|
|
106
70
|
*/
|
|
107
71
|
|
|
108
|
-
/** @typedef GetDevicesParam */
|
|
109
|
-
|
|
110
72
|
/**
|
|
111
73
|
* @typedef GetEdcDeviceParam
|
|
112
74
|
* @property {string} terminalUniqueIdentifier - Terminal unique identifier
|
|
@@ -128,16 +90,11 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
128
90
|
* @property {string} device
|
|
129
91
|
*/
|
|
130
92
|
|
|
131
|
-
/**
|
|
132
|
-
* @typedef GetMerchantPaymentOptionParam
|
|
133
|
-
* @property {string} [paymentOptionType] - Payment Option Type, Expected value
|
|
134
|
-
* - advance (Optional)
|
|
135
|
-
*/
|
|
93
|
+
/** @typedef GetMerchantPaymentOptionParam */
|
|
136
94
|
|
|
137
95
|
/**
|
|
138
96
|
* @typedef GetMerchantRefundPriorityParam
|
|
139
97
|
* @property {string} configType - Configuration for merchant or customer
|
|
140
|
-
* @property {string} businessUnit - Business unit storefront or pos
|
|
141
98
|
*/
|
|
142
99
|
|
|
143
100
|
/** @typedef GetPGConfigAggregatorsParam */
|
|
@@ -149,12 +106,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
149
106
|
* @property {string} paymentLinkId
|
|
150
107
|
*/
|
|
151
108
|
|
|
152
|
-
/**
|
|
153
|
-
* @typedef GetPaymentLinkIdParam
|
|
154
|
-
* @property {string} id
|
|
155
|
-
* @property {string} paymentLinkId
|
|
156
|
-
*/
|
|
157
|
-
|
|
158
109
|
/**
|
|
159
110
|
* @typedef GetPaymentModeControlRoutesParam
|
|
160
111
|
* @property {string} mode - Offline / advance modes to get the payment modes
|
|
@@ -167,22 +118,19 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
167
118
|
|
|
168
119
|
/**
|
|
169
120
|
* @typedef GetPaymentModeRoutesParam
|
|
170
|
-
* @property {boolean} refresh
|
|
171
|
-
*
|
|
172
|
-
* @property {string} requestType
|
|
173
|
-
* @property {string} [orderId]
|
|
174
|
-
* @property {string} [shipmentId]
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* @typedef GetPaymentModeSequencingParam
|
|
179
|
-
* @property {string} businessUnit
|
|
180
|
-
* @property {string} device
|
|
121
|
+
* @property {boolean} [refresh] - Flag to refresh the cache and retrieve the
|
|
122
|
+
* updated payment option
|
|
123
|
+
* @property {string} [requestType] - Type of payment request, i.e. self
|
|
124
|
+
* @property {string} [orderId] - Order id for the payment
|
|
125
|
+
* @property {string} [shipmentId] - Shipment id for the payment
|
|
126
|
+
* @property {number} [amount] - Amount for the payment
|
|
181
127
|
*/
|
|
182
128
|
|
|
183
129
|
/**
|
|
184
130
|
* @typedef GetPaymentSessionParam
|
|
185
|
-
* @property {string} gid -
|
|
131
|
+
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
132
|
+
* etc.) against which payment session was initiated. This is generated by
|
|
133
|
+
* Fynd payments platform and is unique.
|
|
186
134
|
* @property {boolean} [lineItem] - A boolean flag to include detailed cart and
|
|
187
135
|
* line item information in the response. When set to true, the response will
|
|
188
136
|
* contain comprehensive details about the cart, including each line item's
|
|
@@ -192,8 +140,6 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
192
140
|
* amount billed in a more granular way.
|
|
193
141
|
*/
|
|
194
142
|
|
|
195
|
-
/** @typedef GetPennyDropValidationParam */
|
|
196
|
-
|
|
197
143
|
/**
|
|
198
144
|
* @typedef GetPosPaymentModeRoutesParam
|
|
199
145
|
* @property {number} amount - Payable amount.
|
|
@@ -214,31 +160,11 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
214
160
|
* @property {string} [shipmentId]
|
|
215
161
|
*/
|
|
216
162
|
|
|
217
|
-
/**
|
|
218
|
-
* @typedef GetSelectedRefundOptionParam
|
|
219
|
-
* @property {string} shipmentId - Shipment Id
|
|
220
|
-
* @property {string} orderId - Order Id
|
|
221
|
-
*/
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* @typedef GetShipmentBeneficiaryParam
|
|
225
|
-
* @property {string} shipmentId - Shipment id
|
|
226
|
-
*/
|
|
227
|
-
|
|
228
163
|
/**
|
|
229
164
|
* @typedef GetUserBeneficiariesParam
|
|
230
165
|
* @property {string} orderId
|
|
231
166
|
*/
|
|
232
167
|
|
|
233
|
-
/**
|
|
234
|
-
* @typedef GetUserBeneficiariesDetailV2Param
|
|
235
|
-
* @property {string} [orderId] - A unique number used for identifying and
|
|
236
|
-
* tracking your orders.
|
|
237
|
-
* @property {string} [shipmentId] - A unique number used for identifying and
|
|
238
|
-
* tracking your orders.
|
|
239
|
-
* @property {string} [mop] - Mode of payment for which beneficiary data required
|
|
240
|
-
*/
|
|
241
|
-
|
|
242
168
|
/**
|
|
243
169
|
* @typedef GetUserCODlimitRoutesParam
|
|
244
170
|
* @property {string} merchantUserId
|
|
@@ -252,12 +178,12 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
252
178
|
|
|
253
179
|
/**
|
|
254
180
|
* @typedef InitialisePaymentParam
|
|
255
|
-
* @property {PaymentPlatformModel.
|
|
181
|
+
* @property {PaymentPlatformModel.PaymentInitializationCreation} body
|
|
256
182
|
*/
|
|
257
183
|
|
|
258
184
|
/**
|
|
259
185
|
* @typedef MerchantOnBoardingParam
|
|
260
|
-
* @property {PaymentPlatformModel.
|
|
186
|
+
* @property {PaymentPlatformModel.MerchantOnBoardingCreation} body
|
|
261
187
|
*/
|
|
262
188
|
|
|
263
189
|
/**
|
|
@@ -270,33 +196,28 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
270
196
|
/**
|
|
271
197
|
* @typedef PatchMerchantAggregatorPaymentModeDetailsParam
|
|
272
198
|
* @property {number} aggregatorId - Aggregators Id
|
|
273
|
-
* @property {PaymentPlatformModel.
|
|
199
|
+
* @property {PaymentPlatformModel.PlatformPaymentModeDetails} body
|
|
274
200
|
*/
|
|
275
201
|
|
|
276
202
|
/**
|
|
277
203
|
* @typedef PatchMerchantPaymentOptionParam
|
|
278
|
-
* @property {PaymentPlatformModel.
|
|
204
|
+
* @property {PaymentPlatformModel.MerchnatPaymentModeCreation} body
|
|
279
205
|
*/
|
|
280
206
|
|
|
281
207
|
/**
|
|
282
208
|
* @typedef PatchMerchantPaymentOptionVersionParam
|
|
283
209
|
* @property {number} aggregatorId - Aggregators Id
|
|
284
|
-
* @property {PaymentPlatformModel.
|
|
285
|
-
*/
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* @typedef PatchPaymentModeSequencingParam
|
|
289
|
-
* @property {PaymentPlatformModel.PlatformPaymentModeRequest} body
|
|
210
|
+
* @property {PaymentPlatformModel.PatchAggregatorControl} body
|
|
290
211
|
*/
|
|
291
212
|
|
|
292
213
|
/**
|
|
293
214
|
* @typedef PaymentStatusBulkParam
|
|
294
|
-
* @property {PaymentPlatformModel.
|
|
215
|
+
* @property {PaymentPlatformModel.PaymentStatusBulkHandlerCreation} body
|
|
295
216
|
*/
|
|
296
217
|
|
|
297
218
|
/**
|
|
298
219
|
* @typedef PollingPaymentLinkParam
|
|
299
|
-
* @property {string}
|
|
220
|
+
* @property {string} paymentLinkId
|
|
300
221
|
*/
|
|
301
222
|
|
|
302
223
|
/**
|
|
@@ -306,12 +227,12 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
306
227
|
|
|
307
228
|
/**
|
|
308
229
|
* @typedef ResendOrCancelPaymentParam
|
|
309
|
-
* @property {PaymentPlatformModel.
|
|
230
|
+
* @property {PaymentPlatformModel.ResendOrCancelPaymentCreation} body
|
|
310
231
|
*/
|
|
311
232
|
|
|
312
233
|
/**
|
|
313
234
|
* @typedef ResendPaymentLinkParam
|
|
314
|
-
* @property {PaymentPlatformModel.
|
|
235
|
+
* @property {PaymentPlatformModel.CancelOrResendPaymentLinkCreation} body
|
|
315
236
|
*/
|
|
316
237
|
|
|
317
238
|
/**
|
|
@@ -321,13 +242,13 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
321
242
|
|
|
322
243
|
/**
|
|
323
244
|
* @typedef SaveBrandPaymentGatewayConfigParam
|
|
324
|
-
* @property {PaymentPlatformModel.
|
|
245
|
+
* @property {PaymentPlatformModel.PaymentGatewayConfigCreation} body
|
|
325
246
|
*/
|
|
326
247
|
|
|
327
248
|
/**
|
|
328
249
|
* @typedef SetMerchantModeControlRoutesParam
|
|
329
|
-
* @property {string} mode - Offline / advance
|
|
330
|
-
* @property {PaymentPlatformModel.
|
|
250
|
+
* @property {string} mode - Offline / advance payment mode
|
|
251
|
+
* @property {PaymentPlatformModel.MerchantPaymentModeCreation} body
|
|
331
252
|
*/
|
|
332
253
|
|
|
333
254
|
/**
|
|
@@ -336,36 +257,20 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
336
257
|
* @property {PaymentPlatformModel.PaymentCustomConfigRequestSchema} body
|
|
337
258
|
*/
|
|
338
259
|
|
|
339
|
-
/**
|
|
340
|
-
* @typedef SetRefundOptionforShipmentParam
|
|
341
|
-
* @property {PaymentPlatformModel.ShipmentRefundRequest} body
|
|
342
|
-
*/
|
|
343
|
-
|
|
344
260
|
/**
|
|
345
261
|
* @typedef SetUserCODlimitRoutesParam
|
|
346
|
-
* @property {PaymentPlatformModel.
|
|
347
|
-
*/
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* @typedef UpdateAggregatorCredentialParam
|
|
351
|
-
* @property {PaymentPlatformModel.AggregatorCredentialRequest} body
|
|
352
|
-
*/
|
|
353
|
-
|
|
354
|
-
/**
|
|
355
|
-
* @typedef UpdateDefaultBeneficiaryParam
|
|
356
|
-
* @property {PaymentPlatformModel.SetDefaultBeneficiaryRequest} body
|
|
262
|
+
* @property {PaymentPlatformModel.SetCODForUserCreation} body
|
|
357
263
|
*/
|
|
358
264
|
|
|
359
265
|
/**
|
|
360
266
|
* @typedef UpdateEdcDeviceParam
|
|
361
|
-
* @property {PaymentPlatformModel.
|
|
267
|
+
* @property {PaymentPlatformModel.EdcAddCreation} body
|
|
362
268
|
*/
|
|
363
269
|
|
|
364
270
|
/**
|
|
365
271
|
* @typedef UpdateMerchantRefundPriorityParam
|
|
366
272
|
* @property {string} configType - Configuration for merchant or customer
|
|
367
|
-
* @property {
|
|
368
|
-
* @property {PaymentPlatformModel.RefundPriorityRequestSerializer} body
|
|
273
|
+
* @property {PaymentPlatformModel.RefundPriorityCreation} body
|
|
369
274
|
*/
|
|
370
275
|
|
|
371
276
|
/**
|
|
@@ -373,12 +278,7 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
373
278
|
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
374
279
|
* etc.) against which payment_session was initiated. This is generated by
|
|
375
280
|
* Fynd payments platform and is unique.
|
|
376
|
-
* @property {PaymentPlatformModel.
|
|
377
|
-
*/
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* @typedef UpdatePennyDropValidationParam
|
|
381
|
-
* @property {PaymentPlatformModel.UpdatePennyDropValidationRequest} body
|
|
281
|
+
* @property {PaymentPlatformModel.PaymentSessionCreation} body
|
|
382
282
|
*/
|
|
383
283
|
|
|
384
284
|
/**
|
|
@@ -388,17 +288,17 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
388
288
|
* Fynd payments platform and is unique.
|
|
389
289
|
* @property {string} requestId - A unique id that was used to initiate a refund
|
|
390
290
|
* session. This is generated by Fynd platform and is usually shipment_id.
|
|
391
|
-
* @property {PaymentPlatformModel.
|
|
291
|
+
* @property {PaymentPlatformModel.RefundSessionCreation} body
|
|
392
292
|
*/
|
|
393
293
|
|
|
394
294
|
/**
|
|
395
|
-
* @typedef
|
|
396
|
-
* @property {PaymentPlatformModel.
|
|
295
|
+
* @typedef ValidateCustomerAndCreditSummaryParam
|
|
296
|
+
* @property {PaymentPlatformModel.CustomerValidationSchema} body
|
|
397
297
|
*/
|
|
398
298
|
|
|
399
299
|
/**
|
|
400
300
|
* @typedef VerifyCustomerForPaymentParam
|
|
401
|
-
* @property {PaymentPlatformModel.
|
|
301
|
+
* @property {PaymentPlatformModel.ValidateCustomerCreation} body
|
|
402
302
|
*/
|
|
403
303
|
|
|
404
304
|
class PaymentPlatformApplicationValidator {
|
|
@@ -406,57 +306,35 @@ class PaymentPlatformApplicationValidator {
|
|
|
406
306
|
static addEdcDevice() {
|
|
407
307
|
return Joi.object({
|
|
408
308
|
terminalUniqueIdentifier: Joi.string().allow("").required(),
|
|
409
|
-
body: PaymentPlatformModel.
|
|
410
|
-
}).required();
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
/** @returns {AddRefundBankAccountParam} */
|
|
414
|
-
static addRefundBankAccount() {
|
|
415
|
-
return Joi.object({
|
|
416
|
-
body: PaymentPlatformModel.AddBeneficiaryDetailsOTPRequest().required(),
|
|
309
|
+
body: PaymentPlatformModel.EdcUpdate().required(),
|
|
417
310
|
}).required();
|
|
418
311
|
}
|
|
419
312
|
|
|
420
313
|
/** @returns {AddRefundBankAccountUsingOTPParam} */
|
|
421
314
|
static addRefundBankAccountUsingOTP() {
|
|
422
315
|
return Joi.object({
|
|
423
|
-
body: PaymentPlatformModel.
|
|
316
|
+
body: PaymentPlatformModel.AddBeneficiaryDetailsOTPCreation().required(),
|
|
424
317
|
}).required();
|
|
425
318
|
}
|
|
426
319
|
|
|
427
320
|
/** @returns {CancelPaymentLinkParam} */
|
|
428
321
|
static cancelPaymentLink() {
|
|
429
322
|
return Joi.object({
|
|
430
|
-
body: PaymentPlatformModel.
|
|
323
|
+
body: PaymentPlatformModel.CancelOrResendPaymentLinkCreation().required(),
|
|
431
324
|
}).required();
|
|
432
325
|
}
|
|
433
326
|
|
|
434
327
|
/** @returns {CheckAndUpdatePaymentStatusParam} */
|
|
435
328
|
static checkAndUpdatePaymentStatus() {
|
|
436
329
|
return Joi.object({
|
|
437
|
-
body: PaymentPlatformModel.
|
|
330
|
+
body: PaymentPlatformModel.PaymentStatusUpdateCreation().required(),
|
|
438
331
|
}).required();
|
|
439
332
|
}
|
|
440
333
|
|
|
441
334
|
/** @returns {ConfirmPaymentParam} */
|
|
442
335
|
static confirmPayment() {
|
|
443
336
|
return Joi.object({
|
|
444
|
-
body: PaymentPlatformModel.
|
|
445
|
-
}).required();
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
/** @returns {CopyConfigAggPaymentModesParam} */
|
|
449
|
-
static copyConfigAggPaymentModes() {
|
|
450
|
-
return Joi.object({
|
|
451
|
-
aggregatorId: Joi.string().allow("").required(),
|
|
452
|
-
body: PaymentPlatformModel.PlatformPaymentModeCopyConfigRequest().required(),
|
|
453
|
-
}).required();
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
/** @returns {CopyConfigPaymentModesParam} */
|
|
457
|
-
static copyConfigPaymentModes() {
|
|
458
|
-
return Joi.object({
|
|
459
|
-
body: PaymentPlatformModel.PlatformPaymentModeCopyConfigRequest().required(),
|
|
337
|
+
body: PaymentPlatformModel.PaymentConfirmationCreation().required(),
|
|
460
338
|
}).required();
|
|
461
339
|
}
|
|
462
340
|
|
|
@@ -464,29 +342,21 @@ class PaymentPlatformApplicationValidator {
|
|
|
464
342
|
static createMerchantRefundPriority() {
|
|
465
343
|
return Joi.object({
|
|
466
344
|
configType: Joi.string().allow("").required(),
|
|
467
|
-
|
|
468
|
-
body: PaymentPlatformModel.RefundPriorityRequestSerializer().required(),
|
|
345
|
+
body: PaymentPlatformModel.RefundPriorityCreation().required(),
|
|
469
346
|
}).required();
|
|
470
347
|
}
|
|
471
348
|
|
|
472
349
|
/** @returns {CreatePaymentLinkParam} */
|
|
473
350
|
static createPaymentLink() {
|
|
474
351
|
return Joi.object({
|
|
475
|
-
body: PaymentPlatformModel.
|
|
352
|
+
body: PaymentPlatformModel.CreatePaymentLinkCreation().required(),
|
|
476
353
|
}).required();
|
|
477
354
|
}
|
|
478
355
|
|
|
479
356
|
/** @returns {CreatePaymentOrderParam} */
|
|
480
357
|
static createPaymentOrder() {
|
|
481
358
|
return Joi.object({
|
|
482
|
-
body: PaymentPlatformModel.
|
|
483
|
-
}).required();
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
/** @returns {DeleteBeneficiaryDetailsParam} */
|
|
487
|
-
static deleteBeneficiaryDetails() {
|
|
488
|
-
return Joi.object({
|
|
489
|
-
body: PaymentPlatformModel.DeleteBeneficiaryRequest().required(),
|
|
359
|
+
body: PaymentPlatformModel.PaymentOrderCreation().required(),
|
|
490
360
|
}).required();
|
|
491
361
|
}
|
|
492
362
|
|
|
@@ -511,22 +381,6 @@ class PaymentPlatformApplicationValidator {
|
|
|
511
381
|
return Joi.object({}).required();
|
|
512
382
|
}
|
|
513
383
|
|
|
514
|
-
/** @returns {GetAggregatorCredentialParam} */
|
|
515
|
-
static getAggregatorCredential() {
|
|
516
|
-
return Joi.object({
|
|
517
|
-
aggregator: Joi.string().allow("").required(),
|
|
518
|
-
configType: Joi.string().allow("").required(),
|
|
519
|
-
}).required();
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
/** @returns {GetAggregatorCredentialHistoryParam} */
|
|
523
|
-
static getAggregatorCredentialHistory() {
|
|
524
|
-
return Joi.object({
|
|
525
|
-
aggregator: Joi.string().allow("").required(),
|
|
526
|
-
configType: Joi.string().allow("").required(),
|
|
527
|
-
}).required();
|
|
528
|
-
}
|
|
529
|
-
|
|
530
384
|
/** @returns {GetBankAccountDetailsOpenAPIParam} */
|
|
531
385
|
static getBankAccountDetailsOpenAPI() {
|
|
532
386
|
return Joi.object({
|
|
@@ -543,11 +397,6 @@ class PaymentPlatformApplicationValidator {
|
|
|
543
397
|
}).required();
|
|
544
398
|
}
|
|
545
399
|
|
|
546
|
-
/** @returns {GetDevicesParam} */
|
|
547
|
-
static getDevices() {
|
|
548
|
-
return Joi.object({}).required();
|
|
549
|
-
}
|
|
550
|
-
|
|
551
400
|
/** @returns {GetEdcDeviceParam} */
|
|
552
401
|
static getEdcDevice() {
|
|
553
402
|
return Joi.object({
|
|
@@ -577,16 +426,13 @@ class PaymentPlatformApplicationValidator {
|
|
|
577
426
|
|
|
578
427
|
/** @returns {GetMerchantPaymentOptionParam} */
|
|
579
428
|
static getMerchantPaymentOption() {
|
|
580
|
-
return Joi.object({
|
|
581
|
-
paymentOptionType: Joi.string().allow(""),
|
|
582
|
-
}).required();
|
|
429
|
+
return Joi.object({}).required();
|
|
583
430
|
}
|
|
584
431
|
|
|
585
432
|
/** @returns {GetMerchantRefundPriorityParam} */
|
|
586
433
|
static getMerchantRefundPriority() {
|
|
587
434
|
return Joi.object({
|
|
588
435
|
configType: Joi.string().allow("").required(),
|
|
589
|
-
businessUnit: Joi.string().allow("").required(),
|
|
590
436
|
}).required();
|
|
591
437
|
}
|
|
592
438
|
|
|
@@ -607,14 +453,6 @@ class PaymentPlatformApplicationValidator {
|
|
|
607
453
|
}).required();
|
|
608
454
|
}
|
|
609
455
|
|
|
610
|
-
/** @returns {GetPaymentLinkIdParam} */
|
|
611
|
-
static getPaymentLinkId() {
|
|
612
|
-
return Joi.object({
|
|
613
|
-
id: Joi.string().allow("").required(),
|
|
614
|
-
paymentLinkId: Joi.string().allow("").required(),
|
|
615
|
-
}).required();
|
|
616
|
-
}
|
|
617
|
-
|
|
618
456
|
/** @returns {GetPaymentModeControlRoutesParam} */
|
|
619
457
|
static getPaymentModeControlRoutes() {
|
|
620
458
|
return Joi.object({
|
|
@@ -632,19 +470,11 @@ class PaymentPlatformApplicationValidator {
|
|
|
632
470
|
/** @returns {GetPaymentModeRoutesParam} */
|
|
633
471
|
static getPaymentModeRoutes() {
|
|
634
472
|
return Joi.object({
|
|
635
|
-
refresh: Joi.boolean()
|
|
636
|
-
|
|
637
|
-
requestType: Joi.string().allow("").required(),
|
|
473
|
+
refresh: Joi.boolean(),
|
|
474
|
+
requestType: Joi.string().allow(""),
|
|
638
475
|
orderId: Joi.string().allow(""),
|
|
639
476
|
shipmentId: Joi.string().allow(""),
|
|
640
|
-
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
/** @returns {GetPaymentModeSequencingParam} */
|
|
644
|
-
static getPaymentModeSequencing() {
|
|
645
|
-
return Joi.object({
|
|
646
|
-
businessUnit: Joi.string().allow("").required(),
|
|
647
|
-
device: Joi.string().allow("").required(),
|
|
477
|
+
amount: Joi.number(),
|
|
648
478
|
}).required();
|
|
649
479
|
}
|
|
650
480
|
|
|
@@ -656,11 +486,6 @@ class PaymentPlatformApplicationValidator {
|
|
|
656
486
|
}).required();
|
|
657
487
|
}
|
|
658
488
|
|
|
659
|
-
/** @returns {GetPennyDropValidationParam} */
|
|
660
|
-
static getPennyDropValidation() {
|
|
661
|
-
return Joi.object({}).required();
|
|
662
|
-
}
|
|
663
|
-
|
|
664
489
|
/** @returns {GetPosPaymentModeRoutesParam} */
|
|
665
490
|
static getPosPaymentModeRoutes() {
|
|
666
491
|
return Joi.object({
|
|
@@ -679,21 +504,6 @@ class PaymentPlatformApplicationValidator {
|
|
|
679
504
|
}).required();
|
|
680
505
|
}
|
|
681
506
|
|
|
682
|
-
/** @returns {GetSelectedRefundOptionParam} */
|
|
683
|
-
static getSelectedRefundOption() {
|
|
684
|
-
return Joi.object({
|
|
685
|
-
shipmentId: Joi.string().allow("").required(),
|
|
686
|
-
orderId: Joi.string().allow("").required(),
|
|
687
|
-
}).required();
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
/** @returns {GetShipmentBeneficiaryParam} */
|
|
691
|
-
static getShipmentBeneficiary() {
|
|
692
|
-
return Joi.object({
|
|
693
|
-
shipmentId: Joi.string().allow("").required(),
|
|
694
|
-
}).required();
|
|
695
|
-
}
|
|
696
|
-
|
|
697
507
|
/** @returns {GetUserBeneficiariesParam} */
|
|
698
508
|
static getUserBeneficiaries() {
|
|
699
509
|
return Joi.object({
|
|
@@ -701,15 +511,6 @@ class PaymentPlatformApplicationValidator {
|
|
|
701
511
|
}).required();
|
|
702
512
|
}
|
|
703
513
|
|
|
704
|
-
/** @returns {GetUserBeneficiariesDetailV2Param} */
|
|
705
|
-
static getUserBeneficiariesDetailV2() {
|
|
706
|
-
return Joi.object({
|
|
707
|
-
orderId: Joi.string().allow(""),
|
|
708
|
-
shipmentId: Joi.string().allow(""),
|
|
709
|
-
mop: Joi.string().allow(""),
|
|
710
|
-
}).required();
|
|
711
|
-
}
|
|
712
|
-
|
|
713
514
|
/** @returns {GetUserCODlimitRoutesParam} */
|
|
714
515
|
static getUserCODlimitRoutes() {
|
|
715
516
|
return Joi.object({
|
|
@@ -728,14 +529,14 @@ class PaymentPlatformApplicationValidator {
|
|
|
728
529
|
/** @returns {InitialisePaymentParam} */
|
|
729
530
|
static initialisePayment() {
|
|
730
531
|
return Joi.object({
|
|
731
|
-
body: PaymentPlatformModel.
|
|
532
|
+
body: PaymentPlatformModel.PaymentInitializationCreation().required(),
|
|
732
533
|
}).required();
|
|
733
534
|
}
|
|
734
535
|
|
|
735
536
|
/** @returns {MerchantOnBoardingParam} */
|
|
736
537
|
static merchantOnBoarding() {
|
|
737
538
|
return Joi.object({
|
|
738
|
-
body: PaymentPlatformModel.
|
|
539
|
+
body: PaymentPlatformModel.MerchantOnBoardingCreation().required(),
|
|
739
540
|
}).required();
|
|
740
541
|
}
|
|
741
542
|
|
|
@@ -752,14 +553,14 @@ class PaymentPlatformApplicationValidator {
|
|
|
752
553
|
static patchMerchantAggregatorPaymentModeDetails() {
|
|
753
554
|
return Joi.object({
|
|
754
555
|
aggregatorId: Joi.number().required(),
|
|
755
|
-
body: PaymentPlatformModel.
|
|
556
|
+
body: PaymentPlatformModel.PlatformPaymentModeDetails().required(),
|
|
756
557
|
}).required();
|
|
757
558
|
}
|
|
758
559
|
|
|
759
560
|
/** @returns {PatchMerchantPaymentOptionParam} */
|
|
760
561
|
static patchMerchantPaymentOption() {
|
|
761
562
|
return Joi.object({
|
|
762
|
-
body: PaymentPlatformModel.
|
|
563
|
+
body: PaymentPlatformModel.MerchnatPaymentModeCreation().required(),
|
|
763
564
|
}).required();
|
|
764
565
|
}
|
|
765
566
|
|
|
@@ -767,28 +568,21 @@ class PaymentPlatformApplicationValidator {
|
|
|
767
568
|
static patchMerchantPaymentOptionVersion() {
|
|
768
569
|
return Joi.object({
|
|
769
570
|
aggregatorId: Joi.number().required(),
|
|
770
|
-
body: PaymentPlatformModel.
|
|
771
|
-
}).required();
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
/** @returns {PatchPaymentModeSequencingParam} */
|
|
775
|
-
static patchPaymentModeSequencing() {
|
|
776
|
-
return Joi.object({
|
|
777
|
-
body: PaymentPlatformModel.PlatformPaymentModeRequest().required(),
|
|
571
|
+
body: PaymentPlatformModel.PatchAggregatorControl().required(),
|
|
778
572
|
}).required();
|
|
779
573
|
}
|
|
780
574
|
|
|
781
575
|
/** @returns {PaymentStatusBulkParam} */
|
|
782
576
|
static paymentStatusBulk() {
|
|
783
577
|
return Joi.object({
|
|
784
|
-
body: PaymentPlatformModel.
|
|
578
|
+
body: PaymentPlatformModel.PaymentStatusBulkHandlerCreation().required(),
|
|
785
579
|
}).required();
|
|
786
580
|
}
|
|
787
581
|
|
|
788
582
|
/** @returns {PollingPaymentLinkParam} */
|
|
789
583
|
static pollingPaymentLink() {
|
|
790
584
|
return Joi.object({
|
|
791
|
-
paymentLinkId: Joi.string().allow(""),
|
|
585
|
+
paymentLinkId: Joi.string().allow("").required(),
|
|
792
586
|
}).required();
|
|
793
587
|
}
|
|
794
588
|
|
|
@@ -802,14 +596,14 @@ class PaymentPlatformApplicationValidator {
|
|
|
802
596
|
/** @returns {ResendOrCancelPaymentParam} */
|
|
803
597
|
static resendOrCancelPayment() {
|
|
804
598
|
return Joi.object({
|
|
805
|
-
body: PaymentPlatformModel.
|
|
599
|
+
body: PaymentPlatformModel.ResendOrCancelPaymentCreation().required(),
|
|
806
600
|
}).required();
|
|
807
601
|
}
|
|
808
602
|
|
|
809
603
|
/** @returns {ResendPaymentLinkParam} */
|
|
810
604
|
static resendPaymentLink() {
|
|
811
605
|
return Joi.object({
|
|
812
|
-
body: PaymentPlatformModel.
|
|
606
|
+
body: PaymentPlatformModel.CancelOrResendPaymentLinkCreation().required(),
|
|
813
607
|
}).required();
|
|
814
608
|
}
|
|
815
609
|
|
|
@@ -823,7 +617,7 @@ class PaymentPlatformApplicationValidator {
|
|
|
823
617
|
/** @returns {SaveBrandPaymentGatewayConfigParam} */
|
|
824
618
|
static saveBrandPaymentGatewayConfig() {
|
|
825
619
|
return Joi.object({
|
|
826
|
-
body: PaymentPlatformModel.
|
|
620
|
+
body: PaymentPlatformModel.PaymentGatewayConfigCreation().required(),
|
|
827
621
|
}).required();
|
|
828
622
|
}
|
|
829
623
|
|
|
@@ -831,7 +625,7 @@ class PaymentPlatformApplicationValidator {
|
|
|
831
625
|
static setMerchantModeControlRoutes() {
|
|
832
626
|
return Joi.object({
|
|
833
627
|
mode: Joi.string().allow("").required(),
|
|
834
|
-
body: PaymentPlatformModel.
|
|
628
|
+
body: PaymentPlatformModel.MerchantPaymentModeCreation().required(),
|
|
835
629
|
}).required();
|
|
836
630
|
}
|
|
837
631
|
|
|
@@ -843,38 +637,17 @@ class PaymentPlatformApplicationValidator {
|
|
|
843
637
|
}).required();
|
|
844
638
|
}
|
|
845
639
|
|
|
846
|
-
/** @returns {SetRefundOptionforShipmentParam} */
|
|
847
|
-
static setRefundOptionforShipment() {
|
|
848
|
-
return Joi.object({
|
|
849
|
-
body: PaymentPlatformModel.ShipmentRefundRequest().required(),
|
|
850
|
-
}).required();
|
|
851
|
-
}
|
|
852
|
-
|
|
853
640
|
/** @returns {SetUserCODlimitRoutesParam} */
|
|
854
641
|
static setUserCODlimitRoutes() {
|
|
855
642
|
return Joi.object({
|
|
856
|
-
body: PaymentPlatformModel.
|
|
857
|
-
}).required();
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
/** @returns {UpdateAggregatorCredentialParam} */
|
|
861
|
-
static updateAggregatorCredential() {
|
|
862
|
-
return Joi.object({
|
|
863
|
-
body: PaymentPlatformModel.AggregatorCredentialRequest().required(),
|
|
864
|
-
}).required();
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
/** @returns {UpdateDefaultBeneficiaryParam} */
|
|
868
|
-
static updateDefaultBeneficiary() {
|
|
869
|
-
return Joi.object({
|
|
870
|
-
body: PaymentPlatformModel.SetDefaultBeneficiaryRequest().required(),
|
|
643
|
+
body: PaymentPlatformModel.SetCODForUserCreation().required(),
|
|
871
644
|
}).required();
|
|
872
645
|
}
|
|
873
646
|
|
|
874
647
|
/** @returns {UpdateEdcDeviceParam} */
|
|
875
648
|
static updateEdcDevice() {
|
|
876
649
|
return Joi.object({
|
|
877
|
-
body: PaymentPlatformModel.
|
|
650
|
+
body: PaymentPlatformModel.EdcAddCreation().required(),
|
|
878
651
|
}).required();
|
|
879
652
|
}
|
|
880
653
|
|
|
@@ -882,8 +655,7 @@ class PaymentPlatformApplicationValidator {
|
|
|
882
655
|
static updateMerchantRefundPriority() {
|
|
883
656
|
return Joi.object({
|
|
884
657
|
configType: Joi.string().allow("").required(),
|
|
885
|
-
|
|
886
|
-
body: PaymentPlatformModel.RefundPriorityRequestSerializer().required(),
|
|
658
|
+
body: PaymentPlatformModel.RefundPriorityCreation().required(),
|
|
887
659
|
}).required();
|
|
888
660
|
}
|
|
889
661
|
|
|
@@ -891,14 +663,7 @@ class PaymentPlatformApplicationValidator {
|
|
|
891
663
|
static updatePaymentSession() {
|
|
892
664
|
return Joi.object({
|
|
893
665
|
gid: Joi.string().allow("").required(),
|
|
894
|
-
body: PaymentPlatformModel.
|
|
895
|
-
}).required();
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
/** @returns {UpdatePennyDropValidationParam} */
|
|
899
|
-
static updatePennyDropValidation() {
|
|
900
|
-
return Joi.object({
|
|
901
|
-
body: PaymentPlatformModel.UpdatePennyDropValidationRequest().required(),
|
|
666
|
+
body: PaymentPlatformModel.PaymentSessionCreation().required(),
|
|
902
667
|
}).required();
|
|
903
668
|
}
|
|
904
669
|
|
|
@@ -907,21 +672,21 @@ class PaymentPlatformApplicationValidator {
|
|
|
907
672
|
return Joi.object({
|
|
908
673
|
gid: Joi.string().allow("").required(),
|
|
909
674
|
requestId: Joi.string().allow("").required(),
|
|
910
|
-
body: PaymentPlatformModel.
|
|
675
|
+
body: PaymentPlatformModel.RefundSessionCreation().required(),
|
|
911
676
|
}).required();
|
|
912
677
|
}
|
|
913
678
|
|
|
914
|
-
/** @returns {
|
|
915
|
-
static
|
|
679
|
+
/** @returns {ValidateCustomerAndCreditSummaryParam} */
|
|
680
|
+
static validateCustomerAndCreditSummary() {
|
|
916
681
|
return Joi.object({
|
|
917
|
-
body: PaymentPlatformModel.
|
|
682
|
+
body: PaymentPlatformModel.CustomerValidationSchema().required(),
|
|
918
683
|
}).required();
|
|
919
684
|
}
|
|
920
685
|
|
|
921
686
|
/** @returns {VerifyCustomerForPaymentParam} */
|
|
922
687
|
static verifyCustomerForPayment() {
|
|
923
688
|
return Joi.object({
|
|
924
|
-
body: PaymentPlatformModel.
|
|
689
|
+
body: PaymentPlatformModel.ValidateCustomerCreation().required(),
|
|
925
690
|
}).required();
|
|
926
691
|
}
|
|
927
692
|
}
|