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