@gofynd/fdk-client-javascript 3.1.0-beta.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +2 -0
- package/sdk/application/ApplicationClient.js +2 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +81 -101
- package/sdk/application/Cart/CartApplicationClient.js +173 -511
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +110 -110
- package/sdk/application/Catalog/CatalogApplicationClient.js +214 -447
- package/sdk/application/Common/CommonApplicationClient.d.ts +4 -4
- package/sdk/application/Common/CommonApplicationClient.js +4 -19
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +3 -43
- package/sdk/application/Communication/CommunicationApplicationClient.js +4 -214
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +41 -54
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +39 -192
- package/sdk/application/Content/ContentApplicationClient.d.ts +61 -61
- package/sdk/application/Content/ContentApplicationClient.js +183 -366
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +2 -2
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +11 -30
- package/sdk/application/Finance/FinanceApplicationClient.d.ts +29 -0
- package/sdk/application/Finance/FinanceApplicationClient.js +111 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +6 -6
- package/sdk/application/Lead/LeadApplicationClient.js +24 -55
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +28 -117
- package/sdk/application/Logistic/LogisticApplicationClient.js +99 -492
- package/sdk/application/Order/OrderApplicationClient.d.ts +31 -51
- package/sdk/application/Order/OrderApplicationClient.js +89 -293
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +108 -218
- package/sdk/application/Payment/PaymentApplicationClient.js +100 -1081
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +14 -14
- package/sdk/application/Rewards/RewardsApplicationClient.js +13 -66
- package/sdk/application/Share/ShareApplicationClient.d.ts +11 -11
- package/sdk/application/Share/ShareApplicationClient.js +35 -89
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +5 -25
- package/sdk/application/Theme/ThemeApplicationClient.js +24 -150
- package/sdk/application/User/UserApplicationClient.d.ts +23 -13
- package/sdk/application/User/UserApplicationClient.js +49 -407
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +4 -4
- package/sdk/application/Webhook/WebhookApplicationClient.js +4 -11
- package/sdk/common/Utility.d.ts +1 -1
- package/sdk/common/Utility.js +10 -7
- package/sdk/common/Validator.d.ts +1 -0
- package/sdk/common/Validator.js +20 -0
- package/sdk/common/utils.d.ts +0 -1
- package/sdk/common/utils.js +0 -14
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +10 -54
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +32 -364
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +54 -1
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +43 -0
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.d.ts +1 -5
- package/sdk/partner/FileStorage/FileStoragePartnerValidator.js +4 -35
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +5 -5
- package/sdk/partner/Lead/LeadPartnerClient.js +4 -4
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +52 -98
- package/sdk/partner/Lead/LeadPartnerModel.js +76 -100
- package/sdk/partner/Lead/LeadPartnerValidator.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +172 -41
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1222 -85
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +1921 -297
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +973 -258
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +13 -1
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +148 -16
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +21 -63
- package/sdk/partner/Theme/ThemePartnerClient.js +67 -392
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +72 -104
- package/sdk/partner/Theme/ThemePartnerModel.js +75 -101
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +1 -5
- package/sdk/partner/Theme/ThemePartnerValidator.js +12 -42
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +18 -18
- package/sdk/partner/Webhook/WebhookPartnerClient.js +18 -18
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +673 -189
- package/sdk/partner/Webhook/WebhookPartnerModel.js +270 -159
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +3 -3
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.d.ts +4 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationValidator.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +3 -3
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +3 -3
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +2 -32
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +3 -243
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +49 -145
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +20 -171
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +1 -39
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +0 -35
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +12 -12
- package/sdk/platform/Billing/BillingPlatformClient.js +15 -15
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +443 -388
- package/sdk/platform/Billing/BillingPlatformModel.js +280 -263
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +16 -18
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -9
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +172 -251
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +577 -648
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +270 -165
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +192 -108
- package/sdk/platform/Cart/CartPlatformModel.d.ts +4554 -3154
- package/sdk/platform/Cart/CartPlatformModel.js +1935 -2854
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +380 -976
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +2004 -6464
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +161 -1082
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +80 -884
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +568 -325
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1560 -1162
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +9772 -7871
- package/sdk/platform/Catalog/CatalogPlatformModel.js +6978 -9516
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +231 -240
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +180 -188
- package/sdk/platform/Common/CommonPlatformClient.d.ts +6 -5
- package/sdk/platform/Common/CommonPlatformClient.js +6 -5
- package/sdk/platform/Common/CommonPlatformModel.d.ts +19 -25
- package/sdk/platform/Common/CommonPlatformModel.js +11 -14
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +240 -376
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +589 -874
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +139 -170
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +126 -145
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +3 -56
- package/sdk/platform/Communication/CommunicationPlatformClient.js +4 -307
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +330 -502
- package/sdk/platform/Communication/CommunicationPlatformModel.js +376 -610
- package/sdk/platform/Communication/CommunicationPlatformValidator.d.ts +3 -62
- package/sdk/platform/Communication/CommunicationPlatformValidator.js +2 -48
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +72 -100
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +88 -146
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +270 -241
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +248 -226
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +20 -31
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +20 -25
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +117 -332
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +409 -1470
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +55 -158
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +41 -163
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +65 -142
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +103 -568
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +562 -1289
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +368 -1037
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +34 -80
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +24 -79
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +302 -248
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1292 -773
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +330 -218
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +325 -208
- package/sdk/platform/Content/ContentPlatformClient.d.ts +279 -118
- package/sdk/platform/Content/ContentPlatformClient.js +1617 -492
- package/sdk/platform/Content/ContentPlatformModel.d.ts +2391 -924
- package/sdk/platform/Content/ContentPlatformModel.js +1314 -970
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +272 -134
- package/sdk/platform/Content/ContentPlatformValidator.js +295 -118
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +53 -43
- package/sdk/platform/Discount/DiscountPlatformClient.js +53 -43
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +383 -110
- package/sdk/platform/Discount/DiscountPlatformModel.js +117 -108
- package/sdk/platform/Discount/DiscountPlatformValidator.d.ts +56 -36
- package/sdk/platform/Discount/DiscountPlatformValidator.js +29 -19
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +4 -163
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1078
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +5 -141
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +4 -177
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +8 -8
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +30 -1123
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +24 -1135
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +6 -6
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +6 -6
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +17 -17
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +33 -33
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +19 -19
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +14 -14
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +24 -4
- package/sdk/platform/Lead/LeadPlatformClient.js +160 -4
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +60 -140
- package/sdk/platform/Lead/LeadPlatformModel.js +81 -162
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +29 -3
- package/sdk/platform/Lead/LeadPlatformValidator.js +28 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +19 -98
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +27 -662
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +91 -118
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +32 -127
- package/sdk/platform/Order/OrderPlatformClient.d.ts +406 -403
- package/sdk/platform/Order/OrderPlatformClient.js +1200 -1343
- package/sdk/platform/Order/OrderPlatformModel.d.ts +8665 -4505
- package/sdk/platform/Order/OrderPlatformModel.js +4088 -3601
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +666 -442
- package/sdk/platform/Order/OrderPlatformValidator.js +353 -312
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +6 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +9 -7
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +67 -19
- package/sdk/platform/Partner/PartnerPlatformModel.js +26 -17
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +135 -382
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +937 -2452
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +100 -306
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +74 -305
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +56 -66
- package/sdk/platform/Payment/PaymentPlatformClient.js +124 -269
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +1307 -3536
- package/sdk/platform/Payment/PaymentPlatformModel.js +1389 -3692
- package/sdk/platform/Payment/PaymentPlatformValidator.d.ts +35 -64
- package/sdk/platform/Payment/PaymentPlatformValidator.js +34 -60
- package/sdk/platform/PlatformClient.d.ts +0 -2
- package/sdk/platform/PlatformClient.js +0 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.d.ts +2 -2
- package/sdk/platform/Rewards/RewardsPlatformApplicationValidator.js +2 -2
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +12 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +10 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +64 -136
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +111 -521
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +75 -117
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +50 -105
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +160 -149
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +766 -545
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +6196 -3978
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +3181 -3895
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +294 -220
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +205 -149
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +16 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.js +86 -8
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +23 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +16 -3
- package/sdk/platform/Share/SharePlatformModel.d.ts +53 -9
- package/sdk/platform/Share/SharePlatformModel.js +45 -5
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +17 -37
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +66 -204
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +25 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +20 -31
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +8 -18
- package/sdk/platform/Theme/ThemePlatformClient.js +8 -85
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +17 -425
- package/sdk/platform/Theme/ThemePlatformModel.js +23 -329
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +3 -7
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -9
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +81 -18
- package/sdk/platform/User/UserPlatformApplicationClient.js +491 -27
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +126 -10
- package/sdk/platform/User/UserPlatformApplicationValidator.js +92 -7
- package/sdk/platform/User/UserPlatformModel.d.ts +317 -218
- package/sdk/platform/User/UserPlatformModel.js +253 -210
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +25 -78
- package/sdk/platform/Webhook/WebhookPlatformClient.js +75 -470
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +813 -426
- package/sdk/platform/Webhook/WebhookPlatformModel.js +446 -395
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -55
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +12 -72
- package/sdk/platform/index.d.ts +0 -1
- package/sdk/platform/index.js +0 -2
- package/sdk/public/Catalog/CatalogPublicClient.d.ts +22 -0
- package/sdk/public/Catalog/CatalogPublicClient.js +133 -0
- package/sdk/public/Catalog/CatalogPublicModel.d.ts +158 -0
- package/sdk/public/Catalog/CatalogPublicModel.js +116 -0
- package/sdk/public/Catalog/CatalogPublicValidator.d.ts +55 -0
- package/sdk/public/Catalog/CatalogPublicValidator.js +35 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +4 -14
- package/sdk/public/Configuration/ConfigurationPublicClient.js +10 -113
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +46 -114
- package/sdk/public/Configuration/ConfigurationPublicModel.js +32 -117
- package/sdk/public/Configuration/ConfigurationPublicValidator.d.ts +1 -11
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +0 -12
- package/sdk/public/Content/ContentPublicClient.d.ts +36 -25
- package/sdk/public/Content/ContentPublicClient.js +254 -280
- package/sdk/public/Content/ContentPublicModel.d.ts +151 -38
- package/sdk/public/Content/ContentPublicModel.js +98 -44
- package/sdk/public/Content/ContentPublicValidator.d.ts +18 -17
- package/sdk/public/Content/ContentPublicValidator.js +26 -19
- package/sdk/public/Partner/PartnerPublicClient.d.ts +1 -1
- package/sdk/public/Partner/PartnerPublicClient.js +6 -11
- package/sdk/public/Partner/PartnerPublicModel.d.ts +248 -72
- package/sdk/public/Partner/PartnerPublicModel.js +81 -71
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +2 -2
- package/sdk/public/Partner/PartnerPublicValidator.js +1 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +8 -8
- package/sdk/public/Webhook/WebhookPublicClient.js +9 -48
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +215 -67
- package/sdk/public/Webhook/WebhookPublicModel.js +66 -61
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +4 -4
- package/sdk/public/Webhook/WebhookPublicValidator.js +4 -4
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/partner/Authorization/AuthorizationPartnerClient.d.ts +0 -66
- package/sdk/partner/Authorization/AuthorizationPartnerClient.js +0 -431
- package/sdk/partner/Authorization/AuthorizationPartnerModel.d.ts +0 -231
- package/sdk/partner/Authorization/AuthorizationPartnerModel.js +0 -152
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.d.ts +0 -8
- package/sdk/partner/Authorization/AuthorizationPartnerValidator.js +0 -39
- package/sdk/partner/Catalog/CatalogPartnerClient.d.ts +0 -26
- package/sdk/partner/Catalog/CatalogPartnerClient.js +0 -173
- package/sdk/partner/Catalog/CatalogPartnerModel.d.ts +0 -238
- package/sdk/partner/Catalog/CatalogPartnerModel.js +0 -248
- package/sdk/partner/Catalog/CatalogPartnerValidator.d.ts +0 -5
- package/sdk/partner/Catalog/CatalogPartnerValidator.js +0 -19
- package/sdk/partner/Payment/PaymentPartnerClient.d.ts +0 -116
- package/sdk/partner/Payment/PaymentPartnerClient.js +0 -857
- package/sdk/partner/Payment/PaymentPartnerModel.d.ts +0 -388
- package/sdk/partner/Payment/PaymentPartnerModel.js +0 -442
- package/sdk/partner/Payment/PaymentPartnerValidator.d.ts +0 -14
- package/sdk/partner/Payment/PaymentPartnerValidator.js +0 -74
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -320
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -2333
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +0 -2895
- package/sdk/platform/Finance/FinancePlatformModel.js +0 -2150
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +0 -284
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -354
|
@@ -2,99 +2,33 @@ export = BillingPlatformModel;
|
|
|
2
2
|
/**
|
|
3
3
|
* @typedef SubscriptionChargeRes
|
|
4
4
|
* @property {string} [_id] - Unique identifier for the subscription charge
|
|
5
|
-
* @property {string} [product_suit_id] -
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* @property {string} [
|
|
9
|
-
* @property {string} [
|
|
10
|
-
*
|
|
11
|
-
* @property {
|
|
5
|
+
* @property {string} [product_suit_id] - A unique identifier for a product
|
|
6
|
+
* suite, which represents a specific collection or group of products within
|
|
7
|
+
* the system.
|
|
8
|
+
* @property {string} [entity_id] - Unique identifier for the entity (eg. extension)
|
|
9
|
+
* @property {string} [entity_type] - Specifies the type of entity related to
|
|
10
|
+
* the operation, such as 'extension' or 'subscription'
|
|
11
|
+
* @property {string} [name] - The name of the extension plan
|
|
12
|
+
* @property {string} [status] - Current status of the extension subscription
|
|
13
|
+
* @property {number} [trial_days] - The number of days allocated for the trial period
|
|
12
14
|
* @property {string} [activated_on] - Date when the charge was activated
|
|
13
15
|
* @property {string} [cancelled_on] - Date when the charge was cancelled
|
|
14
|
-
* @property {boolean} [is_test] - Indicates
|
|
16
|
+
* @property {boolean} [is_test] - Indicates whether the operation or data is in
|
|
17
|
+
* a test mode.
|
|
15
18
|
* @property {string} [created_at] - Timestamp when the charge was created
|
|
16
19
|
* @property {string} [modified_at] - Timestamp when the charge was last modified
|
|
17
|
-
* @property {string} [company_id] -
|
|
20
|
+
* @property {string} [company_id] - The unique identifier of the company.
|
|
18
21
|
* @property {Object[]} [line_items] - List of line items associated with the charge
|
|
19
22
|
*/
|
|
20
23
|
/**
|
|
21
|
-
* @typedef
|
|
22
|
-
* @property {string} [
|
|
23
|
-
* @property {string} [entity_type] - The type of entity associated with the
|
|
24
|
-
* charge (e.g., 'extension', 'subscription').
|
|
25
|
-
* @property {string} [entity_id] - Unique identifier for the entity associated
|
|
26
|
-
* with the charge.
|
|
27
|
-
* @property {string} [name] - The name of the charge.
|
|
28
|
-
* @property {string} [term] - Description of the charge term.
|
|
29
|
-
* @property {string} [charge_type] - The type of charge (e.g., 'standalone',
|
|
30
|
-
* 'recurring').
|
|
31
|
-
* @property {string} [pricing_type] - The pricing model for the charge (e.g.,
|
|
32
|
-
* 'one_time', 'recurring').
|
|
33
|
-
* @property {EntityChargePrice} [price]
|
|
34
|
-
* @property {ChargeRecurring} [recurring]
|
|
35
|
-
* @property {string} [status] - Current status of the charge.
|
|
36
|
-
* @property {number} [capped_amount] - Maximum amount that can be charged, if applicable.
|
|
37
|
-
* @property {string} [activated_on] - Date and time when the charge was activated.
|
|
38
|
-
* @property {string} [cancelled_on] - Date and time when the charge was cancelled.
|
|
39
|
-
* @property {string} [billing_date] - Date and time when the charge was billed.
|
|
40
|
-
* @property {SubscriptionTrialPeriod} [current_period]
|
|
41
|
-
* @property {string} [modified_at] - Date and time when the charge details were
|
|
42
|
-
* last modified.
|
|
43
|
-
* @property {string} [created_at] - Date and time when the charge was created.
|
|
44
|
-
* @property {boolean} [is_test] - Indicates whether the charge is for testing purposes.
|
|
45
|
-
* @property {string} [company_id] - Company id.
|
|
46
|
-
* @property {Object} [meta] - Additional metadata associated with the charge.
|
|
47
|
-
* @property {number} [__v] - Internal version key for the charge record.
|
|
24
|
+
* @typedef BadRequestSchema
|
|
25
|
+
* @property {string} [message] - Failure message.
|
|
48
26
|
*/
|
|
49
27
|
/**
|
|
50
28
|
* @typedef ResourceNotFound
|
|
51
29
|
* @property {string} [message] - Resource not found with {id}
|
|
52
|
-
* @property {
|
|
53
|
-
* @property {
|
|
54
|
-
*/
|
|
55
|
-
/**
|
|
56
|
-
* @typedef CreateOneTimeCharge
|
|
57
|
-
* @property {string} [name] - The name of the one-time charge to be created.
|
|
58
|
-
* @property {OneTimeChargeItem} [charge]
|
|
59
|
-
* @property {boolean} [is_test] - Indicates whether the charge creation is for
|
|
60
|
-
* testing purposes.
|
|
61
|
-
* @property {string} [return_url] - URL to which the user will be redirected
|
|
62
|
-
* after creating the charge.
|
|
63
|
-
*/
|
|
64
|
-
/**
|
|
65
|
-
* @typedef CreateOneTimeChargeResponse
|
|
66
|
-
* @property {Charge} [charge]
|
|
67
|
-
* @property {string} [confirm_url] - URL to which users are redirected to
|
|
68
|
-
* confirm or complete the payment or subscription process.
|
|
69
|
-
*/
|
|
70
|
-
/**
|
|
71
|
-
* @typedef BadRequest
|
|
72
|
-
* @property {string} [message] - Failure message.
|
|
73
|
-
*/
|
|
74
|
-
/**
|
|
75
|
-
* @typedef CreateSubscriptionCharge
|
|
76
|
-
* @property {string} name - The name of the charge.
|
|
77
|
-
* @property {number} [trial_days]
|
|
78
|
-
* @property {ChargeLineItem[]} line_items
|
|
79
|
-
* @property {boolean} [is_test] - Indicates whether the charge is for testing purposes.
|
|
80
|
-
* @property {string} return_url - The URL passed in request which extension
|
|
81
|
-
* expects in return.
|
|
82
|
-
*/
|
|
83
|
-
/**
|
|
84
|
-
* @typedef CreateSubscriptionResponse
|
|
85
|
-
* @property {EntitySubscription} [subscription]
|
|
86
|
-
* @property {string} [confirm_url] - URL to which users are redirected to
|
|
87
|
-
* confirm or complete the payment or subscription process.
|
|
88
|
-
*/
|
|
89
|
-
/**
|
|
90
|
-
* @typedef EntityChargePrice
|
|
91
|
-
* @property {number} [amount] - The amount for the price. The minimum value is 1.
|
|
92
|
-
* @property {string} [currency_code] - The currency code for the price
|
|
93
|
-
*/
|
|
94
|
-
/**
|
|
95
|
-
* @typedef ChargeRecurring
|
|
96
|
-
* @property {string} [interval]
|
|
97
|
-
* @property {number} [interval_time]
|
|
30
|
+
* @property {number} [code] - The HTTP status code associated with the error
|
|
31
|
+
* @property {boolean} [success] - Indicates if the request was successful
|
|
98
32
|
*/
|
|
99
33
|
/**
|
|
100
34
|
* @typedef SubscriptionTrialPeriod
|
|
@@ -102,8 +36,9 @@ export = BillingPlatformModel;
|
|
|
102
36
|
* @property {string} [end_date] - The end date and time of the trial period.
|
|
103
37
|
*/
|
|
104
38
|
/**
|
|
105
|
-
* @typedef
|
|
106
|
-
* @property {
|
|
39
|
+
* @typedef EntityChargePrice
|
|
40
|
+
* @property {number} [amount] - The amount for the price. The minimum value is 1.
|
|
41
|
+
* @property {string} [currency_code] - The currency code for the price
|
|
107
42
|
*/
|
|
108
43
|
/**
|
|
109
44
|
* @typedef OneTimeChargeItem
|
|
@@ -112,92 +47,143 @@ export = BillingPlatformModel;
|
|
|
112
47
|
* @property {string} [pricing_type] - The type of pricing for the charge item.
|
|
113
48
|
* @property {EntityChargePrice} [price]
|
|
114
49
|
* @property {number} [capped_amount] - The maximum amount that can be charged
|
|
115
|
-
* for
|
|
116
|
-
* @property {boolean} [is_test] - Indicates whether the
|
|
117
|
-
*
|
|
50
|
+
* for a particular service or item
|
|
51
|
+
* @property {boolean} [is_test] - Indicates whether the operation or data is in
|
|
52
|
+
* a test mode.
|
|
118
53
|
* @property {Object} [metadata] - Additional metadata associated with the charge item.
|
|
119
54
|
*/
|
|
120
55
|
/**
|
|
121
|
-
* @typedef
|
|
122
|
-
* @property {string} name -
|
|
123
|
-
* @property {
|
|
124
|
-
* @property {
|
|
125
|
-
*
|
|
126
|
-
* @property {
|
|
127
|
-
*
|
|
128
|
-
* @property {number} [capped_amount]
|
|
129
|
-
* @property {number} [trial_days]
|
|
130
|
-
* @property {boolean} [is_test]
|
|
131
|
-
* @property {Object} [metadata]
|
|
56
|
+
* @typedef CreateOneTimeCharge
|
|
57
|
+
* @property {string} [name] - The name of the one-time charge to be created.
|
|
58
|
+
* @property {OneTimeChargeItem} [charge]
|
|
59
|
+
* @property {boolean} [is_test] - Indicates whether the operation or data is in
|
|
60
|
+
* a test mode.
|
|
61
|
+
* @property {string} [return_url] - URL to which the user will be redirected
|
|
62
|
+
* after creating the charge.
|
|
132
63
|
*/
|
|
133
64
|
/**
|
|
134
|
-
* @typedef
|
|
135
|
-
* @property {string} [
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
* @
|
|
141
|
-
* @property {string} [
|
|
142
|
-
* @property {
|
|
143
|
-
*
|
|
144
|
-
* @property {string} [
|
|
145
|
-
* @property {string} [
|
|
146
|
-
* @property {string} [
|
|
147
|
-
* @property {
|
|
148
|
-
*
|
|
149
|
-
*
|
|
65
|
+
* @typedef ChargeRecurring
|
|
66
|
+
* @property {string} [interval] - The interval at which the recurring charge is
|
|
67
|
+
* applied. Examples include "month", "year", etc.
|
|
68
|
+
* @property {number} [interval_time]
|
|
69
|
+
*/
|
|
70
|
+
/**
|
|
71
|
+
* @typedef ChargeDetails
|
|
72
|
+
* @property {string} [_id] - Unique identifier for the charge.
|
|
73
|
+
* @property {string} [entity_type] - Specifies the type of entity related to
|
|
74
|
+
* the operation, such as 'extension' or 'subscription'
|
|
75
|
+
* @property {string} [entity_id] - Unique identifier for the entity (eg. extension)
|
|
76
|
+
* @property {string} [name] - The name of the extension plan
|
|
77
|
+
* @property {string} [term] - Description of the charge term.
|
|
78
|
+
* @property {string} [charge_type] - The type of charge (e.g., 'standalone',
|
|
79
|
+
* 'recurring').
|
|
80
|
+
* @property {string} [pricing_type] - The pricing model for the charge (e.g.,
|
|
81
|
+
* 'one_time', 'recurring').
|
|
82
|
+
* @property {EntityChargePrice} [price]
|
|
83
|
+
* @property {ChargeRecurring} [recurring]
|
|
84
|
+
* @property {string} [status] - Current status of the charge.
|
|
85
|
+
* @property {number} [capped_amount] - The maximum amount that can be charged
|
|
86
|
+
* for a particular service or item
|
|
87
|
+
* @property {string} [activated_on] - Date and time when the charge was activated.
|
|
88
|
+
* @property {string} [cancelled_on] - Date and time when the charge was cancelled.
|
|
89
|
+
* @property {string} [billing_date] - The date when the billing occurred. This
|
|
90
|
+
* field is optional and may be null if the billing date is not specified.
|
|
91
|
+
* @property {SubscriptionTrialPeriod} [current_period]
|
|
92
|
+
* @property {string} [modified_at] - Date and time when the charge details were
|
|
93
|
+
* last modified.
|
|
94
|
+
* @property {string} [created_at] - Date and time when the charge was created.
|
|
95
|
+
* @property {boolean} [is_test] - Indicates whether the operation or data is in
|
|
96
|
+
* a test mode.
|
|
97
|
+
* @property {string} [company_id] - The unique identifier of the company.
|
|
98
|
+
* @property {Object} [meta] - Additional metadata associated with the charge.
|
|
99
|
+
* @property {number} [__v] - Internal version key for the charge record.
|
|
150
100
|
*/
|
|
151
101
|
/**
|
|
152
102
|
* @typedef OneTimeChargeEntity
|
|
153
103
|
* @property {string} [term] - Description of the charge term or usage.
|
|
154
104
|
* @property {string} [charge_type] - Type of the charge (e.g., 'subscription',
|
|
155
105
|
* 'extension').
|
|
156
|
-
* @property {number} [capped_amount] -
|
|
157
|
-
*
|
|
158
|
-
* @property {string} [billing_date] -
|
|
159
|
-
* not
|
|
106
|
+
* @property {number} [capped_amount] - The maximum amount that can be charged
|
|
107
|
+
* for a particular service or item
|
|
108
|
+
* @property {string} [billing_date] - The date when the billing occurred. This
|
|
109
|
+
* field is optional and may be null if the billing date is not specified.
|
|
160
110
|
* @property {string} [created_at] - Date and time when the charge entity was created.
|
|
161
111
|
* @property {string} [modified_at] - Date and time when the charge entity was
|
|
162
112
|
* last modified.
|
|
163
113
|
* @property {number} [__v] - Internal version key for the charge record.
|
|
164
114
|
* @property {string} [_id] - Unique identifier for the charge entity.
|
|
165
115
|
* @property {string} [name] - The name of the one-time charge.
|
|
166
|
-
* @property {string} [status] - Current status of the charge (e.g., 'pending'
|
|
167
|
-
* 'completed').
|
|
116
|
+
* @property {string} [status] - Current status of the charge (e.g., 'pending').
|
|
168
117
|
* @property {string} [activated_on] - Date and time when the charge was
|
|
169
118
|
* activated. Null if not yet activated.
|
|
170
119
|
* @property {string} [cancelled_on] - Date and time when the charge was
|
|
171
120
|
* cancelled. Null if not cancelled.
|
|
172
121
|
* @property {Object} [metadata] - Additional metadata associated with the charge.
|
|
173
122
|
* @property {string} [return_url] - URL to redirect to after processing the charge.
|
|
174
|
-
* @property {boolean} [is_test] - Indicates whether the
|
|
123
|
+
* @property {boolean} [is_test] - Indicates whether the operation or data is in
|
|
124
|
+
* a test mode.
|
|
175
125
|
* @property {string} [pricing_type] - Pricing model for the charge (e.g., 'one_time').
|
|
176
|
-
* @property {string} [subscriber_id] -
|
|
177
|
-
*
|
|
178
|
-
* @property {string} [entity_type] -
|
|
179
|
-
*
|
|
180
|
-
* @property {string} [entity_id] - Unique identifier for the entity
|
|
181
|
-
* with the charge.
|
|
126
|
+
* @property {string} [subscriber_id] - The unique identifier for the company in
|
|
127
|
+
* the system.
|
|
128
|
+
* @property {string} [entity_type] - Specifies the type of entity related to
|
|
129
|
+
* the operation, such as 'extension' or 'subscription'
|
|
130
|
+
* @property {string} [entity_id] - Unique identifier for the entity (eg. extension)
|
|
182
131
|
* @property {Object} [meta] - Additional metadata associated with the charge.
|
|
183
132
|
* @property {EntityChargePrice} [price]
|
|
184
133
|
*/
|
|
134
|
+
/**
|
|
135
|
+
* @typedef CreateOneTimeChargeResponseSchemas
|
|
136
|
+
* @property {Charge} [charge]
|
|
137
|
+
* @property {string} [confirm_url] - URL to which users are redirected to
|
|
138
|
+
* confirm or complete the payment or subscription process.
|
|
139
|
+
*/
|
|
140
|
+
/**
|
|
141
|
+
* @typedef Charge
|
|
142
|
+
* @property {OneTimeChargeEntity} [final_charge]
|
|
143
|
+
*/
|
|
185
144
|
/**
|
|
186
145
|
* @typedef EntityChargeRecurring
|
|
187
|
-
* @property {string} interval - The interval
|
|
146
|
+
* @property {string} interval - The interval at which the recurring charge is
|
|
147
|
+
* applied. Examples include "month", "year", etc.
|
|
148
|
+
*/
|
|
149
|
+
/**
|
|
150
|
+
* @typedef ChargeLineItem
|
|
151
|
+
* @property {string} name - Its name of the extension plan.
|
|
152
|
+
* @property {string} term - It indicates how it will be charged.
|
|
153
|
+
* @property {string} pricing_type - Specifies the type of pricing for the
|
|
154
|
+
* extension subscription. It indicates whether the subscription will be
|
|
155
|
+
* automatically renewed, charged once, or based on usage.
|
|
156
|
+
* @property {EntityChargePrice} price
|
|
157
|
+
* @property {EntityChargeRecurring} [recurring]
|
|
158
|
+
* @property {number} [capped_amount] - The maximum amount that can be charged
|
|
159
|
+
* for a particular service or item
|
|
160
|
+
* @property {number} [trial_days] - The number of days allocated for the trial period
|
|
161
|
+
* @property {boolean} [is_test] - Indicates whether the operation or data is in
|
|
162
|
+
* a test mode.
|
|
163
|
+
* @property {Object} [metadata]
|
|
164
|
+
*/
|
|
165
|
+
/**
|
|
166
|
+
* @typedef CreateSubscriptionCharge
|
|
167
|
+
* @property {string} name - The name of the extension plan
|
|
168
|
+
* @property {number} [trial_days] - The number of days allocated for the trial period
|
|
169
|
+
* @property {ChargeLineItem[]} line_items
|
|
170
|
+
* @property {boolean} [is_test] - Indicates whether the operation or data is in
|
|
171
|
+
* a test mode.
|
|
172
|
+
* @property {string} return_url - The URL to which the user will be redirected
|
|
173
|
+
* after the subscription process is complete.
|
|
188
174
|
*/
|
|
189
175
|
/**
|
|
190
176
|
* @typedef EntityChargeDetails
|
|
191
|
-
* @property {string} [_id] -
|
|
192
|
-
* @property {string} [subscription_id] -
|
|
193
|
-
* @property {string} [subscriber_id] -
|
|
194
|
-
*
|
|
195
|
-
* @property {string} [entity_type] -
|
|
196
|
-
*
|
|
197
|
-
* @property {string} [entity_id] - Unique identifier for the entity
|
|
198
|
-
*
|
|
199
|
-
* @property {string} [
|
|
200
|
-
*
|
|
177
|
+
* @property {string} [_id] - The unique identifier for the charge.
|
|
178
|
+
* @property {string} [subscription_id] - The unique identifier of the subscription.
|
|
179
|
+
* @property {string} [subscriber_id] - The unique identifier for the company in
|
|
180
|
+
* the system.
|
|
181
|
+
* @property {string} [entity_type] - Specifies the type of entity related to
|
|
182
|
+
* the operation, such as 'extension' or 'subscription'
|
|
183
|
+
* @property {string} [entity_id] - Unique identifier for the entity (eg. extension)
|
|
184
|
+
* @property {string} [name] - The name of the extension plan
|
|
185
|
+
* @property {string} [term] - Detailed description of the terms and conditions
|
|
186
|
+
* associated with the charge.
|
|
201
187
|
* @property {string} [charge_type] - The type of charge (e.g., 'standalone',
|
|
202
188
|
* 'recurring').
|
|
203
189
|
* @property {string} [pricing_type] - The pricing model for the charge (e.g.,
|
|
@@ -205,23 +191,54 @@ export = BillingPlatformModel;
|
|
|
205
191
|
* @property {EntityChargePrice} [price]
|
|
206
192
|
* @property {ChargeRecurring} [recurring]
|
|
207
193
|
* @property {string} [status] - Current status of the charge.
|
|
208
|
-
* @property {number} [capped_amount] -
|
|
194
|
+
* @property {number} [capped_amount] - The maximum amount that can be charged
|
|
195
|
+
* for a particular service or item
|
|
209
196
|
* @property {string} [activated_on] - Date and time when the charge was activated.
|
|
210
197
|
* @property {string} [cancelled_on] - Date and time when the charge was cancelled.
|
|
211
|
-
* @property {string} [billing_date] -
|
|
198
|
+
* @property {string} [billing_date] - The date when the billing occurred. This
|
|
199
|
+
* field is optional and may be null if the billing date is not specified.
|
|
212
200
|
* @property {SubscriptionTrialPeriod} [current_period]
|
|
213
201
|
* @property {string} [modified_at] - Date and time when the charge details were
|
|
214
202
|
* last modified.
|
|
215
203
|
* @property {string} [created_at] - Date and time when the charge was created.
|
|
216
|
-
* @property {boolean} [is_test] - Indicates whether the
|
|
217
|
-
*
|
|
204
|
+
* @property {boolean} [is_test] - Indicates whether the operation or data is in
|
|
205
|
+
* a test mode.
|
|
206
|
+
* @property {string} [company_id] - The unique identifier of the company.
|
|
218
207
|
* @property {Object} [meta] - Additional metadata associated with the charge.
|
|
219
208
|
* @property {number} [__v] - Internal version key for the charge record.
|
|
220
209
|
*/
|
|
210
|
+
/**
|
|
211
|
+
* @typedef EntitySubscription
|
|
212
|
+
* @property {string} [_id] - Unique identifier for the subscription charge
|
|
213
|
+
* @property {string} [product_suit_id] - A unique identifier for a product
|
|
214
|
+
* suite, which represents a specific collection or group of products within
|
|
215
|
+
* the system.
|
|
216
|
+
* @property {string} [entity_id] - Unique identifier for the entity (eg. extension)
|
|
217
|
+
* @property {string} [entity_type] - Specifies the type of entity related to
|
|
218
|
+
* the operation, such as 'extension' or 'subscription'
|
|
219
|
+
* @property {string} [name] - The name of the extension plan
|
|
220
|
+
* @property {string} [status] - Current status of the subscription charge
|
|
221
|
+
* @property {number} [trial_days] - The number of days allocated for the trial period
|
|
222
|
+
* @property {boolean} [is_test] - Indicates whether the operation or data is in
|
|
223
|
+
* a test mode.
|
|
224
|
+
* @property {string} [created_at] - Timestamp when the charge was created
|
|
225
|
+
* @property {string} [modified_at] - Timestamp when the charge was last modified
|
|
226
|
+
* @property {string} [subscriber_id] - The unique identifier for the company in
|
|
227
|
+
* the system.
|
|
228
|
+
* @property {EntityChargeDetails[]} [line_items]
|
|
229
|
+
* @property {string} [return_url] - The URL passed in request which extension
|
|
230
|
+
* expects in return.
|
|
231
|
+
*/
|
|
232
|
+
/**
|
|
233
|
+
* @typedef CreateSubscription
|
|
234
|
+
* @property {EntitySubscription} [subscription]
|
|
235
|
+
* @property {string} [confirm_url] - URL to which users are redirected to post
|
|
236
|
+
* initiation of extension installation.
|
|
237
|
+
*/
|
|
221
238
|
declare class BillingPlatformModel {
|
|
222
239
|
}
|
|
223
240
|
declare namespace BillingPlatformModel {
|
|
224
|
-
export { SubscriptionChargeRes,
|
|
241
|
+
export { SubscriptionChargeRes, BadRequestSchema, ResourceNotFound, SubscriptionTrialPeriod, EntityChargePrice, OneTimeChargeItem, CreateOneTimeCharge, ChargeRecurring, ChargeDetails, OneTimeChargeEntity, CreateOneTimeChargeResponseSchemas, Charge, EntityChargeRecurring, ChargeLineItem, CreateSubscriptionCharge, EntityChargeDetails, EntitySubscription, CreateSubscription };
|
|
225
242
|
}
|
|
226
243
|
/** @returns {SubscriptionChargeRes} */
|
|
227
244
|
declare function SubscriptionChargeRes(): SubscriptionChargeRes;
|
|
@@ -231,28 +248,30 @@ type SubscriptionChargeRes = {
|
|
|
231
248
|
*/
|
|
232
249
|
_id?: string;
|
|
233
250
|
/**
|
|
234
|
-
* -
|
|
235
|
-
*
|
|
251
|
+
* - A unique identifier for a product
|
|
252
|
+
* suite, which represents a specific collection or group of products within
|
|
253
|
+
* the system.
|
|
236
254
|
*/
|
|
237
255
|
product_suit_id?: string;
|
|
238
256
|
/**
|
|
239
|
-
* - Unique identifier for the entity
|
|
257
|
+
* - Unique identifier for the entity (eg. extension)
|
|
240
258
|
*/
|
|
241
259
|
entity_id?: string;
|
|
242
260
|
/**
|
|
243
|
-
* -
|
|
261
|
+
* - Specifies the type of entity related to
|
|
262
|
+
* the operation, such as 'extension' or 'subscription'
|
|
244
263
|
*/
|
|
245
264
|
entity_type?: string;
|
|
246
265
|
/**
|
|
247
|
-
* -
|
|
266
|
+
* - The name of the extension plan
|
|
248
267
|
*/
|
|
249
268
|
name?: string;
|
|
250
269
|
/**
|
|
251
|
-
* - Current status of the subscription
|
|
270
|
+
* - Current status of the extension subscription
|
|
252
271
|
*/
|
|
253
272
|
status?: string;
|
|
254
273
|
/**
|
|
255
|
-
* -
|
|
274
|
+
* - The number of days allocated for the trial period
|
|
256
275
|
*/
|
|
257
276
|
trial_days?: number;
|
|
258
277
|
/**
|
|
@@ -264,7 +283,8 @@ type SubscriptionChargeRes = {
|
|
|
264
283
|
*/
|
|
265
284
|
cancelled_on?: string;
|
|
266
285
|
/**
|
|
267
|
-
* - Indicates
|
|
286
|
+
* - Indicates whether the operation or data is in
|
|
287
|
+
* a test mode.
|
|
268
288
|
*/
|
|
269
289
|
is_test?: boolean;
|
|
270
290
|
/**
|
|
@@ -276,7 +296,7 @@ type SubscriptionChargeRes = {
|
|
|
276
296
|
*/
|
|
277
297
|
modified_at?: string;
|
|
278
298
|
/**
|
|
279
|
-
* -
|
|
299
|
+
* - The unique identifier of the company.
|
|
280
300
|
*/
|
|
281
301
|
company_id?: string;
|
|
282
302
|
/**
|
|
@@ -284,89 +304,13 @@ type SubscriptionChargeRes = {
|
|
|
284
304
|
*/
|
|
285
305
|
line_items?: any[];
|
|
286
306
|
};
|
|
287
|
-
/** @returns {
|
|
288
|
-
declare function
|
|
289
|
-
type
|
|
290
|
-
/**
|
|
291
|
-
* - Unique identifier for the charge.
|
|
292
|
-
*/
|
|
293
|
-
_id?: string;
|
|
294
|
-
/**
|
|
295
|
-
* - The type of entity associated with the
|
|
296
|
-
* charge (e.g., 'extension', 'subscription').
|
|
297
|
-
*/
|
|
298
|
-
entity_type?: string;
|
|
299
|
-
/**
|
|
300
|
-
* - Unique identifier for the entity associated
|
|
301
|
-
* with the charge.
|
|
302
|
-
*/
|
|
303
|
-
entity_id?: string;
|
|
304
|
-
/**
|
|
305
|
-
* - The name of the charge.
|
|
306
|
-
*/
|
|
307
|
-
name?: string;
|
|
308
|
-
/**
|
|
309
|
-
* - Description of the charge term.
|
|
310
|
-
*/
|
|
311
|
-
term?: string;
|
|
312
|
-
/**
|
|
313
|
-
* - The type of charge (e.g., 'standalone',
|
|
314
|
-
* 'recurring').
|
|
315
|
-
*/
|
|
316
|
-
charge_type?: string;
|
|
317
|
-
/**
|
|
318
|
-
* - The pricing model for the charge (e.g.,
|
|
319
|
-
* 'one_time', 'recurring').
|
|
320
|
-
*/
|
|
321
|
-
pricing_type?: string;
|
|
322
|
-
price?: EntityChargePrice;
|
|
323
|
-
recurring?: ChargeRecurring;
|
|
324
|
-
/**
|
|
325
|
-
* - Current status of the charge.
|
|
326
|
-
*/
|
|
327
|
-
status?: string;
|
|
328
|
-
/**
|
|
329
|
-
* - Maximum amount that can be charged, if applicable.
|
|
330
|
-
*/
|
|
331
|
-
capped_amount?: number;
|
|
332
|
-
/**
|
|
333
|
-
* - Date and time when the charge was activated.
|
|
334
|
-
*/
|
|
335
|
-
activated_on?: string;
|
|
336
|
-
/**
|
|
337
|
-
* - Date and time when the charge was cancelled.
|
|
338
|
-
*/
|
|
339
|
-
cancelled_on?: string;
|
|
340
|
-
/**
|
|
341
|
-
* - Date and time when the charge was billed.
|
|
342
|
-
*/
|
|
343
|
-
billing_date?: string;
|
|
344
|
-
current_period?: SubscriptionTrialPeriod;
|
|
345
|
-
/**
|
|
346
|
-
* - Date and time when the charge details were
|
|
347
|
-
* last modified.
|
|
348
|
-
*/
|
|
349
|
-
modified_at?: string;
|
|
350
|
-
/**
|
|
351
|
-
* - Date and time when the charge was created.
|
|
352
|
-
*/
|
|
353
|
-
created_at?: string;
|
|
354
|
-
/**
|
|
355
|
-
* - Indicates whether the charge is for testing purposes.
|
|
356
|
-
*/
|
|
357
|
-
is_test?: boolean;
|
|
358
|
-
/**
|
|
359
|
-
* - Company id.
|
|
360
|
-
*/
|
|
361
|
-
company_id?: string;
|
|
362
|
-
/**
|
|
363
|
-
* - Additional metadata associated with the charge.
|
|
364
|
-
*/
|
|
365
|
-
meta?: any;
|
|
307
|
+
/** @returns {BadRequestSchema} */
|
|
308
|
+
declare function BadRequestSchema(): BadRequestSchema;
|
|
309
|
+
type BadRequestSchema = {
|
|
366
310
|
/**
|
|
367
|
-
* -
|
|
311
|
+
* - Failure message.
|
|
368
312
|
*/
|
|
369
|
-
|
|
313
|
+
message?: string;
|
|
370
314
|
};
|
|
371
315
|
/** @returns {ResourceNotFound} */
|
|
372
316
|
declare function ResourceNotFound(): ResourceNotFound;
|
|
@@ -375,74 +319,26 @@ type ResourceNotFound = {
|
|
|
375
319
|
* - Resource not found with {id}
|
|
376
320
|
*/
|
|
377
321
|
message?: string;
|
|
378
|
-
code?: any;
|
|
379
|
-
success?: any;
|
|
380
|
-
};
|
|
381
|
-
/** @returns {CreateOneTimeCharge} */
|
|
382
|
-
declare function CreateOneTimeCharge(): CreateOneTimeCharge;
|
|
383
|
-
type CreateOneTimeCharge = {
|
|
384
322
|
/**
|
|
385
|
-
* - The
|
|
386
|
-
*/
|
|
387
|
-
name?: string;
|
|
388
|
-
charge?: OneTimeChargeItem;
|
|
389
|
-
/**
|
|
390
|
-
* - Indicates whether the charge creation is for
|
|
391
|
-
* testing purposes.
|
|
392
|
-
*/
|
|
393
|
-
is_test?: boolean;
|
|
394
|
-
/**
|
|
395
|
-
* - URL to which the user will be redirected
|
|
396
|
-
* after creating the charge.
|
|
323
|
+
* - The HTTP status code associated with the error
|
|
397
324
|
*/
|
|
398
|
-
|
|
399
|
-
};
|
|
400
|
-
/** @returns {CreateOneTimeChargeResponse} */
|
|
401
|
-
declare function CreateOneTimeChargeResponse(): CreateOneTimeChargeResponse;
|
|
402
|
-
type CreateOneTimeChargeResponse = {
|
|
403
|
-
charge?: Charge;
|
|
325
|
+
code?: number;
|
|
404
326
|
/**
|
|
405
|
-
* -
|
|
406
|
-
* confirm or complete the payment or subscription process.
|
|
327
|
+
* - Indicates if the request was successful
|
|
407
328
|
*/
|
|
408
|
-
|
|
329
|
+
success?: boolean;
|
|
409
330
|
};
|
|
410
|
-
/** @returns {
|
|
411
|
-
declare function
|
|
412
|
-
type
|
|
413
|
-
/**
|
|
414
|
-
* - Failure message.
|
|
415
|
-
*/
|
|
416
|
-
message?: string;
|
|
417
|
-
};
|
|
418
|
-
/** @returns {CreateSubscriptionCharge} */
|
|
419
|
-
declare function CreateSubscriptionCharge(): CreateSubscriptionCharge;
|
|
420
|
-
type CreateSubscriptionCharge = {
|
|
421
|
-
/**
|
|
422
|
-
* - The name of the charge.
|
|
423
|
-
*/
|
|
424
|
-
name: string;
|
|
425
|
-
trial_days?: number;
|
|
426
|
-
line_items: ChargeLineItem[];
|
|
427
|
-
/**
|
|
428
|
-
* - Indicates whether the charge is for testing purposes.
|
|
429
|
-
*/
|
|
430
|
-
is_test?: boolean;
|
|
331
|
+
/** @returns {SubscriptionTrialPeriod} */
|
|
332
|
+
declare function SubscriptionTrialPeriod(): SubscriptionTrialPeriod;
|
|
333
|
+
type SubscriptionTrialPeriod = {
|
|
431
334
|
/**
|
|
432
|
-
* - The
|
|
433
|
-
* expects in return.
|
|
335
|
+
* - The start date and time of the trial period.
|
|
434
336
|
*/
|
|
435
|
-
|
|
436
|
-
};
|
|
437
|
-
/** @returns {CreateSubscriptionResponse} */
|
|
438
|
-
declare function CreateSubscriptionResponse(): CreateSubscriptionResponse;
|
|
439
|
-
type CreateSubscriptionResponse = {
|
|
440
|
-
subscription?: EntitySubscription;
|
|
337
|
+
start_date?: string;
|
|
441
338
|
/**
|
|
442
|
-
* -
|
|
443
|
-
* confirm or complete the payment or subscription process.
|
|
339
|
+
* - The end date and time of the trial period.
|
|
444
340
|
*/
|
|
445
|
-
|
|
341
|
+
end_date?: string;
|
|
446
342
|
};
|
|
447
343
|
/** @returns {EntityChargePrice} */
|
|
448
344
|
declare function EntityChargePrice(): EntityChargePrice;
|
|
@@ -456,29 +352,6 @@ type EntityChargePrice = {
|
|
|
456
352
|
*/
|
|
457
353
|
currency_code?: string;
|
|
458
354
|
};
|
|
459
|
-
/** @returns {ChargeRecurring} */
|
|
460
|
-
declare function ChargeRecurring(): ChargeRecurring;
|
|
461
|
-
type ChargeRecurring = {
|
|
462
|
-
interval?: string;
|
|
463
|
-
interval_time?: number;
|
|
464
|
-
};
|
|
465
|
-
/** @returns {SubscriptionTrialPeriod} */
|
|
466
|
-
declare function SubscriptionTrialPeriod(): SubscriptionTrialPeriod;
|
|
467
|
-
type SubscriptionTrialPeriod = {
|
|
468
|
-
/**
|
|
469
|
-
* - The start date and time of the trial period.
|
|
470
|
-
*/
|
|
471
|
-
start_date?: string;
|
|
472
|
-
/**
|
|
473
|
-
* - The end date and time of the trial period.
|
|
474
|
-
*/
|
|
475
|
-
end_date?: string;
|
|
476
|
-
};
|
|
477
|
-
/** @returns {Charge} */
|
|
478
|
-
declare function Charge(): Charge;
|
|
479
|
-
type Charge = {
|
|
480
|
-
final_charge?: OneTimeChargeEntity;
|
|
481
|
-
};
|
|
482
355
|
/** @returns {OneTimeChargeItem} */
|
|
483
356
|
declare function OneTimeChargeItem(): OneTimeChargeItem;
|
|
484
357
|
type OneTimeChargeItem = {
|
|
@@ -497,12 +370,12 @@ type OneTimeChargeItem = {
|
|
|
497
370
|
price?: EntityChargePrice;
|
|
498
371
|
/**
|
|
499
372
|
* - The maximum amount that can be charged
|
|
500
|
-
* for
|
|
373
|
+
* for a particular service or item
|
|
501
374
|
*/
|
|
502
375
|
capped_amount?: number;
|
|
503
376
|
/**
|
|
504
|
-
* - Indicates whether the
|
|
505
|
-
*
|
|
377
|
+
* - Indicates whether the operation or data is in
|
|
378
|
+
* a test mode.
|
|
506
379
|
*/
|
|
507
380
|
is_test?: boolean;
|
|
508
381
|
/**
|
|
@@ -510,83 +383,120 @@ type OneTimeChargeItem = {
|
|
|
510
383
|
*/
|
|
511
384
|
metadata?: any;
|
|
512
385
|
};
|
|
513
|
-
/** @returns {
|
|
514
|
-
declare function
|
|
515
|
-
type
|
|
386
|
+
/** @returns {CreateOneTimeCharge} */
|
|
387
|
+
declare function CreateOneTimeCharge(): CreateOneTimeCharge;
|
|
388
|
+
type CreateOneTimeCharge = {
|
|
516
389
|
/**
|
|
517
|
-
* -
|
|
390
|
+
* - The name of the one-time charge to be created.
|
|
518
391
|
*/
|
|
519
|
-
name
|
|
392
|
+
name?: string;
|
|
393
|
+
charge?: OneTimeChargeItem;
|
|
520
394
|
/**
|
|
521
|
-
* -
|
|
395
|
+
* - Indicates whether the operation or data is in
|
|
396
|
+
* a test mode.
|
|
522
397
|
*/
|
|
523
|
-
|
|
398
|
+
is_test?: boolean;
|
|
524
399
|
/**
|
|
525
|
-
* -
|
|
526
|
-
*
|
|
400
|
+
* - URL to which the user will be redirected
|
|
401
|
+
* after creating the charge.
|
|
527
402
|
*/
|
|
528
|
-
|
|
529
|
-
price: EntityChargePrice;
|
|
530
|
-
recurring?: EntityChargeRecurring;
|
|
531
|
-
capped_amount?: number;
|
|
532
|
-
trial_days?: number;
|
|
533
|
-
is_test?: boolean;
|
|
534
|
-
metadata?: any;
|
|
403
|
+
return_url?: string;
|
|
535
404
|
};
|
|
536
|
-
/** @returns {
|
|
537
|
-
declare function
|
|
538
|
-
type
|
|
405
|
+
/** @returns {ChargeRecurring} */
|
|
406
|
+
declare function ChargeRecurring(): ChargeRecurring;
|
|
407
|
+
type ChargeRecurring = {
|
|
539
408
|
/**
|
|
540
|
-
* -
|
|
409
|
+
* - The interval at which the recurring charge is
|
|
410
|
+
* applied. Examples include "month", "year", etc.
|
|
411
|
+
*/
|
|
412
|
+
interval?: string;
|
|
413
|
+
interval_time?: number;
|
|
414
|
+
};
|
|
415
|
+
/** @returns {ChargeDetails} */
|
|
416
|
+
declare function ChargeDetails(): ChargeDetails;
|
|
417
|
+
type ChargeDetails = {
|
|
418
|
+
/**
|
|
419
|
+
* - Unique identifier for the charge.
|
|
541
420
|
*/
|
|
542
421
|
_id?: string;
|
|
543
422
|
/**
|
|
544
|
-
* -
|
|
545
|
-
* the
|
|
423
|
+
* - Specifies the type of entity related to
|
|
424
|
+
* the operation, such as 'extension' or 'subscription'
|
|
546
425
|
*/
|
|
547
|
-
|
|
426
|
+
entity_type?: string;
|
|
548
427
|
/**
|
|
549
|
-
* - Unique identifier for the entity
|
|
428
|
+
* - Unique identifier for the entity (eg. extension)
|
|
550
429
|
*/
|
|
551
430
|
entity_id?: string;
|
|
552
431
|
/**
|
|
553
|
-
* -
|
|
432
|
+
* - The name of the extension plan
|
|
554
433
|
*/
|
|
555
|
-
|
|
434
|
+
name?: string;
|
|
556
435
|
/**
|
|
557
|
-
* -
|
|
436
|
+
* - Description of the charge term.
|
|
558
437
|
*/
|
|
559
|
-
|
|
438
|
+
term?: string;
|
|
560
439
|
/**
|
|
561
|
-
* -
|
|
440
|
+
* - The type of charge (e.g., 'standalone',
|
|
441
|
+
* 'recurring').
|
|
442
|
+
*/
|
|
443
|
+
charge_type?: string;
|
|
444
|
+
/**
|
|
445
|
+
* - The pricing model for the charge (e.g.,
|
|
446
|
+
* 'one_time', 'recurring').
|
|
447
|
+
*/
|
|
448
|
+
pricing_type?: string;
|
|
449
|
+
price?: EntityChargePrice;
|
|
450
|
+
recurring?: ChargeRecurring;
|
|
451
|
+
/**
|
|
452
|
+
* - Current status of the charge.
|
|
562
453
|
*/
|
|
563
454
|
status?: string;
|
|
564
455
|
/**
|
|
565
|
-
* -
|
|
456
|
+
* - The maximum amount that can be charged
|
|
457
|
+
* for a particular service or item
|
|
566
458
|
*/
|
|
567
|
-
|
|
459
|
+
capped_amount?: number;
|
|
568
460
|
/**
|
|
569
|
-
* -
|
|
461
|
+
* - Date and time when the charge was activated.
|
|
570
462
|
*/
|
|
571
|
-
|
|
463
|
+
activated_on?: string;
|
|
572
464
|
/**
|
|
573
|
-
* -
|
|
465
|
+
* - Date and time when the charge was cancelled.
|
|
574
466
|
*/
|
|
575
|
-
|
|
467
|
+
cancelled_on?: string;
|
|
576
468
|
/**
|
|
577
|
-
* -
|
|
469
|
+
* - The date when the billing occurred. This
|
|
470
|
+
* field is optional and may be null if the billing date is not specified.
|
|
471
|
+
*/
|
|
472
|
+
billing_date?: string;
|
|
473
|
+
current_period?: SubscriptionTrialPeriod;
|
|
474
|
+
/**
|
|
475
|
+
* - Date and time when the charge details were
|
|
476
|
+
* last modified.
|
|
578
477
|
*/
|
|
579
478
|
modified_at?: string;
|
|
580
479
|
/**
|
|
581
|
-
* -
|
|
480
|
+
* - Date and time when the charge was created.
|
|
582
481
|
*/
|
|
583
|
-
|
|
584
|
-
line_items?: EntityChargeDetails[];
|
|
482
|
+
created_at?: string;
|
|
585
483
|
/**
|
|
586
|
-
* -
|
|
587
|
-
*
|
|
484
|
+
* - Indicates whether the operation or data is in
|
|
485
|
+
* a test mode.
|
|
588
486
|
*/
|
|
589
|
-
|
|
487
|
+
is_test?: boolean;
|
|
488
|
+
/**
|
|
489
|
+
* - The unique identifier of the company.
|
|
490
|
+
*/
|
|
491
|
+
company_id?: string;
|
|
492
|
+
/**
|
|
493
|
+
* - Additional metadata associated with the charge.
|
|
494
|
+
*/
|
|
495
|
+
meta?: any;
|
|
496
|
+
/**
|
|
497
|
+
* - Internal version key for the charge record.
|
|
498
|
+
*/
|
|
499
|
+
__v?: number;
|
|
590
500
|
};
|
|
591
501
|
/** @returns {OneTimeChargeEntity} */
|
|
592
502
|
declare function OneTimeChargeEntity(): OneTimeChargeEntity;
|
|
@@ -601,13 +511,13 @@ type OneTimeChargeEntity = {
|
|
|
601
511
|
*/
|
|
602
512
|
charge_type?: string;
|
|
603
513
|
/**
|
|
604
|
-
* -
|
|
605
|
-
*
|
|
514
|
+
* - The maximum amount that can be charged
|
|
515
|
+
* for a particular service or item
|
|
606
516
|
*/
|
|
607
517
|
capped_amount?: number;
|
|
608
518
|
/**
|
|
609
|
-
* -
|
|
610
|
-
* not
|
|
519
|
+
* - The date when the billing occurred. This
|
|
520
|
+
* field is optional and may be null if the billing date is not specified.
|
|
611
521
|
*/
|
|
612
522
|
billing_date?: string;
|
|
613
523
|
/**
|
|
@@ -632,8 +542,7 @@ type OneTimeChargeEntity = {
|
|
|
632
542
|
*/
|
|
633
543
|
name?: string;
|
|
634
544
|
/**
|
|
635
|
-
* - Current status of the charge (e.g., 'pending'
|
|
636
|
-
* 'completed').
|
|
545
|
+
* - Current status of the charge (e.g., 'pending').
|
|
637
546
|
*/
|
|
638
547
|
status?: string;
|
|
639
548
|
/**
|
|
@@ -655,7 +564,8 @@ type OneTimeChargeEntity = {
|
|
|
655
564
|
*/
|
|
656
565
|
return_url?: string;
|
|
657
566
|
/**
|
|
658
|
-
* - Indicates whether the
|
|
567
|
+
* - Indicates whether the operation or data is in
|
|
568
|
+
* a test mode.
|
|
659
569
|
*/
|
|
660
570
|
is_test?: boolean;
|
|
661
571
|
/**
|
|
@@ -663,18 +573,17 @@ type OneTimeChargeEntity = {
|
|
|
663
573
|
*/
|
|
664
574
|
pricing_type?: string;
|
|
665
575
|
/**
|
|
666
|
-
* -
|
|
667
|
-
*
|
|
576
|
+
* - The unique identifier for the company in
|
|
577
|
+
* the system.
|
|
668
578
|
*/
|
|
669
579
|
subscriber_id?: string;
|
|
670
580
|
/**
|
|
671
|
-
* -
|
|
672
|
-
*
|
|
581
|
+
* - Specifies the type of entity related to
|
|
582
|
+
* the operation, such as 'extension' or 'subscription'
|
|
673
583
|
*/
|
|
674
584
|
entity_type?: string;
|
|
675
585
|
/**
|
|
676
|
-
* - Unique identifier for the entity
|
|
677
|
-
* with the charge.
|
|
586
|
+
* - Unique identifier for the entity (eg. extension)
|
|
678
587
|
*/
|
|
679
588
|
entity_id?: string;
|
|
680
589
|
/**
|
|
@@ -683,46 +592,120 @@ type OneTimeChargeEntity = {
|
|
|
683
592
|
meta?: any;
|
|
684
593
|
price?: EntityChargePrice;
|
|
685
594
|
};
|
|
595
|
+
/** @returns {CreateOneTimeChargeResponseSchemas} */
|
|
596
|
+
declare function CreateOneTimeChargeResponseSchemas(): CreateOneTimeChargeResponseSchemas;
|
|
597
|
+
type CreateOneTimeChargeResponseSchemas = {
|
|
598
|
+
charge?: Charge;
|
|
599
|
+
/**
|
|
600
|
+
* - URL to which users are redirected to
|
|
601
|
+
* confirm or complete the payment or subscription process.
|
|
602
|
+
*/
|
|
603
|
+
confirm_url?: string;
|
|
604
|
+
};
|
|
605
|
+
/** @returns {Charge} */
|
|
606
|
+
declare function Charge(): Charge;
|
|
607
|
+
type Charge = {
|
|
608
|
+
final_charge?: OneTimeChargeEntity;
|
|
609
|
+
};
|
|
686
610
|
/** @returns {EntityChargeRecurring} */
|
|
687
611
|
declare function EntityChargeRecurring(): EntityChargeRecurring;
|
|
688
612
|
type EntityChargeRecurring = {
|
|
689
613
|
/**
|
|
690
|
-
* - The interval
|
|
614
|
+
* - The interval at which the recurring charge is
|
|
615
|
+
* applied. Examples include "month", "year", etc.
|
|
691
616
|
*/
|
|
692
617
|
interval: string;
|
|
693
618
|
};
|
|
619
|
+
/** @returns {ChargeLineItem} */
|
|
620
|
+
declare function ChargeLineItem(): ChargeLineItem;
|
|
621
|
+
type ChargeLineItem = {
|
|
622
|
+
/**
|
|
623
|
+
* - Its name of the extension plan.
|
|
624
|
+
*/
|
|
625
|
+
name: string;
|
|
626
|
+
/**
|
|
627
|
+
* - It indicates how it will be charged.
|
|
628
|
+
*/
|
|
629
|
+
term: string;
|
|
630
|
+
/**
|
|
631
|
+
* - Specifies the type of pricing for the
|
|
632
|
+
* extension subscription. It indicates whether the subscription will be
|
|
633
|
+
* automatically renewed, charged once, or based on usage.
|
|
634
|
+
*/
|
|
635
|
+
pricing_type: string;
|
|
636
|
+
price: EntityChargePrice;
|
|
637
|
+
recurring?: EntityChargeRecurring;
|
|
638
|
+
/**
|
|
639
|
+
* - The maximum amount that can be charged
|
|
640
|
+
* for a particular service or item
|
|
641
|
+
*/
|
|
642
|
+
capped_amount?: number;
|
|
643
|
+
/**
|
|
644
|
+
* - The number of days allocated for the trial period
|
|
645
|
+
*/
|
|
646
|
+
trial_days?: number;
|
|
647
|
+
/**
|
|
648
|
+
* - Indicates whether the operation or data is in
|
|
649
|
+
* a test mode.
|
|
650
|
+
*/
|
|
651
|
+
is_test?: boolean;
|
|
652
|
+
metadata?: any;
|
|
653
|
+
};
|
|
654
|
+
/** @returns {CreateSubscriptionCharge} */
|
|
655
|
+
declare function CreateSubscriptionCharge(): CreateSubscriptionCharge;
|
|
656
|
+
type CreateSubscriptionCharge = {
|
|
657
|
+
/**
|
|
658
|
+
* - The name of the extension plan
|
|
659
|
+
*/
|
|
660
|
+
name: string;
|
|
661
|
+
/**
|
|
662
|
+
* - The number of days allocated for the trial period
|
|
663
|
+
*/
|
|
664
|
+
trial_days?: number;
|
|
665
|
+
line_items: ChargeLineItem[];
|
|
666
|
+
/**
|
|
667
|
+
* - Indicates whether the operation or data is in
|
|
668
|
+
* a test mode.
|
|
669
|
+
*/
|
|
670
|
+
is_test?: boolean;
|
|
671
|
+
/**
|
|
672
|
+
* - The URL to which the user will be redirected
|
|
673
|
+
* after the subscription process is complete.
|
|
674
|
+
*/
|
|
675
|
+
return_url: string;
|
|
676
|
+
};
|
|
694
677
|
/** @returns {EntityChargeDetails} */
|
|
695
678
|
declare function EntityChargeDetails(): EntityChargeDetails;
|
|
696
679
|
type EntityChargeDetails = {
|
|
697
680
|
/**
|
|
698
|
-
* -
|
|
681
|
+
* - The unique identifier for the charge.
|
|
699
682
|
*/
|
|
700
683
|
_id?: string;
|
|
701
684
|
/**
|
|
702
|
-
* -
|
|
685
|
+
* - The unique identifier of the subscription.
|
|
703
686
|
*/
|
|
704
687
|
subscription_id?: string;
|
|
705
688
|
/**
|
|
706
|
-
* -
|
|
707
|
-
*
|
|
689
|
+
* - The unique identifier for the company in
|
|
690
|
+
* the system.
|
|
708
691
|
*/
|
|
709
692
|
subscriber_id?: string;
|
|
710
693
|
/**
|
|
711
|
-
* -
|
|
712
|
-
*
|
|
694
|
+
* - Specifies the type of entity related to
|
|
695
|
+
* the operation, such as 'extension' or 'subscription'
|
|
713
696
|
*/
|
|
714
697
|
entity_type?: string;
|
|
715
698
|
/**
|
|
716
|
-
* - Unique identifier for the entity
|
|
717
|
-
* with the charge.
|
|
699
|
+
* - Unique identifier for the entity (eg. extension)
|
|
718
700
|
*/
|
|
719
701
|
entity_id?: string;
|
|
720
702
|
/**
|
|
721
|
-
* - The name of the
|
|
703
|
+
* - The name of the extension plan
|
|
722
704
|
*/
|
|
723
705
|
name?: string;
|
|
724
706
|
/**
|
|
725
|
-
* -
|
|
707
|
+
* - Detailed description of the terms and conditions
|
|
708
|
+
* associated with the charge.
|
|
726
709
|
*/
|
|
727
710
|
term?: string;
|
|
728
711
|
/**
|
|
@@ -742,7 +725,8 @@ type EntityChargeDetails = {
|
|
|
742
725
|
*/
|
|
743
726
|
status?: string;
|
|
744
727
|
/**
|
|
745
|
-
* -
|
|
728
|
+
* - The maximum amount that can be charged
|
|
729
|
+
* for a particular service or item
|
|
746
730
|
*/
|
|
747
731
|
capped_amount?: number;
|
|
748
732
|
/**
|
|
@@ -754,7 +738,8 @@ type EntityChargeDetails = {
|
|
|
754
738
|
*/
|
|
755
739
|
cancelled_on?: string;
|
|
756
740
|
/**
|
|
757
|
-
* -
|
|
741
|
+
* - The date when the billing occurred. This
|
|
742
|
+
* field is optional and may be null if the billing date is not specified.
|
|
758
743
|
*/
|
|
759
744
|
billing_date?: string;
|
|
760
745
|
current_period?: SubscriptionTrialPeriod;
|
|
@@ -768,11 +753,12 @@ type EntityChargeDetails = {
|
|
|
768
753
|
*/
|
|
769
754
|
created_at?: string;
|
|
770
755
|
/**
|
|
771
|
-
* - Indicates whether the
|
|
756
|
+
* - Indicates whether the operation or data is in
|
|
757
|
+
* a test mode.
|
|
772
758
|
*/
|
|
773
759
|
is_test?: boolean;
|
|
774
760
|
/**
|
|
775
|
-
* -
|
|
761
|
+
* - The unique identifier of the company.
|
|
776
762
|
*/
|
|
777
763
|
company_id?: string;
|
|
778
764
|
/**
|
|
@@ -784,3 +770,72 @@ type EntityChargeDetails = {
|
|
|
784
770
|
*/
|
|
785
771
|
__v?: number;
|
|
786
772
|
};
|
|
773
|
+
/** @returns {EntitySubscription} */
|
|
774
|
+
declare function EntitySubscription(): EntitySubscription;
|
|
775
|
+
type EntitySubscription = {
|
|
776
|
+
/**
|
|
777
|
+
* - Unique identifier for the subscription charge
|
|
778
|
+
*/
|
|
779
|
+
_id?: string;
|
|
780
|
+
/**
|
|
781
|
+
* - A unique identifier for a product
|
|
782
|
+
* suite, which represents a specific collection or group of products within
|
|
783
|
+
* the system.
|
|
784
|
+
*/
|
|
785
|
+
product_suit_id?: string;
|
|
786
|
+
/**
|
|
787
|
+
* - Unique identifier for the entity (eg. extension)
|
|
788
|
+
*/
|
|
789
|
+
entity_id?: string;
|
|
790
|
+
/**
|
|
791
|
+
* - Specifies the type of entity related to
|
|
792
|
+
* the operation, such as 'extension' or 'subscription'
|
|
793
|
+
*/
|
|
794
|
+
entity_type?: string;
|
|
795
|
+
/**
|
|
796
|
+
* - The name of the extension plan
|
|
797
|
+
*/
|
|
798
|
+
name?: string;
|
|
799
|
+
/**
|
|
800
|
+
* - Current status of the subscription charge
|
|
801
|
+
*/
|
|
802
|
+
status?: string;
|
|
803
|
+
/**
|
|
804
|
+
* - The number of days allocated for the trial period
|
|
805
|
+
*/
|
|
806
|
+
trial_days?: number;
|
|
807
|
+
/**
|
|
808
|
+
* - Indicates whether the operation or data is in
|
|
809
|
+
* a test mode.
|
|
810
|
+
*/
|
|
811
|
+
is_test?: boolean;
|
|
812
|
+
/**
|
|
813
|
+
* - Timestamp when the charge was created
|
|
814
|
+
*/
|
|
815
|
+
created_at?: string;
|
|
816
|
+
/**
|
|
817
|
+
* - Timestamp when the charge was last modified
|
|
818
|
+
*/
|
|
819
|
+
modified_at?: string;
|
|
820
|
+
/**
|
|
821
|
+
* - The unique identifier for the company in
|
|
822
|
+
* the system.
|
|
823
|
+
*/
|
|
824
|
+
subscriber_id?: string;
|
|
825
|
+
line_items?: EntityChargeDetails[];
|
|
826
|
+
/**
|
|
827
|
+
* - The URL passed in request which extension
|
|
828
|
+
* expects in return.
|
|
829
|
+
*/
|
|
830
|
+
return_url?: string;
|
|
831
|
+
};
|
|
832
|
+
/** @returns {CreateSubscription} */
|
|
833
|
+
declare function CreateSubscription(): CreateSubscription;
|
|
834
|
+
type CreateSubscription = {
|
|
835
|
+
subscription?: EntitySubscription;
|
|
836
|
+
/**
|
|
837
|
+
* - URL to which users are redirected to post
|
|
838
|
+
* initiation of extension installation.
|
|
839
|
+
*/
|
|
840
|
+
confirm_url?: string;
|
|
841
|
+
};
|