@gofynd/fdk-client-javascript 1.6.3 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/ApplicationClient.d.ts +0 -2
- package/sdk/application/ApplicationClient.js +0 -2
- package/sdk/application/Cart/CartApplicationClient.d.ts +113 -93
- package/sdk/application/Cart/CartApplicationClient.js +270 -139
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +122 -138
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +43 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +190 -3
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +71 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +103 -29
- package/sdk/application/Content/ContentApplicationClient.d.ts +51 -21
- package/sdk/application/Content/ContentApplicationClient.js +197 -36
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -6
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +79 -64
- package/sdk/application/Logistic/LogisticApplicationClient.js +246 -264
- package/sdk/application/Order/OrderApplicationClient.d.ts +44 -24
- package/sdk/application/Order/OrderApplicationClient.js +140 -21
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +211 -111
- package/sdk/application/Payment/PaymentApplicationClient.js +610 -109
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +13 -13
- package/sdk/application/Rewards/RewardsApplicationClient.js +7 -7
- package/sdk/application/Share/ShareApplicationClient.d.ts +7 -7
- package/sdk/application/Share/ShareApplicationClient.js +14 -14
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +23 -3
- package/sdk/application/Theme/ThemeApplicationClient.js +103 -5
- package/sdk/application/User/UserApplicationClient.d.ts +13 -23
- package/sdk/application/User/UserApplicationClient.js +9 -57
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +3 -3
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +66 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +431 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +231 -0
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +152 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +8 -0
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +39 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +26 -0
- package/sdk/partner/Catalog/CatalogPartnerClient.js +173 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +238 -0
- package/sdk/partner/Catalog/CatalogPartnerModel.js +248 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +5 -0
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +19 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +12 -22
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +12 -87
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +33 -99
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +25 -84
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +0 -1
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -10
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +100 -49
- package/sdk/partner/Lead/LeadPartnerModel.js +100 -74
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +33 -160
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +66 -1180
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +288 -1685
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +226 -824
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +1 -13
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +14 -141
- package/sdk/partner/PartnerClient.d.ts +6 -0
- package/sdk/partner/PartnerClient.js +9 -0
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +116 -0
- package/sdk/partner/Payment/PaymentPartnerClient.js +857 -0
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +388 -0
- package/sdk/partner/Payment/PaymentPartnerModel.js +442 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +14 -0
- package/sdk/partner/Payment/PaymentPartnerValidator.js +74 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +63 -21
- package/sdk/partner/Theme/ThemePartnerClient.js +396 -71
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +104 -72
- package/sdk/partner/Theme/ThemePartnerModel.js +101 -75
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +5 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +42 -12
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +191 -612
- package/sdk/partner/Webhook/WebhookPartnerModel.js +159 -234
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +3 -0
- package/sdk/partner/index.js +6 -0
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +1 -4
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +5 -0
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +32 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +243 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +145 -49
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +171 -20
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +39 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +35 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +406 -15
- package/sdk/platform/Billing/BillingPlatformClient.js +3214 -76
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +3798 -459
- package/sdk/platform/Billing/BillingPlatformModel.js +2577 -342
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +465 -24
- package/sdk/platform/Billing/BillingPlatformValidator.js +490 -14
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +284 -205
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +671 -553
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +165 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +108 -132
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3136 -4788
- package/sdk/platform/Cart/CartPlatformModel.js +2850 -2031
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1015 -419
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +6450 -2010
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1121 -230
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +919 -127
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +372 -574
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1238 -1317
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +8351 -9825
- package/sdk/platform/Catalog/CatalogPlatformModel.js +9662 -6881
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +288 -235
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +241 -183
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -6
- package/sdk/platform/Common/CommonPlatformClient.js +5 -6
- package/sdk/platform/Common/CommonPlatformModel.d.ts +9 -9
- package/sdk/platform/Common/CommonPlatformModel.js +6 -6
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +374 -234
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +875 -583
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +170 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +145 -126
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +56 -3
- package/sdk/platform/Communication/CommunicationPlatformClient.js +307 -4
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +424 -252
- package/sdk/platform/Communication/CommunicationPlatformModel.js +540 -320
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +62 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +48 -2
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +68 -99
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +84 -140
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +238 -256
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +222 -244
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -20
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -20
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +333 -118
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +1470 -409
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +158 -55
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +163 -41
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +151 -61
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +595 -101
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +1199 -462
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +1008 -321
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +80 -34
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +79 -24
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +253 -140
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1087 -458
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +221 -178
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +220 -157
- package/sdk/platform/Content/ContentPlatformClient.d.ts +124 -123
- package/sdk/platform/Content/ContentPlatformClient.js +459 -379
- package/sdk/platform/Content/ContentPlatformModel.d.ts +833 -1307
- package/sdk/platform/Content/ContentPlatformModel.js +893 -582
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +140 -150
- package/sdk/platform/Content/ContentPlatformValidator.js +131 -135
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +60 -36
- package/sdk/platform/Discount/DiscountPlatformClient.js +85 -36
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +46 -47
- package/sdk/platform/Discount/DiscountPlatformModel.js +42 -46
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformValidator.js +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +18 -15
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +24 -22
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -4
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +75 -86
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +60 -74
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +320 -0
- package/sdk/platform/Finance/FinancePlatformClient.js +2333 -0
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +2895 -0
- package/sdk/platform/Finance/FinancePlatformModel.js +2150 -0
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +284 -0
- package/sdk/platform/Finance/FinancePlatformValidator.js +354 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +4 -24
- package/sdk/platform/Lead/LeadPlatformClient.js +4 -160
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +142 -57
- package/sdk/platform/Lead/LeadPlatformModel.js +162 -79
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +3 -29
- package/sdk/platform/Lead/LeadPlatformValidator.js +2 -28
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +94 -25
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +600 -57
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +115 -115
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +120 -43
- package/sdk/platform/Order/OrderPlatformClient.d.ts +502 -293
- package/sdk/platform/Order/OrderPlatformClient.js +1466 -913
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4111 -9093
- package/sdk/platform/Order/OrderPlatformModel.js +3202 -4230
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +445 -612
- package/sdk/platform/Order/OrderPlatformValidator.js +316 -326
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +7 -9
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +9 -9
- package/sdk/platform/Partner/PartnerPlatformModel.js +7 -7
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +382 -135
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +2453 -935
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +306 -93
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +305 -70
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +66 -56
- package/sdk/platform/Payment/PaymentPlatformClient.js +269 -124
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +3525 -1313
- package/sdk/platform/Payment/PaymentPlatformModel.js +3813 -1511
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +64 -35
- package/sdk/platform/Payment/PaymentPlatformValidator.js +60 -34
- package/sdk/platform/PlatformClient.d.ts +2 -0
- package/sdk/platform/PlatformClient.js +4 -0
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +14 -9
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -8
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +344 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +2180 -302
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +380 -54
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +336 -37
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +127 -213
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +538 -1306
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +3429 -2979
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3642 -1785
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +218 -392
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +151 -290
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +4 -16
- package/sdk/platform/Share/SharePlatformApplicationClient.js +8 -86
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +6 -23
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +3 -16
- package/sdk/platform/Share/SharePlatformModel.d.ts +6 -50
- package/sdk/platform/Share/SharePlatformModel.js +3 -43
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +26 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +157 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +21 -10
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +23 -6
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +18 -8
- package/sdk/platform/Theme/ThemePlatformClient.js +85 -8
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +425 -17
- package/sdk/platform/Theme/ThemePlatformModel.js +329 -23
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +7 -3
- package/sdk/platform/Theme/ThemePlatformValidator.js +9 -2
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +22 -12
- package/sdk/platform/User/UserPlatformApplicationClient.js +91 -12
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +15 -3
- package/sdk/platform/User/UserPlatformApplicationValidator.js +14 -2
- package/sdk/platform/User/UserPlatformModel.d.ts +223 -59
- package/sdk/platform/User/UserPlatformModel.js +204 -65
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +78 -25
- package/sdk/platform/Webhook/WebhookPlatformClient.js +470 -75
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +434 -758
- package/sdk/platform/Webhook/WebhookPlatformModel.js +395 -410
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +55 -10
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +72 -12
- package/sdk/platform/index.d.ts +1 -0
- package/sdk/platform/index.js +2 -0
- package/sdk/public/Billing/BillingPublicClient.d.ts +56 -0
- package/sdk/public/Billing/BillingPublicClient.js +397 -0
- package/sdk/public/Billing/BillingPublicModel.d.ts +919 -0
- package/sdk/public/Billing/BillingPublicModel.js +560 -0
- package/sdk/public/Billing/BillingPublicValidator.d.ts +43 -0
- package/sdk/public/Billing/BillingPublicValidator.js +50 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -4
- package/sdk/public/Configuration/ConfigurationPublicClient.js +97 -9
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +102 -40
- package/sdk/public/Configuration/ConfigurationPublicModel.js +111 -29
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +11 -1
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +12 -0
- package/sdk/public/Content/ContentPublicClient.d.ts +22 -0
- package/sdk/public/Content/ContentPublicClient.js +183 -0
- package/sdk/public/Content/ContentPublicModel.d.ts +38 -1
- package/sdk/public/Content/ContentPublicModel.js +47 -1
- package/sdk/public/Content/ContentPublicValidator.d.ts +17 -1
- package/sdk/public/Content/ContentPublicValidator.js +19 -0
- package/sdk/public/PublicClient.d.ts +2 -2
- package/sdk/public/PublicClient.js +2 -2
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +8 -8
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +67 -215
- package/sdk/public/Webhook/WebhookPublicModel.js +61 -66
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -1
- package/sdk/public/index.js +1 -1
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +0 -29
- package/sdk/application/Finance/FinanceApplicationClient.js +0 -126
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +0 -22
- package/sdk/public/Catalog/CatalogPublicClient.js +0 -138
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +0 -155
- package/sdk/public/Catalog/CatalogPublicModel.js +0 -116
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +0 -55
- package/sdk/public/Catalog/CatalogPublicValidator.js +0 -35
|
@@ -2,37 +2,240 @@ 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
|
+
|
|
5
10
|
/**
|
|
6
11
|
* @typedef CancelSubscriptionChargeParam
|
|
7
|
-
* @property {string} extensionId -
|
|
8
|
-
* @property {string} subscriptionId -
|
|
12
|
+
* @property {string} extensionId - Extension _id
|
|
13
|
+
* @property {string} subscriptionId - Subscription charge _id
|
|
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.
|
|
9
30
|
*/
|
|
10
31
|
|
|
11
32
|
/**
|
|
12
33
|
* @typedef CreateOneTimeChargeParam
|
|
13
|
-
* @property {string} extensionId -
|
|
34
|
+
* @property {string} extensionId - Extension _id
|
|
14
35
|
* @property {BillingPlatformModel.CreateOneTimeCharge} body
|
|
15
36
|
*/
|
|
16
37
|
|
|
17
38
|
/**
|
|
18
|
-
* @typedef
|
|
19
|
-
* @property {
|
|
20
|
-
* @property {
|
|
39
|
+
* @typedef CreditTransactionParam
|
|
40
|
+
* @property {number} uniqueId - Unique ID of the company
|
|
41
|
+
* @property {string} productSuite - Product suite
|
|
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
|
|
21
49
|
*/
|
|
22
50
|
|
|
51
|
+
/**
|
|
52
|
+
* @typedef CurrentAppLimitParam
|
|
53
|
+
* @property {string} [productSuite]
|
|
54
|
+
* @property {string} [type]
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
/** @typedef GetBankListParam */
|
|
58
|
+
|
|
23
59
|
/**
|
|
24
60
|
* @typedef GetChargeDetailsParam
|
|
25
|
-
* @property {string} extensionId -
|
|
26
|
-
* @property {string} chargeId -
|
|
61
|
+
* @property {string} extensionId - Extension _id
|
|
62
|
+
* @property {string} chargeId - Standalone charge _id
|
|
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.
|
|
27
90
|
*/
|
|
28
91
|
|
|
92
|
+
/** @typedef GetSubscriptionParam */
|
|
93
|
+
|
|
29
94
|
/**
|
|
30
95
|
* @typedef GetSubscriptionChargeParam
|
|
31
|
-
* @property {string} extensionId -
|
|
32
|
-
* @property {string} subscriptionId -
|
|
96
|
+
* @property {string} extensionId - Extension _id
|
|
97
|
+
* @property {string} subscriptionId - Subscription charge _id
|
|
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
|
|
33
229
|
*/
|
|
34
230
|
|
|
35
231
|
class BillingPlatformValidator {
|
|
232
|
+
/** @returns {ActivateSubscriptionPlanParam} */
|
|
233
|
+
static activateSubscriptionPlan() {
|
|
234
|
+
return Joi.object({
|
|
235
|
+
body: BillingPlatformModel.SubscriptionActivateReq().required(),
|
|
236
|
+
}).required();
|
|
237
|
+
}
|
|
238
|
+
|
|
36
239
|
/** @returns {CancelSubscriptionChargeParam} */
|
|
37
240
|
static cancelSubscriptionCharge() {
|
|
38
241
|
return Joi.object({
|
|
@@ -41,6 +244,28 @@ class BillingPlatformValidator {
|
|
|
41
244
|
}).required();
|
|
42
245
|
}
|
|
43
246
|
|
|
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
|
+
|
|
44
269
|
/** @returns {CreateOneTimeChargeParam} */
|
|
45
270
|
static createOneTimeCharge() {
|
|
46
271
|
return Joi.object({
|
|
@@ -49,14 +274,34 @@ class BillingPlatformValidator {
|
|
|
49
274
|
}).required();
|
|
50
275
|
}
|
|
51
276
|
|
|
52
|
-
/** @returns {
|
|
53
|
-
static
|
|
277
|
+
/** @returns {CreditTransactionParam} */
|
|
278
|
+
static creditTransaction() {
|
|
54
279
|
return Joi.object({
|
|
55
|
-
|
|
56
|
-
|
|
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() {
|
|
294
|
+
return Joi.object({
|
|
295
|
+
productSuite: Joi.string().allow(""),
|
|
296
|
+
type: Joi.string().allow(""),
|
|
57
297
|
}).required();
|
|
58
298
|
}
|
|
59
299
|
|
|
300
|
+
/** @returns {GetBankListParam} */
|
|
301
|
+
static getBankList() {
|
|
302
|
+
return Joi.object({}).required();
|
|
303
|
+
}
|
|
304
|
+
|
|
60
305
|
/** @returns {GetChargeDetailsParam} */
|
|
61
306
|
static getChargeDetails() {
|
|
62
307
|
return Joi.object({
|
|
@@ -65,6 +310,55 @@ class BillingPlatformValidator {
|
|
|
65
310
|
}).required();
|
|
66
311
|
}
|
|
67
312
|
|
|
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
|
+
|
|
68
362
|
/** @returns {GetSubscriptionChargeParam} */
|
|
69
363
|
static getSubscriptionCharge() {
|
|
70
364
|
return Joi.object({
|
|
@@ -72,6 +366,188 @@ class BillingPlatformValidator {
|
|
|
72
366
|
subscriptionId: Joi.string().allow("").required(),
|
|
73
367
|
}).required();
|
|
74
368
|
}
|
|
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
|
+
}
|
|
75
551
|
}
|
|
76
552
|
|
|
77
553
|
module.exports = BillingPlatformValidator;
|