@gofynd/fdk-client-javascript 1.4.8-beta.3 → 1.4.9
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 +26 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationClient.d.ts +8 -0
- package/sdk/application/ApplicationClient.js +14 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +20 -20
- package/sdk/application/Cart/CartApplicationClient.js +20 -20
- package/sdk/application/Cart/CartApplicationModel.d.ts +2446 -664
- package/sdk/application/Cart/CartApplicationModel.js +783 -552
- package/sdk/application/Cart/CartApplicationValidator.d.ts +268 -194
- package/sdk/application/Cart/CartApplicationValidator.js +100 -114
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +53 -53
- package/sdk/application/Catalog/CatalogApplicationClient.js +53 -53
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +2012 -503
- package/sdk/application/Catalog/CatalogApplicationModel.js +603 -453
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +64 -64
- package/sdk/application/Catalog/CatalogApplicationValidator.js +32 -32
- package/sdk/application/Common/CommonApplicationClient.d.ts +2 -2
- package/sdk/application/Common/CommonApplicationClient.js +2 -2
- package/sdk/application/Common/CommonApplicationModel.d.ts +170 -90
- package/sdk/application/Common/CommonApplicationModel.js +59 -58
- package/sdk/application/Common/CommonApplicationValidator.d.ts +8 -5
- package/sdk/application/Common/CommonApplicationValidator.js +3 -3
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +2 -2
- package/sdk/application/Communication/CommunicationApplicationClient.js +2 -2
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +170 -35
- package/sdk/application/Communication/CommunicationApplicationModel.js +54 -33
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +15 -15
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +624 -443
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +259 -248
- package/sdk/application/Configuration/ConfigurationApplicationValidator.d.ts +32 -24
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +14 -13
- package/sdk/application/Content/ContentApplicationClient.d.ts +16 -16
- package/sdk/application/Content/ContentApplicationClient.js +16 -16
- package/sdk/application/Content/ContentApplicationModel.d.ts +1205 -282
- package/sdk/application/Content/ContentApplicationModel.js +341 -277
- package/sdk/application/Content/ContentApplicationValidator.d.ts +28 -17
- package/sdk/application/Content/ContentApplicationValidator.js +11 -10
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +3 -3
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +146 -37
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +38 -36
- package/sdk/application/Lead/LeadApplicationClient.d.ts +3 -3
- package/sdk/application/Lead/LeadApplicationClient.js +3 -3
- package/sdk/application/Lead/LeadApplicationModel.d.ts +195 -134
- package/sdk/application/Lead/LeadApplicationModel.js +110 -67
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +8 -8
- package/sdk/application/Lead/LeadApplicationValidator.js +4 -4
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +10 -10
- package/sdk/application/Logistic/LogisticApplicationClient.js +10 -10
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +1039 -221
- package/sdk/application/Logistic/LogisticApplicationModel.js +342 -199
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +76 -82
- package/sdk/application/Logistic/LogisticApplicationValidator.js +38 -41
- package/sdk/application/Order/OrderApplicationClient.d.ts +10 -10
- package/sdk/application/Order/OrderApplicationClient.js +10 -10
- package/sdk/application/Order/OrderApplicationModel.d.ts +1400 -325
- package/sdk/application/Order/OrderApplicationModel.js +391 -317
- package/sdk/application/Order/OrderApplicationValidator.d.ts +32 -30
- package/sdk/application/Order/OrderApplicationValidator.js +15 -14
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +43 -43
- package/sdk/application/Payment/PaymentApplicationClient.js +43 -43
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1111 -1022
- package/sdk/application/Payment/PaymentApplicationModel.js +537 -521
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +82 -49
- package/sdk/application/Payment/PaymentApplicationValidator.js +30 -30
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +28 -7
- package/sdk/application/Rewards/RewardsApplicationModel.js +7 -7
- package/sdk/application/Share/ShareApplicationModel.d.ts +178 -38
- package/sdk/application/Share/ShareApplicationModel.js +53 -37
- package/sdk/application/Share/ShareApplicationValidator.d.ts +4 -2
- package/sdk/application/Share/ShareApplicationValidator.js +2 -1
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +4 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +14 -8
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +528 -287
- package/sdk/application/Theme/ThemeApplicationModel.js +208 -172
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +17 -12
- package/sdk/application/Theme/ThemeApplicationValidator.js +8 -6
- package/sdk/application/User/UserApplicationClient.d.ts +36 -36
- package/sdk/application/User/UserApplicationClient.js +36 -36
- package/sdk/application/User/UserApplicationModel.d.ts +1062 -255
- package/sdk/application/User/UserApplicationModel.js +298 -244
- package/sdk/application/User/UserApplicationValidator.d.ts +80 -80
- package/sdk/application/User/UserApplicationValidator.js +40 -40
- package/sdk/application/Webhook/WebhookApplicationClient.d.ts +1 -1
- package/sdk/application/Webhook/WebhookApplicationClient.js +1 -1
- package/sdk/application/Webhook/WebhookApplicationModel.d.ts +20 -5
- package/sdk/application/Webhook/WebhookApplicationModel.js +5 -5
- package/sdk/common/Clickstream.js +95 -15
- package/sdk/common/Constant.d.ts +9 -0
- package/sdk/common/Constant.js +11 -0
- package/sdk/common/Utility.js +19 -0
- package/sdk/common/utils.js +8 -1
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +28 -7
- package/sdk/partner/Lead/LeadPartnerModel.js +7 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +28 -7
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +7 -7
- package/sdk/partner/PartnerClient.d.ts +8 -0
- package/sdk/partner/PartnerClient.js +14 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +20 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +158 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +45 -6
- package/sdk/partner/Theme/ThemePartnerModel.js +33 -4
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +28 -7
- package/sdk/partner/Webhook/WebhookPartnerModel.js +7 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.d.ts +28 -7
- package/sdk/platform/Analytics/AnalyticsPlatformModel.js +7 -7
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +6 -397
- package/sdk/platform/Billing/BillingPlatformClient.js +77 -3215
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +621 -2021
- package/sdk/platform/Billing/BillingPlatformModel.js +353 -2405
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +12 -451
- package/sdk/platform/Billing/BillingPlatformValidator.js +8 -483
- package/sdk/platform/Cart/CartPlatformModel.d.ts +28 -7
- package/sdk/platform/Cart/CartPlatformModel.js +8 -8
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +12 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +41 -1
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +46 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +14 -11
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +40 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +17 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +28 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +7 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +28 -7
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +7 -7
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +0 -97
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +77 -782
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +24 -701
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +7 -539
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +1 -183
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +0 -134
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -10
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +0 -79
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -15
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -13
- package/sdk/platform/Content/ContentPlatformModel.d.ts +58 -17
- package/sdk/platform/Content/ContentPlatformModel.js +28 -15
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +28 -7
- package/sdk/platform/Discount/DiscountPlatformModel.js +7 -7
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +127 -25
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +37 -25
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +28 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +28 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1583 -347
- package/sdk/platform/Finance/FinancePlatformModel.js +463 -351
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +28 -7
- package/sdk/platform/Lead/LeadPlatformModel.js +7 -7
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -0
- package/sdk/platform/Order/OrderPlatformClient.js +165 -0
- package/sdk/platform/Order/OrderPlatformModel.d.ts +613 -39
- package/sdk/platform/Order/OrderPlatformModel.js +359 -41
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +32 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +28 -0
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +30 -9
- package/sdk/platform/Payment/PaymentPlatformModel.js +9 -9
- package/sdk/platform/PlatformClient.d.ts +8 -0
- package/sdk/platform/PlatformClient.js +14 -0
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +28 -7
- package/sdk/platform/Rewards/RewardsPlatformModel.js +7 -7
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +12 -9
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +120 -22
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +76 -21
- package/sdk/platform/Share/SharePlatformModel.d.ts +28 -7
- package/sdk/platform/Share/SharePlatformModel.js +7 -7
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +18 -5
- package/sdk/platform/Theme/ThemePlatformModel.js +7 -4
- package/sdk/platform/User/UserPlatformModel.d.ts +18 -18
- package/sdk/platform/User/UserPlatformModel.js +9 -9
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +28 -7
- package/sdk/platform/Webhook/WebhookPlatformModel.js +7 -7
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -45
- package/sdk/public/Billing/BillingPublicClient.js +0 -269
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -434
- package/sdk/public/Billing/BillingPublicModel.js +0 -395
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -34
- package/sdk/public/Billing/BillingPublicValidator.js +0 -38
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +0 -87
- package/sdk/public/Inventory/InventoryPublicClient.js +0 -529
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +0 -393
- package/sdk/public/Inventory/InventoryPublicModel.js +0 -448
- package/sdk/public/Inventory/InventoryPublicValidator.d.ts +0 -91
- package/sdk/public/Inventory/InventoryPublicValidator.js +0 -85
|
@@ -1,1175 +1,372 @@
|
|
|
1
1
|
export = BillingPlatformModel;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef CompanyInfo
|
|
4
|
-
* @property {string} [company_name]
|
|
5
|
-
* @property {string} [gstin]
|
|
6
|
-
* @property {string} [address]
|
|
7
|
-
* @property {AddressDetails} [address_details]
|
|
8
|
-
* @property {string} [pan]
|
|
9
|
-
* @property {string} [phone]
|
|
10
|
-
* @property {string} [email]
|
|
11
|
-
* @property {string} [cin]
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
|
-
* @typedef AddressDetails
|
|
15
|
-
* @property {string} [address_line_1]
|
|
16
|
-
* @property {string} [address_line_2]
|
|
17
|
-
* @property {string} [city]
|
|
18
|
-
* @property {string} [pincode]
|
|
19
|
-
* @property {string} [state]
|
|
20
|
-
* @property {string} [country]
|
|
21
|
-
*/
|
|
22
|
-
/**
|
|
23
|
-
* @typedef InvoiceData
|
|
24
|
-
* @property {InvoiceDetailsData} [invoice]
|
|
25
|
-
* @property {InvoiceItems[]} [invoice_items]
|
|
26
|
-
* @property {CompanyInfo} [shopsense_details]
|
|
27
|
-
*/
|
|
28
|
-
/**
|
|
29
|
-
* @typedef InvoiceDetailsData
|
|
30
|
-
* @property {number} [attemp]
|
|
31
|
-
* @property {Object} [documents]
|
|
32
|
-
* @property {Object} [payment]
|
|
33
|
-
* @property {Period} [period]
|
|
34
|
-
* @property {Client} [client]
|
|
35
|
-
* @property {Object} [discount]
|
|
36
|
-
* @property {Object} [taxation]
|
|
37
|
-
* @property {string} [_id]
|
|
38
|
-
* @property {boolean} [auto_advance]
|
|
39
|
-
* @property {string} [collection_method]
|
|
40
|
-
* @property {string} [subscriber_id]
|
|
41
|
-
* @property {string} [currency]
|
|
42
|
-
* @property {string} [invoice_url]
|
|
43
|
-
* @property {string} [number]
|
|
44
|
-
* @property {boolean} [paid]
|
|
45
|
-
* @property {Object} [pg_data]
|
|
46
|
-
* @property {string} [receipt_number]
|
|
47
|
-
* @property {string} [statement_descriptor]
|
|
48
|
-
* @property {string} [current_status]
|
|
49
|
-
* @property {StatusTrail[]} [status_trail]
|
|
50
|
-
* @property {number} [subtotal]
|
|
51
|
-
* @property {number} [total]
|
|
52
|
-
* @property {number} [old_settlement]
|
|
53
|
-
* @property {number} [credit_balance]
|
|
54
|
-
* @property {string} [subscription]
|
|
55
|
-
* @property {number} [attempt]
|
|
56
|
-
* @property {string} [next_action_time]
|
|
57
|
-
* @property {number} [credit_note_amount]
|
|
58
|
-
* @property {string} [created_at]
|
|
59
|
-
* @property {string} [modified_at]
|
|
60
|
-
*/
|
|
61
|
-
/**
|
|
62
|
-
* @typedef Client
|
|
63
|
-
* @property {string} [name]
|
|
64
|
-
* @property {string} [email]
|
|
65
|
-
* @property {string} [phone]
|
|
66
|
-
* @property {string[]} [address_lines]
|
|
67
|
-
*/
|
|
68
|
-
/**
|
|
69
|
-
* @typedef Period
|
|
70
|
-
* @property {string} [start]
|
|
71
|
-
* @property {string} [end]
|
|
72
|
-
*/
|
|
73
|
-
/**
|
|
74
|
-
* @typedef StatusTrail
|
|
75
|
-
* @property {string} [value]
|
|
76
|
-
* @property {string} [timestamp]
|
|
77
|
-
* @property {string} [_id]
|
|
78
|
-
*/
|
|
79
|
-
/**
|
|
80
|
-
* @typedef PaymentCollectRes
|
|
81
|
-
* @property {string} [transaction_id]
|
|
82
|
-
* @property {string} [current_status]
|
|
83
|
-
*/
|
|
84
2
|
/**
|
|
85
3
|
* @typedef SubscriptionChargeRes
|
|
86
|
-
* @property {string} [_id]
|
|
87
|
-
* @property {string} [product_suit_id]
|
|
88
|
-
*
|
|
89
|
-
* @property {string} [
|
|
90
|
-
* @property {string} [
|
|
91
|
-
* @property {string} [
|
|
92
|
-
* @property {
|
|
93
|
-
* @property {
|
|
94
|
-
* @property {string} [
|
|
95
|
-
* @property {
|
|
96
|
-
* @property {
|
|
97
|
-
* @property {string} [
|
|
98
|
-
* @property {string} [
|
|
99
|
-
* @property {
|
|
4
|
+
* @property {string} [_id] - Unique identifier for the subscription charge
|
|
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
|
|
12
|
+
* @property {string} [activated_on] - Date when the charge was activated
|
|
13
|
+
* @property {string} [cancelled_on] - Date when the charge was cancelled
|
|
14
|
+
* @property {boolean} [is_test] - Indicates if the charge is for testing purposes
|
|
15
|
+
* @property {string} [created_at] - Timestamp when the charge was created
|
|
16
|
+
* @property {string} [modified_at] - Timestamp when the charge was last modified
|
|
17
|
+
* @property {string} [company_id] - Company id
|
|
18
|
+
* @property {Object[]} [line_items] - List of line items associated with the charge
|
|
100
19
|
*/
|
|
101
20
|
/**
|
|
102
|
-
* @typedef
|
|
103
|
-
* @property {
|
|
104
|
-
* @property {
|
|
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.
|
|
105
48
|
*/
|
|
106
49
|
/**
|
|
107
|
-
* @typedef
|
|
108
|
-
* @property {string} [
|
|
109
|
-
* @property {
|
|
110
|
-
* @property {
|
|
111
|
-
* @property {boolean} [activated]
|
|
112
|
-
* @property {string} [created_at]
|
|
113
|
-
* @property {string} [modified_at]
|
|
114
|
-
* @property {string} [plan_id]
|
|
115
|
-
* @property {string} [reason]
|
|
116
|
-
* @property {string} [request_user_id]
|
|
117
|
-
* @property {string} [subscription_id]
|
|
50
|
+
* @typedef ResourceNotFound
|
|
51
|
+
* @property {string} [message] - Resource not found with {id}
|
|
52
|
+
* @property {Object} [code]
|
|
53
|
+
* @property {Object} [success]
|
|
118
54
|
*/
|
|
119
55
|
/**
|
|
120
|
-
* @typedef
|
|
121
|
-
* @property {string} [
|
|
122
|
-
* @property {
|
|
123
|
-
* @property {
|
|
124
|
-
*
|
|
125
|
-
* @property {string} [
|
|
126
|
-
*
|
|
127
|
-
* @property {string} [modified_at]
|
|
128
|
-
* @property {number} [__v]
|
|
129
|
-
* @property {string} [aggregator_order_id]
|
|
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.
|
|
130
63
|
*/
|
|
131
64
|
/**
|
|
132
|
-
* @typedef
|
|
133
|
-
* @property {
|
|
134
|
-
* @property {
|
|
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.
|
|
135
69
|
*/
|
|
136
70
|
/**
|
|
137
71
|
* @typedef BadRequest
|
|
138
72
|
* @property {string} [message] - Failure message.
|
|
139
73
|
*/
|
|
140
74
|
/**
|
|
141
|
-
* @typedef
|
|
142
|
-
* @property {string}
|
|
143
|
-
* @property {
|
|
144
|
-
* @property {
|
|
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.
|
|
145
82
|
*/
|
|
146
83
|
/**
|
|
147
|
-
* @typedef
|
|
148
|
-
* @property {
|
|
149
|
-
* @property {string} [
|
|
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.
|
|
150
88
|
*/
|
|
151
89
|
/**
|
|
152
|
-
* @typedef
|
|
153
|
-
* @property {
|
|
154
|
-
* @property {
|
|
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
|
|
155
93
|
*/
|
|
156
94
|
/**
|
|
157
|
-
* @typedef
|
|
95
|
+
* @typedef ChargeRecurring
|
|
158
96
|
* @property {string} [interval]
|
|
159
|
-
* @property {number} [
|
|
160
|
-
*/
|
|
161
|
-
/**
|
|
162
|
-
* @typedef PlanMeta
|
|
163
|
-
* @property {string} [seller_status]
|
|
164
|
-
* @property {string} [company]
|
|
165
|
-
* @property {string} [plan_platform_display_name]
|
|
166
|
-
*/
|
|
167
|
-
/**
|
|
168
|
-
* @typedef Plan
|
|
169
|
-
* @property {Object[]} [fee_components]
|
|
170
|
-
* @property {PlanRecurring} [recurring]
|
|
171
|
-
* @property {boolean} [is_trial_plan]
|
|
172
|
-
* @property {string} [plan_group]
|
|
173
|
-
* @property {string[]} [tag_lines]
|
|
174
|
-
* @property {string} [currency]
|
|
175
|
-
* @property {boolean} [is_active]
|
|
176
|
-
* @property {boolean} [is_visible]
|
|
177
|
-
* @property {number} [trial_period]
|
|
178
|
-
* @property {string[]} [addons]
|
|
179
|
-
* @property {string[]} [tags]
|
|
180
|
-
* @property {string} [type]
|
|
181
|
-
* @property {string} [country]
|
|
182
|
-
* @property {string} [_id]
|
|
183
|
-
* @property {string} [name]
|
|
184
|
-
* @property {string} [description]
|
|
185
|
-
* @property {number} [amount]
|
|
186
|
-
* @property {string} [product_suite_id]
|
|
187
|
-
* @property {string} [created_at]
|
|
188
|
-
* @property {string} [modified_at]
|
|
189
|
-
* @property {Taxation} [taxation]
|
|
190
|
-
* @property {OneTimeFees} [one_time_fees]
|
|
191
|
-
* @property {CreditLine} [credit_line]
|
|
192
|
-
* @property {string} [current_status]
|
|
193
|
-
* @property {string} [channel_type]
|
|
194
|
-
* @property {Object[]} [company_ids]
|
|
195
|
-
* @property {string} [platform]
|
|
196
|
-
* @property {string} [activated_on]
|
|
197
|
-
* @property {PlanMeta} [meta]
|
|
198
|
-
* @property {string} [created_by]
|
|
97
|
+
* @property {number} [interval_time]
|
|
199
98
|
*/
|
|
200
99
|
/**
|
|
201
100
|
* @typedef SubscriptionTrialPeriod
|
|
202
|
-
* @property {string} [start_date]
|
|
203
|
-
* @property {string} [end_date]
|
|
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.
|
|
204
103
|
*/
|
|
205
104
|
/**
|
|
206
|
-
* @typedef
|
|
207
|
-
* @property {
|
|
208
|
-
* @property {string} [currency_code]
|
|
105
|
+
* @typedef Charge
|
|
106
|
+
* @property {OneTimeChargeEntity} [final_charge]
|
|
209
107
|
*/
|
|
210
108
|
/**
|
|
211
109
|
* @typedef OneTimeChargeItem
|
|
212
|
-
* @property {string} [name]
|
|
213
|
-
* @property {string} [term]
|
|
214
|
-
* @property {string} [pricing_type]
|
|
110
|
+
* @property {string} [name] - The name of the one-time charge item.
|
|
111
|
+
* @property {string} [term] - The term or description of the charge.
|
|
112
|
+
* @property {string} [pricing_type] - The type of pricing for the charge item.
|
|
215
113
|
* @property {EntityChargePrice} [price]
|
|
114
|
+
* @property {number} [capped_amount] - The maximum amount that can be charged
|
|
115
|
+
* for this item, if applicable.
|
|
116
|
+
* @property {boolean} [is_test] - Indicates whether the charge item is for
|
|
117
|
+
* testing purposes.
|
|
118
|
+
* @property {Object} [metadata] - Additional metadata associated with the charge item.
|
|
119
|
+
*/
|
|
120
|
+
/**
|
|
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]
|
|
216
128
|
* @property {number} [capped_amount]
|
|
129
|
+
* @property {number} [trial_days]
|
|
217
130
|
* @property {boolean} [is_test]
|
|
218
131
|
* @property {Object} [metadata]
|
|
219
132
|
*/
|
|
220
133
|
/**
|
|
221
|
-
* @typedef
|
|
222
|
-
* @property {string} [
|
|
223
|
-
* @property {
|
|
224
|
-
*
|
|
225
|
-
* @property {string} [
|
|
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.
|
|
226
150
|
*/
|
|
227
151
|
/**
|
|
228
|
-
* @typedef
|
|
229
|
-
* @property {string} [
|
|
230
|
-
* @property {
|
|
152
|
+
* @typedef OneTimeChargeEntity
|
|
153
|
+
* @property {string} [term] - Description of the charge term or usage.
|
|
154
|
+
* @property {string} [charge_type] - Type of the charge (e.g., 'subscription',
|
|
155
|
+
* 'extension').
|
|
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.
|
|
160
|
+
* @property {string} [created_at] - Date and time when the charge entity was created.
|
|
161
|
+
* @property {string} [modified_at] - Date and time when the charge entity was
|
|
162
|
+
* last modified.
|
|
163
|
+
* @property {number} [__v] - Internal version key for the charge record.
|
|
164
|
+
* @property {string} [_id] - Unique identifier for the charge entity.
|
|
165
|
+
* @property {string} [name] - The name of the one-time charge.
|
|
166
|
+
* @property {string} [status] - Current status of the charge (e.g., 'pending',
|
|
167
|
+
* 'completed').
|
|
168
|
+
* @property {string} [activated_on] - Date and time when the charge was
|
|
169
|
+
* activated. Null if not yet activated.
|
|
170
|
+
* @property {string} [cancelled_on] - Date and time when the charge was
|
|
171
|
+
* cancelled. Null if not cancelled.
|
|
172
|
+
* @property {Object} [metadata] - Additional metadata associated with the charge.
|
|
173
|
+
* @property {string} [return_url] - URL to redirect to after processing the charge.
|
|
174
|
+
* @property {boolean} [is_test] - Indicates whether the charge is for testing purposes.
|
|
175
|
+
* @property {string} [pricing_type] - Pricing model for the charge (e.g., 'one_time').
|
|
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.
|
|
182
|
+
* @property {Object} [meta] - Additional metadata associated with the charge.
|
|
183
|
+
* @property {EntityChargePrice} [price]
|
|
231
184
|
*/
|
|
232
185
|
/**
|
|
233
|
-
* @typedef
|
|
234
|
-
* @property {string}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
* @
|
|
238
|
-
* @property {string} [
|
|
239
|
-
* @property {string} [
|
|
240
|
-
* @property {string} [
|
|
186
|
+
* @typedef EntityChargeRecurring
|
|
187
|
+
* @property {string} interval - The interval of the subscription.
|
|
188
|
+
*/
|
|
189
|
+
/**
|
|
190
|
+
* @typedef EntityChargeDetails
|
|
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.
|
|
201
|
+
* @property {string} [charge_type] - The type of charge (e.g., 'standalone',
|
|
202
|
+
* 'recurring').
|
|
203
|
+
* @property {string} [pricing_type] - The pricing model for the charge (e.g.,
|
|
204
|
+
* 'one_time', 'recurring').
|
|
241
205
|
* @property {EntityChargePrice} [price]
|
|
242
206
|
* @property {ChargeRecurring} [recurring]
|
|
243
|
-
* @property {string} [status]
|
|
244
|
-
* @property {number} [capped_amount]
|
|
245
|
-
* @property {string} [activated_on]
|
|
246
|
-
* @property {string} [cancelled_on]
|
|
247
|
-
* @property {string} [billing_date]
|
|
207
|
+
* @property {string} [status] - Current status of the charge.
|
|
208
|
+
* @property {number} [capped_amount] - Maximum amount that can be charged, if applicable.
|
|
209
|
+
* @property {string} [activated_on] - Date and time when the charge was activated.
|
|
210
|
+
* @property {string} [cancelled_on] - Date and time when the charge was cancelled.
|
|
211
|
+
* @property {string} [billing_date] - Date and time when the charge was billed.
|
|
248
212
|
* @property {SubscriptionTrialPeriod} [current_period]
|
|
249
|
-
* @property {string} [modified_at]
|
|
250
|
-
*
|
|
251
|
-
* @property {
|
|
252
|
-
* @property {
|
|
253
|
-
* @property {
|
|
254
|
-
* @property {
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* @typedef OneTimeChargeEntity
|
|
258
|
-
* @property {string} [term]
|
|
259
|
-
* @property {string} [charge_type]
|
|
260
|
-
* @property {number} [capped_amount]
|
|
261
|
-
* @property {string} [billing_date]
|
|
262
|
-
* @property {string} [created_at]
|
|
263
|
-
* @property {string} [modified_at]
|
|
264
|
-
* @property {number} [__v]
|
|
265
|
-
* @property {string} [_id]
|
|
266
|
-
* @property {string} [name]
|
|
267
|
-
* @property {string} [status]
|
|
268
|
-
* @property {string} [activated_on]
|
|
269
|
-
* @property {string} [cancelled_on]
|
|
270
|
-
* @property {Object} [metadata]
|
|
271
|
-
* @property {string} [return_url]
|
|
272
|
-
* @property {boolean} [is_test]
|
|
273
|
-
* @property {string} [pricing_type]
|
|
274
|
-
* @property {string} [subscriber_id]
|
|
275
|
-
* @property {string} [entity_type]
|
|
276
|
-
* @property {string} [entity_id]
|
|
277
|
-
* @property {Object} [meta]
|
|
278
|
-
* @property {EntityChargePrice} [price]
|
|
279
|
-
*/
|
|
280
|
-
/**
|
|
281
|
-
* @typedef CreateOneTimeChargeResponse
|
|
282
|
-
* @property {Charge} [charge]
|
|
283
|
-
* @property {string} [confirm_url]
|
|
284
|
-
*/
|
|
285
|
-
/**
|
|
286
|
-
* @typedef Charge
|
|
287
|
-
* @property {OneTimeChargeEntity} [final_charge]
|
|
288
|
-
*/
|
|
289
|
-
/**
|
|
290
|
-
* @typedef InvoiceDetailsStatusTrail
|
|
291
|
-
* @property {string} [_id]
|
|
292
|
-
* @property {string} [value]
|
|
293
|
-
* @property {string} [timestamp]
|
|
294
|
-
*/
|
|
295
|
-
/**
|
|
296
|
-
* @typedef InvoiceItemsPlanRecurring
|
|
297
|
-
* @property {string} [interval]
|
|
298
|
-
* @property {number} [interval_count]
|
|
299
|
-
*/
|
|
300
|
-
/**
|
|
301
|
-
* @typedef InvoiceItemsPlan
|
|
302
|
-
* @property {InvoiceItemsPlanRecurring} [recurring]
|
|
303
|
-
* @property {boolean} [is_trial_plan]
|
|
304
|
-
* @property {string} [plan_group]
|
|
305
|
-
* @property {string[]} [tag_lines]
|
|
306
|
-
* @property {string} [currency]
|
|
307
|
-
* @property {boolean} [is_active]
|
|
308
|
-
* @property {boolean} [is_visible]
|
|
309
|
-
* @property {number} [trial_period]
|
|
310
|
-
* @property {string[]} [addons]
|
|
311
|
-
* @property {string[]} [tags]
|
|
312
|
-
* @property {string} [type]
|
|
313
|
-
* @property {string} [country]
|
|
314
|
-
* @property {string} [_id]
|
|
315
|
-
* @property {string} [name]
|
|
316
|
-
* @property {string} [description]
|
|
317
|
-
* @property {number} [amount]
|
|
318
|
-
* @property {string} [product_suite_id]
|
|
319
|
-
* @property {string} [created_at]
|
|
320
|
-
* @property {string} [modified_at]
|
|
321
|
-
*/
|
|
322
|
-
/**
|
|
323
|
-
* @typedef InvoiceItemsPeriod
|
|
324
|
-
* @property {string} [start]
|
|
325
|
-
* @property {string} [end]
|
|
326
|
-
*/
|
|
327
|
-
/**
|
|
328
|
-
* @typedef InvoiceItems
|
|
329
|
-
* @property {string} [_id]
|
|
330
|
-
* @property {string} [currency]
|
|
331
|
-
* @property {InvoiceItemsPlan} [plan]
|
|
332
|
-
* @property {string} [name]
|
|
333
|
-
* @property {number} [quantity]
|
|
334
|
-
* @property {string} [description]
|
|
335
|
-
* @property {InvoiceItemsPeriod} [period]
|
|
336
|
-
* @property {number} [unit_amount]
|
|
337
|
-
* @property {number} [amount]
|
|
338
|
-
* @property {string} [type]
|
|
339
|
-
* @property {string} [invoice_id]
|
|
340
|
-
* @property {string} [created_at]
|
|
341
|
-
* @property {string} [modified_at]
|
|
342
|
-
*/
|
|
343
|
-
/**
|
|
344
|
-
* @typedef InvoicesDataClient
|
|
345
|
-
* @property {string} [name]
|
|
346
|
-
* @property {string} [email]
|
|
347
|
-
* @property {string} [phone]
|
|
348
|
-
* @property {string[]} [address_lines]
|
|
349
|
-
*/
|
|
350
|
-
/**
|
|
351
|
-
* @typedef InvoicesDataPeriod
|
|
352
|
-
* @property {string} [start]
|
|
353
|
-
* @property {string} [end]
|
|
354
|
-
*/
|
|
355
|
-
/**
|
|
356
|
-
* @typedef InvoicesDataPaymentMethod
|
|
357
|
-
* @property {string} [pg_payment_method_id]
|
|
358
|
-
*/
|
|
359
|
-
/**
|
|
360
|
-
* @typedef InvoicesData
|
|
361
|
-
* @property {string} [_id]
|
|
362
|
-
* @property {Object} [documents]
|
|
363
|
-
* @property {Object} [payment]
|
|
364
|
-
* @property {number} [old_settlement]
|
|
365
|
-
* @property {number} [credit_balance]
|
|
366
|
-
* @property {Object} [discount]
|
|
367
|
-
* @property {Object} [taxation]
|
|
368
|
-
* @property {number} [credit_note_amount]
|
|
369
|
-
* @property {InvoicesDataClient} [client]
|
|
370
|
-
* @property {boolean} [auto_advance]
|
|
371
|
-
* @property {string} [currency]
|
|
372
|
-
* @property {boolean} [paid]
|
|
373
|
-
* @property {number} [attemp]
|
|
374
|
-
* @property {string} [collection_method]
|
|
375
|
-
* @property {string} [subscriber_id]
|
|
376
|
-
* @property {string} [invoice_url]
|
|
377
|
-
* @property {string} [number]
|
|
378
|
-
* @property {Object} [pg_data]
|
|
379
|
-
* @property {InvoicesDataPeriod} [period]
|
|
380
|
-
* @property {string} [receipt_number]
|
|
381
|
-
* @property {string} [statement_descriptor]
|
|
382
|
-
* @property {string} [current_status]
|
|
383
|
-
* @property {InvoiceDetailsStatusTrail[]} [status_trail]
|
|
384
|
-
* @property {number} [subtotal]
|
|
385
|
-
* @property {number} [total]
|
|
386
|
-
* @property {string} [subscription]
|
|
387
|
-
* @property {string} [next_action_time]
|
|
388
|
-
* @property {string} [created_at]
|
|
389
|
-
* @property {string} [modified_at]
|
|
390
|
-
* @property {string} [hash_identifier]
|
|
391
|
-
* @property {InvoicesDataPaymentMethod} [payment_method]
|
|
392
|
-
* @property {InvoiceItems[]} [invoice_items]
|
|
393
|
-
*/
|
|
394
|
-
/**
|
|
395
|
-
* @typedef Invoices
|
|
396
|
-
* @property {InvoicesData[]} [data]
|
|
397
|
-
* @property {number} [start]
|
|
398
|
-
* @property {number} [end]
|
|
399
|
-
* @property {number} [limit]
|
|
400
|
-
* @property {number} [page]
|
|
401
|
-
* @property {number} [total]
|
|
402
|
-
*/
|
|
403
|
-
/**
|
|
404
|
-
* @typedef Phone
|
|
405
|
-
* @property {string} [phone_number]
|
|
406
|
-
* @property {string} [phone_country_code]
|
|
407
|
-
*/
|
|
408
|
-
/**
|
|
409
|
-
* @typedef SubscriptionBillingAddress
|
|
410
|
-
* @property {string} [country]
|
|
411
|
-
* @property {string} [state]
|
|
412
|
-
* @property {string} [city]
|
|
413
|
-
* @property {string} [line1]
|
|
414
|
-
* @property {string} [line2]
|
|
415
|
-
* @property {string} [postal_code]
|
|
416
|
-
*/
|
|
417
|
-
/**
|
|
418
|
-
* @typedef SubscriptionCustomer
|
|
419
|
-
* @property {Phone} [phone]
|
|
420
|
-
* @property {SubscriptionBillingAddress} [billing_address]
|
|
421
|
-
* @property {string} [_id]
|
|
422
|
-
* @property {string} [unique_id]
|
|
423
|
-
* @property {string} [type]
|
|
424
|
-
* @property {string} [name]
|
|
425
|
-
* @property {string} [email]
|
|
426
|
-
* @property {string} [created_at]
|
|
427
|
-
* @property {string} [modified_at]
|
|
428
|
-
* @property {Object} [data]
|
|
429
|
-
* @property {Object} [documents]
|
|
430
|
-
* @property {boolean} [consent]
|
|
431
|
-
* @property {boolean} [comms]
|
|
432
|
-
* @property {number} [credit_balance]
|
|
433
|
-
* @property {BusinessCountryInfo} [business_country_info]
|
|
434
|
-
*/
|
|
435
|
-
/**
|
|
436
|
-
* @typedef SubscriptionCustomerCreate
|
|
437
|
-
* @property {Phone} [phone]
|
|
438
|
-
* @property {SubscriptionBillingAddress} [billing_address]
|
|
439
|
-
* @property {string} [unique_id]
|
|
440
|
-
* @property {string} [type]
|
|
441
|
-
* @property {string} [name]
|
|
442
|
-
* @property {string} [email]
|
|
443
|
-
*/
|
|
444
|
-
/**
|
|
445
|
-
* @typedef SubscriptionCurrentPeriod
|
|
446
|
-
* @property {string} [start]
|
|
447
|
-
* @property {string} [end]
|
|
448
|
-
*/
|
|
449
|
-
/**
|
|
450
|
-
* @typedef SubscriptionPauseCollection
|
|
451
|
-
* @property {string} [behavior]
|
|
452
|
-
* @property {string} [resume_at]
|
|
453
|
-
*/
|
|
454
|
-
/**
|
|
455
|
-
* @typedef SubscriptionTrial
|
|
456
|
-
* @property {string} [start]
|
|
457
|
-
* @property {string} [end]
|
|
458
|
-
*/
|
|
459
|
-
/**
|
|
460
|
-
* @typedef SubscriptionInvoiceSettings
|
|
461
|
-
* @property {boolean} [generation]
|
|
462
|
-
* @property {boolean} [charging]
|
|
463
|
-
*/
|
|
464
|
-
/**
|
|
465
|
-
* @typedef Subscription
|
|
466
|
-
* @property {Object} [meta]
|
|
467
|
-
* @property {SubscriptionCurrentPeriod} [current_period]
|
|
468
|
-
* @property {SubscriptionPauseCollection} [pause_collection]
|
|
469
|
-
* @property {SubscriptionTrial} [trial]
|
|
470
|
-
* @property {SubscriptionInvoiceSettings} [invoice_settings]
|
|
471
|
-
* @property {boolean} [is_active]
|
|
472
|
-
* @property {boolean} [cancel_at_period_end]
|
|
473
|
-
* @property {string} [_id]
|
|
474
|
-
* @property {string} [subscriber_id]
|
|
475
|
-
* @property {string} [plan_id]
|
|
476
|
-
* @property {string} [product_suite_id]
|
|
477
|
-
* @property {Plan} [plan_data]
|
|
478
|
-
* @property {string} [current_status]
|
|
479
|
-
* @property {string} [collection_method]
|
|
480
|
-
* @property {string} [created_at]
|
|
481
|
-
* @property {string} [modified_at]
|
|
482
|
-
* @property {string} [latest_invoice]
|
|
483
|
-
* @property {string} [channel_type]
|
|
484
|
-
* @property {boolean} [freezed]
|
|
485
|
-
* @property {string} [cancel_at]
|
|
486
|
-
* @property {string} [canceled_at]
|
|
487
|
-
*/
|
|
488
|
-
/**
|
|
489
|
-
* @typedef SubscriptionStatus
|
|
490
|
-
* @property {boolean} [is_enabled]
|
|
491
|
-
* @property {Subscription} [subscription]
|
|
492
|
-
* @property {InvoicesData} [latest_invoice]
|
|
493
|
-
* @property {Plan} [next_plan]
|
|
494
|
-
* @property {Subscription[]} [current_subscriptions]
|
|
495
|
-
* @property {number} [mandate_amount]
|
|
496
|
-
* @property {string} [message]
|
|
497
|
-
*/
|
|
498
|
-
/**
|
|
499
|
-
* @typedef SubscriptionLimitApplication
|
|
500
|
-
* @property {boolean} [enabled]
|
|
501
|
-
* @property {number} [hard_limit]
|
|
502
|
-
* @property {number} [soft_limit]
|
|
503
|
-
*/
|
|
504
|
-
/**
|
|
505
|
-
* @typedef SubscriptionLimitMarketplace
|
|
506
|
-
* @property {boolean} [enabled]
|
|
507
|
-
*/
|
|
508
|
-
/**
|
|
509
|
-
* @typedef SubscriptionLimitOtherPlatform
|
|
510
|
-
* @property {boolean} [enabled]
|
|
511
|
-
*/
|
|
512
|
-
/**
|
|
513
|
-
* @typedef SubscriptionLimitTeam
|
|
514
|
-
* @property {number} [limit]
|
|
515
|
-
*/
|
|
516
|
-
/**
|
|
517
|
-
* @typedef SubscriptionLimitProducts
|
|
518
|
-
* @property {boolean} [bulk]
|
|
519
|
-
* @property {number} [limit]
|
|
520
|
-
*/
|
|
521
|
-
/**
|
|
522
|
-
* @typedef SubscriptionLimitExtensions
|
|
523
|
-
* @property {boolean} [enabled]
|
|
524
|
-
* @property {number} [limit]
|
|
525
|
-
*/
|
|
526
|
-
/**
|
|
527
|
-
* @typedef SubscriptionLimitIntegrations
|
|
528
|
-
* @property {boolean} [enabled]
|
|
529
|
-
* @property {number} [limit]
|
|
530
|
-
*/
|
|
531
|
-
/**
|
|
532
|
-
* @typedef SubscriptionLimit
|
|
533
|
-
* @property {SubscriptionLimitApplication} [application]
|
|
534
|
-
* @property {SubscriptionLimitMarketplace} [marketplace]
|
|
535
|
-
* @property {SubscriptionLimitOtherPlatform} [other_platform]
|
|
536
|
-
* @property {SubscriptionLimitTeam} [team]
|
|
537
|
-
* @property {SubscriptionLimitProducts} [products]
|
|
538
|
-
* @property {SubscriptionLimitExtensions} [extensions]
|
|
539
|
-
* @property {SubscriptionLimitIntegrations} [integrations]
|
|
540
|
-
* @property {boolean} [is_trial_plan]
|
|
541
|
-
*/
|
|
542
|
-
/**
|
|
543
|
-
* @typedef IntentReq
|
|
544
|
-
* @property {string} [unique_external_id]
|
|
545
|
-
* @property {string} [plan_id]
|
|
546
|
-
*/
|
|
547
|
-
/**
|
|
548
|
-
* @typedef PutIntentReq
|
|
549
|
-
* @property {string} [unique_external_id]
|
|
550
|
-
* @property {string} [setup_intent_id]
|
|
551
|
-
* @property {string} [payment_method_id]
|
|
552
|
-
* @property {boolean} [set_default]
|
|
553
|
-
*/
|
|
554
|
-
/**
|
|
555
|
-
* @typedef SubscriptionActivateReq
|
|
556
|
-
* @property {string} [unique_id]
|
|
557
|
-
* @property {string} [type]
|
|
558
|
-
* @property {string} [product_suite]
|
|
559
|
-
* @property {string} [plan_id]
|
|
560
|
-
* @property {string} [payment_method]
|
|
561
|
-
* @property {string} [subscription_id]
|
|
562
|
-
* @property {string} [coupon]
|
|
563
|
-
* @property {Object} [meta]
|
|
564
|
-
*/
|
|
565
|
-
/**
|
|
566
|
-
* @typedef SubscriptionActivateRes
|
|
567
|
-
* @property {boolean} [success]
|
|
568
|
-
* @property {Subscription} [data]
|
|
569
|
-
*/
|
|
570
|
-
/**
|
|
571
|
-
* @typedef CancelSubscriptionReq
|
|
572
|
-
* @property {string} [unique_id]
|
|
573
|
-
* @property {string} [type]
|
|
574
|
-
* @property {string} [product_suite]
|
|
575
|
-
* @property {string} [subscription_id]
|
|
576
|
-
*/
|
|
577
|
-
/**
|
|
578
|
-
* @typedef CancelSubscriptionRes
|
|
579
|
-
* @property {boolean} [success]
|
|
580
|
-
* @property {Subscription} [data]
|
|
581
|
-
*/
|
|
582
|
-
/**
|
|
583
|
-
* @typedef PlanStatusUpdateReq
|
|
584
|
-
* @property {string} [plan_id]
|
|
585
|
-
* @property {string} [reason]
|
|
586
|
-
* @property {string} [seller_status]
|
|
587
|
-
*/
|
|
588
|
-
/**
|
|
589
|
-
* @typedef SunscribePlan
|
|
590
|
-
* @property {string} [entity_type]
|
|
591
|
-
* @property {string} [collection_type]
|
|
592
|
-
* @property {string} [plan_id]
|
|
593
|
-
* @property {string} [callback_url]
|
|
594
|
-
* @property {Meta} [meta]
|
|
595
|
-
*/
|
|
596
|
-
/**
|
|
597
|
-
* @typedef Meta
|
|
598
|
-
* @property {boolean} [subscribe]
|
|
599
|
-
* @property {boolean} [is_custom_plan]
|
|
600
|
-
* @property {boolean} [is_plan_upgrade]
|
|
601
|
-
*/
|
|
602
|
-
/**
|
|
603
|
-
* @typedef SubscribePlanRes
|
|
604
|
-
* @property {string} [redirect_url]
|
|
605
|
-
* @property {string} [transaction_id]
|
|
606
|
-
* @property {string} [current_status]
|
|
607
|
-
* @property {Meta} [meta]
|
|
608
|
-
*/
|
|
609
|
-
/**
|
|
610
|
-
* @typedef EntityDetail
|
|
611
|
-
* @property {string} [entity]
|
|
612
|
-
* @property {Subscription} [item]
|
|
613
|
-
*/
|
|
614
|
-
/**
|
|
615
|
-
* @typedef PaymentOptions
|
|
616
|
-
* @property {string} [_id]
|
|
617
|
-
* @property {string} [name]
|
|
618
|
-
* @property {string} [description]
|
|
619
|
-
* @property {string} [logo]
|
|
620
|
-
* @property {string} [aggregator_id]
|
|
621
|
-
* @property {string} [aggregator]
|
|
622
|
-
* @property {string} [created_at]
|
|
623
|
-
* @property {string} [modified_at]
|
|
624
|
-
* @property {number} [__v]
|
|
625
|
-
*/
|
|
626
|
-
/**
|
|
627
|
-
* @typedef VerifyPaymentReq
|
|
628
|
-
* @property {string} [razorpay_payment_id]
|
|
629
|
-
* @property {string} [razorpay_order_id]
|
|
630
|
-
* @property {string} [razorpay_signature]
|
|
631
|
-
* @property {number} [status_code]
|
|
632
|
-
* @property {string} [provider_type]
|
|
633
|
-
*/
|
|
634
|
-
/**
|
|
635
|
-
* @typedef Documents
|
|
636
|
-
* @property {string} [pan]
|
|
637
|
-
* @property {string} [gst]
|
|
638
|
-
*/
|
|
639
|
-
/**
|
|
640
|
-
* @typedef BillingAddress
|
|
641
|
-
* @property {string} [country]
|
|
642
|
-
* @property {string} [state]
|
|
643
|
-
* @property {string} [city]
|
|
644
|
-
* @property {string} [line1]
|
|
645
|
-
* @property {string} [line2]
|
|
646
|
-
* @property {string} [postal_code]
|
|
647
|
-
* @property {string} [country_code]
|
|
648
|
-
*/
|
|
649
|
-
/**
|
|
650
|
-
* @typedef Currency
|
|
651
|
-
* @property {string} [code]
|
|
652
|
-
* @property {string} [symbol]
|
|
653
|
-
* @property {string} [name]
|
|
654
|
-
*/
|
|
655
|
-
/**
|
|
656
|
-
* @typedef BusinessCountryInfo
|
|
657
|
-
* @property {string} [country]
|
|
658
|
-
* @property {string} [country_code]
|
|
659
|
-
* @property {Currency} [currency]
|
|
660
|
-
* @property {string} [timezone]
|
|
661
|
-
*/
|
|
662
|
-
/**
|
|
663
|
-
* @typedef SubscriberData
|
|
664
|
-
* @property {boolean} [pg_user_exists]
|
|
665
|
-
* @property {Object} [id]
|
|
666
|
-
* @property {string} [pg_customer_id]
|
|
667
|
-
* @property {string} [default_payment_method]
|
|
668
|
-
*/
|
|
669
|
-
/**
|
|
670
|
-
* @typedef Subscriber
|
|
671
|
-
* @property {Documents} [documents]
|
|
672
|
-
* @property {Object} [phone]
|
|
673
|
-
* @property {BillingAddress} [billing_address]
|
|
674
|
-
* @property {boolean} [consent]
|
|
675
|
-
* @property {boolean} [comms]
|
|
676
|
-
* @property {string} [_id]
|
|
677
|
-
* @property {string} [type]
|
|
678
|
-
* @property {string} [unique_id]
|
|
679
|
-
* @property {string} [name]
|
|
680
|
-
* @property {string} [email]
|
|
681
|
-
* @property {BusinessCountryInfo} [business_country_info]
|
|
682
|
-
* @property {string} [created_at]
|
|
683
|
-
* @property {string} [modified_at]
|
|
684
|
-
* @property {number} [credit_balance]
|
|
685
|
-
* @property {SubscriberData} [data]
|
|
686
|
-
*/
|
|
687
|
-
/**
|
|
688
|
-
* @typedef Author
|
|
689
|
-
* @property {Object} [modified_by_details]
|
|
690
|
-
*/
|
|
691
|
-
/**
|
|
692
|
-
* @typedef EndingBalance
|
|
693
|
-
* @property {number} [amount]
|
|
694
|
-
* @property {string} [old_entry_ref]
|
|
695
|
-
*/
|
|
696
|
-
/**
|
|
697
|
-
* @typedef PaymentData
|
|
698
|
-
* @property {string} [transaction_id]
|
|
699
|
-
* @property {string} [aggregator]
|
|
700
|
-
* @property {string} [aggregator_order_id]
|
|
701
|
-
*/
|
|
702
|
-
/**
|
|
703
|
-
* @typedef CreditTransaction
|
|
704
|
-
* @property {Object} [entity]
|
|
705
|
-
* @property {Author} [author]
|
|
706
|
-
* @property {string} [_id]
|
|
707
|
-
* @property {number} [amount]
|
|
708
|
-
* @property {string} [currency]
|
|
709
|
-
* @property {string} [subscriber_id]
|
|
710
|
-
* @property {string} [description]
|
|
711
|
-
* @property {Object} [is_test]
|
|
712
|
-
* @property {EndingBalance} [ending_balance]
|
|
713
|
-
* @property {PaymentData} [payment]
|
|
714
|
-
* @property {string} [type]
|
|
715
|
-
* @property {string} [created_at]
|
|
716
|
-
* @property {string} [modified_at]
|
|
717
|
-
*/
|
|
718
|
-
/**
|
|
719
|
-
* @typedef VerifyPaymentData
|
|
720
|
-
* @property {boolean} [success]
|
|
721
|
-
* @property {Subscriber} [subscriber]
|
|
722
|
-
* @property {CreditTransaction} [credit_transaction]
|
|
723
|
-
*/
|
|
724
|
-
/**
|
|
725
|
-
* @typedef VerifyPaymentRes
|
|
726
|
-
* @property {string} [status]
|
|
727
|
-
* @property {VerifyPaymentData} [data]
|
|
728
|
-
*/
|
|
729
|
-
/**
|
|
730
|
-
* @typedef DefaultMerchants
|
|
731
|
-
* @property {string} [stripe]
|
|
732
|
-
*/
|
|
733
|
-
/**
|
|
734
|
-
* @typedef GlobalSettingsPayment
|
|
735
|
-
* @property {DefaultMerchants} [default_merchants]
|
|
736
|
-
*/
|
|
737
|
-
/**
|
|
738
|
-
* @typedef GlobalSettingsData
|
|
739
|
-
* @property {GlobalSettingsPayment} [payment]
|
|
740
|
-
* @property {boolean} [freeze_panel]
|
|
741
|
-
* @property {string} [_id]
|
|
742
|
-
* @property {string} [created_at]
|
|
743
|
-
* @property {string} [modified_at]
|
|
744
|
-
*/
|
|
745
|
-
/**
|
|
746
|
-
* @typedef GlobalSettings
|
|
747
|
-
* @property {string} [status]
|
|
748
|
-
* @property {GlobalSettingsData} [data]
|
|
749
|
-
*/
|
|
750
|
-
/**
|
|
751
|
-
* @typedef MethodChecks
|
|
752
|
-
* @property {string} [address_line1_check]
|
|
753
|
-
* @property {string} [address_postal_code_check]
|
|
754
|
-
* @property {string} [cvc_check]
|
|
755
|
-
*/
|
|
756
|
-
/**
|
|
757
|
-
* @typedef MethodNetworks
|
|
758
|
-
* @property {string[]} [available]
|
|
759
|
-
* @property {string} [preferred]
|
|
760
|
-
*/
|
|
761
|
-
/**
|
|
762
|
-
* @typedef MethodSecureUsage
|
|
763
|
-
* @property {boolean} [supported]
|
|
764
|
-
*/
|
|
765
|
-
/**
|
|
766
|
-
* @typedef MethodDetails
|
|
767
|
-
* @property {string} [id]
|
|
768
|
-
* @property {string} [type]
|
|
769
|
-
* @property {boolean} [mandate_available]
|
|
770
|
-
* @property {number} [mandate_amount]
|
|
771
|
-
* @property {string} [pg_payment_method_id]
|
|
772
|
-
* @property {boolean} [is_default]
|
|
773
|
-
* @property {SubscriptionMethodData} [data]
|
|
774
|
-
*/
|
|
775
|
-
/**
|
|
776
|
-
* @typedef SubscriptionMethodData
|
|
777
|
-
* @property {string} [brand]
|
|
778
|
-
* @property {MethodChecks} [checks]
|
|
779
|
-
* @property {string} [country]
|
|
780
|
-
* @property {number} [exp_month]
|
|
781
|
-
* @property {number} [exp_year]
|
|
782
|
-
* @property {string} [fingerprint]
|
|
783
|
-
* @property {string} [funding]
|
|
784
|
-
* @property {string} [generated_from]
|
|
785
|
-
* @property {string} [last4]
|
|
786
|
-
* @property {MethodNetworks} [networks]
|
|
787
|
-
* @property {MethodSecureUsage} [three_d_secure_usage]
|
|
788
|
-
* @property {string} [wallet]
|
|
789
|
-
* @property {string} [name]
|
|
790
|
-
* @property {boolean} [is_default]
|
|
791
|
-
*/
|
|
792
|
-
/**
|
|
793
|
-
* @typedef SubscriptionMethods
|
|
794
|
-
* @property {boolean} [success]
|
|
795
|
-
* @property {MethodDetails[]} [data]
|
|
796
|
-
*/
|
|
797
|
-
/**
|
|
798
|
-
* @typedef ConfigPublicKey
|
|
799
|
-
* @property {string} [public_key]
|
|
800
|
-
*/
|
|
801
|
-
/**
|
|
802
|
-
* @typedef ConfigRes
|
|
803
|
-
* @property {boolean} [success]
|
|
804
|
-
* @property {string} [aggregator]
|
|
805
|
-
* @property {ConfigPublicKey} [config]
|
|
806
|
-
*/
|
|
807
|
-
/**
|
|
808
|
-
* @typedef PlanChangeData
|
|
809
|
-
* @property {number} [total]
|
|
810
|
-
* @property {number} [credit_note_amount]
|
|
811
|
-
* @property {number} [settlement]
|
|
812
|
-
* @property {number} [taxable_amount]
|
|
813
|
-
* @property {number} [gst_amount]
|
|
814
|
-
* @property {number} [gross_total]
|
|
815
|
-
* @property {number} [gst]
|
|
816
|
-
* @property {number} [discount]
|
|
817
|
-
*/
|
|
818
|
-
/**
|
|
819
|
-
* @typedef PlanChangeDetails
|
|
820
|
-
* @property {string} [status]
|
|
821
|
-
* @property {PlanChangeData} [data]
|
|
822
|
-
*/
|
|
823
|
-
/**
|
|
824
|
-
* @typedef TransactionMeta
|
|
825
|
-
* @property {string} [invoice_id]
|
|
826
|
-
*/
|
|
827
|
-
/**
|
|
828
|
-
* @typedef PaymentTransactionDetails
|
|
829
|
-
* @property {Object} [aggregator]
|
|
830
|
-
* @property {string} [currency]
|
|
831
|
-
* @property {string} [current_status]
|
|
832
|
-
* @property {string} [_id]
|
|
833
|
-
* @property {string} [subscriber_id]
|
|
834
|
-
* @property {number} [amount]
|
|
835
|
-
* @property {string} [entity_type]
|
|
836
|
-
* @property {string} [collection_type]
|
|
837
|
-
* @property {TransactionMeta} [meta]
|
|
838
|
-
* @property {string} [created_at]
|
|
839
|
-
* @property {string} [modified_at]
|
|
840
|
-
*/
|
|
841
|
-
/**
|
|
842
|
-
* @typedef PaymentItems
|
|
843
|
-
* @property {string} [name]
|
|
844
|
-
* @property {string} [code]
|
|
845
|
-
* @property {string} [aggregator]
|
|
846
|
-
*/
|
|
847
|
-
/**
|
|
848
|
-
* @typedef GetPaymentOptions
|
|
849
|
-
* @property {PaymentItems[]} [payment_options]
|
|
850
|
-
*/
|
|
851
|
-
/**
|
|
852
|
-
* @typedef TopupReq
|
|
853
|
-
* @property {number} [amount]
|
|
854
|
-
* @property {string} [currency]
|
|
855
|
-
* @property {string} [provider_type]
|
|
856
|
-
*/
|
|
857
|
-
/**
|
|
858
|
-
* @typedef SetupMandateReq
|
|
859
|
-
* @property {string} [intent_id]
|
|
860
|
-
* @property {string} [payment_method_id]
|
|
861
|
-
*/
|
|
862
|
-
/**
|
|
863
|
-
* @typedef SetupPaymentReq
|
|
864
|
-
* @property {string} [payment_method]
|
|
865
|
-
* @property {string} [payment_id]
|
|
866
|
-
* @property {string} [plan_id]
|
|
867
|
-
* @property {string} [invoice_id]
|
|
868
|
-
*/
|
|
869
|
-
/**
|
|
870
|
-
* @typedef SubscriptionRenewReq
|
|
871
|
-
* @property {string} [invoice_id]
|
|
872
|
-
* @property {string} [entity_type]
|
|
873
|
-
* @property {string} [collection_type]
|
|
874
|
-
* @property {string} [callback_url]
|
|
875
|
-
* @property {RenewMeta} [meta]
|
|
876
|
-
*/
|
|
877
|
-
/**
|
|
878
|
-
* @typedef RenewMeta
|
|
879
|
-
* @property {boolean} [invoice_payment]
|
|
880
|
-
* @property {boolean} [renew]
|
|
881
|
-
*/
|
|
882
|
-
/**
|
|
883
|
-
* @typedef SubscriptionMethodsReq
|
|
884
|
-
* @property {string} [unique_external_id]
|
|
885
|
-
* @property {string} [setup_intent_id]
|
|
886
|
-
* @property {string} [pg_payment_method_id]
|
|
887
|
-
* @property {boolean} [set_default]
|
|
888
|
-
*/
|
|
889
|
-
/**
|
|
890
|
-
* @typedef CreditTransactionResponse
|
|
891
|
-
* @property {number} [total] - Total number of transactions
|
|
892
|
-
* @property {number} [limit] - Maximum number of transactions per page
|
|
893
|
-
* @property {number} [page] - Current page number
|
|
894
|
-
* @property {number} [pages] - Total number of pages
|
|
895
|
-
* @property {CreditTransaction[]} [items]
|
|
896
|
-
*/
|
|
897
|
-
/**
|
|
898
|
-
* @typedef DowngradePlanReq
|
|
899
|
-
* @property {string} [unique_id]
|
|
900
|
-
* @property {string} [type]
|
|
901
|
-
* @property {string} [product_suite]
|
|
902
|
-
* @property {string} [plan_id]
|
|
903
|
-
* @property {string} [reason]
|
|
904
|
-
* @property {string} [platform]
|
|
905
|
-
*/
|
|
906
|
-
/**
|
|
907
|
-
* @typedef Taxation
|
|
908
|
-
* @property {number} [gst] - GST percentage
|
|
909
|
-
*/
|
|
910
|
-
/**
|
|
911
|
-
* @typedef OneTimeFees
|
|
912
|
-
* @property {number} [developement]
|
|
913
|
-
* @property {number} [marketing]
|
|
914
|
-
*/
|
|
915
|
-
/**
|
|
916
|
-
* @typedef CreditLine
|
|
917
|
-
* @property {boolean} [is_active]
|
|
918
|
-
*/
|
|
919
|
-
/**
|
|
920
|
-
* @typedef StatusMessage
|
|
921
|
-
* @property {string} [status]
|
|
922
|
-
* @property {string} [message]
|
|
923
|
-
* @property {boolean} [success]
|
|
924
|
-
* @property {string} [code]
|
|
925
|
-
*/
|
|
926
|
-
/**
|
|
927
|
-
* @typedef PaymentCollectReq
|
|
928
|
-
* @property {string} [transaction_id]
|
|
929
|
-
* @property {boolean} [credit_balance]
|
|
930
|
-
* @property {string} [payment_mode]
|
|
931
|
-
* @property {string} [payment_method]
|
|
932
|
-
* @property {string} [invoice_id]
|
|
933
|
-
*/
|
|
934
|
-
/**
|
|
935
|
-
* @typedef SubscriptionRenewResMeta
|
|
936
|
-
* @property {boolean} [invoice_payment]
|
|
937
|
-
* @property {boolean} [renew]
|
|
938
|
-
*/
|
|
939
|
-
/**
|
|
940
|
-
* @typedef SubscriptionRenewRes
|
|
941
|
-
* @property {string} [redirect_url]
|
|
942
|
-
* @property {string} [transaction_id]
|
|
943
|
-
* @property {string} [current_status]
|
|
944
|
-
* @property {SubscriptionRenewResMeta} [meta]
|
|
945
|
-
*/
|
|
946
|
-
/**
|
|
947
|
-
* @typedef SetupIntentRes
|
|
948
|
-
* @property {boolean} [success]
|
|
949
|
-
* @property {SetupIntentData} [data]
|
|
950
|
-
*/
|
|
951
|
-
/**
|
|
952
|
-
* @typedef SetupIntentData
|
|
953
|
-
* @property {string} [id]
|
|
954
|
-
* @property {string} [client_secret]
|
|
955
|
-
* @property {Object} [customer]
|
|
956
|
-
* @property {string} [status]
|
|
957
|
-
*/
|
|
958
|
-
/**
|
|
959
|
-
* @typedef SetupPayment
|
|
960
|
-
* @property {string} [id]
|
|
961
|
-
* @property {string} [status]
|
|
962
|
-
* @property {Object} [customer]
|
|
963
|
-
* @property {string} [client_secret]
|
|
964
|
-
* @property {string} [payment_method]
|
|
965
|
-
* @property {string} [mandate]
|
|
966
|
-
* @property {PaymentMethodOptions} [payment_method_options]
|
|
967
|
-
*/
|
|
968
|
-
/**
|
|
969
|
-
* @typedef PaymentMethodOptions
|
|
970
|
-
* @property {Card} [card]
|
|
971
|
-
*/
|
|
972
|
-
/**
|
|
973
|
-
* @typedef Card
|
|
974
|
-
* @property {MandateOptions} [mandate_options]
|
|
975
|
-
*/
|
|
976
|
-
/**
|
|
977
|
-
* @typedef MandateOptions
|
|
978
|
-
* @property {number} [amount]
|
|
979
|
-
*/
|
|
980
|
-
/**
|
|
981
|
-
* @typedef Message
|
|
982
|
-
* @property {string} [message]
|
|
983
|
-
*/
|
|
984
|
-
/**
|
|
985
|
-
* @typedef TopupRes
|
|
986
|
-
* @property {string} [status]
|
|
987
|
-
* @property {string} [aggregator_order_id]
|
|
988
|
-
* @property {number} [amount]
|
|
989
|
-
* @property {string} [currency]
|
|
990
|
-
* @property {string} [transaction_id]
|
|
991
|
-
*/
|
|
992
|
-
/**
|
|
993
|
-
* @typedef CancelTopupReq
|
|
994
|
-
* @property {string} [order_id]
|
|
995
|
-
*/
|
|
996
|
-
/**
|
|
997
|
-
* @typedef CancelTopupRes
|
|
998
|
-
* @property {string} [_id]
|
|
999
|
-
* @property {string} [subscriber_id]
|
|
1000
|
-
* @property {number} [amount]
|
|
1001
|
-
* @property {string} [currency]
|
|
1002
|
-
* @property {string} [aggregator]
|
|
1003
|
-
* @property {string} [aggregator_order_id]
|
|
1004
|
-
* @property {string} [created_at]
|
|
1005
|
-
* @property {string} [modified_at]
|
|
1006
|
-
* @property {number} [__v]
|
|
1007
|
-
* @property {string} [aggregator_status]
|
|
1008
|
-
* @property {string} [current_status]
|
|
1009
|
-
*/
|
|
1010
|
-
/**
|
|
1011
|
-
* @typedef DefaultReq
|
|
1012
|
-
* @property {string} [payment_method_id]
|
|
213
|
+
* @property {string} [modified_at] - Date and time when the charge details were
|
|
214
|
+
* last modified.
|
|
215
|
+
* @property {string} [created_at] - Date and time when the charge was created.
|
|
216
|
+
* @property {boolean} [is_test] - Indicates whether the charge is for testing purposes.
|
|
217
|
+
* @property {string} [company_id] - Company id.
|
|
218
|
+
* @property {Object} [meta] - Additional metadata associated with the charge.
|
|
219
|
+
* @property {number} [__v] - Internal version key for the charge record.
|
|
1013
220
|
*/
|
|
1014
221
|
declare class BillingPlatformModel {
|
|
1015
222
|
}
|
|
1016
223
|
declare namespace BillingPlatformModel {
|
|
1017
|
-
export {
|
|
224
|
+
export { SubscriptionChargeRes, ChargeDetails, ResourceNotFound, CreateOneTimeCharge, CreateOneTimeChargeResponse, BadRequest, CreateSubscriptionCharge, CreateSubscriptionResponse, EntityChargePrice, ChargeRecurring, SubscriptionTrialPeriod, Charge, OneTimeChargeItem, ChargeLineItem, EntitySubscription, OneTimeChargeEntity, EntityChargeRecurring, EntityChargeDetails };
|
|
1018
225
|
}
|
|
1019
|
-
/** @returns {CompanyInfo} */
|
|
1020
|
-
declare function CompanyInfo(): CompanyInfo;
|
|
1021
|
-
type CompanyInfo = {
|
|
1022
|
-
company_name?: string;
|
|
1023
|
-
gstin?: string;
|
|
1024
|
-
address?: string;
|
|
1025
|
-
address_details?: AddressDetails;
|
|
1026
|
-
pan?: string;
|
|
1027
|
-
phone?: string;
|
|
1028
|
-
email?: string;
|
|
1029
|
-
cin?: string;
|
|
1030
|
-
};
|
|
1031
|
-
/** @returns {AddressDetails} */
|
|
1032
|
-
declare function AddressDetails(): AddressDetails;
|
|
1033
|
-
type AddressDetails = {
|
|
1034
|
-
address_line_1?: string;
|
|
1035
|
-
address_line_2?: string;
|
|
1036
|
-
city?: string;
|
|
1037
|
-
pincode?: string;
|
|
1038
|
-
state?: string;
|
|
1039
|
-
country?: string;
|
|
1040
|
-
};
|
|
1041
|
-
/** @returns {InvoiceData} */
|
|
1042
|
-
declare function InvoiceData(): InvoiceData;
|
|
1043
|
-
type InvoiceData = {
|
|
1044
|
-
invoice?: InvoiceDetailsData;
|
|
1045
|
-
invoice_items?: InvoiceItems[];
|
|
1046
|
-
shopsense_details?: CompanyInfo;
|
|
1047
|
-
};
|
|
1048
|
-
/** @returns {InvoiceDetailsData} */
|
|
1049
|
-
declare function InvoiceDetailsData(): InvoiceDetailsData;
|
|
1050
|
-
type InvoiceDetailsData = {
|
|
1051
|
-
attemp?: number;
|
|
1052
|
-
documents?: any;
|
|
1053
|
-
payment?: any;
|
|
1054
|
-
period?: Period;
|
|
1055
|
-
client?: Client;
|
|
1056
|
-
discount?: any;
|
|
1057
|
-
taxation?: any;
|
|
1058
|
-
_id?: string;
|
|
1059
|
-
auto_advance?: boolean;
|
|
1060
|
-
collection_method?: string;
|
|
1061
|
-
subscriber_id?: string;
|
|
1062
|
-
currency?: string;
|
|
1063
|
-
invoice_url?: string;
|
|
1064
|
-
number?: string;
|
|
1065
|
-
paid?: boolean;
|
|
1066
|
-
pg_data?: any;
|
|
1067
|
-
receipt_number?: string;
|
|
1068
|
-
statement_descriptor?: string;
|
|
1069
|
-
current_status?: string;
|
|
1070
|
-
status_trail?: StatusTrail[];
|
|
1071
|
-
subtotal?: number;
|
|
1072
|
-
total?: number;
|
|
1073
|
-
old_settlement?: number;
|
|
1074
|
-
credit_balance?: number;
|
|
1075
|
-
subscription?: string;
|
|
1076
|
-
attempt?: number;
|
|
1077
|
-
next_action_time?: string;
|
|
1078
|
-
credit_note_amount?: number;
|
|
1079
|
-
created_at?: string;
|
|
1080
|
-
modified_at?: string;
|
|
1081
|
-
};
|
|
1082
|
-
/** @returns {Client} */
|
|
1083
|
-
declare function Client(): Client;
|
|
1084
|
-
type Client = {
|
|
1085
|
-
name?: string;
|
|
1086
|
-
email?: string;
|
|
1087
|
-
phone?: string;
|
|
1088
|
-
address_lines?: string[];
|
|
1089
|
-
};
|
|
1090
|
-
/** @returns {Period} */
|
|
1091
|
-
declare function Period(): Period;
|
|
1092
|
-
type Period = {
|
|
1093
|
-
start?: string;
|
|
1094
|
-
end?: string;
|
|
1095
|
-
};
|
|
1096
|
-
/** @returns {StatusTrail} */
|
|
1097
|
-
declare function StatusTrail(): StatusTrail;
|
|
1098
|
-
type StatusTrail = {
|
|
1099
|
-
value?: string;
|
|
1100
|
-
timestamp?: string;
|
|
1101
|
-
_id?: string;
|
|
1102
|
-
};
|
|
1103
|
-
/** @returns {PaymentCollectRes} */
|
|
1104
|
-
declare function PaymentCollectRes(): PaymentCollectRes;
|
|
1105
|
-
type PaymentCollectRes = {
|
|
1106
|
-
transaction_id?: string;
|
|
1107
|
-
current_status?: string;
|
|
1108
|
-
};
|
|
1109
226
|
/** @returns {SubscriptionChargeRes} */
|
|
1110
227
|
declare function SubscriptionChargeRes(): SubscriptionChargeRes;
|
|
1111
228
|
type SubscriptionChargeRes = {
|
|
229
|
+
/**
|
|
230
|
+
* - Unique identifier for the subscription charge
|
|
231
|
+
*/
|
|
1112
232
|
_id?: string;
|
|
233
|
+
/**
|
|
234
|
+
* - ID of the product suit associated with
|
|
235
|
+
* the charge
|
|
236
|
+
*/
|
|
1113
237
|
product_suit_id?: string;
|
|
238
|
+
/**
|
|
239
|
+
* - Unique identifier for the entity
|
|
240
|
+
*/
|
|
1114
241
|
entity_id?: string;
|
|
242
|
+
/**
|
|
243
|
+
* - Type of entity (e.g., subscription, extension)
|
|
244
|
+
*/
|
|
1115
245
|
entity_type?: string;
|
|
246
|
+
/**
|
|
247
|
+
* - Name of the subscription charge
|
|
248
|
+
*/
|
|
1116
249
|
name?: string;
|
|
250
|
+
/**
|
|
251
|
+
* - Current status of the subscription charge
|
|
252
|
+
*/
|
|
1117
253
|
status?: string;
|
|
254
|
+
/**
|
|
255
|
+
* - Number of trial days provided
|
|
256
|
+
*/
|
|
1118
257
|
trial_days?: number;
|
|
258
|
+
/**
|
|
259
|
+
* - Date when the charge was activated
|
|
260
|
+
*/
|
|
1119
261
|
activated_on?: string;
|
|
262
|
+
/**
|
|
263
|
+
* - Date when the charge was cancelled
|
|
264
|
+
*/
|
|
1120
265
|
cancelled_on?: string;
|
|
266
|
+
/**
|
|
267
|
+
* - Indicates if the charge is for testing purposes
|
|
268
|
+
*/
|
|
1121
269
|
is_test?: boolean;
|
|
270
|
+
/**
|
|
271
|
+
* - Timestamp when the charge was created
|
|
272
|
+
*/
|
|
1122
273
|
created_at?: string;
|
|
274
|
+
/**
|
|
275
|
+
* - Timestamp when the charge was last modified
|
|
276
|
+
*/
|
|
1123
277
|
modified_at?: string;
|
|
278
|
+
/**
|
|
279
|
+
* - Company id
|
|
280
|
+
*/
|
|
1124
281
|
company_id?: string;
|
|
282
|
+
/**
|
|
283
|
+
* - List of line items associated with the charge
|
|
284
|
+
*/
|
|
1125
285
|
line_items?: any[];
|
|
1126
286
|
};
|
|
1127
|
-
/** @returns {
|
|
1128
|
-
declare function
|
|
1129
|
-
type
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
/** @returns {DowngradeRes} */
|
|
1134
|
-
declare function DowngradeRes(): DowngradeRes;
|
|
1135
|
-
type DowngradeRes = {
|
|
287
|
+
/** @returns {ChargeDetails} */
|
|
288
|
+
declare function ChargeDetails(): ChargeDetails;
|
|
289
|
+
type ChargeDetails = {
|
|
290
|
+
/**
|
|
291
|
+
* - Unique identifier for the charge.
|
|
292
|
+
*/
|
|
1136
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
|
+
*/
|
|
1137
327
|
status?: string;
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
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
|
+
*/
|
|
1141
349
|
modified_at?: string;
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
subscription_id?: string;
|
|
1146
|
-
};
|
|
1147
|
-
/** @returns {PaymentStatusData} */
|
|
1148
|
-
declare function PaymentStatusData(): PaymentStatusData;
|
|
1149
|
-
type PaymentStatusData = {
|
|
1150
|
-
_id?: string;
|
|
1151
|
-
journey?: string;
|
|
1152
|
-
webhook_response?: any[];
|
|
1153
|
-
aggregator_status?: string;
|
|
1154
|
-
current_status?: string;
|
|
350
|
+
/**
|
|
351
|
+
* - Date and time when the charge was created.
|
|
352
|
+
*/
|
|
1155
353
|
created_at?: string;
|
|
1156
|
-
modified_at?: string;
|
|
1157
|
-
__v?: number;
|
|
1158
|
-
aggregator_order_id?: string;
|
|
1159
|
-
};
|
|
1160
|
-
/** @returns {PaymentStatusResponse} */
|
|
1161
|
-
declare function PaymentStatusResponse(): PaymentStatusResponse;
|
|
1162
|
-
type PaymentStatusResponse = {
|
|
1163
|
-
status?: string;
|
|
1164
|
-
data?: PaymentStatusData;
|
|
1165
|
-
};
|
|
1166
|
-
/** @returns {BadRequest} */
|
|
1167
|
-
declare function BadRequest(): BadRequest;
|
|
1168
|
-
type BadRequest = {
|
|
1169
354
|
/**
|
|
1170
|
-
* -
|
|
355
|
+
* - Indicates whether the charge is for testing purposes.
|
|
1171
356
|
*/
|
|
1172
|
-
|
|
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;
|
|
1173
370
|
};
|
|
1174
371
|
/** @returns {ResourceNotFound} */
|
|
1175
372
|
declare function ResourceNotFound(): ResourceNotFound;
|
|
@@ -1181,1006 +378,409 @@ type ResourceNotFound = {
|
|
|
1181
378
|
code?: any;
|
|
1182
379
|
success?: any;
|
|
1183
380
|
};
|
|
1184
|
-
/** @returns {
|
|
1185
|
-
declare function
|
|
1186
|
-
type
|
|
381
|
+
/** @returns {CreateOneTimeCharge} */
|
|
382
|
+
declare function CreateOneTimeCharge(): CreateOneTimeCharge;
|
|
383
|
+
type CreateOneTimeCharge = {
|
|
1187
384
|
/**
|
|
1188
|
-
* -
|
|
385
|
+
* - The name of the one-time charge to be created.
|
|
1189
386
|
*/
|
|
1190
|
-
|
|
387
|
+
name?: string;
|
|
388
|
+
charge?: OneTimeChargeItem;
|
|
1191
389
|
/**
|
|
1192
|
-
* -
|
|
390
|
+
* - Indicates whether the charge creation is for
|
|
391
|
+
* testing purposes.
|
|
1193
392
|
*/
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
discount_amount?: number;
|
|
393
|
+
is_test?: boolean;
|
|
394
|
+
/**
|
|
395
|
+
* - URL to which the user will be redirected
|
|
396
|
+
* after creating the charge.
|
|
397
|
+
*/
|
|
398
|
+
return_url?: string;
|
|
1201
399
|
};
|
|
1202
|
-
/** @returns {
|
|
1203
|
-
declare function
|
|
1204
|
-
type
|
|
1205
|
-
|
|
1206
|
-
|
|
400
|
+
/** @returns {CreateOneTimeChargeResponse} */
|
|
401
|
+
declare function CreateOneTimeChargeResponse(): CreateOneTimeChargeResponse;
|
|
402
|
+
type CreateOneTimeChargeResponse = {
|
|
403
|
+
charge?: Charge;
|
|
404
|
+
/**
|
|
405
|
+
* - URL to which users are redirected to
|
|
406
|
+
* confirm or complete the payment or subscription process.
|
|
407
|
+
*/
|
|
408
|
+
confirm_url?: string;
|
|
1207
409
|
};
|
|
1208
|
-
/** @returns {
|
|
1209
|
-
declare function
|
|
1210
|
-
type
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
410
|
+
/** @returns {BadRequest} */
|
|
411
|
+
declare function BadRequest(): BadRequest;
|
|
412
|
+
type BadRequest = {
|
|
413
|
+
/**
|
|
414
|
+
* - Failure message.
|
|
415
|
+
*/
|
|
416
|
+
message?: string;
|
|
1214
417
|
};
|
|
1215
|
-
/** @returns {
|
|
1216
|
-
declare function
|
|
1217
|
-
type
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
description?: string;
|
|
1234
|
-
amount?: number;
|
|
1235
|
-
product_suite_id?: string;
|
|
1236
|
-
created_at?: string;
|
|
1237
|
-
modified_at?: string;
|
|
1238
|
-
taxation?: Taxation;
|
|
1239
|
-
one_time_fees?: OneTimeFees;
|
|
1240
|
-
credit_line?: CreditLine;
|
|
1241
|
-
current_status?: string;
|
|
1242
|
-
channel_type?: string;
|
|
1243
|
-
company_ids?: any[];
|
|
1244
|
-
platform?: string;
|
|
1245
|
-
activated_on?: string;
|
|
1246
|
-
meta?: PlanMeta;
|
|
1247
|
-
created_by?: string;
|
|
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;
|
|
1248
436
|
};
|
|
1249
|
-
/** @returns {
|
|
1250
|
-
declare function
|
|
1251
|
-
type
|
|
1252
|
-
|
|
1253
|
-
|
|
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;
|
|
1254
446
|
};
|
|
1255
447
|
/** @returns {EntityChargePrice} */
|
|
1256
448
|
declare function EntityChargePrice(): EntityChargePrice;
|
|
1257
449
|
type EntityChargePrice = {
|
|
1258
450
|
/**
|
|
1259
|
-
* -
|
|
451
|
+
* - The amount for the price. The minimum value is 1.
|
|
1260
452
|
*/
|
|
1261
453
|
amount?: number;
|
|
454
|
+
/**
|
|
455
|
+
* - The currency code for the price
|
|
456
|
+
*/
|
|
1262
457
|
currency_code?: string;
|
|
1263
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
|
+
};
|
|
1264
482
|
/** @returns {OneTimeChargeItem} */
|
|
1265
483
|
declare function OneTimeChargeItem(): OneTimeChargeItem;
|
|
1266
484
|
type OneTimeChargeItem = {
|
|
485
|
+
/**
|
|
486
|
+
* - The name of the one-time charge item.
|
|
487
|
+
*/
|
|
1267
488
|
name?: string;
|
|
489
|
+
/**
|
|
490
|
+
* - The term or description of the charge.
|
|
491
|
+
*/
|
|
1268
492
|
term?: string;
|
|
493
|
+
/**
|
|
494
|
+
* - The type of pricing for the charge item.
|
|
495
|
+
*/
|
|
1269
496
|
pricing_type?: string;
|
|
1270
497
|
price?: EntityChargePrice;
|
|
498
|
+
/**
|
|
499
|
+
* - The maximum amount that can be charged
|
|
500
|
+
* for this item, if applicable.
|
|
501
|
+
*/
|
|
1271
502
|
capped_amount?: number;
|
|
503
|
+
/**
|
|
504
|
+
* - Indicates whether the charge item is for
|
|
505
|
+
* testing purposes.
|
|
506
|
+
*/
|
|
1272
507
|
is_test?: boolean;
|
|
508
|
+
/**
|
|
509
|
+
* - Additional metadata associated with the charge item.
|
|
510
|
+
*/
|
|
1273
511
|
metadata?: any;
|
|
1274
512
|
};
|
|
1275
|
-
/** @returns {
|
|
1276
|
-
declare function
|
|
1277
|
-
type
|
|
1278
|
-
|
|
1279
|
-
|
|
513
|
+
/** @returns {ChargeLineItem} */
|
|
514
|
+
declare function ChargeLineItem(): ChargeLineItem;
|
|
515
|
+
type ChargeLineItem = {
|
|
516
|
+
/**
|
|
517
|
+
* - Its name of the extension plan.
|
|
518
|
+
*/
|
|
519
|
+
name: string;
|
|
520
|
+
/**
|
|
521
|
+
* - It indicates how it will be charged.
|
|
522
|
+
*/
|
|
523
|
+
term: string;
|
|
524
|
+
/**
|
|
525
|
+
* - It indicates the extension subscription
|
|
526
|
+
* will be auto renewed timely.
|
|
527
|
+
*/
|
|
528
|
+
pricing_type: string;
|
|
529
|
+
price: EntityChargePrice;
|
|
530
|
+
recurring?: EntityChargeRecurring;
|
|
531
|
+
capped_amount?: number;
|
|
532
|
+
trial_days?: number;
|
|
1280
533
|
is_test?: boolean;
|
|
1281
|
-
|
|
1282
|
-
};
|
|
1283
|
-
/** @returns {ChargeRecurring} */
|
|
1284
|
-
declare function ChargeRecurring(): ChargeRecurring;
|
|
1285
|
-
type ChargeRecurring = {
|
|
1286
|
-
interval?: string;
|
|
1287
|
-
interval_time?: number;
|
|
534
|
+
metadata?: any;
|
|
1288
535
|
};
|
|
1289
|
-
/** @returns {
|
|
1290
|
-
declare function
|
|
1291
|
-
type
|
|
536
|
+
/** @returns {EntitySubscription} */
|
|
537
|
+
declare function EntitySubscription(): EntitySubscription;
|
|
538
|
+
type EntitySubscription = {
|
|
539
|
+
/**
|
|
540
|
+
* - Unique identifier for the subscription charge
|
|
541
|
+
*/
|
|
1292
542
|
_id?: string;
|
|
1293
|
-
|
|
543
|
+
/**
|
|
544
|
+
* - ID of the product suit associated with
|
|
545
|
+
* the charge
|
|
546
|
+
*/
|
|
547
|
+
product_suit_id?: string;
|
|
548
|
+
/**
|
|
549
|
+
* - Unique identifier for the entity
|
|
550
|
+
*/
|
|
1294
551
|
entity_id?: string;
|
|
552
|
+
/**
|
|
553
|
+
* - Type of entity (e.g., subscription, extension)
|
|
554
|
+
*/
|
|
555
|
+
entity_type?: string;
|
|
556
|
+
/**
|
|
557
|
+
* - Name of the subscription charge
|
|
558
|
+
*/
|
|
1295
559
|
name?: string;
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
price?: EntityChargePrice;
|
|
1300
|
-
recurring?: ChargeRecurring;
|
|
560
|
+
/**
|
|
561
|
+
* - Current status of the subscription charge
|
|
562
|
+
*/
|
|
1301
563
|
status?: string;
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
564
|
+
/**
|
|
565
|
+
* - Number of trial days provided
|
|
566
|
+
*/
|
|
567
|
+
trial_days?: number;
|
|
568
|
+
/**
|
|
569
|
+
* - Indicates if the charge is for testing purposes
|
|
570
|
+
*/
|
|
1309
571
|
is_test?: boolean;
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
572
|
+
/**
|
|
573
|
+
* - Timestamp when the charge was created
|
|
574
|
+
*/
|
|
575
|
+
created_at?: string;
|
|
576
|
+
/**
|
|
577
|
+
* - Timestamp when the charge was last modified
|
|
578
|
+
*/
|
|
579
|
+
modified_at?: string;
|
|
580
|
+
/**
|
|
581
|
+
* - Unique Identifier of the company
|
|
582
|
+
*/
|
|
583
|
+
subscriber_id?: string;
|
|
584
|
+
line_items?: EntityChargeDetails[];
|
|
585
|
+
/**
|
|
586
|
+
* - The URL passed in request which extension
|
|
587
|
+
* expects in return.
|
|
588
|
+
*/
|
|
589
|
+
return_url?: string;
|
|
1313
590
|
};
|
|
1314
591
|
/** @returns {OneTimeChargeEntity} */
|
|
1315
592
|
declare function OneTimeChargeEntity(): OneTimeChargeEntity;
|
|
1316
593
|
type OneTimeChargeEntity = {
|
|
594
|
+
/**
|
|
595
|
+
* - Description of the charge term or usage.
|
|
596
|
+
*/
|
|
1317
597
|
term?: string;
|
|
598
|
+
/**
|
|
599
|
+
* - Type of the charge (e.g., 'subscription',
|
|
600
|
+
* 'extension').
|
|
601
|
+
*/
|
|
1318
602
|
charge_type?: string;
|
|
603
|
+
/**
|
|
604
|
+
* - Maximum amount that can be charged. If
|
|
605
|
+
* no cap, the value should be 0.
|
|
606
|
+
*/
|
|
1319
607
|
capped_amount?: number;
|
|
608
|
+
/**
|
|
609
|
+
* - Date when the charge was billed. Null if
|
|
610
|
+
* not yet billed.
|
|
611
|
+
*/
|
|
1320
612
|
billing_date?: string;
|
|
613
|
+
/**
|
|
614
|
+
* - Date and time when the charge entity was created.
|
|
615
|
+
*/
|
|
1321
616
|
created_at?: string;
|
|
617
|
+
/**
|
|
618
|
+
* - Date and time when the charge entity was
|
|
619
|
+
* last modified.
|
|
620
|
+
*/
|
|
1322
621
|
modified_at?: string;
|
|
622
|
+
/**
|
|
623
|
+
* - Internal version key for the charge record.
|
|
624
|
+
*/
|
|
1323
625
|
__v?: number;
|
|
626
|
+
/**
|
|
627
|
+
* - Unique identifier for the charge entity.
|
|
628
|
+
*/
|
|
1324
629
|
_id?: string;
|
|
630
|
+
/**
|
|
631
|
+
* - The name of the one-time charge.
|
|
632
|
+
*/
|
|
1325
633
|
name?: string;
|
|
634
|
+
/**
|
|
635
|
+
* - Current status of the charge (e.g., 'pending',
|
|
636
|
+
* 'completed').
|
|
637
|
+
*/
|
|
1326
638
|
status?: string;
|
|
639
|
+
/**
|
|
640
|
+
* - Date and time when the charge was
|
|
641
|
+
* activated. Null if not yet activated.
|
|
642
|
+
*/
|
|
1327
643
|
activated_on?: string;
|
|
644
|
+
/**
|
|
645
|
+
* - Date and time when the charge was
|
|
646
|
+
* cancelled. Null if not cancelled.
|
|
647
|
+
*/
|
|
1328
648
|
cancelled_on?: string;
|
|
649
|
+
/**
|
|
650
|
+
* - Additional metadata associated with the charge.
|
|
651
|
+
*/
|
|
1329
652
|
metadata?: any;
|
|
653
|
+
/**
|
|
654
|
+
* - URL to redirect to after processing the charge.
|
|
655
|
+
*/
|
|
1330
656
|
return_url?: string;
|
|
657
|
+
/**
|
|
658
|
+
* - Indicates whether the charge is for testing purposes.
|
|
659
|
+
*/
|
|
1331
660
|
is_test?: boolean;
|
|
661
|
+
/**
|
|
662
|
+
* - Pricing model for the charge (e.g., 'one_time').
|
|
663
|
+
*/
|
|
1332
664
|
pricing_type?: string;
|
|
665
|
+
/**
|
|
666
|
+
* - Unique identifier for the subscriber
|
|
667
|
+
* associated with the charge.
|
|
668
|
+
*/
|
|
1333
669
|
subscriber_id?: string;
|
|
670
|
+
/**
|
|
671
|
+
* - Type of the entity related to the charge
|
|
672
|
+
* (e.g., 'subscription', 'user').
|
|
673
|
+
*/
|
|
1334
674
|
entity_type?: string;
|
|
675
|
+
/**
|
|
676
|
+
* - Unique identifier for the entity associated
|
|
677
|
+
* with the charge.
|
|
678
|
+
*/
|
|
1335
679
|
entity_id?: string;
|
|
680
|
+
/**
|
|
681
|
+
* - Additional metadata associated with the charge.
|
|
682
|
+
*/
|
|
1336
683
|
meta?: any;
|
|
1337
684
|
price?: EntityChargePrice;
|
|
1338
685
|
};
|
|
1339
|
-
/** @returns {
|
|
1340
|
-
declare function
|
|
1341
|
-
type
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
declare function Charge(): Charge;
|
|
1347
|
-
type Charge = {
|
|
1348
|
-
final_charge?: OneTimeChargeEntity;
|
|
1349
|
-
};
|
|
1350
|
-
/** @returns {InvoiceDetailsStatusTrail} */
|
|
1351
|
-
declare function InvoiceDetailsStatusTrail(): InvoiceDetailsStatusTrail;
|
|
1352
|
-
type InvoiceDetailsStatusTrail = {
|
|
1353
|
-
_id?: string;
|
|
1354
|
-
value?: string;
|
|
1355
|
-
timestamp?: string;
|
|
1356
|
-
};
|
|
1357
|
-
/** @returns {InvoiceItemsPlanRecurring} */
|
|
1358
|
-
declare function InvoiceItemsPlanRecurring(): InvoiceItemsPlanRecurring;
|
|
1359
|
-
type InvoiceItemsPlanRecurring = {
|
|
1360
|
-
interval?: string;
|
|
1361
|
-
interval_count?: number;
|
|
1362
|
-
};
|
|
1363
|
-
/** @returns {InvoiceItemsPlan} */
|
|
1364
|
-
declare function InvoiceItemsPlan(): InvoiceItemsPlan;
|
|
1365
|
-
type InvoiceItemsPlan = {
|
|
1366
|
-
recurring?: InvoiceItemsPlanRecurring;
|
|
1367
|
-
is_trial_plan?: boolean;
|
|
1368
|
-
plan_group?: string;
|
|
1369
|
-
tag_lines?: string[];
|
|
1370
|
-
currency?: string;
|
|
1371
|
-
is_active?: boolean;
|
|
1372
|
-
is_visible?: boolean;
|
|
1373
|
-
trial_period?: number;
|
|
1374
|
-
addons?: string[];
|
|
1375
|
-
tags?: string[];
|
|
1376
|
-
type?: string;
|
|
1377
|
-
country?: string;
|
|
1378
|
-
_id?: string;
|
|
1379
|
-
name?: string;
|
|
1380
|
-
description?: string;
|
|
1381
|
-
amount?: number;
|
|
1382
|
-
product_suite_id?: string;
|
|
1383
|
-
created_at?: string;
|
|
1384
|
-
modified_at?: string;
|
|
1385
|
-
};
|
|
1386
|
-
/** @returns {InvoiceItemsPeriod} */
|
|
1387
|
-
declare function InvoiceItemsPeriod(): InvoiceItemsPeriod;
|
|
1388
|
-
type InvoiceItemsPeriod = {
|
|
1389
|
-
start?: string;
|
|
1390
|
-
end?: string;
|
|
1391
|
-
};
|
|
1392
|
-
/** @returns {InvoiceItems} */
|
|
1393
|
-
declare function InvoiceItems(): InvoiceItems;
|
|
1394
|
-
type InvoiceItems = {
|
|
1395
|
-
_id?: string;
|
|
1396
|
-
currency?: string;
|
|
1397
|
-
plan?: InvoiceItemsPlan;
|
|
1398
|
-
name?: string;
|
|
1399
|
-
quantity?: number;
|
|
1400
|
-
description?: string;
|
|
1401
|
-
period?: InvoiceItemsPeriod;
|
|
1402
|
-
unit_amount?: number;
|
|
1403
|
-
amount?: number;
|
|
1404
|
-
type?: string;
|
|
1405
|
-
invoice_id?: string;
|
|
1406
|
-
created_at?: string;
|
|
1407
|
-
modified_at?: string;
|
|
1408
|
-
};
|
|
1409
|
-
/** @returns {InvoicesDataClient} */
|
|
1410
|
-
declare function InvoicesDataClient(): InvoicesDataClient;
|
|
1411
|
-
type InvoicesDataClient = {
|
|
1412
|
-
name?: string;
|
|
1413
|
-
email?: string;
|
|
1414
|
-
phone?: string;
|
|
1415
|
-
address_lines?: string[];
|
|
1416
|
-
};
|
|
1417
|
-
/** @returns {InvoicesDataPeriod} */
|
|
1418
|
-
declare function InvoicesDataPeriod(): InvoicesDataPeriod;
|
|
1419
|
-
type InvoicesDataPeriod = {
|
|
1420
|
-
start?: string;
|
|
1421
|
-
end?: string;
|
|
1422
|
-
};
|
|
1423
|
-
/** @returns {InvoicesDataPaymentMethod} */
|
|
1424
|
-
declare function InvoicesDataPaymentMethod(): InvoicesDataPaymentMethod;
|
|
1425
|
-
type InvoicesDataPaymentMethod = {
|
|
1426
|
-
pg_payment_method_id?: string;
|
|
1427
|
-
};
|
|
1428
|
-
/** @returns {InvoicesData} */
|
|
1429
|
-
declare function InvoicesData(): InvoicesData;
|
|
1430
|
-
type InvoicesData = {
|
|
1431
|
-
_id?: string;
|
|
1432
|
-
documents?: any;
|
|
1433
|
-
payment?: any;
|
|
1434
|
-
old_settlement?: number;
|
|
1435
|
-
credit_balance?: number;
|
|
1436
|
-
discount?: any;
|
|
1437
|
-
taxation?: any;
|
|
1438
|
-
credit_note_amount?: number;
|
|
1439
|
-
client?: InvoicesDataClient;
|
|
1440
|
-
auto_advance?: boolean;
|
|
1441
|
-
currency?: string;
|
|
1442
|
-
paid?: boolean;
|
|
1443
|
-
attemp?: number;
|
|
1444
|
-
collection_method?: string;
|
|
1445
|
-
subscriber_id?: string;
|
|
1446
|
-
invoice_url?: string;
|
|
1447
|
-
number?: string;
|
|
1448
|
-
pg_data?: any;
|
|
1449
|
-
period?: InvoicesDataPeriod;
|
|
1450
|
-
receipt_number?: string;
|
|
1451
|
-
statement_descriptor?: string;
|
|
1452
|
-
current_status?: string;
|
|
1453
|
-
status_trail?: InvoiceDetailsStatusTrail[];
|
|
1454
|
-
subtotal?: number;
|
|
1455
|
-
total?: number;
|
|
1456
|
-
subscription?: string;
|
|
1457
|
-
next_action_time?: string;
|
|
1458
|
-
created_at?: string;
|
|
1459
|
-
modified_at?: string;
|
|
1460
|
-
hash_identifier?: string;
|
|
1461
|
-
payment_method?: InvoicesDataPaymentMethod;
|
|
1462
|
-
invoice_items?: InvoiceItems[];
|
|
1463
|
-
};
|
|
1464
|
-
/** @returns {Invoices} */
|
|
1465
|
-
declare function Invoices(): Invoices;
|
|
1466
|
-
type Invoices = {
|
|
1467
|
-
data?: InvoicesData[];
|
|
1468
|
-
start?: number;
|
|
1469
|
-
end?: number;
|
|
1470
|
-
limit?: number;
|
|
1471
|
-
page?: number;
|
|
1472
|
-
total?: number;
|
|
1473
|
-
};
|
|
1474
|
-
/** @returns {Phone} */
|
|
1475
|
-
declare function Phone(): Phone;
|
|
1476
|
-
type Phone = {
|
|
1477
|
-
phone_number?: string;
|
|
1478
|
-
phone_country_code?: string;
|
|
1479
|
-
};
|
|
1480
|
-
/** @returns {SubscriptionBillingAddress} */
|
|
1481
|
-
declare function SubscriptionBillingAddress(): SubscriptionBillingAddress;
|
|
1482
|
-
type SubscriptionBillingAddress = {
|
|
1483
|
-
country?: string;
|
|
1484
|
-
state?: string;
|
|
1485
|
-
city?: string;
|
|
1486
|
-
line1?: string;
|
|
1487
|
-
line2?: string;
|
|
1488
|
-
postal_code?: string;
|
|
1489
|
-
};
|
|
1490
|
-
/** @returns {SubscriptionCustomer} */
|
|
1491
|
-
declare function SubscriptionCustomer(): SubscriptionCustomer;
|
|
1492
|
-
type SubscriptionCustomer = {
|
|
1493
|
-
phone?: Phone;
|
|
1494
|
-
billing_address?: SubscriptionBillingAddress;
|
|
1495
|
-
_id?: string;
|
|
1496
|
-
unique_id?: string;
|
|
1497
|
-
type?: string;
|
|
1498
|
-
name?: string;
|
|
1499
|
-
email?: string;
|
|
1500
|
-
created_at?: string;
|
|
1501
|
-
modified_at?: string;
|
|
1502
|
-
data?: any;
|
|
1503
|
-
documents?: any;
|
|
1504
|
-
consent?: boolean;
|
|
1505
|
-
comms?: boolean;
|
|
1506
|
-
credit_balance?: number;
|
|
1507
|
-
business_country_info?: BusinessCountryInfo;
|
|
1508
|
-
};
|
|
1509
|
-
/** @returns {SubscriptionCustomerCreate} */
|
|
1510
|
-
declare function SubscriptionCustomerCreate(): SubscriptionCustomerCreate;
|
|
1511
|
-
type SubscriptionCustomerCreate = {
|
|
1512
|
-
phone?: Phone;
|
|
1513
|
-
billing_address?: SubscriptionBillingAddress;
|
|
1514
|
-
unique_id?: string;
|
|
1515
|
-
type?: string;
|
|
1516
|
-
name?: string;
|
|
1517
|
-
email?: string;
|
|
1518
|
-
};
|
|
1519
|
-
/** @returns {SubscriptionCurrentPeriod} */
|
|
1520
|
-
declare function SubscriptionCurrentPeriod(): SubscriptionCurrentPeriod;
|
|
1521
|
-
type SubscriptionCurrentPeriod = {
|
|
1522
|
-
start?: string;
|
|
1523
|
-
end?: string;
|
|
1524
|
-
};
|
|
1525
|
-
/** @returns {SubscriptionPauseCollection} */
|
|
1526
|
-
declare function SubscriptionPauseCollection(): SubscriptionPauseCollection;
|
|
1527
|
-
type SubscriptionPauseCollection = {
|
|
1528
|
-
behavior?: string;
|
|
1529
|
-
resume_at?: string;
|
|
1530
|
-
};
|
|
1531
|
-
/** @returns {SubscriptionTrial} */
|
|
1532
|
-
declare function SubscriptionTrial(): SubscriptionTrial;
|
|
1533
|
-
type SubscriptionTrial = {
|
|
1534
|
-
start?: string;
|
|
1535
|
-
end?: string;
|
|
1536
|
-
};
|
|
1537
|
-
/** @returns {SubscriptionInvoiceSettings} */
|
|
1538
|
-
declare function SubscriptionInvoiceSettings(): SubscriptionInvoiceSettings;
|
|
1539
|
-
type SubscriptionInvoiceSettings = {
|
|
1540
|
-
generation?: boolean;
|
|
1541
|
-
charging?: boolean;
|
|
686
|
+
/** @returns {EntityChargeRecurring} */
|
|
687
|
+
declare function EntityChargeRecurring(): EntityChargeRecurring;
|
|
688
|
+
type EntityChargeRecurring = {
|
|
689
|
+
/**
|
|
690
|
+
* - The interval of the subscription.
|
|
691
|
+
*/
|
|
692
|
+
interval: string;
|
|
1542
693
|
};
|
|
1543
|
-
/** @returns {
|
|
1544
|
-
declare function
|
|
1545
|
-
type
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
trial?: SubscriptionTrial;
|
|
1550
|
-
invoice_settings?: SubscriptionInvoiceSettings;
|
|
1551
|
-
is_active?: boolean;
|
|
1552
|
-
cancel_at_period_end?: boolean;
|
|
694
|
+
/** @returns {EntityChargeDetails} */
|
|
695
|
+
declare function EntityChargeDetails(): EntityChargeDetails;
|
|
696
|
+
type EntityChargeDetails = {
|
|
697
|
+
/**
|
|
698
|
+
* - Unique identifier for the charge.
|
|
699
|
+
*/
|
|
1553
700
|
_id?: string;
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
plan_data?: Plan;
|
|
1558
|
-
current_status?: string;
|
|
1559
|
-
collection_method?: string;
|
|
1560
|
-
created_at?: string;
|
|
1561
|
-
modified_at?: string;
|
|
1562
|
-
latest_invoice?: string;
|
|
1563
|
-
channel_type?: string;
|
|
1564
|
-
freezed?: boolean;
|
|
1565
|
-
cancel_at?: string;
|
|
1566
|
-
canceled_at?: string;
|
|
1567
|
-
};
|
|
1568
|
-
/** @returns {SubscriptionStatus} */
|
|
1569
|
-
declare function SubscriptionStatus(): SubscriptionStatus;
|
|
1570
|
-
type SubscriptionStatus = {
|
|
1571
|
-
is_enabled?: boolean;
|
|
1572
|
-
subscription?: Subscription;
|
|
1573
|
-
latest_invoice?: InvoicesData;
|
|
1574
|
-
next_plan?: Plan;
|
|
1575
|
-
current_subscriptions?: Subscription[];
|
|
1576
|
-
mandate_amount?: number;
|
|
1577
|
-
message?: string;
|
|
1578
|
-
};
|
|
1579
|
-
/** @returns {SubscriptionLimitApplication} */
|
|
1580
|
-
declare function SubscriptionLimitApplication(): SubscriptionLimitApplication;
|
|
1581
|
-
type SubscriptionLimitApplication = {
|
|
1582
|
-
enabled?: boolean;
|
|
1583
|
-
hard_limit?: number;
|
|
1584
|
-
soft_limit?: number;
|
|
1585
|
-
};
|
|
1586
|
-
/** @returns {SubscriptionLimitMarketplace} */
|
|
1587
|
-
declare function SubscriptionLimitMarketplace(): SubscriptionLimitMarketplace;
|
|
1588
|
-
type SubscriptionLimitMarketplace = {
|
|
1589
|
-
enabled?: boolean;
|
|
1590
|
-
};
|
|
1591
|
-
/** @returns {SubscriptionLimitOtherPlatform} */
|
|
1592
|
-
declare function SubscriptionLimitOtherPlatform(): SubscriptionLimitOtherPlatform;
|
|
1593
|
-
type SubscriptionLimitOtherPlatform = {
|
|
1594
|
-
enabled?: boolean;
|
|
1595
|
-
};
|
|
1596
|
-
/** @returns {SubscriptionLimitTeam} */
|
|
1597
|
-
declare function SubscriptionLimitTeam(): SubscriptionLimitTeam;
|
|
1598
|
-
type SubscriptionLimitTeam = {
|
|
1599
|
-
limit?: number;
|
|
1600
|
-
};
|
|
1601
|
-
/** @returns {SubscriptionLimitProducts} */
|
|
1602
|
-
declare function SubscriptionLimitProducts(): SubscriptionLimitProducts;
|
|
1603
|
-
type SubscriptionLimitProducts = {
|
|
1604
|
-
bulk?: boolean;
|
|
1605
|
-
limit?: number;
|
|
1606
|
-
};
|
|
1607
|
-
/** @returns {SubscriptionLimitExtensions} */
|
|
1608
|
-
declare function SubscriptionLimitExtensions(): SubscriptionLimitExtensions;
|
|
1609
|
-
type SubscriptionLimitExtensions = {
|
|
1610
|
-
enabled?: boolean;
|
|
1611
|
-
limit?: number;
|
|
1612
|
-
};
|
|
1613
|
-
/** @returns {SubscriptionLimitIntegrations} */
|
|
1614
|
-
declare function SubscriptionLimitIntegrations(): SubscriptionLimitIntegrations;
|
|
1615
|
-
type SubscriptionLimitIntegrations = {
|
|
1616
|
-
enabled?: boolean;
|
|
1617
|
-
limit?: number;
|
|
1618
|
-
};
|
|
1619
|
-
/** @returns {SubscriptionLimit} */
|
|
1620
|
-
declare function SubscriptionLimit(): SubscriptionLimit;
|
|
1621
|
-
type SubscriptionLimit = {
|
|
1622
|
-
application?: SubscriptionLimitApplication;
|
|
1623
|
-
marketplace?: SubscriptionLimitMarketplace;
|
|
1624
|
-
other_platform?: SubscriptionLimitOtherPlatform;
|
|
1625
|
-
team?: SubscriptionLimitTeam;
|
|
1626
|
-
products?: SubscriptionLimitProducts;
|
|
1627
|
-
extensions?: SubscriptionLimitExtensions;
|
|
1628
|
-
integrations?: SubscriptionLimitIntegrations;
|
|
1629
|
-
is_trial_plan?: boolean;
|
|
1630
|
-
};
|
|
1631
|
-
/** @returns {IntentReq} */
|
|
1632
|
-
declare function IntentReq(): IntentReq;
|
|
1633
|
-
type IntentReq = {
|
|
1634
|
-
unique_external_id?: string;
|
|
1635
|
-
plan_id?: string;
|
|
1636
|
-
};
|
|
1637
|
-
/** @returns {PutIntentReq} */
|
|
1638
|
-
declare function PutIntentReq(): PutIntentReq;
|
|
1639
|
-
type PutIntentReq = {
|
|
1640
|
-
unique_external_id?: string;
|
|
1641
|
-
setup_intent_id?: string;
|
|
1642
|
-
payment_method_id?: string;
|
|
1643
|
-
set_default?: boolean;
|
|
1644
|
-
};
|
|
1645
|
-
/** @returns {SubscriptionActivateReq} */
|
|
1646
|
-
declare function SubscriptionActivateReq(): SubscriptionActivateReq;
|
|
1647
|
-
type SubscriptionActivateReq = {
|
|
1648
|
-
unique_id?: string;
|
|
1649
|
-
type?: string;
|
|
1650
|
-
product_suite?: string;
|
|
1651
|
-
plan_id?: string;
|
|
1652
|
-
payment_method?: string;
|
|
1653
|
-
subscription_id?: string;
|
|
1654
|
-
coupon?: string;
|
|
1655
|
-
meta?: any;
|
|
1656
|
-
};
|
|
1657
|
-
/** @returns {SubscriptionActivateRes} */
|
|
1658
|
-
declare function SubscriptionActivateRes(): SubscriptionActivateRes;
|
|
1659
|
-
type SubscriptionActivateRes = {
|
|
1660
|
-
success?: boolean;
|
|
1661
|
-
data?: Subscription;
|
|
1662
|
-
};
|
|
1663
|
-
/** @returns {CancelSubscriptionReq} */
|
|
1664
|
-
declare function CancelSubscriptionReq(): CancelSubscriptionReq;
|
|
1665
|
-
type CancelSubscriptionReq = {
|
|
1666
|
-
unique_id?: string;
|
|
1667
|
-
type?: string;
|
|
1668
|
-
product_suite?: string;
|
|
701
|
+
/**
|
|
702
|
+
* - Unique identifier of the extension subscription.
|
|
703
|
+
*/
|
|
1669
704
|
subscription_id?: string;
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
success?: boolean;
|
|
1675
|
-
data?: Subscription;
|
|
1676
|
-
};
|
|
1677
|
-
/** @returns {PlanStatusUpdateReq} */
|
|
1678
|
-
declare function PlanStatusUpdateReq(): PlanStatusUpdateReq;
|
|
1679
|
-
type PlanStatusUpdateReq = {
|
|
1680
|
-
plan_id?: string;
|
|
1681
|
-
reason?: string;
|
|
1682
|
-
seller_status?: string;
|
|
1683
|
-
};
|
|
1684
|
-
/** @returns {SunscribePlan} */
|
|
1685
|
-
declare function SunscribePlan(): SunscribePlan;
|
|
1686
|
-
type SunscribePlan = {
|
|
1687
|
-
entity_type?: string;
|
|
1688
|
-
collection_type?: string;
|
|
1689
|
-
plan_id?: string;
|
|
1690
|
-
callback_url?: string;
|
|
1691
|
-
meta?: Meta;
|
|
1692
|
-
};
|
|
1693
|
-
/** @returns {Meta} */
|
|
1694
|
-
declare function Meta(): Meta;
|
|
1695
|
-
type Meta = {
|
|
1696
|
-
subscribe?: boolean;
|
|
1697
|
-
is_custom_plan?: boolean;
|
|
1698
|
-
is_plan_upgrade?: boolean;
|
|
1699
|
-
};
|
|
1700
|
-
/** @returns {SubscribePlanRes} */
|
|
1701
|
-
declare function SubscribePlanRes(): SubscribePlanRes;
|
|
1702
|
-
type SubscribePlanRes = {
|
|
1703
|
-
redirect_url?: string;
|
|
1704
|
-
transaction_id?: string;
|
|
1705
|
-
current_status?: string;
|
|
1706
|
-
meta?: Meta;
|
|
1707
|
-
};
|
|
1708
|
-
/** @returns {EntityDetail} */
|
|
1709
|
-
declare function EntityDetail(): EntityDetail;
|
|
1710
|
-
type EntityDetail = {
|
|
1711
|
-
entity?: string;
|
|
1712
|
-
item?: Subscription;
|
|
1713
|
-
};
|
|
1714
|
-
/** @returns {PaymentOptions} */
|
|
1715
|
-
declare function PaymentOptions(): PaymentOptions;
|
|
1716
|
-
type PaymentOptions = {
|
|
1717
|
-
_id?: string;
|
|
1718
|
-
name?: string;
|
|
1719
|
-
description?: string;
|
|
1720
|
-
logo?: string;
|
|
1721
|
-
aggregator_id?: string;
|
|
1722
|
-
aggregator?: string;
|
|
1723
|
-
created_at?: string;
|
|
1724
|
-
modified_at?: string;
|
|
1725
|
-
__v?: number;
|
|
1726
|
-
};
|
|
1727
|
-
/** @returns {VerifyPaymentReq} */
|
|
1728
|
-
declare function VerifyPaymentReq(): VerifyPaymentReq;
|
|
1729
|
-
type VerifyPaymentReq = {
|
|
1730
|
-
razorpay_payment_id?: string;
|
|
1731
|
-
razorpay_order_id?: string;
|
|
1732
|
-
razorpay_signature?: string;
|
|
1733
|
-
status_code?: number;
|
|
1734
|
-
provider_type?: string;
|
|
1735
|
-
};
|
|
1736
|
-
/** @returns {Documents} */
|
|
1737
|
-
declare function Documents(): Documents;
|
|
1738
|
-
type Documents = {
|
|
1739
|
-
pan?: string;
|
|
1740
|
-
gst?: string;
|
|
1741
|
-
};
|
|
1742
|
-
/** @returns {BillingAddress} */
|
|
1743
|
-
declare function BillingAddress(): BillingAddress;
|
|
1744
|
-
type BillingAddress = {
|
|
1745
|
-
country?: string;
|
|
1746
|
-
state?: string;
|
|
1747
|
-
city?: string;
|
|
1748
|
-
line1?: string;
|
|
1749
|
-
line2?: string;
|
|
1750
|
-
postal_code?: string;
|
|
1751
|
-
country_code?: string;
|
|
1752
|
-
};
|
|
1753
|
-
/** @returns {Currency} */
|
|
1754
|
-
declare function Currency(): Currency;
|
|
1755
|
-
type Currency = {
|
|
1756
|
-
code?: string;
|
|
1757
|
-
symbol?: string;
|
|
1758
|
-
name?: string;
|
|
1759
|
-
};
|
|
1760
|
-
/** @returns {BusinessCountryInfo} */
|
|
1761
|
-
declare function BusinessCountryInfo(): BusinessCountryInfo;
|
|
1762
|
-
type BusinessCountryInfo = {
|
|
1763
|
-
country?: string;
|
|
1764
|
-
country_code?: string;
|
|
1765
|
-
currency?: Currency;
|
|
1766
|
-
timezone?: string;
|
|
1767
|
-
};
|
|
1768
|
-
/** @returns {SubscriberData} */
|
|
1769
|
-
declare function SubscriberData(): SubscriberData;
|
|
1770
|
-
type SubscriberData = {
|
|
1771
|
-
pg_user_exists?: boolean;
|
|
1772
|
-
id?: any;
|
|
1773
|
-
pg_customer_id?: string;
|
|
1774
|
-
default_payment_method?: string;
|
|
1775
|
-
};
|
|
1776
|
-
/** @returns {Subscriber} */
|
|
1777
|
-
declare function Subscriber(): Subscriber;
|
|
1778
|
-
type Subscriber = {
|
|
1779
|
-
documents?: Documents;
|
|
1780
|
-
phone?: any;
|
|
1781
|
-
billing_address?: BillingAddress;
|
|
1782
|
-
consent?: boolean;
|
|
1783
|
-
comms?: boolean;
|
|
1784
|
-
_id?: string;
|
|
1785
|
-
type?: string;
|
|
1786
|
-
unique_id?: string;
|
|
1787
|
-
name?: string;
|
|
1788
|
-
email?: string;
|
|
1789
|
-
business_country_info?: BusinessCountryInfo;
|
|
1790
|
-
created_at?: string;
|
|
1791
|
-
modified_at?: string;
|
|
1792
|
-
credit_balance?: number;
|
|
1793
|
-
data?: SubscriberData;
|
|
1794
|
-
};
|
|
1795
|
-
/** @returns {Author} */
|
|
1796
|
-
declare function Author(): Author;
|
|
1797
|
-
type Author = {
|
|
1798
|
-
modified_by_details?: any;
|
|
1799
|
-
};
|
|
1800
|
-
/** @returns {EndingBalance} */
|
|
1801
|
-
declare function EndingBalance(): EndingBalance;
|
|
1802
|
-
type EndingBalance = {
|
|
1803
|
-
amount?: number;
|
|
1804
|
-
old_entry_ref?: string;
|
|
1805
|
-
};
|
|
1806
|
-
/** @returns {PaymentData} */
|
|
1807
|
-
declare function PaymentData(): PaymentData;
|
|
1808
|
-
type PaymentData = {
|
|
1809
|
-
transaction_id?: string;
|
|
1810
|
-
aggregator?: string;
|
|
1811
|
-
aggregator_order_id?: string;
|
|
1812
|
-
};
|
|
1813
|
-
/** @returns {CreditTransaction} */
|
|
1814
|
-
declare function CreditTransaction(): CreditTransaction;
|
|
1815
|
-
type CreditTransaction = {
|
|
1816
|
-
entity?: any;
|
|
1817
|
-
author?: Author;
|
|
1818
|
-
_id?: string;
|
|
1819
|
-
amount?: number;
|
|
1820
|
-
currency?: string;
|
|
1821
|
-
subscriber_id?: string;
|
|
1822
|
-
description?: string;
|
|
1823
|
-
is_test?: any;
|
|
1824
|
-
ending_balance?: EndingBalance;
|
|
1825
|
-
payment?: PaymentData;
|
|
1826
|
-
type?: string;
|
|
1827
|
-
created_at?: string;
|
|
1828
|
-
modified_at?: string;
|
|
1829
|
-
};
|
|
1830
|
-
/** @returns {VerifyPaymentData} */
|
|
1831
|
-
declare function VerifyPaymentData(): VerifyPaymentData;
|
|
1832
|
-
type VerifyPaymentData = {
|
|
1833
|
-
success?: boolean;
|
|
1834
|
-
subscriber?: Subscriber;
|
|
1835
|
-
credit_transaction?: CreditTransaction;
|
|
1836
|
-
};
|
|
1837
|
-
/** @returns {VerifyPaymentRes} */
|
|
1838
|
-
declare function VerifyPaymentRes(): VerifyPaymentRes;
|
|
1839
|
-
type VerifyPaymentRes = {
|
|
1840
|
-
status?: string;
|
|
1841
|
-
data?: VerifyPaymentData;
|
|
1842
|
-
};
|
|
1843
|
-
/** @returns {DefaultMerchants} */
|
|
1844
|
-
declare function DefaultMerchants(): DefaultMerchants;
|
|
1845
|
-
type DefaultMerchants = {
|
|
1846
|
-
stripe?: string;
|
|
1847
|
-
};
|
|
1848
|
-
/** @returns {GlobalSettingsPayment} */
|
|
1849
|
-
declare function GlobalSettingsPayment(): GlobalSettingsPayment;
|
|
1850
|
-
type GlobalSettingsPayment = {
|
|
1851
|
-
default_merchants?: DefaultMerchants;
|
|
1852
|
-
};
|
|
1853
|
-
/** @returns {GlobalSettingsData} */
|
|
1854
|
-
declare function GlobalSettingsData(): GlobalSettingsData;
|
|
1855
|
-
type GlobalSettingsData = {
|
|
1856
|
-
payment?: GlobalSettingsPayment;
|
|
1857
|
-
freeze_panel?: boolean;
|
|
1858
|
-
_id?: string;
|
|
1859
|
-
created_at?: string;
|
|
1860
|
-
modified_at?: string;
|
|
1861
|
-
};
|
|
1862
|
-
/** @returns {GlobalSettings} */
|
|
1863
|
-
declare function GlobalSettings(): GlobalSettings;
|
|
1864
|
-
type GlobalSettings = {
|
|
1865
|
-
status?: string;
|
|
1866
|
-
data?: GlobalSettingsData;
|
|
1867
|
-
};
|
|
1868
|
-
/** @returns {MethodChecks} */
|
|
1869
|
-
declare function MethodChecks(): MethodChecks;
|
|
1870
|
-
type MethodChecks = {
|
|
1871
|
-
address_line1_check?: string;
|
|
1872
|
-
address_postal_code_check?: string;
|
|
1873
|
-
cvc_check?: string;
|
|
1874
|
-
};
|
|
1875
|
-
/** @returns {MethodNetworks} */
|
|
1876
|
-
declare function MethodNetworks(): MethodNetworks;
|
|
1877
|
-
type MethodNetworks = {
|
|
1878
|
-
available?: string[];
|
|
1879
|
-
preferred?: string;
|
|
1880
|
-
};
|
|
1881
|
-
/** @returns {MethodSecureUsage} */
|
|
1882
|
-
declare function MethodSecureUsage(): MethodSecureUsage;
|
|
1883
|
-
type MethodSecureUsage = {
|
|
1884
|
-
supported?: boolean;
|
|
1885
|
-
};
|
|
1886
|
-
/** @returns {MethodDetails} */
|
|
1887
|
-
declare function MethodDetails(): MethodDetails;
|
|
1888
|
-
type MethodDetails = {
|
|
1889
|
-
id?: string;
|
|
1890
|
-
type?: string;
|
|
1891
|
-
mandate_available?: boolean;
|
|
1892
|
-
mandate_amount?: number;
|
|
1893
|
-
pg_payment_method_id?: string;
|
|
1894
|
-
is_default?: boolean;
|
|
1895
|
-
data?: SubscriptionMethodData;
|
|
1896
|
-
};
|
|
1897
|
-
/** @returns {SubscriptionMethodData} */
|
|
1898
|
-
declare function SubscriptionMethodData(): SubscriptionMethodData;
|
|
1899
|
-
type SubscriptionMethodData = {
|
|
1900
|
-
brand?: string;
|
|
1901
|
-
checks?: MethodChecks;
|
|
1902
|
-
country?: string;
|
|
1903
|
-
exp_month?: number;
|
|
1904
|
-
exp_year?: number;
|
|
1905
|
-
fingerprint?: string;
|
|
1906
|
-
funding?: string;
|
|
1907
|
-
generated_from?: string;
|
|
1908
|
-
last4?: string;
|
|
1909
|
-
networks?: MethodNetworks;
|
|
1910
|
-
three_d_secure_usage?: MethodSecureUsage;
|
|
1911
|
-
wallet?: string;
|
|
1912
|
-
name?: string;
|
|
1913
|
-
is_default?: boolean;
|
|
1914
|
-
};
|
|
1915
|
-
/** @returns {SubscriptionMethods} */
|
|
1916
|
-
declare function SubscriptionMethods(): SubscriptionMethods;
|
|
1917
|
-
type SubscriptionMethods = {
|
|
1918
|
-
success?: boolean;
|
|
1919
|
-
data?: MethodDetails[];
|
|
1920
|
-
};
|
|
1921
|
-
/** @returns {ConfigPublicKey} */
|
|
1922
|
-
declare function ConfigPublicKey(): ConfigPublicKey;
|
|
1923
|
-
type ConfigPublicKey = {
|
|
1924
|
-
public_key?: string;
|
|
1925
|
-
};
|
|
1926
|
-
/** @returns {ConfigRes} */
|
|
1927
|
-
declare function ConfigRes(): ConfigRes;
|
|
1928
|
-
type ConfigRes = {
|
|
1929
|
-
success?: boolean;
|
|
1930
|
-
aggregator?: string;
|
|
1931
|
-
config?: ConfigPublicKey;
|
|
1932
|
-
};
|
|
1933
|
-
/** @returns {PlanChangeData} */
|
|
1934
|
-
declare function PlanChangeData(): PlanChangeData;
|
|
1935
|
-
type PlanChangeData = {
|
|
1936
|
-
total?: number;
|
|
1937
|
-
credit_note_amount?: number;
|
|
1938
|
-
settlement?: number;
|
|
1939
|
-
taxable_amount?: number;
|
|
1940
|
-
gst_amount?: number;
|
|
1941
|
-
gross_total?: number;
|
|
1942
|
-
gst?: number;
|
|
1943
|
-
discount?: number;
|
|
1944
|
-
};
|
|
1945
|
-
/** @returns {PlanChangeDetails} */
|
|
1946
|
-
declare function PlanChangeDetails(): PlanChangeDetails;
|
|
1947
|
-
type PlanChangeDetails = {
|
|
1948
|
-
status?: string;
|
|
1949
|
-
data?: PlanChangeData;
|
|
1950
|
-
};
|
|
1951
|
-
/** @returns {TransactionMeta} */
|
|
1952
|
-
declare function TransactionMeta(): TransactionMeta;
|
|
1953
|
-
type TransactionMeta = {
|
|
1954
|
-
invoice_id?: string;
|
|
1955
|
-
};
|
|
1956
|
-
/** @returns {PaymentTransactionDetails} */
|
|
1957
|
-
declare function PaymentTransactionDetails(): PaymentTransactionDetails;
|
|
1958
|
-
type PaymentTransactionDetails = {
|
|
1959
|
-
aggregator?: any;
|
|
1960
|
-
currency?: string;
|
|
1961
|
-
current_status?: string;
|
|
1962
|
-
_id?: string;
|
|
705
|
+
/**
|
|
706
|
+
* - Unique identifier of the
|
|
707
|
+
* subscriber/company who installed extension subscription.
|
|
708
|
+
*/
|
|
1963
709
|
subscriber_id?: string;
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
created_at?: string;
|
|
1969
|
-
modified_at?: string;
|
|
1970
|
-
};
|
|
1971
|
-
/** @returns {PaymentItems} */
|
|
1972
|
-
declare function PaymentItems(): PaymentItems;
|
|
1973
|
-
type PaymentItems = {
|
|
1974
|
-
name?: string;
|
|
1975
|
-
code?: string;
|
|
1976
|
-
aggregator?: string;
|
|
1977
|
-
};
|
|
1978
|
-
/** @returns {GetPaymentOptions} */
|
|
1979
|
-
declare function GetPaymentOptions(): GetPaymentOptions;
|
|
1980
|
-
type GetPaymentOptions = {
|
|
1981
|
-
payment_options?: PaymentItems[];
|
|
1982
|
-
};
|
|
1983
|
-
/** @returns {TopupReq} */
|
|
1984
|
-
declare function TopupReq(): TopupReq;
|
|
1985
|
-
type TopupReq = {
|
|
1986
|
-
amount?: number;
|
|
1987
|
-
currency?: string;
|
|
1988
|
-
provider_type?: string;
|
|
1989
|
-
};
|
|
1990
|
-
/** @returns {SetupMandateReq} */
|
|
1991
|
-
declare function SetupMandateReq(): SetupMandateReq;
|
|
1992
|
-
type SetupMandateReq = {
|
|
1993
|
-
intent_id?: string;
|
|
1994
|
-
payment_method_id?: string;
|
|
1995
|
-
};
|
|
1996
|
-
/** @returns {SetupPaymentReq} */
|
|
1997
|
-
declare function SetupPaymentReq(): SetupPaymentReq;
|
|
1998
|
-
type SetupPaymentReq = {
|
|
1999
|
-
payment_method?: string;
|
|
2000
|
-
payment_id?: string;
|
|
2001
|
-
plan_id?: string;
|
|
2002
|
-
invoice_id?: string;
|
|
2003
|
-
};
|
|
2004
|
-
/** @returns {SubscriptionRenewReq} */
|
|
2005
|
-
declare function SubscriptionRenewReq(): SubscriptionRenewReq;
|
|
2006
|
-
type SubscriptionRenewReq = {
|
|
2007
|
-
invoice_id?: string;
|
|
710
|
+
/**
|
|
711
|
+
* - The type of entity associated with the
|
|
712
|
+
* charge (e.g., 'extension', 'subscription').
|
|
713
|
+
*/
|
|
2008
714
|
entity_type?: string;
|
|
2009
|
-
collection_type?: string;
|
|
2010
|
-
callback_url?: string;
|
|
2011
|
-
meta?: RenewMeta;
|
|
2012
|
-
};
|
|
2013
|
-
/** @returns {RenewMeta} */
|
|
2014
|
-
declare function RenewMeta(): RenewMeta;
|
|
2015
|
-
type RenewMeta = {
|
|
2016
|
-
invoice_payment?: boolean;
|
|
2017
|
-
renew?: boolean;
|
|
2018
|
-
};
|
|
2019
|
-
/** @returns {SubscriptionMethodsReq} */
|
|
2020
|
-
declare function SubscriptionMethodsReq(): SubscriptionMethodsReq;
|
|
2021
|
-
type SubscriptionMethodsReq = {
|
|
2022
|
-
unique_external_id?: string;
|
|
2023
|
-
setup_intent_id?: string;
|
|
2024
|
-
pg_payment_method_id?: string;
|
|
2025
|
-
set_default?: boolean;
|
|
2026
|
-
};
|
|
2027
|
-
/** @returns {CreditTransactionResponse} */
|
|
2028
|
-
declare function CreditTransactionResponse(): CreditTransactionResponse;
|
|
2029
|
-
type CreditTransactionResponse = {
|
|
2030
715
|
/**
|
|
2031
|
-
* -
|
|
716
|
+
* - Unique identifier for the entity associated
|
|
717
|
+
* with the charge.
|
|
2032
718
|
*/
|
|
2033
|
-
|
|
719
|
+
entity_id?: string;
|
|
2034
720
|
/**
|
|
2035
|
-
* -
|
|
721
|
+
* - The name of the charge.
|
|
2036
722
|
*/
|
|
2037
|
-
|
|
723
|
+
name?: string;
|
|
2038
724
|
/**
|
|
2039
|
-
* -
|
|
725
|
+
* - Description of the charge term.
|
|
2040
726
|
*/
|
|
2041
|
-
|
|
727
|
+
term?: string;
|
|
2042
728
|
/**
|
|
2043
|
-
* -
|
|
729
|
+
* - The type of charge (e.g., 'standalone',
|
|
730
|
+
* 'recurring').
|
|
2044
731
|
*/
|
|
2045
|
-
|
|
2046
|
-
items?: CreditTransaction[];
|
|
2047
|
-
};
|
|
2048
|
-
/** @returns {DowngradePlanReq} */
|
|
2049
|
-
declare function DowngradePlanReq(): DowngradePlanReq;
|
|
2050
|
-
type DowngradePlanReq = {
|
|
2051
|
-
unique_id?: string;
|
|
2052
|
-
type?: string;
|
|
2053
|
-
product_suite?: string;
|
|
2054
|
-
plan_id?: string;
|
|
2055
|
-
reason?: string;
|
|
2056
|
-
platform?: string;
|
|
2057
|
-
};
|
|
2058
|
-
/** @returns {Taxation} */
|
|
2059
|
-
declare function Taxation(): Taxation;
|
|
2060
|
-
type Taxation = {
|
|
732
|
+
charge_type?: string;
|
|
2061
733
|
/**
|
|
2062
|
-
* -
|
|
734
|
+
* - The pricing model for the charge (e.g.,
|
|
735
|
+
* 'one_time', 'recurring').
|
|
736
|
+
*/
|
|
737
|
+
pricing_type?: string;
|
|
738
|
+
price?: EntityChargePrice;
|
|
739
|
+
recurring?: ChargeRecurring;
|
|
740
|
+
/**
|
|
741
|
+
* - Current status of the charge.
|
|
2063
742
|
*/
|
|
2064
|
-
gst?: number;
|
|
2065
|
-
};
|
|
2066
|
-
/** @returns {OneTimeFees} */
|
|
2067
|
-
declare function OneTimeFees(): OneTimeFees;
|
|
2068
|
-
type OneTimeFees = {
|
|
2069
|
-
developement?: number;
|
|
2070
|
-
marketing?: number;
|
|
2071
|
-
};
|
|
2072
|
-
/** @returns {CreditLine} */
|
|
2073
|
-
declare function CreditLine(): CreditLine;
|
|
2074
|
-
type CreditLine = {
|
|
2075
|
-
is_active?: boolean;
|
|
2076
|
-
};
|
|
2077
|
-
/** @returns {StatusMessage} */
|
|
2078
|
-
declare function StatusMessage(): StatusMessage;
|
|
2079
|
-
type StatusMessage = {
|
|
2080
|
-
status?: string;
|
|
2081
|
-
message?: string;
|
|
2082
|
-
success?: boolean;
|
|
2083
|
-
code?: string;
|
|
2084
|
-
};
|
|
2085
|
-
/** @returns {PaymentCollectReq} */
|
|
2086
|
-
declare function PaymentCollectReq(): PaymentCollectReq;
|
|
2087
|
-
type PaymentCollectReq = {
|
|
2088
|
-
transaction_id?: string;
|
|
2089
|
-
credit_balance?: boolean;
|
|
2090
|
-
payment_mode?: string;
|
|
2091
|
-
payment_method?: string;
|
|
2092
|
-
invoice_id?: string;
|
|
2093
|
-
};
|
|
2094
|
-
/** @returns {SubscriptionRenewResMeta} */
|
|
2095
|
-
declare function SubscriptionRenewResMeta(): SubscriptionRenewResMeta;
|
|
2096
|
-
type SubscriptionRenewResMeta = {
|
|
2097
|
-
invoice_payment?: boolean;
|
|
2098
|
-
renew?: boolean;
|
|
2099
|
-
};
|
|
2100
|
-
/** @returns {SubscriptionRenewRes} */
|
|
2101
|
-
declare function SubscriptionRenewRes(): SubscriptionRenewRes;
|
|
2102
|
-
type SubscriptionRenewRes = {
|
|
2103
|
-
redirect_url?: string;
|
|
2104
|
-
transaction_id?: string;
|
|
2105
|
-
current_status?: string;
|
|
2106
|
-
meta?: SubscriptionRenewResMeta;
|
|
2107
|
-
};
|
|
2108
|
-
/** @returns {SetupIntentRes} */
|
|
2109
|
-
declare function SetupIntentRes(): SetupIntentRes;
|
|
2110
|
-
type SetupIntentRes = {
|
|
2111
|
-
success?: boolean;
|
|
2112
|
-
data?: SetupIntentData;
|
|
2113
|
-
};
|
|
2114
|
-
/** @returns {SetupIntentData} */
|
|
2115
|
-
declare function SetupIntentData(): SetupIntentData;
|
|
2116
|
-
type SetupIntentData = {
|
|
2117
|
-
id?: string;
|
|
2118
|
-
client_secret?: string;
|
|
2119
|
-
customer?: any;
|
|
2120
|
-
status?: string;
|
|
2121
|
-
};
|
|
2122
|
-
/** @returns {SetupPayment} */
|
|
2123
|
-
declare function SetupPayment(): SetupPayment;
|
|
2124
|
-
type SetupPayment = {
|
|
2125
|
-
id?: string;
|
|
2126
|
-
status?: string;
|
|
2127
|
-
customer?: any;
|
|
2128
|
-
client_secret?: string;
|
|
2129
|
-
payment_method?: string;
|
|
2130
|
-
mandate?: string;
|
|
2131
|
-
payment_method_options?: PaymentMethodOptions;
|
|
2132
|
-
};
|
|
2133
|
-
/** @returns {PaymentMethodOptions} */
|
|
2134
|
-
declare function PaymentMethodOptions(): PaymentMethodOptions;
|
|
2135
|
-
type PaymentMethodOptions = {
|
|
2136
|
-
card?: Card;
|
|
2137
|
-
};
|
|
2138
|
-
/** @returns {Card} */
|
|
2139
|
-
declare function Card(): Card;
|
|
2140
|
-
type Card = {
|
|
2141
|
-
mandate_options?: MandateOptions;
|
|
2142
|
-
};
|
|
2143
|
-
/** @returns {MandateOptions} */
|
|
2144
|
-
declare function MandateOptions(): MandateOptions;
|
|
2145
|
-
type MandateOptions = {
|
|
2146
|
-
amount?: number;
|
|
2147
|
-
};
|
|
2148
|
-
/** @returns {Message} */
|
|
2149
|
-
declare function Message(): Message;
|
|
2150
|
-
type Message = {
|
|
2151
|
-
message?: string;
|
|
2152
|
-
};
|
|
2153
|
-
/** @returns {TopupRes} */
|
|
2154
|
-
declare function TopupRes(): TopupRes;
|
|
2155
|
-
type TopupRes = {
|
|
2156
743
|
status?: string;
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
744
|
+
/**
|
|
745
|
+
* - Maximum amount that can be charged, if applicable.
|
|
746
|
+
*/
|
|
747
|
+
capped_amount?: number;
|
|
748
|
+
/**
|
|
749
|
+
* - Date and time when the charge was activated.
|
|
750
|
+
*/
|
|
751
|
+
activated_on?: string;
|
|
752
|
+
/**
|
|
753
|
+
* - Date and time when the charge was cancelled.
|
|
754
|
+
*/
|
|
755
|
+
cancelled_on?: string;
|
|
756
|
+
/**
|
|
757
|
+
* - Date and time when the charge was billed.
|
|
758
|
+
*/
|
|
759
|
+
billing_date?: string;
|
|
760
|
+
current_period?: SubscriptionTrialPeriod;
|
|
761
|
+
/**
|
|
762
|
+
* - Date and time when the charge details were
|
|
763
|
+
* last modified.
|
|
764
|
+
*/
|
|
2177
765
|
modified_at?: string;
|
|
766
|
+
/**
|
|
767
|
+
* - Date and time when the charge was created.
|
|
768
|
+
*/
|
|
769
|
+
created_at?: string;
|
|
770
|
+
/**
|
|
771
|
+
* - Indicates whether the charge is for testing purposes.
|
|
772
|
+
*/
|
|
773
|
+
is_test?: boolean;
|
|
774
|
+
/**
|
|
775
|
+
* - Company id.
|
|
776
|
+
*/
|
|
777
|
+
company_id?: string;
|
|
778
|
+
/**
|
|
779
|
+
* - Additional metadata associated with the charge.
|
|
780
|
+
*/
|
|
781
|
+
meta?: any;
|
|
782
|
+
/**
|
|
783
|
+
* - Internal version key for the charge record.
|
|
784
|
+
*/
|
|
2178
785
|
__v?: number;
|
|
2179
|
-
aggregator_status?: string;
|
|
2180
|
-
current_status?: string;
|
|
2181
|
-
};
|
|
2182
|
-
/** @returns {DefaultReq} */
|
|
2183
|
-
declare function DefaultReq(): DefaultReq;
|
|
2184
|
-
type DefaultReq = {
|
|
2185
|
-
payment_method_id?: string;
|
|
2186
786
|
};
|