@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.2.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 +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +81 -101
- package/sdk/application/Cart/CartApplicationClient.js +173 -511
- 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 +61 -61
- package/sdk/application/Content/ContentApplicationClient.js +183 -366
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- 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 +28 -117
- package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
- 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 +10 -54
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
- 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 +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +172 -251
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
- package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
- 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 +240 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
- 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 +330 -502
- package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
- 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 -100
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
- 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 -31
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
- 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 +562 -1289
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
- 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 -248
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
- 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 +2391 -924
- package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
- 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 +406 -403
- package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
- package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
- package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
- 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 +937 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -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 +1307 -3536
- package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
- 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 -521
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
- 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 -9
- package/sdk/platform/Share/SharePlatformModel.js +45 -5
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
- 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 -0
- package/sdk/public/PublicClient.js +4 -0
- 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 -0
- package/sdk/public/index.js +2 -0
- 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
|
@@ -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,10 +140,10 @@ 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
|
|
145
|
+
* @property {string} [xOrderingSource] - Optional header to identify the
|
|
146
|
+
* ordering source used to determine\ applicable payment options for business unit.
|
|
199
147
|
* @property {number} amount - Payable amount.
|
|
200
148
|
* @property {string} [cartId] - Identifier of the cart.
|
|
201
149
|
* @property {string} pincode - The PIN Code of the destination address, e.g. 400059
|
|
@@ -214,31 +162,11 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
214
162
|
* @property {string} [shipmentId]
|
|
215
163
|
*/
|
|
216
164
|
|
|
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
165
|
/**
|
|
229
166
|
* @typedef GetUserBeneficiariesParam
|
|
230
167
|
* @property {string} orderId
|
|
231
168
|
*/
|
|
232
169
|
|
|
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
170
|
/**
|
|
243
171
|
* @typedef GetUserCODlimitRoutesParam
|
|
244
172
|
* @property {string} merchantUserId
|
|
@@ -252,12 +180,12 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
252
180
|
|
|
253
181
|
/**
|
|
254
182
|
* @typedef InitialisePaymentParam
|
|
255
|
-
* @property {PaymentPlatformModel.
|
|
183
|
+
* @property {PaymentPlatformModel.PaymentInitializationCreation} body
|
|
256
184
|
*/
|
|
257
185
|
|
|
258
186
|
/**
|
|
259
187
|
* @typedef MerchantOnBoardingParam
|
|
260
|
-
* @property {PaymentPlatformModel.
|
|
188
|
+
* @property {PaymentPlatformModel.MerchantOnBoardingCreation} body
|
|
261
189
|
*/
|
|
262
190
|
|
|
263
191
|
/**
|
|
@@ -270,33 +198,28 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
270
198
|
/**
|
|
271
199
|
* @typedef PatchMerchantAggregatorPaymentModeDetailsParam
|
|
272
200
|
* @property {number} aggregatorId - Aggregators Id
|
|
273
|
-
* @property {PaymentPlatformModel.
|
|
201
|
+
* @property {PaymentPlatformModel.PlatformPaymentModeDetails} body
|
|
274
202
|
*/
|
|
275
203
|
|
|
276
204
|
/**
|
|
277
205
|
* @typedef PatchMerchantPaymentOptionParam
|
|
278
|
-
* @property {PaymentPlatformModel.
|
|
206
|
+
* @property {PaymentPlatformModel.MerchnatPaymentModeCreation} body
|
|
279
207
|
*/
|
|
280
208
|
|
|
281
209
|
/**
|
|
282
210
|
* @typedef PatchMerchantPaymentOptionVersionParam
|
|
283
211
|
* @property {number} aggregatorId - Aggregators Id
|
|
284
|
-
* @property {PaymentPlatformModel.
|
|
285
|
-
*/
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* @typedef PatchPaymentModeSequencingParam
|
|
289
|
-
* @property {PaymentPlatformModel.PlatformPaymentModeRequest} body
|
|
212
|
+
* @property {PaymentPlatformModel.PatchAggregatorControl} body
|
|
290
213
|
*/
|
|
291
214
|
|
|
292
215
|
/**
|
|
293
216
|
* @typedef PaymentStatusBulkParam
|
|
294
|
-
* @property {PaymentPlatformModel.
|
|
217
|
+
* @property {PaymentPlatformModel.PaymentStatusBulkHandlerCreation} body
|
|
295
218
|
*/
|
|
296
219
|
|
|
297
220
|
/**
|
|
298
221
|
* @typedef PollingPaymentLinkParam
|
|
299
|
-
* @property {string}
|
|
222
|
+
* @property {string} paymentLinkId
|
|
300
223
|
*/
|
|
301
224
|
|
|
302
225
|
/**
|
|
@@ -306,12 +229,12 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
306
229
|
|
|
307
230
|
/**
|
|
308
231
|
* @typedef ResendOrCancelPaymentParam
|
|
309
|
-
* @property {PaymentPlatformModel.
|
|
232
|
+
* @property {PaymentPlatformModel.ResendOrCancelPaymentCreation} body
|
|
310
233
|
*/
|
|
311
234
|
|
|
312
235
|
/**
|
|
313
236
|
* @typedef ResendPaymentLinkParam
|
|
314
|
-
* @property {PaymentPlatformModel.
|
|
237
|
+
* @property {PaymentPlatformModel.CancelOrResendPaymentLinkCreation} body
|
|
315
238
|
*/
|
|
316
239
|
|
|
317
240
|
/**
|
|
@@ -321,13 +244,13 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
321
244
|
|
|
322
245
|
/**
|
|
323
246
|
* @typedef SaveBrandPaymentGatewayConfigParam
|
|
324
|
-
* @property {PaymentPlatformModel.
|
|
247
|
+
* @property {PaymentPlatformModel.PaymentGatewayConfigCreation} body
|
|
325
248
|
*/
|
|
326
249
|
|
|
327
250
|
/**
|
|
328
251
|
* @typedef SetMerchantModeControlRoutesParam
|
|
329
|
-
* @property {string} mode - Offline / advance
|
|
330
|
-
* @property {PaymentPlatformModel.
|
|
252
|
+
* @property {string} mode - Offline / advance payment mode
|
|
253
|
+
* @property {PaymentPlatformModel.MerchantPaymentModeCreation} body
|
|
331
254
|
*/
|
|
332
255
|
|
|
333
256
|
/**
|
|
@@ -336,36 +259,20 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
336
259
|
* @property {PaymentPlatformModel.PaymentCustomConfigRequestSchema} body
|
|
337
260
|
*/
|
|
338
261
|
|
|
339
|
-
/**
|
|
340
|
-
* @typedef SetRefundOptionforShipmentParam
|
|
341
|
-
* @property {PaymentPlatformModel.ShipmentRefundRequest} body
|
|
342
|
-
*/
|
|
343
|
-
|
|
344
262
|
/**
|
|
345
263
|
* @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
|
|
264
|
+
* @property {PaymentPlatformModel.SetCODForUserCreation} body
|
|
357
265
|
*/
|
|
358
266
|
|
|
359
267
|
/**
|
|
360
268
|
* @typedef UpdateEdcDeviceParam
|
|
361
|
-
* @property {PaymentPlatformModel.
|
|
269
|
+
* @property {PaymentPlatformModel.EdcAddCreation} body
|
|
362
270
|
*/
|
|
363
271
|
|
|
364
272
|
/**
|
|
365
273
|
* @typedef UpdateMerchantRefundPriorityParam
|
|
366
274
|
* @property {string} configType - Configuration for merchant or customer
|
|
367
|
-
* @property {
|
|
368
|
-
* @property {PaymentPlatformModel.RefundPriorityRequestSerializer} body
|
|
275
|
+
* @property {PaymentPlatformModel.RefundPriorityCreation} body
|
|
369
276
|
*/
|
|
370
277
|
|
|
371
278
|
/**
|
|
@@ -373,12 +280,7 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
373
280
|
* @property {string} gid - Global identifier of the entity (e.g. order, cart
|
|
374
281
|
* etc.) against which payment_session was initiated. This is generated by
|
|
375
282
|
* Fynd payments platform and is unique.
|
|
376
|
-
* @property {PaymentPlatformModel.
|
|
377
|
-
*/
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* @typedef UpdatePennyDropValidationParam
|
|
381
|
-
* @property {PaymentPlatformModel.UpdatePennyDropValidationRequest} body
|
|
283
|
+
* @property {PaymentPlatformModel.PaymentSessionCreation} body
|
|
382
284
|
*/
|
|
383
285
|
|
|
384
286
|
/**
|
|
@@ -388,17 +290,17 @@ const PaymentPlatformModel = require("./PaymentPlatformModel");
|
|
|
388
290
|
* Fynd payments platform and is unique.
|
|
389
291
|
* @property {string} requestId - A unique id that was used to initiate a refund
|
|
390
292
|
* session. This is generated by Fynd platform and is usually shipment_id.
|
|
391
|
-
* @property {PaymentPlatformModel.
|
|
293
|
+
* @property {PaymentPlatformModel.RefundSessionCreation} body
|
|
392
294
|
*/
|
|
393
295
|
|
|
394
296
|
/**
|
|
395
|
-
* @typedef
|
|
396
|
-
* @property {PaymentPlatformModel.
|
|
297
|
+
* @typedef ValidateCustomerAndCreditSummaryParam
|
|
298
|
+
* @property {PaymentPlatformModel.CustomerValidationSchema} body
|
|
397
299
|
*/
|
|
398
300
|
|
|
399
301
|
/**
|
|
400
302
|
* @typedef VerifyCustomerForPaymentParam
|
|
401
|
-
* @property {PaymentPlatformModel.
|
|
303
|
+
* @property {PaymentPlatformModel.ValidateCustomerCreation} body
|
|
402
304
|
*/
|
|
403
305
|
|
|
404
306
|
class PaymentPlatformApplicationValidator {
|
|
@@ -406,57 +308,35 @@ class PaymentPlatformApplicationValidator {
|
|
|
406
308
|
static addEdcDevice() {
|
|
407
309
|
return Joi.object({
|
|
408
310
|
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(),
|
|
311
|
+
body: PaymentPlatformModel.EdcUpdate().required(),
|
|
417
312
|
}).required();
|
|
418
313
|
}
|
|
419
314
|
|
|
420
315
|
/** @returns {AddRefundBankAccountUsingOTPParam} */
|
|
421
316
|
static addRefundBankAccountUsingOTP() {
|
|
422
317
|
return Joi.object({
|
|
423
|
-
body: PaymentPlatformModel.
|
|
318
|
+
body: PaymentPlatformModel.AddBeneficiaryDetailsOTPCreation().required(),
|
|
424
319
|
}).required();
|
|
425
320
|
}
|
|
426
321
|
|
|
427
322
|
/** @returns {CancelPaymentLinkParam} */
|
|
428
323
|
static cancelPaymentLink() {
|
|
429
324
|
return Joi.object({
|
|
430
|
-
body: PaymentPlatformModel.
|
|
325
|
+
body: PaymentPlatformModel.CancelOrResendPaymentLinkCreation().required(),
|
|
431
326
|
}).required();
|
|
432
327
|
}
|
|
433
328
|
|
|
434
329
|
/** @returns {CheckAndUpdatePaymentStatusParam} */
|
|
435
330
|
static checkAndUpdatePaymentStatus() {
|
|
436
331
|
return Joi.object({
|
|
437
|
-
body: PaymentPlatformModel.
|
|
332
|
+
body: PaymentPlatformModel.PaymentStatusUpdateCreation().required(),
|
|
438
333
|
}).required();
|
|
439
334
|
}
|
|
440
335
|
|
|
441
336
|
/** @returns {ConfirmPaymentParam} */
|
|
442
337
|
static confirmPayment() {
|
|
443
338
|
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(),
|
|
339
|
+
body: PaymentPlatformModel.PaymentConfirmationCreation().required(),
|
|
460
340
|
}).required();
|
|
461
341
|
}
|
|
462
342
|
|
|
@@ -464,29 +344,21 @@ class PaymentPlatformApplicationValidator {
|
|
|
464
344
|
static createMerchantRefundPriority() {
|
|
465
345
|
return Joi.object({
|
|
466
346
|
configType: Joi.string().allow("").required(),
|
|
467
|
-
|
|
468
|
-
body: PaymentPlatformModel.RefundPriorityRequestSerializer().required(),
|
|
347
|
+
body: PaymentPlatformModel.RefundPriorityCreation().required(),
|
|
469
348
|
}).required();
|
|
470
349
|
}
|
|
471
350
|
|
|
472
351
|
/** @returns {CreatePaymentLinkParam} */
|
|
473
352
|
static createPaymentLink() {
|
|
474
353
|
return Joi.object({
|
|
475
|
-
body: PaymentPlatformModel.
|
|
354
|
+
body: PaymentPlatformModel.CreatePaymentLinkCreation().required(),
|
|
476
355
|
}).required();
|
|
477
356
|
}
|
|
478
357
|
|
|
479
358
|
/** @returns {CreatePaymentOrderParam} */
|
|
480
359
|
static createPaymentOrder() {
|
|
481
360
|
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(),
|
|
361
|
+
body: PaymentPlatformModel.PaymentOrderCreation().required(),
|
|
490
362
|
}).required();
|
|
491
363
|
}
|
|
492
364
|
|
|
@@ -511,22 +383,6 @@ class PaymentPlatformApplicationValidator {
|
|
|
511
383
|
return Joi.object({}).required();
|
|
512
384
|
}
|
|
513
385
|
|
|
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
386
|
/** @returns {GetBankAccountDetailsOpenAPIParam} */
|
|
531
387
|
static getBankAccountDetailsOpenAPI() {
|
|
532
388
|
return Joi.object({
|
|
@@ -543,11 +399,6 @@ class PaymentPlatformApplicationValidator {
|
|
|
543
399
|
}).required();
|
|
544
400
|
}
|
|
545
401
|
|
|
546
|
-
/** @returns {GetDevicesParam} */
|
|
547
|
-
static getDevices() {
|
|
548
|
-
return Joi.object({}).required();
|
|
549
|
-
}
|
|
550
|
-
|
|
551
402
|
/** @returns {GetEdcDeviceParam} */
|
|
552
403
|
static getEdcDevice() {
|
|
553
404
|
return Joi.object({
|
|
@@ -577,16 +428,13 @@ class PaymentPlatformApplicationValidator {
|
|
|
577
428
|
|
|
578
429
|
/** @returns {GetMerchantPaymentOptionParam} */
|
|
579
430
|
static getMerchantPaymentOption() {
|
|
580
|
-
return Joi.object({
|
|
581
|
-
paymentOptionType: Joi.string().allow(""),
|
|
582
|
-
}).required();
|
|
431
|
+
return Joi.object({}).required();
|
|
583
432
|
}
|
|
584
433
|
|
|
585
434
|
/** @returns {GetMerchantRefundPriorityParam} */
|
|
586
435
|
static getMerchantRefundPriority() {
|
|
587
436
|
return Joi.object({
|
|
588
437
|
configType: Joi.string().allow("").required(),
|
|
589
|
-
businessUnit: Joi.string().allow("").required(),
|
|
590
438
|
}).required();
|
|
591
439
|
}
|
|
592
440
|
|
|
@@ -607,14 +455,6 @@ class PaymentPlatformApplicationValidator {
|
|
|
607
455
|
}).required();
|
|
608
456
|
}
|
|
609
457
|
|
|
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
458
|
/** @returns {GetPaymentModeControlRoutesParam} */
|
|
619
459
|
static getPaymentModeControlRoutes() {
|
|
620
460
|
return Joi.object({
|
|
@@ -632,19 +472,11 @@ class PaymentPlatformApplicationValidator {
|
|
|
632
472
|
/** @returns {GetPaymentModeRoutesParam} */
|
|
633
473
|
static getPaymentModeRoutes() {
|
|
634
474
|
return Joi.object({
|
|
635
|
-
refresh: Joi.boolean()
|
|
636
|
-
|
|
637
|
-
requestType: Joi.string().allow("").required(),
|
|
475
|
+
refresh: Joi.boolean(),
|
|
476
|
+
requestType: Joi.string().allow(""),
|
|
638
477
|
orderId: Joi.string().allow(""),
|
|
639
478
|
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(),
|
|
479
|
+
amount: Joi.number(),
|
|
648
480
|
}).required();
|
|
649
481
|
}
|
|
650
482
|
|
|
@@ -656,14 +488,11 @@ class PaymentPlatformApplicationValidator {
|
|
|
656
488
|
}).required();
|
|
657
489
|
}
|
|
658
490
|
|
|
659
|
-
/** @returns {GetPennyDropValidationParam} */
|
|
660
|
-
static getPennyDropValidation() {
|
|
661
|
-
return Joi.object({}).required();
|
|
662
|
-
}
|
|
663
|
-
|
|
664
491
|
/** @returns {GetPosPaymentModeRoutesParam} */
|
|
665
492
|
static getPosPaymentModeRoutes() {
|
|
666
493
|
return Joi.object({
|
|
494
|
+
xOrderingSource: Joi.string().allow(""),
|
|
495
|
+
|
|
667
496
|
amount: Joi.number().required(),
|
|
668
497
|
cartId: Joi.string().allow(""),
|
|
669
498
|
pincode: Joi.string().allow("").required(),
|
|
@@ -679,21 +508,6 @@ class PaymentPlatformApplicationValidator {
|
|
|
679
508
|
}).required();
|
|
680
509
|
}
|
|
681
510
|
|
|
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
511
|
/** @returns {GetUserBeneficiariesParam} */
|
|
698
512
|
static getUserBeneficiaries() {
|
|
699
513
|
return Joi.object({
|
|
@@ -701,15 +515,6 @@ class PaymentPlatformApplicationValidator {
|
|
|
701
515
|
}).required();
|
|
702
516
|
}
|
|
703
517
|
|
|
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
518
|
/** @returns {GetUserCODlimitRoutesParam} */
|
|
714
519
|
static getUserCODlimitRoutes() {
|
|
715
520
|
return Joi.object({
|
|
@@ -728,14 +533,14 @@ class PaymentPlatformApplicationValidator {
|
|
|
728
533
|
/** @returns {InitialisePaymentParam} */
|
|
729
534
|
static initialisePayment() {
|
|
730
535
|
return Joi.object({
|
|
731
|
-
body: PaymentPlatformModel.
|
|
536
|
+
body: PaymentPlatformModel.PaymentInitializationCreation().required(),
|
|
732
537
|
}).required();
|
|
733
538
|
}
|
|
734
539
|
|
|
735
540
|
/** @returns {MerchantOnBoardingParam} */
|
|
736
541
|
static merchantOnBoarding() {
|
|
737
542
|
return Joi.object({
|
|
738
|
-
body: PaymentPlatformModel.
|
|
543
|
+
body: PaymentPlatformModel.MerchantOnBoardingCreation().required(),
|
|
739
544
|
}).required();
|
|
740
545
|
}
|
|
741
546
|
|
|
@@ -752,14 +557,14 @@ class PaymentPlatformApplicationValidator {
|
|
|
752
557
|
static patchMerchantAggregatorPaymentModeDetails() {
|
|
753
558
|
return Joi.object({
|
|
754
559
|
aggregatorId: Joi.number().required(),
|
|
755
|
-
body: PaymentPlatformModel.
|
|
560
|
+
body: PaymentPlatformModel.PlatformPaymentModeDetails().required(),
|
|
756
561
|
}).required();
|
|
757
562
|
}
|
|
758
563
|
|
|
759
564
|
/** @returns {PatchMerchantPaymentOptionParam} */
|
|
760
565
|
static patchMerchantPaymentOption() {
|
|
761
566
|
return Joi.object({
|
|
762
|
-
body: PaymentPlatformModel.
|
|
567
|
+
body: PaymentPlatformModel.MerchnatPaymentModeCreation().required(),
|
|
763
568
|
}).required();
|
|
764
569
|
}
|
|
765
570
|
|
|
@@ -767,28 +572,21 @@ class PaymentPlatformApplicationValidator {
|
|
|
767
572
|
static patchMerchantPaymentOptionVersion() {
|
|
768
573
|
return Joi.object({
|
|
769
574
|
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(),
|
|
575
|
+
body: PaymentPlatformModel.PatchAggregatorControl().required(),
|
|
778
576
|
}).required();
|
|
779
577
|
}
|
|
780
578
|
|
|
781
579
|
/** @returns {PaymentStatusBulkParam} */
|
|
782
580
|
static paymentStatusBulk() {
|
|
783
581
|
return Joi.object({
|
|
784
|
-
body: PaymentPlatformModel.
|
|
582
|
+
body: PaymentPlatformModel.PaymentStatusBulkHandlerCreation().required(),
|
|
785
583
|
}).required();
|
|
786
584
|
}
|
|
787
585
|
|
|
788
586
|
/** @returns {PollingPaymentLinkParam} */
|
|
789
587
|
static pollingPaymentLink() {
|
|
790
588
|
return Joi.object({
|
|
791
|
-
paymentLinkId: Joi.string().allow(""),
|
|
589
|
+
paymentLinkId: Joi.string().allow("").required(),
|
|
792
590
|
}).required();
|
|
793
591
|
}
|
|
794
592
|
|
|
@@ -802,14 +600,14 @@ class PaymentPlatformApplicationValidator {
|
|
|
802
600
|
/** @returns {ResendOrCancelPaymentParam} */
|
|
803
601
|
static resendOrCancelPayment() {
|
|
804
602
|
return Joi.object({
|
|
805
|
-
body: PaymentPlatformModel.
|
|
603
|
+
body: PaymentPlatformModel.ResendOrCancelPaymentCreation().required(),
|
|
806
604
|
}).required();
|
|
807
605
|
}
|
|
808
606
|
|
|
809
607
|
/** @returns {ResendPaymentLinkParam} */
|
|
810
608
|
static resendPaymentLink() {
|
|
811
609
|
return Joi.object({
|
|
812
|
-
body: PaymentPlatformModel.
|
|
610
|
+
body: PaymentPlatformModel.CancelOrResendPaymentLinkCreation().required(),
|
|
813
611
|
}).required();
|
|
814
612
|
}
|
|
815
613
|
|
|
@@ -823,7 +621,7 @@ class PaymentPlatformApplicationValidator {
|
|
|
823
621
|
/** @returns {SaveBrandPaymentGatewayConfigParam} */
|
|
824
622
|
static saveBrandPaymentGatewayConfig() {
|
|
825
623
|
return Joi.object({
|
|
826
|
-
body: PaymentPlatformModel.
|
|
624
|
+
body: PaymentPlatformModel.PaymentGatewayConfigCreation().required(),
|
|
827
625
|
}).required();
|
|
828
626
|
}
|
|
829
627
|
|
|
@@ -831,7 +629,7 @@ class PaymentPlatformApplicationValidator {
|
|
|
831
629
|
static setMerchantModeControlRoutes() {
|
|
832
630
|
return Joi.object({
|
|
833
631
|
mode: Joi.string().allow("").required(),
|
|
834
|
-
body: PaymentPlatformModel.
|
|
632
|
+
body: PaymentPlatformModel.MerchantPaymentModeCreation().required(),
|
|
835
633
|
}).required();
|
|
836
634
|
}
|
|
837
635
|
|
|
@@ -843,38 +641,17 @@ class PaymentPlatformApplicationValidator {
|
|
|
843
641
|
}).required();
|
|
844
642
|
}
|
|
845
643
|
|
|
846
|
-
/** @returns {SetRefundOptionforShipmentParam} */
|
|
847
|
-
static setRefundOptionforShipment() {
|
|
848
|
-
return Joi.object({
|
|
849
|
-
body: PaymentPlatformModel.ShipmentRefundRequest().required(),
|
|
850
|
-
}).required();
|
|
851
|
-
}
|
|
852
|
-
|
|
853
644
|
/** @returns {SetUserCODlimitRoutesParam} */
|
|
854
645
|
static setUserCODlimitRoutes() {
|
|
855
646
|
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(),
|
|
647
|
+
body: PaymentPlatformModel.SetCODForUserCreation().required(),
|
|
871
648
|
}).required();
|
|
872
649
|
}
|
|
873
650
|
|
|
874
651
|
/** @returns {UpdateEdcDeviceParam} */
|
|
875
652
|
static updateEdcDevice() {
|
|
876
653
|
return Joi.object({
|
|
877
|
-
body: PaymentPlatformModel.
|
|
654
|
+
body: PaymentPlatformModel.EdcAddCreation().required(),
|
|
878
655
|
}).required();
|
|
879
656
|
}
|
|
880
657
|
|
|
@@ -882,8 +659,7 @@ class PaymentPlatformApplicationValidator {
|
|
|
882
659
|
static updateMerchantRefundPriority() {
|
|
883
660
|
return Joi.object({
|
|
884
661
|
configType: Joi.string().allow("").required(),
|
|
885
|
-
|
|
886
|
-
body: PaymentPlatformModel.RefundPriorityRequestSerializer().required(),
|
|
662
|
+
body: PaymentPlatformModel.RefundPriorityCreation().required(),
|
|
887
663
|
}).required();
|
|
888
664
|
}
|
|
889
665
|
|
|
@@ -891,14 +667,7 @@ class PaymentPlatformApplicationValidator {
|
|
|
891
667
|
static updatePaymentSession() {
|
|
892
668
|
return Joi.object({
|
|
893
669
|
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(),
|
|
670
|
+
body: PaymentPlatformModel.PaymentSessionCreation().required(),
|
|
902
671
|
}).required();
|
|
903
672
|
}
|
|
904
673
|
|
|
@@ -907,21 +676,21 @@ class PaymentPlatformApplicationValidator {
|
|
|
907
676
|
return Joi.object({
|
|
908
677
|
gid: Joi.string().allow("").required(),
|
|
909
678
|
requestId: Joi.string().allow("").required(),
|
|
910
|
-
body: PaymentPlatformModel.
|
|
679
|
+
body: PaymentPlatformModel.RefundSessionCreation().required(),
|
|
911
680
|
}).required();
|
|
912
681
|
}
|
|
913
682
|
|
|
914
|
-
/** @returns {
|
|
915
|
-
static
|
|
683
|
+
/** @returns {ValidateCustomerAndCreditSummaryParam} */
|
|
684
|
+
static validateCustomerAndCreditSummary() {
|
|
916
685
|
return Joi.object({
|
|
917
|
-
body: PaymentPlatformModel.
|
|
686
|
+
body: PaymentPlatformModel.CustomerValidationSchema().required(),
|
|
918
687
|
}).required();
|
|
919
688
|
}
|
|
920
689
|
|
|
921
690
|
/** @returns {VerifyCustomerForPaymentParam} */
|
|
922
691
|
static verifyCustomerForPayment() {
|
|
923
692
|
return Joi.object({
|
|
924
|
-
body: PaymentPlatformModel.
|
|
693
|
+
body: PaymentPlatformModel.ValidateCustomerCreation().required(),
|
|
925
694
|
}).required();
|
|
926
695
|
}
|
|
927
696
|
}
|