@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
|
@@ -2,240 +2,37 @@ const Joi = require("joi");
|
|
|
2
2
|
|
|
3
3
|
const BillingPlatformModel = require("./BillingPlatformModel");
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* @typedef ActivateSubscriptionPlanParam
|
|
7
|
-
* @property {BillingPlatformModel.SubscriptionActivateReq} body
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
5
|
/**
|
|
11
6
|
* @typedef CancelSubscriptionChargeParam
|
|
12
|
-
* @property {string} extensionId -
|
|
13
|
-
* @property {string} subscriptionId -
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @typedef CancelSubscriptionPlanParam
|
|
18
|
-
* @property {BillingPlatformModel.CancelSubscriptionReq} body
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @typedef ChangePlanParam
|
|
23
|
-
* @property {BillingPlatformModel.SubscriptionActivateReq} body
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @typedef CheckCouponValidityParam
|
|
28
|
-
* @property {string} plan - ID of the plan.
|
|
29
|
-
* @property {string} couponCode - Coupon code.
|
|
7
|
+
* @property {string} extensionId - The unique identifier of the extension
|
|
8
|
+
* @property {string} subscriptionId - The unique identifier of the subscription
|
|
30
9
|
*/
|
|
31
10
|
|
|
32
11
|
/**
|
|
33
12
|
* @typedef CreateOneTimeChargeParam
|
|
34
|
-
* @property {string} extensionId -
|
|
13
|
+
* @property {string} extensionId - The unique identifier of the extension
|
|
35
14
|
* @property {BillingPlatformModel.CreateOneTimeCharge} body
|
|
36
15
|
*/
|
|
37
16
|
|
|
38
17
|
/**
|
|
39
|
-
* @typedef
|
|
40
|
-
* @property {
|
|
41
|
-
* @property {
|
|
42
|
-
* @property {string} type - Type of the company
|
|
43
|
-
* @property {number} [pageSize] - Number of items per page
|
|
44
|
-
* @property {number} [pageNo] - Page number
|
|
45
|
-
* @property {string} [startDate] - Start date
|
|
46
|
-
* @property {string} [endDate] - End date
|
|
47
|
-
* @property {string} [searchType] - Search Type
|
|
48
|
-
* @property {string} [searchValue] - Search Value
|
|
18
|
+
* @typedef CreateSubscriptionChargeParam
|
|
19
|
+
* @property {string} extensionId - The unique identifier of the extension
|
|
20
|
+
* @property {BillingPlatformModel.CreateSubscriptionCharge} body
|
|
49
21
|
*/
|
|
50
22
|
|
|
51
|
-
/**
|
|
52
|
-
* @typedef CurrentAppLimitParam
|
|
53
|
-
* @property {string} [productSuite]
|
|
54
|
-
* @property {string} [type]
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
/** @typedef GetBankListParam */
|
|
58
|
-
|
|
59
23
|
/**
|
|
60
24
|
* @typedef GetChargeDetailsParam
|
|
61
|
-
* @property {string} extensionId -
|
|
62
|
-
* @property {string} chargeId -
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
|
-
/** @typedef GetCustomerDetailParam */
|
|
66
|
-
|
|
67
|
-
/** @typedef GetEnterprisePlansParam */
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @typedef GetFeatureLimitConfigParam
|
|
71
|
-
* @property {string} [productSuite]
|
|
72
|
-
* @property {string} [type]
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @typedef GetInvoiceByIdParam
|
|
77
|
-
* @property {string} invoiceId - Invoice id
|
|
78
|
-
*/
|
|
79
|
-
|
|
80
|
-
/** @typedef GetInvoicesParam */
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @typedef GetPaymentOptionsParam
|
|
84
|
-
* @property {string} transactionId - ID of the payment transaction.
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @typedef GetPaymentTransactionParam
|
|
89
|
-
* @property {string} transactionId - Payment Transaction unique id.
|
|
25
|
+
* @property {string} extensionId - The unique identifier of the extension
|
|
26
|
+
* @property {string} chargeId - The unique identifier of the entity charge in the system.
|
|
90
27
|
*/
|
|
91
28
|
|
|
92
|
-
/** @typedef GetSubscriptionParam */
|
|
93
|
-
|
|
94
29
|
/**
|
|
95
30
|
* @typedef GetSubscriptionChargeParam
|
|
96
|
-
* @property {string} extensionId -
|
|
97
|
-
* @property {string} subscriptionId -
|
|
98
|
-
*/
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @typedef GetentityDetailParam
|
|
102
|
-
* @property {string} entityName - Entity name.
|
|
103
|
-
* @property {string} [entityId] - Entity unique id.
|
|
104
|
-
* @property {string} channel - Ordering channel.
|
|
105
|
-
* @property {string} [component] - The coponents the user would like to know.
|
|
106
|
-
* @property {string} [componentName] - The name of component the preferred to be fetched.
|
|
107
|
-
*/
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @typedef GlobalSettingsParam
|
|
111
|
-
* @property {number} pageNo - Number of pages needed
|
|
112
|
-
* @property {number} pageSize - Number of items to be there in page
|
|
113
|
-
* @property {Object} query - Field which will be used in db query
|
|
114
|
-
*/
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* @typedef MethodDefaultParam
|
|
118
|
-
* @property {BillingPlatformModel.DefaultReq} body
|
|
119
|
-
*/
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @typedef PaymentCollectParam
|
|
123
|
-
* @property {BillingPlatformModel.PaymentCollectReq} body
|
|
124
|
-
*/
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @typedef PaymentInitiateParam
|
|
128
|
-
* @property {BillingPlatformModel.SubscribePlan} body
|
|
129
|
-
*/
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* @typedef PaymentOptionsParam
|
|
133
|
-
* @property {string} code - Payment options unique code.
|
|
134
|
-
*/
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* @typedef PaymentStatusParam
|
|
138
|
-
* @property {string} orderId - Unique ID of the company
|
|
139
|
-
*/
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* @typedef PlanDowngradeParam
|
|
143
|
-
* @property {BillingPlatformModel.DowngradePlanReq} body
|
|
144
|
-
*/
|
|
145
|
-
|
|
146
|
-
/** @typedef PlanDowngradeGetParam */
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* @typedef PlanStatusUpdateParam
|
|
150
|
-
* @property {BillingPlatformModel.PlanStatusUpdateReq} body
|
|
151
|
-
*/
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* @typedef SetupIntentParam
|
|
155
|
-
* @property {BillingPlatformModel.IntentReq} body
|
|
156
|
-
*/
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* @typedef SetupMandateParam
|
|
160
|
-
* @property {BillingPlatformModel.SetupMandateReq} body
|
|
161
|
-
*/
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* @typedef SetupPaymentParam
|
|
165
|
-
* @property {BillingPlatformModel.SetupPaymentReq} body
|
|
166
|
-
*/
|
|
167
|
-
|
|
168
|
-
/** @typedef SubscriptionConfigsParam */
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* @typedef SubscriptionMethodsParam
|
|
172
|
-
* @property {string} uniqueExternalId - Unique id for external company
|
|
173
|
-
*/
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* @typedef SubscriptionMethodsDeleteParam
|
|
177
|
-
* @property {string} uniqueExternalId - Unique id for external company
|
|
178
|
-
* @property {string} paymentMethodId - Payment method id
|
|
179
|
-
*/
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* @typedef SubscriptionPlanChangeParam
|
|
183
|
-
* @property {string} [productSuite]
|
|
184
|
-
* @property {string} [coupon]
|
|
185
|
-
* @property {number} [uniqueId]
|
|
186
|
-
* @property {string} [platform]
|
|
187
|
-
* @property {string} [planId]
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* @typedef SubscriptionRenewParam
|
|
192
|
-
* @property {BillingPlatformModel.SubscriptionRenewReq} body
|
|
193
|
-
*/
|
|
194
|
-
|
|
195
|
-
/**
|
|
196
|
-
* @typedef TopupCancelCreditParam
|
|
197
|
-
* @property {BillingPlatformModel.CancelTopupReq} body
|
|
198
|
-
*/
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* @typedef TopupCreditParam
|
|
202
|
-
* @property {BillingPlatformModel.TopupReq} body
|
|
203
|
-
*/
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* @typedef UpdateConsentParam
|
|
207
|
-
* @property {string} subscriberId - Customer unique id. In case of company it
|
|
208
|
-
* will be company id.
|
|
209
|
-
*/
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* @typedef UpdateSetupIntentParam
|
|
213
|
-
* @property {BillingPlatformModel.PutIntentReq} body
|
|
214
|
-
*/
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* @typedef UpgradePlanParam
|
|
218
|
-
* @property {BillingPlatformModel.SubscriptionMethodsReq} body
|
|
219
|
-
*/
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* @typedef UpsertCustomerDetailParam
|
|
223
|
-
* @property {BillingPlatformModel.SubscriptionCustomerCreate} body
|
|
224
|
-
*/
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* @typedef VerifyPaymentParam
|
|
228
|
-
* @property {BillingPlatformModel.VerifyPaymentReq} body
|
|
31
|
+
* @property {string} extensionId - The unique identifier of the extension
|
|
32
|
+
* @property {string} subscriptionId - The unique identifier of the subscription
|
|
229
33
|
*/
|
|
230
34
|
|
|
231
35
|
class BillingPlatformValidator {
|
|
232
|
-
/** @returns {ActivateSubscriptionPlanParam} */
|
|
233
|
-
static activateSubscriptionPlan() {
|
|
234
|
-
return Joi.object({
|
|
235
|
-
body: BillingPlatformModel.SubscriptionActivateReq().required(),
|
|
236
|
-
}).required();
|
|
237
|
-
}
|
|
238
|
-
|
|
239
36
|
/** @returns {CancelSubscriptionChargeParam} */
|
|
240
37
|
static cancelSubscriptionCharge() {
|
|
241
38
|
return Joi.object({
|
|
@@ -244,28 +41,6 @@ class BillingPlatformValidator {
|
|
|
244
41
|
}).required();
|
|
245
42
|
}
|
|
246
43
|
|
|
247
|
-
/** @returns {CancelSubscriptionPlanParam} */
|
|
248
|
-
static cancelSubscriptionPlan() {
|
|
249
|
-
return Joi.object({
|
|
250
|
-
body: BillingPlatformModel.CancelSubscriptionReq().required(),
|
|
251
|
-
}).required();
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
/** @returns {ChangePlanParam} */
|
|
255
|
-
static changePlan() {
|
|
256
|
-
return Joi.object({
|
|
257
|
-
body: BillingPlatformModel.SubscriptionActivateReq().required(),
|
|
258
|
-
}).required();
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
/** @returns {CheckCouponValidityParam} */
|
|
262
|
-
static checkCouponValidity() {
|
|
263
|
-
return Joi.object({
|
|
264
|
-
plan: Joi.string().allow("").required(),
|
|
265
|
-
couponCode: Joi.string().allow("").required(),
|
|
266
|
-
}).required();
|
|
267
|
-
}
|
|
268
|
-
|
|
269
44
|
/** @returns {CreateOneTimeChargeParam} */
|
|
270
45
|
static createOneTimeCharge() {
|
|
271
46
|
return Joi.object({
|
|
@@ -274,34 +49,14 @@ class BillingPlatformValidator {
|
|
|
274
49
|
}).required();
|
|
275
50
|
}
|
|
276
51
|
|
|
277
|
-
/** @returns {
|
|
278
|
-
static
|
|
279
|
-
return Joi.object({
|
|
280
|
-
uniqueId: Joi.number().required(),
|
|
281
|
-
productSuite: Joi.string().allow("").required(),
|
|
282
|
-
type: Joi.string().allow("").required(),
|
|
283
|
-
pageSize: Joi.number(),
|
|
284
|
-
pageNo: Joi.number(),
|
|
285
|
-
startDate: Joi.string().allow(""),
|
|
286
|
-
endDate: Joi.string().allow(""),
|
|
287
|
-
searchType: Joi.string().allow(""),
|
|
288
|
-
searchValue: Joi.string().allow(""),
|
|
289
|
-
}).required();
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/** @returns {CurrentAppLimitParam} */
|
|
293
|
-
static currentAppLimit() {
|
|
52
|
+
/** @returns {CreateSubscriptionChargeParam} */
|
|
53
|
+
static createSubscriptionCharge() {
|
|
294
54
|
return Joi.object({
|
|
295
|
-
|
|
296
|
-
|
|
55
|
+
extensionId: Joi.string().allow("").required(),
|
|
56
|
+
body: BillingPlatformModel.CreateSubscriptionCharge().required(),
|
|
297
57
|
}).required();
|
|
298
58
|
}
|
|
299
59
|
|
|
300
|
-
/** @returns {GetBankListParam} */
|
|
301
|
-
static getBankList() {
|
|
302
|
-
return Joi.object({}).required();
|
|
303
|
-
}
|
|
304
|
-
|
|
305
60
|
/** @returns {GetChargeDetailsParam} */
|
|
306
61
|
static getChargeDetails() {
|
|
307
62
|
return Joi.object({
|
|
@@ -310,55 +65,6 @@ class BillingPlatformValidator {
|
|
|
310
65
|
}).required();
|
|
311
66
|
}
|
|
312
67
|
|
|
313
|
-
/** @returns {GetCustomerDetailParam} */
|
|
314
|
-
static getCustomerDetail() {
|
|
315
|
-
return Joi.object({}).required();
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
/** @returns {GetEnterprisePlansParam} */
|
|
319
|
-
static getEnterprisePlans() {
|
|
320
|
-
return Joi.object({}).required();
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/** @returns {GetFeatureLimitConfigParam} */
|
|
324
|
-
static getFeatureLimitConfig() {
|
|
325
|
-
return Joi.object({
|
|
326
|
-
productSuite: Joi.string().allow(""),
|
|
327
|
-
type: Joi.string().allow(""),
|
|
328
|
-
}).required();
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
/** @returns {GetInvoiceByIdParam} */
|
|
332
|
-
static getInvoiceById() {
|
|
333
|
-
return Joi.object({
|
|
334
|
-
invoiceId: Joi.string().allow("").required(),
|
|
335
|
-
}).required();
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
/** @returns {GetInvoicesParam} */
|
|
339
|
-
static getInvoices() {
|
|
340
|
-
return Joi.object({}).required();
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
/** @returns {GetPaymentOptionsParam} */
|
|
344
|
-
static getPaymentOptions() {
|
|
345
|
-
return Joi.object({
|
|
346
|
-
transactionId: Joi.string().allow("").required(),
|
|
347
|
-
}).required();
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
/** @returns {GetPaymentTransactionParam} */
|
|
351
|
-
static getPaymentTransaction() {
|
|
352
|
-
return Joi.object({
|
|
353
|
-
transactionId: Joi.string().allow("").required(),
|
|
354
|
-
}).required();
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
/** @returns {GetSubscriptionParam} */
|
|
358
|
-
static getSubscription() {
|
|
359
|
-
return Joi.object({}).required();
|
|
360
|
-
}
|
|
361
|
-
|
|
362
68
|
/** @returns {GetSubscriptionChargeParam} */
|
|
363
69
|
static getSubscriptionCharge() {
|
|
364
70
|
return Joi.object({
|
|
@@ -366,188 +72,6 @@ class BillingPlatformValidator {
|
|
|
366
72
|
subscriptionId: Joi.string().allow("").required(),
|
|
367
73
|
}).required();
|
|
368
74
|
}
|
|
369
|
-
|
|
370
|
-
/** @returns {GetentityDetailParam} */
|
|
371
|
-
static getentityDetail() {
|
|
372
|
-
return Joi.object({
|
|
373
|
-
entityName: Joi.string().allow("").required(),
|
|
374
|
-
entityId: Joi.string().allow(""),
|
|
375
|
-
channel: Joi.string().allow("").required(),
|
|
376
|
-
component: Joi.string().allow(""),
|
|
377
|
-
componentName: Joi.string().allow(""),
|
|
378
|
-
}).required();
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
/** @returns {GlobalSettingsParam} */
|
|
382
|
-
static globalSettings() {
|
|
383
|
-
return Joi.object({
|
|
384
|
-
pageNo: Joi.number().required(),
|
|
385
|
-
pageSize: Joi.number().required(),
|
|
386
|
-
query: Joi.any().required(),
|
|
387
|
-
}).required();
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
/** @returns {MethodDefaultParam} */
|
|
391
|
-
static methodDefault() {
|
|
392
|
-
return Joi.object({
|
|
393
|
-
body: BillingPlatformModel.DefaultReq().required(),
|
|
394
|
-
}).required();
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
/** @returns {PaymentCollectParam} */
|
|
398
|
-
static paymentCollect() {
|
|
399
|
-
return Joi.object({
|
|
400
|
-
body: BillingPlatformModel.PaymentCollectReq().required(),
|
|
401
|
-
}).required();
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
/** @returns {PaymentInitiateParam} */
|
|
405
|
-
static paymentInitiate() {
|
|
406
|
-
return Joi.object({
|
|
407
|
-
body: BillingPlatformModel.SubscribePlan().required(),
|
|
408
|
-
}).required();
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
/** @returns {PaymentOptionsParam} */
|
|
412
|
-
static paymentOptions() {
|
|
413
|
-
return Joi.object({
|
|
414
|
-
code: Joi.string().allow("").required(),
|
|
415
|
-
}).required();
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
/** @returns {PaymentStatusParam} */
|
|
419
|
-
static paymentStatus() {
|
|
420
|
-
return Joi.object({
|
|
421
|
-
orderId: Joi.string().allow("").required(),
|
|
422
|
-
}).required();
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
/** @returns {PlanDowngradeParam} */
|
|
426
|
-
static planDowngrade() {
|
|
427
|
-
return Joi.object({
|
|
428
|
-
body: BillingPlatformModel.DowngradePlanReq().required(),
|
|
429
|
-
}).required();
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
/** @returns {PlanDowngradeGetParam} */
|
|
433
|
-
static planDowngradeGet() {
|
|
434
|
-
return Joi.object({}).required();
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
/** @returns {PlanStatusUpdateParam} */
|
|
438
|
-
static planStatusUpdate() {
|
|
439
|
-
return Joi.object({
|
|
440
|
-
body: BillingPlatformModel.PlanStatusUpdateReq().required(),
|
|
441
|
-
}).required();
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
/** @returns {SetupIntentParam} */
|
|
445
|
-
static setupIntent() {
|
|
446
|
-
return Joi.object({
|
|
447
|
-
body: BillingPlatformModel.IntentReq().required(),
|
|
448
|
-
}).required();
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
/** @returns {SetupMandateParam} */
|
|
452
|
-
static setupMandate() {
|
|
453
|
-
return Joi.object({
|
|
454
|
-
body: BillingPlatformModel.SetupMandateReq().required(),
|
|
455
|
-
}).required();
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
/** @returns {SetupPaymentParam} */
|
|
459
|
-
static setupPayment() {
|
|
460
|
-
return Joi.object({
|
|
461
|
-
body: BillingPlatformModel.SetupPaymentReq().required(),
|
|
462
|
-
}).required();
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
/** @returns {SubscriptionConfigsParam} */
|
|
466
|
-
static subscriptionConfigs() {
|
|
467
|
-
return Joi.object({}).required();
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
/** @returns {SubscriptionMethodsParam} */
|
|
471
|
-
static subscriptionMethods() {
|
|
472
|
-
return Joi.object({
|
|
473
|
-
uniqueExternalId: Joi.string().allow("").required(),
|
|
474
|
-
}).required();
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
/** @returns {SubscriptionMethodsDeleteParam} */
|
|
478
|
-
static subscriptionMethodsDelete() {
|
|
479
|
-
return Joi.object({
|
|
480
|
-
uniqueExternalId: Joi.string().allow("").required(),
|
|
481
|
-
paymentMethodId: Joi.string().allow("").required(),
|
|
482
|
-
}).required();
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
/** @returns {SubscriptionPlanChangeParam} */
|
|
486
|
-
static subscriptionPlanChange() {
|
|
487
|
-
return Joi.object({
|
|
488
|
-
productSuite: Joi.string().allow(""),
|
|
489
|
-
coupon: Joi.string().allow(""),
|
|
490
|
-
uniqueId: Joi.number(),
|
|
491
|
-
platform: Joi.string().allow(""),
|
|
492
|
-
planId: Joi.string().allow(""),
|
|
493
|
-
}).required();
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
/** @returns {SubscriptionRenewParam} */
|
|
497
|
-
static subscriptionRenew() {
|
|
498
|
-
return Joi.object({
|
|
499
|
-
body: BillingPlatformModel.SubscriptionRenewReq().required(),
|
|
500
|
-
}).required();
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
/** @returns {TopupCancelCreditParam} */
|
|
504
|
-
static topupCancelCredit() {
|
|
505
|
-
return Joi.object({
|
|
506
|
-
body: BillingPlatformModel.CancelTopupReq().required(),
|
|
507
|
-
}).required();
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
/** @returns {TopupCreditParam} */
|
|
511
|
-
static topupCredit() {
|
|
512
|
-
return Joi.object({
|
|
513
|
-
body: BillingPlatformModel.TopupReq().required(),
|
|
514
|
-
}).required();
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
/** @returns {UpdateConsentParam} */
|
|
518
|
-
static updateConsent() {
|
|
519
|
-
return Joi.object({
|
|
520
|
-
subscriberId: Joi.string().allow("").required(),
|
|
521
|
-
}).required();
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
/** @returns {UpdateSetupIntentParam} */
|
|
525
|
-
static updateSetupIntent() {
|
|
526
|
-
return Joi.object({
|
|
527
|
-
body: BillingPlatformModel.PutIntentReq().required(),
|
|
528
|
-
}).required();
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
/** @returns {UpgradePlanParam} */
|
|
532
|
-
static upgradePlan() {
|
|
533
|
-
return Joi.object({
|
|
534
|
-
body: BillingPlatformModel.SubscriptionMethodsReq().required(),
|
|
535
|
-
}).required();
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
/** @returns {UpsertCustomerDetailParam} */
|
|
539
|
-
static upsertCustomerDetail() {
|
|
540
|
-
return Joi.object({
|
|
541
|
-
body: BillingPlatformModel.SubscriptionCustomerCreate().required(),
|
|
542
|
-
}).required();
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
/** @returns {VerifyPaymentParam} */
|
|
546
|
-
static verifyPayment() {
|
|
547
|
-
return Joi.object({
|
|
548
|
-
body: BillingPlatformModel.VerifyPaymentReq().required(),
|
|
549
|
-
}).required();
|
|
550
|
-
}
|
|
551
75
|
}
|
|
552
76
|
|
|
553
77
|
module.exports = BillingPlatformValidator;
|