@gofynd/fdk-client-javascript 1.1.6 → 1.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 +12 -0
- package/index.js +0 -3
- package/package.json +1 -1
- package/sdk/application/ApplicationAPIClient.d.ts +15 -1
- package/sdk/application/ApplicationAPIClient.js +8 -1
- package/sdk/application/ApplicationClient.d.ts +37 -6
- package/sdk/application/ApplicationClient.js +31 -0
- package/sdk/application/ApplicationConfig.d.ts +52 -12
- package/sdk/application/ApplicationConfig.js +37 -2
- package/sdk/application/ApplicationModels.d.ts +46 -1
- package/sdk/application/ApplicationModels.js +18 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +172 -357
- package/sdk/application/Cart/CartApplicationClient.js +620 -483
- package/sdk/application/Cart/CartApplicationModel.d.ts +2054 -96
- package/sdk/application/Cart/CartApplicationModel.js +1224 -93
- package/sdk/application/Cart/CartApplicationValidator.d.ts +508 -30
- package/sdk/application/Cart/CartApplicationValidator.js +270 -15
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +234 -413
- package/sdk/application/Catalog/CatalogApplicationClient.js +777 -630
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2218 -117
- package/sdk/application/Catalog/CatalogApplicationModel.js +1499 -170
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +798 -31
- package/sdk/application/Catalog/CatalogApplicationValidator.js +318 -3
- package/sdk/application/Common/CommonApplicationClient.d.ts +14 -21
- package/sdk/application/Common/CommonApplicationClient.js +50 -33
- package/sdk/application/Common/CommonApplicationModel.d.ts +448 -19
- package/sdk/application/Common/CommonApplicationModel.js +224 -16
- package/sdk/application/Common/CommonApplicationValidator.d.ts +42 -4
- package/sdk/application/Common/CommonApplicationValidator.js +21 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +25 -18
- package/sdk/application/Communication/CommunicationApplicationClient.js +74 -47
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +190 -14
- package/sdk/application/Communication/CommunicationApplicationModel.js +124 -7
- package/sdk/application/Communication/CommunicationApplicationValidator.d.ts +27 -4
- package/sdk/application/Communication/CommunicationApplicationValidator.js +21 -5
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +113 -112
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +381 -260
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +2453 -110
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1254 -108
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +160 -8
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +88 -4
- package/sdk/application/Content/ContentApplicationClient.d.ts +120 -138
- package/sdk/application/Content/ContentApplicationClient.js +409 -277
- package/sdk/application/Content/ContentApplicationModel.d.ts +1627 -105
- package/sdk/application/Content/ContentApplicationModel.js +1202 -109
- package/sdk/application/Content/ContentApplicationValidator.d.ts +214 -12
- package/sdk/application/Content/ContentApplicationValidator.js +113 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +20 -29
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +68 -47
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +299 -20
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +209 -16
- package/sdk/application/FileStorage/FileStorageApplicationValidator.d.ts +55 -5
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +33 -6
- package/sdk/application/Lead/LeadApplicationClient.d.ts +50 -53
- package/sdk/application/Lead/LeadApplicationClient.js +169 -103
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1405 -54
- package/sdk/application/Lead/LeadApplicationModel.js +619 -73
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +91 -9
- package/sdk/application/Lead/LeadApplicationValidator.js +51 -6
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +34 -33
- package/sdk/application/Logistic/LogisticApplicationClient.js +110 -73
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +399 -28
- package/sdk/application/Logistic/LogisticApplicationModel.js +293 -24
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +48 -6
- package/sdk/application/Logistic/LogisticApplicationValidator.js +34 -6
- package/sdk/application/Order/OrderApplicationClient.d.ts +81 -133
- package/sdk/application/Order/OrderApplicationClient.js +297 -217
- package/sdk/application/Order/OrderApplicationModel.d.ts +1101 -66
- package/sdk/application/Order/OrderApplicationModel.js +776 -57
- package/sdk/application/Order/OrderApplicationValidator.d.ts +249 -14
- package/sdk/application/Order/OrderApplicationValidator.js +114 -5
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +341 -356
- package/sdk/application/Payment/PaymentApplicationClient.js +1077 -703
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +3125 -99
- package/sdk/application/Payment/PaymentApplicationModel.js +1158 -62
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +494 -41
- package/sdk/application/Payment/PaymentApplicationValidator.js +297 -25
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +178 -350
- package/sdk/application/PosCart/PosCartApplicationClient.js +636 -491
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1823 -89
- package/sdk/application/PosCart/PosCartApplicationModel.js +1117 -85
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +480 -29
- package/sdk/application/PosCart/PosCartApplicationValidator.js +262 -15
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +49 -47
- package/sdk/application/Rewards/RewardsApplicationClient.js +160 -102
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +343 -22
- package/sdk/application/Rewards/RewardsApplicationModel.js +230 -15
- package/sdk/application/Rewards/RewardsApplicationValidator.d.ts +70 -7
- package/sdk/application/Rewards/RewardsApplicationValidator.js +45 -6
- package/sdk/application/Share/ShareApplicationClient.d.ts +44 -50
- package/sdk/application/Share/ShareApplicationClient.js +165 -97
- package/sdk/application/Share/ShareApplicationModel.d.ts +230 -15
- package/sdk/application/Share/ShareApplicationModel.js +154 -16
- package/sdk/application/Share/ShareApplicationValidator.d.ts +86 -8
- package/sdk/application/Share/ShareApplicationValidator.js +48 -4
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +25 -27
- package/sdk/application/Theme/ThemeApplicationClient.js +83 -54
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +621 -48
- package/sdk/application/Theme/ThemeApplicationModel.js +464 -40
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +49 -5
- package/sdk/application/Theme/ThemeApplicationValidator.js +26 -3
- package/sdk/application/User/UserApplicationClient.d.ts +219 -303
- package/sdk/application/User/UserApplicationClient.js +819 -522
- package/sdk/application/User/UserApplicationModel.d.ts +1390 -101
- package/sdk/application/User/UserApplicationModel.js +983 -44
- package/sdk/application/User/UserApplicationValidator.d.ts +457 -33
- package/sdk/application/User/UserApplicationValidator.js +265 -31
- package/sdk/common/AxiosHelper.js +8 -2
- package/sdk/common/Paginator.d.ts +27 -12
- package/sdk/common/Paginator.js +15 -0
- package/sdk/common/RequestSigner.js +0 -1
- package/sdk/partner/PartnerAPIClient.d.ts +15 -1
- package/sdk/partner/PartnerAPIClient.js +8 -1
- package/sdk/partner/PartnerClient.d.ts +20 -3
- package/sdk/partner/PartnerClient.js +17 -0
- package/sdk/partner/PartnerConfig.d.ts +40 -14
- package/sdk/partner/PartnerConfig.js +31 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +26 -25
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +82 -53
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +202 -17
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +139 -10
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +42 -5
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +26 -4
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +88 -97
- package/sdk/platform/Billing/BillingPlatformClient.js +310 -191
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1211 -68
- package/sdk/platform/Billing/BillingPlatformModel.js +824 -59
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +153 -12
- package/sdk/platform/Billing/BillingPlatformValidator.js +87 -8
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +392 -634
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +1480 -957
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +827 -57
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +492 -34
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3639 -175
- package/sdk/platform/Cart/CartPlatformModel.js +2368 -212
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +438 -615
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1449 -984
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +1081 -49
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +482 -23
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +573 -824
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1773 -1264
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +6871 -326
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4215 -349
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +1331 -71
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +611 -30
- package/sdk/platform/Common/CommonPlatformClient.d.ts +14 -21
- package/sdk/platform/Common/CommonPlatformClient.js +48 -33
- package/sdk/platform/Common/CommonPlatformModel.d.ts +448 -19
- package/sdk/platform/Common/CommonPlatformModel.js +224 -16
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +42 -4
- package/sdk/platform/Common/CommonPlatformValidator.js +21 -3
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +457 -279
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1423 -553
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +581 -42
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +294 -22
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +18 -5
- package/sdk/platform/Communication/CommunicationPlatformClient.js +58 -19
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1630 -102
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1150 -85
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +16 -3
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +11 -3
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +102 -111
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +321 -225
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +830 -43
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +612 -78
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +180 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +98 -10
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +232 -212
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +737 -438
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +293 -22
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +184 -17
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +166 -178
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +519 -310
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +4504 -188
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2242 -204
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +332 -19
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +153 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +495 -560
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1777 -987
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +872 -62
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +487 -35
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1661 -108
- package/sdk/platform/Content/ContentPlatformModel.js +1217 -113
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +67 -101
- package/sdk/platform/Discount/DiscountPlatformClient.js +240 -176
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +242 -15
- package/sdk/platform/Discount/DiscountPlatformModel.js +162 -10
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +185 -13
- package/sdk/platform/Discount/DiscountPlatformValidator.js +88 -8
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +32 -41
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +106 -74
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +77 -6
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +41 -6
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +39 -54
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +124 -99
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +299 -20
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +207 -16
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +98 -8
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +54 -7
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +85 -91
- package/sdk/platform/Finance/FinancePlatformClient.js +272 -180
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +619 -50
- package/sdk/platform/Finance/FinancePlatformModel.js +458 -30
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +123 -15
- package/sdk/platform/Finance/FinancePlatformValidator.js +95 -16
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +99 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +288 -199
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +1354 -61
- package/sdk/platform/Inventory/InventoryPlatformModel.js +916 -83
- package/sdk/platform/Inventory/InventoryPlatformValidator.d.ts +168 -12
- package/sdk/platform/Inventory/InventoryPlatformValidator.js +82 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +86 -106
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +326 -186
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +180 -14
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +94 -9
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +75 -101
- package/sdk/platform/Lead/LeadPlatformClient.js +240 -174
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +1403 -54
- package/sdk/platform/Lead/LeadPlatformModel.js +618 -73
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +173 -12
- package/sdk/platform/Lead/LeadPlatformValidator.js +85 -8
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +18 -14
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +56 -29
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +26 -4
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +16 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +343 -556
- package/sdk/platform/Order/OrderPlatformClient.js +969 -762
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4967 -247
- package/sdk/platform/Order/OrderPlatformModel.js +3249 -259
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +758 -37
- package/sdk/platform/Order/OrderPlatformValidator.js +351 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +28 -36
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +103 -59
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +66 -6
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +32 -4
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +68 -107
- package/sdk/platform/Partner/PartnerPlatformClient.js +253 -174
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +767 -45
- package/sdk/platform/Partner/PartnerPlatformModel.js +524 -41
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +207 -13
- package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -5
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +255 -260
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +860 -504
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +348 -30
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +221 -19
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +73 -73
- package/sdk/platform/Payment/PaymentPlatformClient.js +238 -154
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2658 -93
- package/sdk/platform/Payment/PaymentPlatformModel.js +1035 -36
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +111 -11
- package/sdk/platform/Payment/PaymentPlatformValidator.js +68 -7
- package/sdk/platform/PlatformAPIClient.d.ts +16 -1
- package/sdk/platform/PlatformAPIClient.js +9 -1
- package/sdk/platform/PlatformApplicationClient.d.ts +22 -1798
- package/sdk/platform/PlatformApplicationClient.js +17 -1899
- package/sdk/platform/PlatformClient.d.ts +29 -12579
- package/sdk/platform/PlatformClient.js +26 -15085
- package/sdk/platform/PlatformConfig.d.ts +37 -11
- package/sdk/platform/PlatformConfig.js +32 -6
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +80 -92
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +307 -177
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +149 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +82 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +371 -23
- package/sdk/platform/Rewards/RewardsPlatformModel.js +246 -16
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +120 -89
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +349 -201
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +128 -12
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +85 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +148 -178
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +454 -329
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1399 -96
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1022 -71
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +280 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +134 -11
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +38 -47
- package/sdk/platform/Share/SharePlatformApplicationClient.js +137 -73
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +87 -7
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +42 -5
- package/sdk/platform/Share/SharePlatformModel.d.ts +250 -16
- package/sdk/platform/Share/SharePlatformModel.js +165 -17
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +149 -183
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +579 -330
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +308 -24
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +162 -10
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +621 -48
- package/sdk/platform/Theme/ThemePlatformModel.js +464 -40
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +119 -151
- package/sdk/platform/User/UserPlatformApplicationClient.js +411 -244
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +235 -18
- package/sdk/platform/User/UserPlatformApplicationValidator.js +126 -12
- package/sdk/platform/User/UserPlatformModel.d.ts +1390 -101
- package/sdk/platform/User/UserPlatformModel.js +983 -44
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +38 -47
- package/sdk/platform/Webhook/WebhookPlatformClient.js +137 -87
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +242 -16
- package/sdk/platform/Webhook/WebhookPlatformModel.js +167 -18
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +83 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +43 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +14 -21
- package/sdk/public/Configuration/ConfigurationPublicClient.js +46 -33
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +473 -19
- package/sdk/public/Configuration/ConfigurationPublicModel.js +224 -16
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +42 -4
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +21 -3
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +48 -48
- package/sdk/public/Inventory/InventoryPublicClient.js +146 -98
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +392 -21
- package/sdk/public/Inventory/InventoryPublicModel.js +267 -27
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +90 -8
- package/sdk/public/Inventory/InventoryPublicValidator.js +44 -4
- package/sdk/public/PublicClient.d.ts +19 -3
- package/sdk/public/PublicClient.js +16 -0
- package/sdk/public/PublicConfig.d.ts +27 -6
- package/sdk/public/PublicConfig.js +17 -1
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +13 -11
- package/sdk/public/Webhook/WebhookPublicClient.js +42 -27
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +242 -16
- package/sdk/public/Webhook/WebhookPublicModel.js +167 -18
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +18 -3
- package/sdk/public/Webhook/WebhookPublicValidator.js +14 -4
|
@@ -1,11 +1,638 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @typedef BadRequest
|
|
5
|
+
* @property {string} [message] - Failure message.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @typedef CancelSubscriptionReq
|
|
10
|
+
* @property {string} [product_suite]
|
|
11
|
+
* @property {string} [subscription_id]
|
|
12
|
+
* @property {string} [type]
|
|
13
|
+
* @property {string} [unique_id]
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* @typedef CancelSubscriptionRes
|
|
18
|
+
* @property {Subscription} [data]
|
|
19
|
+
* @property {boolean} [success]
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @typedef ChargeLineItem
|
|
24
|
+
* @property {number} [capped_amount]
|
|
25
|
+
* @property {boolean} [is_test]
|
|
26
|
+
* @property {Object} [metadata]
|
|
27
|
+
* @property {string} name
|
|
28
|
+
* @property {EntityChargePrice} price
|
|
29
|
+
* @property {string} pricing_type
|
|
30
|
+
* @property {EntityChargeRecurring} [recurring]
|
|
31
|
+
* @property {string} term
|
|
32
|
+
* @property {number} [trial_days]
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @typedef CheckValidityResponse
|
|
37
|
+
* @property {number} [discount_amount]
|
|
38
|
+
* @property {boolean} [is_valid]
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @typedef CreateOneTimeCharge
|
|
43
|
+
* @property {OneTimeChargeItem} charge
|
|
44
|
+
* @property {boolean} [is_test]
|
|
45
|
+
* @property {string} name
|
|
46
|
+
* @property {string} return_url
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @typedef CreateOneTimeChargeResponse
|
|
51
|
+
* @property {OneTimeChargeEntity} [charge]
|
|
52
|
+
* @property {string} [confirm_url]
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @typedef CreateSubscriptionCharge
|
|
57
|
+
* @property {boolean} [is_test]
|
|
58
|
+
* @property {ChargeLineItem[]} line_items
|
|
59
|
+
* @property {string} name
|
|
60
|
+
* @property {string} return_url
|
|
61
|
+
* @property {number} [trial_days]
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @typedef CreateSubscriptionResponse
|
|
66
|
+
* @property {string} [confirm_url]
|
|
67
|
+
* @property {EntitySubscription} [subscription]
|
|
68
|
+
*/
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @typedef CurrentPeriod
|
|
72
|
+
* @property {string} [end_date]
|
|
73
|
+
* @property {string} [start_date]
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @typedef DetailedPlan
|
|
78
|
+
* @property {string} [_id]
|
|
79
|
+
* @property {string[]} [addons]
|
|
80
|
+
* @property {number} [amount]
|
|
81
|
+
* @property {DetailedPlanComponents[]} [components]
|
|
82
|
+
* @property {string} [country]
|
|
83
|
+
* @property {string} [created_at]
|
|
84
|
+
* @property {string} [currency]
|
|
85
|
+
* @property {string} [description]
|
|
86
|
+
* @property {boolean} [is_active]
|
|
87
|
+
* @property {boolean} [is_trial_plan]
|
|
88
|
+
* @property {boolean} [is_visible]
|
|
89
|
+
* @property {string} [modified_at]
|
|
90
|
+
* @property {string} [name]
|
|
91
|
+
* @property {string} [plan_group]
|
|
92
|
+
* @property {string} [product_suite_id]
|
|
93
|
+
* @property {PlanRecurring} [recurring]
|
|
94
|
+
* @property {string[]} [tag_lines]
|
|
95
|
+
* @property {string[]} [tags]
|
|
96
|
+
* @property {number} [trial_period]
|
|
97
|
+
* @property {string} [type]
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @typedef DetailedPlanComponents
|
|
102
|
+
* @property {Object} [config]
|
|
103
|
+
* @property {string} [description]
|
|
104
|
+
* @property {string} [display_text]
|
|
105
|
+
* @property {boolean} [enabled]
|
|
106
|
+
* @property {string} [group]
|
|
107
|
+
* @property {string} [icon]
|
|
108
|
+
* @property {Object} [links]
|
|
109
|
+
* @property {string} [name]
|
|
110
|
+
* @property {string} [slug]
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @typedef EntityChargePrice
|
|
115
|
+
* @property {number} amount - Amount for price. Minimum value 1
|
|
116
|
+
* @property {string} currency_code
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @typedef EntityChargeRecurring
|
|
121
|
+
* @property {string} interval
|
|
122
|
+
*/
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @typedef EntitySubscription
|
|
126
|
+
* @property {string} [_id]
|
|
127
|
+
* @property {string} [activated_on]
|
|
128
|
+
* @property {string} [cancelled_on]
|
|
129
|
+
* @property {number} [company_id]
|
|
130
|
+
* @property {SubscriptionCharge[]} [line_items]
|
|
131
|
+
* @property {Object} [metadata]
|
|
132
|
+
* @property {string} [name]
|
|
133
|
+
* @property {string} [status]
|
|
134
|
+
* @property {number} [trial_days]
|
|
135
|
+
* @property {SubscriptionTrialPeriod} [trial_period]
|
|
136
|
+
*/
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @typedef InternalServerError
|
|
140
|
+
* @property {string} [code] - Error code
|
|
141
|
+
* @property {string} [message] - Internal server Server error
|
|
142
|
+
*/
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* @typedef Invoice
|
|
146
|
+
* @property {InvoiceDetails} [invoice]
|
|
147
|
+
* @property {InvoiceItems[]} [invoice_items]
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @typedef InvoiceDetails
|
|
152
|
+
* @property {string} [_id]
|
|
153
|
+
* @property {number} [attemp]
|
|
154
|
+
* @property {boolean} [auto_advance]
|
|
155
|
+
* @property {InvoiceDetailsClient} [client]
|
|
156
|
+
* @property {string} [collection_method]
|
|
157
|
+
* @property {string} [created_at]
|
|
158
|
+
* @property {string} [currency]
|
|
159
|
+
* @property {string} [current_status]
|
|
160
|
+
* @property {string} [hash_identifier]
|
|
161
|
+
* @property {string} [invoice_url]
|
|
162
|
+
* @property {string} [modified_at]
|
|
163
|
+
* @property {string} [next_action_time]
|
|
164
|
+
* @property {string} [number]
|
|
165
|
+
* @property {boolean} [paid]
|
|
166
|
+
* @property {InvoicePaymentMethod} [payment_method]
|
|
167
|
+
* @property {InvoiceDetailsPeriod} [period]
|
|
168
|
+
* @property {Object} [pg_data]
|
|
169
|
+
* @property {string} [receipt_number]
|
|
170
|
+
* @property {string} [statement_descriptor]
|
|
171
|
+
* @property {InvoiceDetailsStatusTrail[]} [status_trail]
|
|
172
|
+
* @property {string} [subscriber_id]
|
|
173
|
+
* @property {string} [subscription]
|
|
174
|
+
* @property {number} [subtotal]
|
|
175
|
+
* @property {number} [total]
|
|
176
|
+
*/
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @typedef InvoiceDetailsClient
|
|
180
|
+
* @property {string[]} [address_lines]
|
|
181
|
+
* @property {string} [email]
|
|
182
|
+
* @property {string} [name]
|
|
183
|
+
* @property {string} [phone]
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @typedef InvoiceDetailsPaymentMethods
|
|
188
|
+
* @property {InvoiceDetailsPaymentMethodsData} [data]
|
|
189
|
+
* @property {number} [id]
|
|
190
|
+
* @property {boolean} [is_default]
|
|
191
|
+
* @property {string} [pg_payment_method_id]
|
|
192
|
+
* @property {string} [type]
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @typedef InvoiceDetailsPaymentMethodsData
|
|
197
|
+
* @property {string} [brand]
|
|
198
|
+
* @property {InvoiceDetailsPaymentMethodsDataChecks} [checks]
|
|
199
|
+
* @property {string} [country]
|
|
200
|
+
* @property {number} [exp_month]
|
|
201
|
+
* @property {number} [exp_year]
|
|
202
|
+
* @property {string} [fingerprint]
|
|
203
|
+
* @property {string} [funding]
|
|
204
|
+
* @property {string} [generated_from]
|
|
205
|
+
* @property {string} [last4]
|
|
206
|
+
* @property {InvoiceDetailsPaymentMethodsDataNetworks} [networks]
|
|
207
|
+
* @property {InvoiceDetailsPaymentMethodsDataThreeDSecureUsage} [three_d_secure_usage]
|
|
208
|
+
* @property {string} [wallet]
|
|
209
|
+
*/
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @typedef InvoiceDetailsPaymentMethodsDataChecks
|
|
213
|
+
* @property {string} [address_line1_check]
|
|
214
|
+
* @property {string} [address_postal_code_check]
|
|
215
|
+
* @property {string} [cvc_check]
|
|
216
|
+
*/
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @typedef InvoiceDetailsPaymentMethodsDataNetworks
|
|
220
|
+
* @property {string[]} [available]
|
|
221
|
+
* @property {string} [preferred]
|
|
222
|
+
*/
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @typedef InvoiceDetailsPaymentMethodsDataThreeDSecureUsage
|
|
226
|
+
* @property {boolean} [supported]
|
|
227
|
+
*/
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* @typedef InvoiceDetailsPeriod
|
|
231
|
+
* @property {string} [end]
|
|
232
|
+
* @property {string} [start]
|
|
233
|
+
*/
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* @typedef InvoiceDetailsStatusTrail
|
|
237
|
+
* @property {string} [_id]
|
|
238
|
+
* @property {string} [timestamp]
|
|
239
|
+
* @property {string} [value]
|
|
240
|
+
*/
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @typedef InvoiceItems
|
|
244
|
+
* @property {string} [_id]
|
|
245
|
+
* @property {number} [amount]
|
|
246
|
+
* @property {string} [created_at]
|
|
247
|
+
* @property {string} [currency]
|
|
248
|
+
* @property {string} [description]
|
|
249
|
+
* @property {string} [invoice_id]
|
|
250
|
+
* @property {string} [modified_at]
|
|
251
|
+
* @property {string} [name]
|
|
252
|
+
* @property {InvoiceItemsPeriod} [period]
|
|
253
|
+
* @property {InvoiceItemsPlan} [plan]
|
|
254
|
+
* @property {number} [quantity]
|
|
255
|
+
* @property {string} [type]
|
|
256
|
+
* @property {number} [unit_amount]
|
|
257
|
+
*/
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* @typedef InvoiceItemsPeriod
|
|
261
|
+
* @property {string} [end]
|
|
262
|
+
* @property {string} [start]
|
|
263
|
+
*/
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @typedef InvoiceItemsPlan
|
|
267
|
+
* @property {string} [_id]
|
|
268
|
+
* @property {string[]} [addons]
|
|
269
|
+
* @property {number} [amount]
|
|
270
|
+
* @property {string} [country]
|
|
271
|
+
* @property {string} [created_at]
|
|
272
|
+
* @property {string} [currency]
|
|
273
|
+
* @property {string} [description]
|
|
274
|
+
* @property {boolean} [is_active]
|
|
275
|
+
* @property {boolean} [is_trial_plan]
|
|
276
|
+
* @property {boolean} [is_visible]
|
|
277
|
+
* @property {string} [modified_at]
|
|
278
|
+
* @property {string} [name]
|
|
279
|
+
* @property {string} [plan_group]
|
|
280
|
+
* @property {string} [product_suite_id]
|
|
281
|
+
* @property {InvoiceItemsPlanRecurring} [recurring]
|
|
282
|
+
* @property {string[]} [tag_lines]
|
|
283
|
+
* @property {string[]} [tags]
|
|
284
|
+
* @property {number} [trial_period]
|
|
285
|
+
* @property {string} [type]
|
|
286
|
+
*/
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* @typedef InvoiceItemsPlanRecurring
|
|
290
|
+
* @property {string} [interval]
|
|
291
|
+
* @property {number} [interval_count]
|
|
292
|
+
*/
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* @typedef InvoicePaymentMethod
|
|
296
|
+
* @property {string} [pg_payment_method_id]
|
|
297
|
+
*/
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @typedef Invoices
|
|
301
|
+
* @property {InvoicesData[]} [data]
|
|
302
|
+
* @property {number} [end]
|
|
303
|
+
* @property {number} [limit]
|
|
304
|
+
* @property {number} [page]
|
|
305
|
+
* @property {number} [start]
|
|
306
|
+
* @property {number} [total]
|
|
307
|
+
*/
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* @typedef InvoicesData
|
|
311
|
+
* @property {string} [_id]
|
|
312
|
+
* @property {number} [attemp]
|
|
313
|
+
* @property {boolean} [auto_advance]
|
|
314
|
+
* @property {InvoicesDataClient} [client]
|
|
315
|
+
* @property {string} [collection_method]
|
|
316
|
+
* @property {string} [created_at]
|
|
317
|
+
* @property {string} [currency]
|
|
318
|
+
* @property {string} [current_status]
|
|
319
|
+
* @property {string} [hash_identifier]
|
|
320
|
+
* @property {InvoiceItems[]} [invoice_items]
|
|
321
|
+
* @property {string} [invoice_url]
|
|
322
|
+
* @property {string} [modified_at]
|
|
323
|
+
* @property {string} [next_action_time]
|
|
324
|
+
* @property {string} [number]
|
|
325
|
+
* @property {boolean} [paid]
|
|
326
|
+
* @property {InvoicesDataPaymentMethod} [payment_method]
|
|
327
|
+
* @property {InvoicesDataPeriod} [period]
|
|
328
|
+
* @property {Object} [pg_data]
|
|
329
|
+
* @property {string} [receipt_number]
|
|
330
|
+
* @property {string} [statement_descriptor]
|
|
331
|
+
* @property {InvoiceDetailsStatusTrail[]} [status_trail]
|
|
332
|
+
* @property {string} [subscriber_id]
|
|
333
|
+
* @property {string} [subscription]
|
|
334
|
+
* @property {number} [subtotal]
|
|
335
|
+
* @property {number} [total]
|
|
336
|
+
*/
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @typedef InvoicesDataClient
|
|
340
|
+
* @property {string[]} [address_lines]
|
|
341
|
+
* @property {string} [email]
|
|
342
|
+
* @property {string} [name]
|
|
343
|
+
* @property {string} [phone]
|
|
344
|
+
*/
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* @typedef InvoicesDataPaymentMethod
|
|
348
|
+
* @property {string} [pg_payment_method_id]
|
|
349
|
+
*/
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* @typedef InvoicesDataPeriod
|
|
353
|
+
* @property {string} [end]
|
|
354
|
+
* @property {string} [start]
|
|
355
|
+
*/
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* @typedef OneTimeChargeEntity
|
|
359
|
+
* @property {string} [_id]
|
|
360
|
+
* @property {string} [activated_on]
|
|
361
|
+
* @property {string} [cancelled_on]
|
|
362
|
+
* @property {string} [entity_id]
|
|
363
|
+
* @property {string} [entity_type]
|
|
364
|
+
* @property {boolean} [is_test]
|
|
365
|
+
* @property {Object} [meta]
|
|
366
|
+
* @property {Object} [metadata]
|
|
367
|
+
* @property {string} [name]
|
|
368
|
+
* @property {EntityChargePrice} [price]
|
|
369
|
+
* @property {string} [pricing_type]
|
|
370
|
+
* @property {string} [return_url]
|
|
371
|
+
* @property {string} [status]
|
|
372
|
+
* @property {string} [subscriber_id]
|
|
373
|
+
*/
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* @typedef OneTimeChargeItem
|
|
377
|
+
* @property {number} [capped_amount]
|
|
378
|
+
* @property {boolean} [is_test]
|
|
379
|
+
* @property {Object} [metadata]
|
|
380
|
+
* @property {string} name
|
|
381
|
+
* @property {EntityChargePrice} price
|
|
382
|
+
* @property {string} pricing_type
|
|
383
|
+
* @property {string} [term]
|
|
384
|
+
*/
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* @typedef Page
|
|
388
|
+
* @property {number} [current]
|
|
389
|
+
* @property {boolean} [has_next]
|
|
390
|
+
* @property {boolean} [has_previous]
|
|
391
|
+
* @property {number} [item_total]
|
|
392
|
+
* @property {string} [next_id]
|
|
393
|
+
* @property {number} [size]
|
|
394
|
+
* @property {string} type
|
|
395
|
+
*/
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* @typedef Phone
|
|
399
|
+
* @property {string} [phone_country_code]
|
|
400
|
+
* @property {string} [phone_number]
|
|
401
|
+
*/
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* @typedef Plan
|
|
405
|
+
* @property {string} [_id]
|
|
406
|
+
* @property {string[]} [addons]
|
|
407
|
+
* @property {number} [amount]
|
|
408
|
+
* @property {string} [country]
|
|
409
|
+
* @property {string} [created_at]
|
|
410
|
+
* @property {string} [currency]
|
|
411
|
+
* @property {string} [description]
|
|
412
|
+
* @property {boolean} [is_active]
|
|
413
|
+
* @property {boolean} [is_trial_plan]
|
|
414
|
+
* @property {boolean} [is_visible]
|
|
415
|
+
* @property {string} [modified_at]
|
|
416
|
+
* @property {string} [name]
|
|
417
|
+
* @property {string} [plan_group]
|
|
418
|
+
* @property {string} [product_suite_id]
|
|
419
|
+
* @property {PlanRecurring} [recurring]
|
|
420
|
+
* @property {string[]} [tag_lines]
|
|
421
|
+
* @property {string[]} [tags]
|
|
422
|
+
* @property {number} [trial_period]
|
|
423
|
+
* @property {string} [type]
|
|
424
|
+
*/
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* @typedef PlanRecurring
|
|
428
|
+
* @property {string} [interval]
|
|
429
|
+
* @property {number} [interval_count]
|
|
430
|
+
*/
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* @typedef ResourceNotFound
|
|
434
|
+
* @property {string} [message] - Resource not found with {id}
|
|
435
|
+
*/
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* @typedef Subscription
|
|
439
|
+
* @property {string} [_id]
|
|
440
|
+
* @property {boolean} [cancel_at_period_end]
|
|
441
|
+
* @property {string} [channel_type]
|
|
442
|
+
* @property {string} [collection_method]
|
|
443
|
+
* @property {string} [created_at]
|
|
444
|
+
* @property {SubscriptionCurrentPeriod} [current_period]
|
|
445
|
+
* @property {string} [current_status]
|
|
446
|
+
* @property {SubscriptionInvoiceSettings} [invoice_settings]
|
|
447
|
+
* @property {boolean} [is_active]
|
|
448
|
+
* @property {string} [latest_invoice]
|
|
449
|
+
* @property {string} [modified_at]
|
|
450
|
+
* @property {SubscriptionPauseCollection} [pause_collection]
|
|
451
|
+
* @property {Plan} [plan_data]
|
|
452
|
+
* @property {string} [plan_id]
|
|
453
|
+
* @property {string} [product_suite_id]
|
|
454
|
+
* @property {string} [subscriber_id]
|
|
455
|
+
* @property {SubscriptionTrial} [trial]
|
|
456
|
+
*/
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @typedef SubscriptionActivateReq
|
|
460
|
+
* @property {string} [payment_method]
|
|
461
|
+
* @property {string} [plan_id]
|
|
462
|
+
* @property {string} [product_suite]
|
|
463
|
+
* @property {string} [type]
|
|
464
|
+
* @property {string} [unique_id]
|
|
465
|
+
*/
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* @typedef SubscriptionActivateRes
|
|
469
|
+
* @property {Subscription} [data]
|
|
470
|
+
* @property {boolean} [success]
|
|
471
|
+
*/
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* @typedef SubscriptionBillingAddress
|
|
475
|
+
* @property {string} [city]
|
|
476
|
+
* @property {string} [country]
|
|
477
|
+
* @property {string} [line1]
|
|
478
|
+
* @property {string} [line2]
|
|
479
|
+
* @property {string} [postal_code]
|
|
480
|
+
* @property {string} [state]
|
|
481
|
+
*/
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* @typedef SubscriptionCharge
|
|
485
|
+
* @property {string} [_id]
|
|
486
|
+
* @property {string} [activated_on]
|
|
487
|
+
* @property {string} [billing_date]
|
|
488
|
+
* @property {string} [cancelled_on]
|
|
489
|
+
* @property {number} [capped_amount]
|
|
490
|
+
* @property {CurrentPeriod} [current_period]
|
|
491
|
+
* @property {boolean} [is_test]
|
|
492
|
+
* @property {Object} [metadata]
|
|
493
|
+
* @property {string} [name]
|
|
494
|
+
* @property {EntityChargePrice} [price]
|
|
495
|
+
* @property {string} [pricing_type]
|
|
496
|
+
* @property {EntityChargeRecurring} [recurring]
|
|
497
|
+
* @property {string} [status]
|
|
498
|
+
* @property {string} [term] - Brief description for a charge
|
|
499
|
+
*/
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* @typedef SubscriptionCurrentPeriod
|
|
503
|
+
* @property {string} [end]
|
|
504
|
+
* @property {string} [start]
|
|
505
|
+
*/
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* @typedef SubscriptionCustomer
|
|
509
|
+
* @property {string} [_id]
|
|
510
|
+
* @property {SubscriptionBillingAddress} [billing_address]
|
|
511
|
+
* @property {string} [created_at]
|
|
512
|
+
* @property {Object} [data]
|
|
513
|
+
* @property {string} [email]
|
|
514
|
+
* @property {string} [modified_at]
|
|
515
|
+
* @property {string} [name]
|
|
516
|
+
* @property {Phone} [phone]
|
|
517
|
+
* @property {string} [type]
|
|
518
|
+
* @property {string} [unique_id]
|
|
519
|
+
*/
|
|
520
|
+
|
|
521
|
+
/**
|
|
522
|
+
* @typedef SubscriptionCustomerCreate
|
|
523
|
+
* @property {SubscriptionBillingAddress} [billing_address]
|
|
524
|
+
* @property {string} [email]
|
|
525
|
+
* @property {string} [name]
|
|
526
|
+
* @property {Phone} [phone]
|
|
527
|
+
* @property {string} [type]
|
|
528
|
+
* @property {string} [unique_id]
|
|
529
|
+
*/
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* @typedef SubscriptionInvoiceSettings
|
|
533
|
+
* @property {boolean} [charging]
|
|
534
|
+
* @property {boolean} [generation]
|
|
535
|
+
*/
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* @typedef SubscriptionLimit
|
|
539
|
+
* @property {SubscriptionLimitApplication} [application]
|
|
540
|
+
* @property {SubscriptionLimitExtensions} [extensions]
|
|
541
|
+
* @property {SubscriptionLimitIntegrations} [integrations]
|
|
542
|
+
* @property {boolean} [is_trial_plan]
|
|
543
|
+
* @property {SubscriptionLimitMarketplace} [marketplace]
|
|
544
|
+
* @property {SubscriptionLimitOtherPlatform} [other_platform]
|
|
545
|
+
* @property {SubscriptionLimitProducts} [products]
|
|
546
|
+
* @property {SubscriptionLimitTeam} [team]
|
|
547
|
+
*/
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* @typedef SubscriptionLimitApplication
|
|
551
|
+
* @property {boolean} [enabled]
|
|
552
|
+
* @property {number} [hard_limit]
|
|
553
|
+
* @property {number} [soft_limit]
|
|
554
|
+
*/
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* @typedef SubscriptionLimitExtensions
|
|
558
|
+
* @property {boolean} [enabled]
|
|
559
|
+
* @property {number} [limit]
|
|
560
|
+
*/
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* @typedef SubscriptionLimitIntegrations
|
|
564
|
+
* @property {boolean} [enabled]
|
|
565
|
+
* @property {number} [limit]
|
|
566
|
+
*/
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* @typedef SubscriptionLimitMarketplace
|
|
570
|
+
* @property {boolean} [enabled]
|
|
571
|
+
*/
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* @typedef SubscriptionLimitOtherPlatform
|
|
575
|
+
* @property {boolean} [enabled]
|
|
576
|
+
*/
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* @typedef SubscriptionLimitProducts
|
|
580
|
+
* @property {boolean} [bulk]
|
|
581
|
+
* @property {number} [limit]
|
|
582
|
+
*/
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* @typedef SubscriptionLimitTeam
|
|
586
|
+
* @property {number} [limit]
|
|
587
|
+
*/
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* @typedef SubscriptionPauseCollection
|
|
591
|
+
* @property {string} [behavior]
|
|
592
|
+
* @property {string} [resume_at]
|
|
593
|
+
*/
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* @typedef SubscriptionStatus
|
|
597
|
+
* @property {Subscription[]} [current_subscriptions]
|
|
598
|
+
* @property {boolean} [is_enabled]
|
|
599
|
+
* @property {InvoicesData} [latest_invoice]
|
|
600
|
+
* @property {string} [mandate_amount]
|
|
601
|
+
* @property {Plan} [next_plan]
|
|
602
|
+
* @property {Subscription} [subscription]
|
|
603
|
+
*/
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* @typedef SubscriptionTrial
|
|
607
|
+
* @property {string} [end]
|
|
608
|
+
* @property {string} [start]
|
|
609
|
+
*/
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* @typedef SubscriptionTrialPeriod
|
|
613
|
+
* @property {string} [end_date]
|
|
614
|
+
* @property {string} [start_date]
|
|
615
|
+
*/
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* @typedef UnauthenticatedApplication
|
|
619
|
+
* @property {string} [message] - Failure message.
|
|
620
|
+
*/
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* @typedef UnauthenticatedUser
|
|
624
|
+
* @property {string} [message] - Failure message.
|
|
625
|
+
*/
|
|
626
|
+
|
|
627
|
+
class BillingPlatformModel {
|
|
628
|
+
/** @returns {BadRequest} */
|
|
4
629
|
static BadRequest() {
|
|
5
630
|
return Joi.object({
|
|
6
631
|
message: Joi.string().allow(""),
|
|
7
632
|
});
|
|
8
633
|
}
|
|
634
|
+
|
|
635
|
+
/** @returns {CancelSubscriptionReq} */
|
|
9
636
|
static CancelSubscriptionReq() {
|
|
10
637
|
return Joi.object({
|
|
11
638
|
product_suite: Joi.string().allow(""),
|
|
@@ -14,72 +641,94 @@ class BillingModel {
|
|
|
14
641
|
unique_id: Joi.string().allow(""),
|
|
15
642
|
});
|
|
16
643
|
}
|
|
644
|
+
|
|
645
|
+
/** @returns {CancelSubscriptionRes} */
|
|
17
646
|
static CancelSubscriptionRes() {
|
|
18
647
|
return Joi.object({
|
|
19
|
-
data:
|
|
648
|
+
data: BillingPlatformModel.Subscription(),
|
|
20
649
|
success: Joi.boolean(),
|
|
21
650
|
});
|
|
22
651
|
}
|
|
652
|
+
|
|
653
|
+
/** @returns {ChargeLineItem} */
|
|
23
654
|
static ChargeLineItem() {
|
|
24
655
|
return Joi.object({
|
|
25
656
|
capped_amount: Joi.number(),
|
|
26
657
|
is_test: Joi.boolean(),
|
|
27
658
|
metadata: Joi.any(),
|
|
28
659
|
name: Joi.string().allow("").required(),
|
|
29
|
-
price:
|
|
660
|
+
price: BillingPlatformModel.EntityChargePrice().required(),
|
|
30
661
|
pricing_type: Joi.string().allow("").required(),
|
|
31
|
-
recurring:
|
|
662
|
+
recurring: BillingPlatformModel.EntityChargeRecurring(),
|
|
32
663
|
term: Joi.string().allow("").required(),
|
|
33
664
|
trial_days: Joi.number(),
|
|
34
665
|
});
|
|
35
666
|
}
|
|
667
|
+
|
|
668
|
+
/** @returns {CheckValidityResponse} */
|
|
36
669
|
static CheckValidityResponse() {
|
|
37
670
|
return Joi.object({
|
|
38
671
|
discount_amount: Joi.number(),
|
|
39
672
|
is_valid: Joi.boolean(),
|
|
40
673
|
});
|
|
41
674
|
}
|
|
675
|
+
|
|
676
|
+
/** @returns {CreateOneTimeCharge} */
|
|
42
677
|
static CreateOneTimeCharge() {
|
|
43
678
|
return Joi.object({
|
|
44
|
-
charge:
|
|
679
|
+
charge: BillingPlatformModel.OneTimeChargeItem().required(),
|
|
45
680
|
is_test: Joi.boolean(),
|
|
46
681
|
name: Joi.string().allow("").required(),
|
|
47
682
|
return_url: Joi.string().allow("").required(),
|
|
48
683
|
});
|
|
49
684
|
}
|
|
685
|
+
|
|
686
|
+
/** @returns {CreateOneTimeChargeResponse} */
|
|
50
687
|
static CreateOneTimeChargeResponse() {
|
|
51
688
|
return Joi.object({
|
|
52
|
-
charge:
|
|
689
|
+
charge: BillingPlatformModel.OneTimeChargeEntity(),
|
|
53
690
|
confirm_url: Joi.string().allow(""),
|
|
54
691
|
});
|
|
55
692
|
}
|
|
693
|
+
|
|
694
|
+
/** @returns {CreateSubscriptionCharge} */
|
|
56
695
|
static CreateSubscriptionCharge() {
|
|
57
696
|
return Joi.object({
|
|
58
697
|
is_test: Joi.boolean(),
|
|
59
|
-
line_items: Joi.array()
|
|
698
|
+
line_items: Joi.array()
|
|
699
|
+
.items(BillingPlatformModel.ChargeLineItem())
|
|
700
|
+
.required(),
|
|
60
701
|
name: Joi.string().allow("").required(),
|
|
61
702
|
return_url: Joi.string().allow("").required(),
|
|
62
703
|
trial_days: Joi.number(),
|
|
63
704
|
});
|
|
64
705
|
}
|
|
706
|
+
|
|
707
|
+
/** @returns {CreateSubscriptionResponse} */
|
|
65
708
|
static CreateSubscriptionResponse() {
|
|
66
709
|
return Joi.object({
|
|
67
710
|
confirm_url: Joi.string().allow(""),
|
|
68
|
-
subscription:
|
|
711
|
+
subscription: BillingPlatformModel.EntitySubscription(),
|
|
69
712
|
});
|
|
70
713
|
}
|
|
714
|
+
|
|
715
|
+
/** @returns {CurrentPeriod} */
|
|
71
716
|
static CurrentPeriod() {
|
|
72
717
|
return Joi.object({
|
|
73
718
|
end_date: Joi.string().allow(""),
|
|
74
719
|
start_date: Joi.string().allow(""),
|
|
75
720
|
});
|
|
76
721
|
}
|
|
722
|
+
|
|
723
|
+
/** @returns {DetailedPlan} */
|
|
77
724
|
static DetailedPlan() {
|
|
78
725
|
return Joi.object({
|
|
79
726
|
_id: Joi.string().allow(""),
|
|
80
727
|
addons: Joi.array().items(Joi.string().allow("")),
|
|
81
728
|
amount: Joi.number(),
|
|
82
|
-
components: Joi.array().items(
|
|
729
|
+
components: Joi.array().items(
|
|
730
|
+
BillingPlatformModel.DetailedPlanComponents()
|
|
731
|
+
),
|
|
83
732
|
country: Joi.string().allow(""),
|
|
84
733
|
created_at: Joi.string().allow(""),
|
|
85
734
|
currency: Joi.string().allow(""),
|
|
@@ -91,13 +740,15 @@ class BillingModel {
|
|
|
91
740
|
name: Joi.string().allow(""),
|
|
92
741
|
plan_group: Joi.string().allow(""),
|
|
93
742
|
product_suite_id: Joi.string().allow(""),
|
|
94
|
-
recurring:
|
|
743
|
+
recurring: BillingPlatformModel.PlanRecurring(),
|
|
95
744
|
tag_lines: Joi.array().items(Joi.string().allow("")),
|
|
96
745
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
97
746
|
trial_period: Joi.number(),
|
|
98
747
|
type: Joi.string().allow(""),
|
|
99
748
|
});
|
|
100
749
|
}
|
|
750
|
+
|
|
751
|
+
/** @returns {DetailedPlanComponents} */
|
|
101
752
|
static DetailedPlanComponents() {
|
|
102
753
|
return Joi.object({
|
|
103
754
|
config: Joi.any(),
|
|
@@ -111,49 +762,61 @@ class BillingModel {
|
|
|
111
762
|
slug: Joi.string().allow(""),
|
|
112
763
|
});
|
|
113
764
|
}
|
|
765
|
+
|
|
766
|
+
/** @returns {EntityChargePrice} */
|
|
114
767
|
static EntityChargePrice() {
|
|
115
768
|
return Joi.object({
|
|
116
769
|
amount: Joi.number().required(),
|
|
117
770
|
currency_code: Joi.string().allow("").required(),
|
|
118
771
|
});
|
|
119
772
|
}
|
|
773
|
+
|
|
774
|
+
/** @returns {EntityChargeRecurring} */
|
|
120
775
|
static EntityChargeRecurring() {
|
|
121
776
|
return Joi.object({
|
|
122
777
|
interval: Joi.string().allow("").required(),
|
|
123
778
|
});
|
|
124
779
|
}
|
|
780
|
+
|
|
781
|
+
/** @returns {EntitySubscription} */
|
|
125
782
|
static EntitySubscription() {
|
|
126
783
|
return Joi.object({
|
|
127
784
|
_id: Joi.string().allow(""),
|
|
128
785
|
activated_on: Joi.string().allow(""),
|
|
129
786
|
cancelled_on: Joi.string().allow(""),
|
|
130
787
|
company_id: Joi.number(),
|
|
131
|
-
line_items: Joi.array().items(
|
|
788
|
+
line_items: Joi.array().items(BillingPlatformModel.SubscriptionCharge()),
|
|
132
789
|
metadata: Joi.any(),
|
|
133
790
|
name: Joi.string().allow(""),
|
|
134
791
|
status: Joi.string().allow(""),
|
|
135
792
|
trial_days: Joi.number(),
|
|
136
|
-
trial_period:
|
|
793
|
+
trial_period: BillingPlatformModel.SubscriptionTrialPeriod(),
|
|
137
794
|
});
|
|
138
795
|
}
|
|
796
|
+
|
|
797
|
+
/** @returns {InternalServerError} */
|
|
139
798
|
static InternalServerError() {
|
|
140
799
|
return Joi.object({
|
|
141
800
|
code: Joi.string().allow(""),
|
|
142
801
|
message: Joi.string().allow(""),
|
|
143
802
|
});
|
|
144
803
|
}
|
|
804
|
+
|
|
805
|
+
/** @returns {Invoice} */
|
|
145
806
|
static Invoice() {
|
|
146
807
|
return Joi.object({
|
|
147
|
-
invoice:
|
|
148
|
-
invoice_items: Joi.array().items(
|
|
808
|
+
invoice: BillingPlatformModel.InvoiceDetails(),
|
|
809
|
+
invoice_items: Joi.array().items(BillingPlatformModel.InvoiceItems()),
|
|
149
810
|
});
|
|
150
811
|
}
|
|
812
|
+
|
|
813
|
+
/** @returns {InvoiceDetails} */
|
|
151
814
|
static InvoiceDetails() {
|
|
152
815
|
return Joi.object({
|
|
153
816
|
_id: Joi.string().allow(""),
|
|
154
817
|
attemp: Joi.number(),
|
|
155
818
|
auto_advance: Joi.boolean(),
|
|
156
|
-
client:
|
|
819
|
+
client: BillingPlatformModel.InvoiceDetailsClient(),
|
|
157
820
|
collection_method: Joi.string().allow(""),
|
|
158
821
|
created_at: Joi.string().allow(""),
|
|
159
822
|
currency: Joi.string().allow(""),
|
|
@@ -164,18 +827,22 @@ class BillingModel {
|
|
|
164
827
|
next_action_time: Joi.string().allow(""),
|
|
165
828
|
number: Joi.string().allow(""),
|
|
166
829
|
paid: Joi.boolean(),
|
|
167
|
-
payment_method:
|
|
168
|
-
period:
|
|
830
|
+
payment_method: BillingPlatformModel.InvoicePaymentMethod(),
|
|
831
|
+
period: BillingPlatformModel.InvoiceDetailsPeriod(),
|
|
169
832
|
pg_data: Joi.any(),
|
|
170
833
|
receipt_number: Joi.string().allow(""),
|
|
171
834
|
statement_descriptor: Joi.string().allow(""),
|
|
172
|
-
status_trail: Joi.array().items(
|
|
835
|
+
status_trail: Joi.array().items(
|
|
836
|
+
BillingPlatformModel.InvoiceDetailsStatusTrail()
|
|
837
|
+
),
|
|
173
838
|
subscriber_id: Joi.string().allow(""),
|
|
174
839
|
subscription: Joi.string().allow(""),
|
|
175
840
|
subtotal: Joi.number(),
|
|
176
841
|
total: Joi.number(),
|
|
177
842
|
});
|
|
178
843
|
}
|
|
844
|
+
|
|
845
|
+
/** @returns {InvoiceDetailsClient} */
|
|
179
846
|
static InvoiceDetailsClient() {
|
|
180
847
|
return Joi.object({
|
|
181
848
|
address_lines: Joi.array().items(Joi.string().allow("")),
|
|
@@ -184,19 +851,23 @@ class BillingModel {
|
|
|
184
851
|
phone: Joi.string().allow(""),
|
|
185
852
|
});
|
|
186
853
|
}
|
|
854
|
+
|
|
855
|
+
/** @returns {InvoiceDetailsPaymentMethods} */
|
|
187
856
|
static InvoiceDetailsPaymentMethods() {
|
|
188
857
|
return Joi.object({
|
|
189
|
-
data:
|
|
858
|
+
data: BillingPlatformModel.InvoiceDetailsPaymentMethodsData(),
|
|
190
859
|
id: Joi.number(),
|
|
191
860
|
is_default: Joi.boolean(),
|
|
192
861
|
pg_payment_method_id: Joi.string().allow(""),
|
|
193
862
|
type: Joi.string().allow(""),
|
|
194
863
|
});
|
|
195
864
|
}
|
|
865
|
+
|
|
866
|
+
/** @returns {InvoiceDetailsPaymentMethodsData} */
|
|
196
867
|
static InvoiceDetailsPaymentMethodsData() {
|
|
197
868
|
return Joi.object({
|
|
198
869
|
brand: Joi.string().allow(""),
|
|
199
|
-
checks:
|
|
870
|
+
checks: BillingPlatformModel.InvoiceDetailsPaymentMethodsDataChecks(),
|
|
200
871
|
country: Joi.string().allow(""),
|
|
201
872
|
exp_month: Joi.number(),
|
|
202
873
|
exp_year: Joi.number(),
|
|
@@ -204,11 +875,13 @@ class BillingModel {
|
|
|
204
875
|
funding: Joi.string().allow(""),
|
|
205
876
|
generated_from: Joi.string().allow(""),
|
|
206
877
|
last4: Joi.string().allow(""),
|
|
207
|
-
networks:
|
|
208
|
-
three_d_secure_usage:
|
|
878
|
+
networks: BillingPlatformModel.InvoiceDetailsPaymentMethodsDataNetworks(),
|
|
879
|
+
three_d_secure_usage: BillingPlatformModel.InvoiceDetailsPaymentMethodsDataThreeDSecureUsage(),
|
|
209
880
|
wallet: Joi.string().allow(""),
|
|
210
881
|
});
|
|
211
882
|
}
|
|
883
|
+
|
|
884
|
+
/** @returns {InvoiceDetailsPaymentMethodsDataChecks} */
|
|
212
885
|
static InvoiceDetailsPaymentMethodsDataChecks() {
|
|
213
886
|
return Joi.object({
|
|
214
887
|
address_line1_check: Joi.string().allow(""),
|
|
@@ -216,23 +889,31 @@ class BillingModel {
|
|
|
216
889
|
cvc_check: Joi.string().allow(""),
|
|
217
890
|
});
|
|
218
891
|
}
|
|
892
|
+
|
|
893
|
+
/** @returns {InvoiceDetailsPaymentMethodsDataNetworks} */
|
|
219
894
|
static InvoiceDetailsPaymentMethodsDataNetworks() {
|
|
220
895
|
return Joi.object({
|
|
221
896
|
available: Joi.array().items(Joi.string().allow("")),
|
|
222
897
|
preferred: Joi.string().allow(""),
|
|
223
898
|
});
|
|
224
899
|
}
|
|
900
|
+
|
|
901
|
+
/** @returns {InvoiceDetailsPaymentMethodsDataThreeDSecureUsage} */
|
|
225
902
|
static InvoiceDetailsPaymentMethodsDataThreeDSecureUsage() {
|
|
226
903
|
return Joi.object({
|
|
227
904
|
supported: Joi.boolean(),
|
|
228
905
|
});
|
|
229
906
|
}
|
|
907
|
+
|
|
908
|
+
/** @returns {InvoiceDetailsPeriod} */
|
|
230
909
|
static InvoiceDetailsPeriod() {
|
|
231
910
|
return Joi.object({
|
|
232
911
|
end: Joi.string().allow(""),
|
|
233
912
|
start: Joi.string().allow(""),
|
|
234
913
|
});
|
|
235
914
|
}
|
|
915
|
+
|
|
916
|
+
/** @returns {InvoiceDetailsStatusTrail} */
|
|
236
917
|
static InvoiceDetailsStatusTrail() {
|
|
237
918
|
return Joi.object({
|
|
238
919
|
_id: Joi.string().allow(""),
|
|
@@ -240,6 +921,8 @@ class BillingModel {
|
|
|
240
921
|
value: Joi.string().allow(""),
|
|
241
922
|
});
|
|
242
923
|
}
|
|
924
|
+
|
|
925
|
+
/** @returns {InvoiceItems} */
|
|
243
926
|
static InvoiceItems() {
|
|
244
927
|
return Joi.object({
|
|
245
928
|
_id: Joi.string().allow(""),
|
|
@@ -250,19 +933,23 @@ class BillingModel {
|
|
|
250
933
|
invoice_id: Joi.string().allow(""),
|
|
251
934
|
modified_at: Joi.string().allow(""),
|
|
252
935
|
name: Joi.string().allow(""),
|
|
253
|
-
period:
|
|
254
|
-
plan:
|
|
936
|
+
period: BillingPlatformModel.InvoiceItemsPeriod(),
|
|
937
|
+
plan: BillingPlatformModel.InvoiceItemsPlan(),
|
|
255
938
|
quantity: Joi.number(),
|
|
256
939
|
type: Joi.string().allow(""),
|
|
257
940
|
unit_amount: Joi.number(),
|
|
258
941
|
});
|
|
259
942
|
}
|
|
943
|
+
|
|
944
|
+
/** @returns {InvoiceItemsPeriod} */
|
|
260
945
|
static InvoiceItemsPeriod() {
|
|
261
946
|
return Joi.object({
|
|
262
947
|
end: Joi.string().allow(""),
|
|
263
948
|
start: Joi.string().allow(""),
|
|
264
949
|
});
|
|
265
950
|
}
|
|
951
|
+
|
|
952
|
+
/** @returns {InvoiceItemsPlan} */
|
|
266
953
|
static InvoiceItemsPlan() {
|
|
267
954
|
return Joi.object({
|
|
268
955
|
_id: Joi.string().allow(""),
|
|
@@ -279,27 +966,33 @@ class BillingModel {
|
|
|
279
966
|
name: Joi.string().allow(""),
|
|
280
967
|
plan_group: Joi.string().allow(""),
|
|
281
968
|
product_suite_id: Joi.string().allow(""),
|
|
282
|
-
recurring:
|
|
969
|
+
recurring: BillingPlatformModel.InvoiceItemsPlanRecurring(),
|
|
283
970
|
tag_lines: Joi.array().items(Joi.string().allow("")),
|
|
284
971
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
285
972
|
trial_period: Joi.number(),
|
|
286
973
|
type: Joi.string().allow(""),
|
|
287
974
|
});
|
|
288
975
|
}
|
|
976
|
+
|
|
977
|
+
/** @returns {InvoiceItemsPlanRecurring} */
|
|
289
978
|
static InvoiceItemsPlanRecurring() {
|
|
290
979
|
return Joi.object({
|
|
291
980
|
interval: Joi.string().allow(""),
|
|
292
981
|
interval_count: Joi.number(),
|
|
293
982
|
});
|
|
294
983
|
}
|
|
984
|
+
|
|
985
|
+
/** @returns {InvoicePaymentMethod} */
|
|
295
986
|
static InvoicePaymentMethod() {
|
|
296
987
|
return Joi.object({
|
|
297
988
|
pg_payment_method_id: Joi.string().allow(""),
|
|
298
989
|
});
|
|
299
990
|
}
|
|
991
|
+
|
|
992
|
+
/** @returns {Invoices} */
|
|
300
993
|
static Invoices() {
|
|
301
994
|
return Joi.object({
|
|
302
|
-
data: Joi.array().items(
|
|
995
|
+
data: Joi.array().items(BillingPlatformModel.InvoicesData()),
|
|
303
996
|
end: Joi.number(),
|
|
304
997
|
limit: Joi.number(),
|
|
305
998
|
page: Joi.number(),
|
|
@@ -307,35 +1000,41 @@ class BillingModel {
|
|
|
307
1000
|
total: Joi.number(),
|
|
308
1001
|
});
|
|
309
1002
|
}
|
|
1003
|
+
|
|
1004
|
+
/** @returns {InvoicesData} */
|
|
310
1005
|
static InvoicesData() {
|
|
311
1006
|
return Joi.object({
|
|
312
1007
|
_id: Joi.string().allow(""),
|
|
313
1008
|
attemp: Joi.number(),
|
|
314
1009
|
auto_advance: Joi.boolean(),
|
|
315
|
-
client:
|
|
1010
|
+
client: BillingPlatformModel.InvoicesDataClient(),
|
|
316
1011
|
collection_method: Joi.string().allow(""),
|
|
317
1012
|
created_at: Joi.string().allow(""),
|
|
318
1013
|
currency: Joi.string().allow(""),
|
|
319
1014
|
current_status: Joi.string().allow(""),
|
|
320
1015
|
hash_identifier: Joi.string().allow(""),
|
|
321
|
-
invoice_items: Joi.array().items(
|
|
1016
|
+
invoice_items: Joi.array().items(BillingPlatformModel.InvoiceItems()),
|
|
322
1017
|
invoice_url: Joi.string().allow(""),
|
|
323
1018
|
modified_at: Joi.string().allow(""),
|
|
324
1019
|
next_action_time: Joi.string().allow(""),
|
|
325
1020
|
number: Joi.string().allow(""),
|
|
326
1021
|
paid: Joi.boolean(),
|
|
327
|
-
payment_method:
|
|
328
|
-
period:
|
|
1022
|
+
payment_method: BillingPlatformModel.InvoicesDataPaymentMethod(),
|
|
1023
|
+
period: BillingPlatformModel.InvoicesDataPeriod(),
|
|
329
1024
|
pg_data: Joi.any(),
|
|
330
1025
|
receipt_number: Joi.string().allow(""),
|
|
331
1026
|
statement_descriptor: Joi.string().allow(""),
|
|
332
|
-
status_trail: Joi.array().items(
|
|
1027
|
+
status_trail: Joi.array().items(
|
|
1028
|
+
BillingPlatformModel.InvoiceDetailsStatusTrail()
|
|
1029
|
+
),
|
|
333
1030
|
subscriber_id: Joi.string().allow(""),
|
|
334
1031
|
subscription: Joi.string().allow(""),
|
|
335
1032
|
subtotal: Joi.number(),
|
|
336
1033
|
total: Joi.number(),
|
|
337
1034
|
});
|
|
338
1035
|
}
|
|
1036
|
+
|
|
1037
|
+
/** @returns {InvoicesDataClient} */
|
|
339
1038
|
static InvoicesDataClient() {
|
|
340
1039
|
return Joi.object({
|
|
341
1040
|
address_lines: Joi.array().items(Joi.string().allow("")),
|
|
@@ -344,17 +1043,23 @@ class BillingModel {
|
|
|
344
1043
|
phone: Joi.string().allow(""),
|
|
345
1044
|
});
|
|
346
1045
|
}
|
|
1046
|
+
|
|
1047
|
+
/** @returns {InvoicesDataPaymentMethod} */
|
|
347
1048
|
static InvoicesDataPaymentMethod() {
|
|
348
1049
|
return Joi.object({
|
|
349
1050
|
pg_payment_method_id: Joi.string().allow(""),
|
|
350
1051
|
});
|
|
351
1052
|
}
|
|
1053
|
+
|
|
1054
|
+
/** @returns {InvoicesDataPeriod} */
|
|
352
1055
|
static InvoicesDataPeriod() {
|
|
353
1056
|
return Joi.object({
|
|
354
1057
|
end: Joi.string().allow(""),
|
|
355
1058
|
start: Joi.string().allow(""),
|
|
356
1059
|
});
|
|
357
1060
|
}
|
|
1061
|
+
|
|
1062
|
+
/** @returns {OneTimeChargeEntity} */
|
|
358
1063
|
static OneTimeChargeEntity() {
|
|
359
1064
|
return Joi.object({
|
|
360
1065
|
_id: Joi.string().allow(""),
|
|
@@ -366,24 +1071,28 @@ class BillingModel {
|
|
|
366
1071
|
meta: Joi.any(),
|
|
367
1072
|
metadata: Joi.any(),
|
|
368
1073
|
name: Joi.string().allow(""),
|
|
369
|
-
price:
|
|
1074
|
+
price: BillingPlatformModel.EntityChargePrice(),
|
|
370
1075
|
pricing_type: Joi.string().allow(""),
|
|
371
1076
|
return_url: Joi.string().allow(""),
|
|
372
1077
|
status: Joi.string().allow(""),
|
|
373
1078
|
subscriber_id: Joi.string().allow(""),
|
|
374
1079
|
});
|
|
375
1080
|
}
|
|
1081
|
+
|
|
1082
|
+
/** @returns {OneTimeChargeItem} */
|
|
376
1083
|
static OneTimeChargeItem() {
|
|
377
1084
|
return Joi.object({
|
|
378
1085
|
capped_amount: Joi.number(),
|
|
379
1086
|
is_test: Joi.boolean(),
|
|
380
1087
|
metadata: Joi.any(),
|
|
381
1088
|
name: Joi.string().allow("").required(),
|
|
382
|
-
price:
|
|
1089
|
+
price: BillingPlatformModel.EntityChargePrice().required(),
|
|
383
1090
|
pricing_type: Joi.string().allow("").required(),
|
|
384
1091
|
term: Joi.string().allow(""),
|
|
385
1092
|
});
|
|
386
1093
|
}
|
|
1094
|
+
|
|
1095
|
+
/** @returns {Page} */
|
|
387
1096
|
static Page() {
|
|
388
1097
|
return Joi.object({
|
|
389
1098
|
current: Joi.number(),
|
|
@@ -395,12 +1104,16 @@ class BillingModel {
|
|
|
395
1104
|
type: Joi.string().allow("").required(),
|
|
396
1105
|
});
|
|
397
1106
|
}
|
|
1107
|
+
|
|
1108
|
+
/** @returns {Phone} */
|
|
398
1109
|
static Phone() {
|
|
399
1110
|
return Joi.object({
|
|
400
1111
|
phone_country_code: Joi.string().allow(""),
|
|
401
1112
|
phone_number: Joi.string().allow(""),
|
|
402
1113
|
});
|
|
403
1114
|
}
|
|
1115
|
+
|
|
1116
|
+
/** @returns {Plan} */
|
|
404
1117
|
static Plan() {
|
|
405
1118
|
return Joi.object({
|
|
406
1119
|
_id: Joi.string().allow(""),
|
|
@@ -417,24 +1130,30 @@ class BillingModel {
|
|
|
417
1130
|
name: Joi.string().allow(""),
|
|
418
1131
|
plan_group: Joi.string().allow(""),
|
|
419
1132
|
product_suite_id: Joi.string().allow(""),
|
|
420
|
-
recurring:
|
|
1133
|
+
recurring: BillingPlatformModel.PlanRecurring(),
|
|
421
1134
|
tag_lines: Joi.array().items(Joi.string().allow("")),
|
|
422
1135
|
tags: Joi.array().items(Joi.string().allow("")),
|
|
423
1136
|
trial_period: Joi.number(),
|
|
424
1137
|
type: Joi.string().allow(""),
|
|
425
1138
|
});
|
|
426
1139
|
}
|
|
1140
|
+
|
|
1141
|
+
/** @returns {PlanRecurring} */
|
|
427
1142
|
static PlanRecurring() {
|
|
428
1143
|
return Joi.object({
|
|
429
1144
|
interval: Joi.string().allow(""),
|
|
430
1145
|
interval_count: Joi.number(),
|
|
431
1146
|
});
|
|
432
1147
|
}
|
|
1148
|
+
|
|
1149
|
+
/** @returns {ResourceNotFound} */
|
|
433
1150
|
static ResourceNotFound() {
|
|
434
1151
|
return Joi.object({
|
|
435
1152
|
message: Joi.string().allow(""),
|
|
436
1153
|
});
|
|
437
1154
|
}
|
|
1155
|
+
|
|
1156
|
+
/** @returns {Subscription} */
|
|
438
1157
|
static Subscription() {
|
|
439
1158
|
return Joi.object({
|
|
440
1159
|
_id: Joi.string().allow(""),
|
|
@@ -442,20 +1161,22 @@ class BillingModel {
|
|
|
442
1161
|
channel_type: Joi.string().allow(""),
|
|
443
1162
|
collection_method: Joi.string().allow(""),
|
|
444
1163
|
created_at: Joi.string().allow(""),
|
|
445
|
-
current_period:
|
|
1164
|
+
current_period: BillingPlatformModel.SubscriptionCurrentPeriod(),
|
|
446
1165
|
current_status: Joi.string().allow(""),
|
|
447
|
-
invoice_settings:
|
|
1166
|
+
invoice_settings: BillingPlatformModel.SubscriptionInvoiceSettings(),
|
|
448
1167
|
is_active: Joi.boolean(),
|
|
449
1168
|
latest_invoice: Joi.string().allow(""),
|
|
450
1169
|
modified_at: Joi.string().allow(""),
|
|
451
|
-
pause_collection:
|
|
452
|
-
plan_data:
|
|
1170
|
+
pause_collection: BillingPlatformModel.SubscriptionPauseCollection(),
|
|
1171
|
+
plan_data: BillingPlatformModel.Plan(),
|
|
453
1172
|
plan_id: Joi.string().allow(""),
|
|
454
1173
|
product_suite_id: Joi.string().allow(""),
|
|
455
1174
|
subscriber_id: Joi.string().allow(""),
|
|
456
|
-
trial:
|
|
1175
|
+
trial: BillingPlatformModel.SubscriptionTrial(),
|
|
457
1176
|
});
|
|
458
1177
|
}
|
|
1178
|
+
|
|
1179
|
+
/** @returns {SubscriptionActivateReq} */
|
|
459
1180
|
static SubscriptionActivateReq() {
|
|
460
1181
|
return Joi.object({
|
|
461
1182
|
payment_method: Joi.string().allow(""),
|
|
@@ -465,12 +1186,16 @@ class BillingModel {
|
|
|
465
1186
|
unique_id: Joi.string().allow(""),
|
|
466
1187
|
});
|
|
467
1188
|
}
|
|
1189
|
+
|
|
1190
|
+
/** @returns {SubscriptionActivateRes} */
|
|
468
1191
|
static SubscriptionActivateRes() {
|
|
469
1192
|
return Joi.object({
|
|
470
|
-
data:
|
|
1193
|
+
data: BillingPlatformModel.Subscription(),
|
|
471
1194
|
success: Joi.boolean(),
|
|
472
1195
|
});
|
|
473
1196
|
}
|
|
1197
|
+
|
|
1198
|
+
/** @returns {SubscriptionBillingAddress} */
|
|
474
1199
|
static SubscriptionBillingAddress() {
|
|
475
1200
|
return Joi.object({
|
|
476
1201
|
city: Joi.string().allow(""),
|
|
@@ -481,6 +1206,8 @@ class BillingModel {
|
|
|
481
1206
|
state: Joi.string().allow(""),
|
|
482
1207
|
});
|
|
483
1208
|
}
|
|
1209
|
+
|
|
1210
|
+
/** @returns {SubscriptionCharge} */
|
|
484
1211
|
static SubscriptionCharge() {
|
|
485
1212
|
return Joi.object({
|
|
486
1213
|
_id: Joi.string().allow(""),
|
|
@@ -488,65 +1215,77 @@ class BillingModel {
|
|
|
488
1215
|
billing_date: Joi.string().allow(""),
|
|
489
1216
|
cancelled_on: Joi.string().allow(""),
|
|
490
1217
|
capped_amount: Joi.number(),
|
|
491
|
-
current_period:
|
|
1218
|
+
current_period: BillingPlatformModel.CurrentPeriod(),
|
|
492
1219
|
is_test: Joi.boolean(),
|
|
493
1220
|
metadata: Joi.any(),
|
|
494
1221
|
name: Joi.string().allow(""),
|
|
495
|
-
price:
|
|
1222
|
+
price: BillingPlatformModel.EntityChargePrice(),
|
|
496
1223
|
pricing_type: Joi.string().allow(""),
|
|
497
|
-
recurring:
|
|
1224
|
+
recurring: BillingPlatformModel.EntityChargeRecurring(),
|
|
498
1225
|
status: Joi.string().allow(""),
|
|
499
1226
|
term: Joi.string().allow(""),
|
|
500
1227
|
});
|
|
501
1228
|
}
|
|
1229
|
+
|
|
1230
|
+
/** @returns {SubscriptionCurrentPeriod} */
|
|
502
1231
|
static SubscriptionCurrentPeriod() {
|
|
503
1232
|
return Joi.object({
|
|
504
1233
|
end: Joi.string().allow(""),
|
|
505
1234
|
start: Joi.string().allow(""),
|
|
506
1235
|
});
|
|
507
1236
|
}
|
|
1237
|
+
|
|
1238
|
+
/** @returns {SubscriptionCustomer} */
|
|
508
1239
|
static SubscriptionCustomer() {
|
|
509
1240
|
return Joi.object({
|
|
510
1241
|
_id: Joi.string().allow(""),
|
|
511
|
-
billing_address:
|
|
1242
|
+
billing_address: BillingPlatformModel.SubscriptionBillingAddress(),
|
|
512
1243
|
created_at: Joi.string().allow(""),
|
|
513
1244
|
data: Joi.any(),
|
|
514
1245
|
email: Joi.string().allow(""),
|
|
515
1246
|
modified_at: Joi.string().allow(""),
|
|
516
1247
|
name: Joi.string().allow(""),
|
|
517
|
-
phone:
|
|
1248
|
+
phone: BillingPlatformModel.Phone(),
|
|
518
1249
|
type: Joi.string().allow(""),
|
|
519
1250
|
unique_id: Joi.string().allow(""),
|
|
520
1251
|
});
|
|
521
1252
|
}
|
|
1253
|
+
|
|
1254
|
+
/** @returns {SubscriptionCustomerCreate} */
|
|
522
1255
|
static SubscriptionCustomerCreate() {
|
|
523
1256
|
return Joi.object({
|
|
524
|
-
billing_address:
|
|
1257
|
+
billing_address: BillingPlatformModel.SubscriptionBillingAddress(),
|
|
525
1258
|
email: Joi.string().allow(""),
|
|
526
1259
|
name: Joi.string().allow(""),
|
|
527
|
-
phone:
|
|
1260
|
+
phone: BillingPlatformModel.Phone(),
|
|
528
1261
|
type: Joi.string().allow(""),
|
|
529
1262
|
unique_id: Joi.string().allow(""),
|
|
530
1263
|
});
|
|
531
1264
|
}
|
|
1265
|
+
|
|
1266
|
+
/** @returns {SubscriptionInvoiceSettings} */
|
|
532
1267
|
static SubscriptionInvoiceSettings() {
|
|
533
1268
|
return Joi.object({
|
|
534
1269
|
charging: Joi.boolean(),
|
|
535
1270
|
generation: Joi.boolean(),
|
|
536
1271
|
});
|
|
537
1272
|
}
|
|
1273
|
+
|
|
1274
|
+
/** @returns {SubscriptionLimit} */
|
|
538
1275
|
static SubscriptionLimit() {
|
|
539
1276
|
return Joi.object({
|
|
540
|
-
application:
|
|
541
|
-
extensions:
|
|
542
|
-
integrations:
|
|
1277
|
+
application: BillingPlatformModel.SubscriptionLimitApplication(),
|
|
1278
|
+
extensions: BillingPlatformModel.SubscriptionLimitExtensions(),
|
|
1279
|
+
integrations: BillingPlatformModel.SubscriptionLimitIntegrations(),
|
|
543
1280
|
is_trial_plan: Joi.boolean(),
|
|
544
|
-
marketplace:
|
|
545
|
-
other_platform:
|
|
546
|
-
products:
|
|
547
|
-
team:
|
|
1281
|
+
marketplace: BillingPlatformModel.SubscriptionLimitMarketplace(),
|
|
1282
|
+
other_platform: BillingPlatformModel.SubscriptionLimitOtherPlatform(),
|
|
1283
|
+
products: BillingPlatformModel.SubscriptionLimitProducts(),
|
|
1284
|
+
team: BillingPlatformModel.SubscriptionLimitTeam(),
|
|
548
1285
|
});
|
|
549
1286
|
}
|
|
1287
|
+
|
|
1288
|
+
/** @returns {SubscriptionLimitApplication} */
|
|
550
1289
|
static SubscriptionLimitApplication() {
|
|
551
1290
|
return Joi.object({
|
|
552
1291
|
enabled: Joi.boolean(),
|
|
@@ -554,76 +1293,102 @@ class BillingModel {
|
|
|
554
1293
|
soft_limit: Joi.number(),
|
|
555
1294
|
});
|
|
556
1295
|
}
|
|
1296
|
+
|
|
1297
|
+
/** @returns {SubscriptionLimitExtensions} */
|
|
557
1298
|
static SubscriptionLimitExtensions() {
|
|
558
1299
|
return Joi.object({
|
|
559
1300
|
enabled: Joi.boolean(),
|
|
560
1301
|
limit: Joi.number(),
|
|
561
1302
|
});
|
|
562
1303
|
}
|
|
1304
|
+
|
|
1305
|
+
/** @returns {SubscriptionLimitIntegrations} */
|
|
563
1306
|
static SubscriptionLimitIntegrations() {
|
|
564
1307
|
return Joi.object({
|
|
565
1308
|
enabled: Joi.boolean(),
|
|
566
1309
|
limit: Joi.number(),
|
|
567
1310
|
});
|
|
568
1311
|
}
|
|
1312
|
+
|
|
1313
|
+
/** @returns {SubscriptionLimitMarketplace} */
|
|
569
1314
|
static SubscriptionLimitMarketplace() {
|
|
570
1315
|
return Joi.object({
|
|
571
1316
|
enabled: Joi.boolean(),
|
|
572
1317
|
});
|
|
573
1318
|
}
|
|
1319
|
+
|
|
1320
|
+
/** @returns {SubscriptionLimitOtherPlatform} */
|
|
574
1321
|
static SubscriptionLimitOtherPlatform() {
|
|
575
1322
|
return Joi.object({
|
|
576
1323
|
enabled: Joi.boolean(),
|
|
577
1324
|
});
|
|
578
1325
|
}
|
|
1326
|
+
|
|
1327
|
+
/** @returns {SubscriptionLimitProducts} */
|
|
579
1328
|
static SubscriptionLimitProducts() {
|
|
580
1329
|
return Joi.object({
|
|
581
1330
|
bulk: Joi.boolean(),
|
|
582
1331
|
limit: Joi.number(),
|
|
583
1332
|
});
|
|
584
1333
|
}
|
|
1334
|
+
|
|
1335
|
+
/** @returns {SubscriptionLimitTeam} */
|
|
585
1336
|
static SubscriptionLimitTeam() {
|
|
586
1337
|
return Joi.object({
|
|
587
1338
|
limit: Joi.number(),
|
|
588
1339
|
});
|
|
589
1340
|
}
|
|
1341
|
+
|
|
1342
|
+
/** @returns {SubscriptionPauseCollection} */
|
|
590
1343
|
static SubscriptionPauseCollection() {
|
|
591
1344
|
return Joi.object({
|
|
592
1345
|
behavior: Joi.string().allow(""),
|
|
593
1346
|
resume_at: Joi.string().allow(""),
|
|
594
1347
|
});
|
|
595
1348
|
}
|
|
1349
|
+
|
|
1350
|
+
/** @returns {SubscriptionStatus} */
|
|
596
1351
|
static SubscriptionStatus() {
|
|
597
1352
|
return Joi.object({
|
|
598
|
-
current_subscriptions: Joi.array().items(
|
|
1353
|
+
current_subscriptions: Joi.array().items(
|
|
1354
|
+
BillingPlatformModel.Subscription()
|
|
1355
|
+
),
|
|
599
1356
|
is_enabled: Joi.boolean(),
|
|
600
|
-
latest_invoice:
|
|
1357
|
+
latest_invoice: BillingPlatformModel.InvoicesData(),
|
|
601
1358
|
mandate_amount: Joi.string().allow(""),
|
|
602
|
-
next_plan:
|
|
603
|
-
subscription:
|
|
1359
|
+
next_plan: BillingPlatformModel.Plan(),
|
|
1360
|
+
subscription: BillingPlatformModel.Subscription(),
|
|
604
1361
|
});
|
|
605
1362
|
}
|
|
1363
|
+
|
|
1364
|
+
/** @returns {SubscriptionTrial} */
|
|
606
1365
|
static SubscriptionTrial() {
|
|
607
1366
|
return Joi.object({
|
|
608
1367
|
end: Joi.string().allow(""),
|
|
609
1368
|
start: Joi.string().allow(""),
|
|
610
1369
|
});
|
|
611
1370
|
}
|
|
1371
|
+
|
|
1372
|
+
/** @returns {SubscriptionTrialPeriod} */
|
|
612
1373
|
static SubscriptionTrialPeriod() {
|
|
613
1374
|
return Joi.object({
|
|
614
1375
|
end_date: Joi.string().allow(""),
|
|
615
1376
|
start_date: Joi.string().allow(""),
|
|
616
1377
|
});
|
|
617
1378
|
}
|
|
1379
|
+
|
|
1380
|
+
/** @returns {UnauthenticatedApplication} */
|
|
618
1381
|
static UnauthenticatedApplication() {
|
|
619
1382
|
return Joi.object({
|
|
620
1383
|
message: Joi.string().allow(""),
|
|
621
1384
|
});
|
|
622
1385
|
}
|
|
1386
|
+
|
|
1387
|
+
/** @returns {UnauthenticatedUser} */
|
|
623
1388
|
static UnauthenticatedUser() {
|
|
624
1389
|
return Joi.object({
|
|
625
1390
|
message: Joi.string().allow(""),
|
|
626
1391
|
});
|
|
627
1392
|
}
|
|
628
1393
|
}
|
|
629
|
-
module.exports =
|
|
1394
|
+
module.exports = BillingPlatformModel;
|