chargebee 2.25.3 → 2.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +55 -49
- package/lib/chargebee.js +1 -1
- package/package.json +1 -1
- package/types/core.d.ts +1 -0
- package/types/resources/Address.d.ts +245 -5
- package/types/resources/AdvanceInvoiceSchedule.d.ts +78 -2
- package/types/resources/AttachedItem.d.ts +305 -13
- package/types/resources/Card.d.ts +485 -13
- package/types/resources/Comment.d.ts +177 -11
- package/types/resources/Contact.d.ts +54 -0
- package/types/resources/ContractTerm.d.ts +83 -0
- package/types/resources/Coupon.d.ts +665 -20
- package/types/resources/CouponCode.d.ts +56 -5
- package/types/resources/CouponSet.d.ts +224 -17
- package/types/resources/CreditNote.d.ts +1202 -44
- package/types/resources/CreditNoteEstimate.d.ts +75 -6
- package/types/resources/Customer.d.ts +2132 -73
- package/types/resources/DifferentialPrice.d.ts +266 -15
- package/types/resources/Discount.d.ts +107 -0
- package/types/resources/Download.d.ts +18 -0
- package/types/resources/EntitlementOverride.d.ts +101 -7
- package/types/resources/Estimate.d.ts +1181 -27
- package/types/resources/Event.d.ts +145 -8
- package/types/resources/Export.d.ts +703 -32
- package/types/resources/Feature.d.ts +356 -22
- package/types/resources/Gift.d.ts +351 -24
- package/types/resources/Hierarchy.d.ts +30 -0
- package/types/resources/HostedPage.d.ts +1212 -37
- package/types/resources/ImpactedItem.d.ts +41 -1
- package/types/resources/ImpactedSubscription.d.ts +36 -1
- package/types/resources/InAppSubscription.d.ts +636 -9
- package/types/resources/Invoice.d.ts +2293 -93
- package/types/resources/InvoiceEstimate.d.ts +75 -6
- package/types/resources/Item.d.ts +542 -16
- package/types/resources/ItemEntitlement.d.ts +172 -13
- package/types/resources/ItemFamily.d.ts +173 -15
- package/types/resources/ItemPrice.d.ts +971 -26
- package/types/resources/Media.d.ts +24 -0
- package/types/resources/NonSubscription.d.ts +51 -3
- package/types/resources/Order.d.ts +1224 -32
- package/types/resources/PaymentIntent.d.ts +318 -8
- package/types/resources/PaymentReferenceNumber.d.ts +24 -0
- package/types/resources/PaymentSource.d.ts +1259 -55
- package/types/resources/PaymentVoucher.d.ts +262 -14
- package/types/resources/PortalSession.d.ts +187 -10
- package/types/resources/PromotionalCredit.d.ts +351 -16
- package/types/resources/Purchase.d.ts +274 -5
- package/types/resources/Quote.d.ts +1595 -62
- package/types/resources/QuoteLineGroup.d.ts +134 -5
- package/types/resources/QuotedCharge.d.ts +63 -5
- package/types/resources/QuotedSubscription.d.ts +192 -5
- package/types/resources/ResourceMigration.d.ts +73 -3
- package/types/resources/SiteMigrationDetail.d.ts +98 -5
- package/types/resources/Subscription.d.ts +3462 -137
- package/types/resources/SubscriptionEntitlement.d.ts +116 -8
- package/types/resources/SubscriptionEstimate.d.ts +36 -2
- package/types/resources/TaxWithheld.d.ts +32 -0
- package/types/resources/ThirdPartyPaymentMethod.d.ts +24 -0
- package/types/resources/TimeMachine.d.ts +99 -7
- package/types/resources/Token.d.ts +179 -7
- package/types/resources/Transaction.d.ts +597 -25
- package/types/resources/UnbilledCharge.d.ts +355 -14
- package/types/resources/Usage.d.ts +259 -13
- package/types/resources/VirtualBankAccount.d.ts +255 -17
|
@@ -1,167 +1,838 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface Export {
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @description A unique identifier to identify the export
|
|
7
|
+
|
|
8
|
+
*/
|
|
9
|
+
|
|
4
10
|
id:string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @description Describes the type of export
|
|
14
|
+
|
|
15
|
+
*/
|
|
16
|
+
|
|
5
17
|
operation_type:string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @description Describes the mime type of download file \* pdf - PDF \* zip - ZIP
|
|
21
|
+
|
|
22
|
+
*/
|
|
23
|
+
|
|
6
24
|
mime_type:'zip' | 'pdf';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @description Current status of the export operation \* completed - Completed \* failed - Failed \* in_process - In Process
|
|
28
|
+
|
|
29
|
+
*/
|
|
30
|
+
|
|
7
31
|
status:'in_process' | 'completed' | 'failed';
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @description Export created time
|
|
35
|
+
|
|
36
|
+
*/
|
|
37
|
+
|
|
8
38
|
created_at:number;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @description Returns the download_url for the export. The download URL is valid upto a specific date.
|
|
42
|
+
|
|
43
|
+
*/
|
|
44
|
+
|
|
9
45
|
download?:Export.Download;
|
|
10
46
|
}
|
|
11
47
|
export namespace Export {
|
|
12
|
-
export class ExportResource {
|
|
48
|
+
export class ExportResource {
|
|
49
|
+
/**
|
|
50
|
+
* @description This API triggers export of customer data. The exported zip file contains CSV files with customer-related data.
|
|
51
|
+
|
|
52
|
+
*/
|
|
53
|
+
|
|
13
54
|
customers(input?:CustomersInputParam):ChargebeeRequest<CustomersResponse>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @description This API triggers export of attached item data. The exported zip file contains CSV files with attached item-related data.
|
|
58
|
+
|
|
59
|
+
*/
|
|
60
|
+
|
|
14
61
|
attached_items(input?:AttachedItemsInputParam):ChargebeeRequest<AttachedItemsResponse>;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @description This API triggers export of transaction data. The exported zip file contains CSV files with transaction-related data.
|
|
65
|
+
|
|
66
|
+
*/
|
|
67
|
+
|
|
15
68
|
transactions(input?:TransactionsInputParam):ChargebeeRequest<TransactionsResponse>;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @description This API triggers export of differential price data. The exported zip file contains CSV files with differential price-related data.
|
|
72
|
+
|
|
73
|
+
*/
|
|
74
|
+
|
|
16
75
|
differential_prices(input?:DifferentialPricesInputParam):ChargebeeRequest<DifferentialPricesResponse>;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @description This API triggers export of item family data. The exported zip file contains CSV files with item family-related data.
|
|
79
|
+
|
|
80
|
+
*/
|
|
81
|
+
|
|
17
82
|
item_families(input?:ItemFamiliesInputParam):ChargebeeRequest<ItemFamiliesResponse>;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @description This API triggers export of invoice data. The exported zip file contains CSV files with invoice-related data.
|
|
86
|
+
|
|
87
|
+
*/
|
|
88
|
+
|
|
18
89
|
invoices(input?:InvoicesInputParam):ChargebeeRequest<InvoicesResponse>;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @description This API gets the status of the export job initiated by the Exports API. If the export job is completed, the downloads resource will also be obtained in the API response. The returned URL in the downloads resource is secure and can be downloaded. The URL expires after 4 hours. Please note that this is a public URL, and can be downloaded by anyone with whom it's shared.
|
|
93
|
+
|
|
94
|
+
**Note:** In case the export is in Failed or In-process state, then the downloads resource will not be available.
|
|
95
|
+
|
|
96
|
+
*/
|
|
97
|
+
|
|
19
98
|
retrieve(export_id:string):ChargebeeRequest<RetrieveResponse>;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @description This API triggers export of item data. The exported zip file contains CSV files with item-related data.
|
|
102
|
+
|
|
103
|
+
*/
|
|
104
|
+
|
|
20
105
|
items(input?:ItemsInputParam):ChargebeeRequest<ItemsResponse>;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @description This API triggers export for the Deferred Revenue Report.
|
|
109
|
+
|
|
110
|
+
**Note:** This API call is asynchronous. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. In case you are using any of the client libraries, use the **wait for export completion** function provided as an instance method in the library. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **waitForExportCompletion()** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **waitForExportCompletion()** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **WaitForExportCompletion** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which wait until the export status changes.
|
|
111
|
+
|
|
112
|
+
*/
|
|
113
|
+
|
|
21
114
|
deferred_revenue(input:DeferredRevenueInputParam):ChargebeeRequest<DeferredRevenueResponse>;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @description This API triggers export for the revenue recognition report.
|
|
118
|
+
|
|
119
|
+
**Note:** This API call is asynchronous. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. In case you are using any of the client libraries, use the **wait for export completion** function provided as an instance method in the library. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **waitForExportCompletion()** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **waitForExportCompletion()** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **WaitForExportCompletion** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which wait until the export status changes.
|
|
120
|
+
|
|
121
|
+
*/
|
|
122
|
+
|
|
22
123
|
revenue_recognition(input:RevenueRecognitionInputParam):ChargebeeRequest<RevenueRecognitionResponse>;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @description This API triggers export of credit note data. The exported zip file contains CSV files with credit note-related data.
|
|
127
|
+
|
|
128
|
+
*/
|
|
129
|
+
|
|
23
130
|
credit_notes(input?:CreditNotesInputParam):ChargebeeRequest<CreditNotesResponse>;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @description This API triggers export of coupon data. The exported zip file contains CSV files with coupon-related data.
|
|
134
|
+
|
|
135
|
+
*/
|
|
136
|
+
|
|
24
137
|
coupons(input?:CouponsInputParam):ChargebeeRequest<CouponsResponse>;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @description This API triggers export of order data. The exported zip file contains CSV files with order-related data.
|
|
141
|
+
|
|
142
|
+
*/
|
|
143
|
+
|
|
25
144
|
orders(input?:OrdersInputParam):ChargebeeRequest<OrdersResponse>;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @description This API triggers export of item price data. The exported zip file contains CSV files with item price-related data.
|
|
148
|
+
|
|
149
|
+
*/
|
|
150
|
+
|
|
26
151
|
item_prices(input?:ItemPricesInputParam):ChargebeeRequest<ItemPricesResponse>;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @description This API triggers export of subscription data. The exported zip file contains CSV files with subscription-related data.
|
|
155
|
+
|
|
156
|
+
*/
|
|
157
|
+
|
|
27
158
|
subscriptions(input?:SubscriptionsInputParam):ChargebeeRequest<SubscriptionsResponse>;
|
|
28
159
|
}
|
|
29
|
-
export interface CustomersResponse {
|
|
30
|
-
|
|
160
|
+
export interface CustomersResponse {
|
|
161
|
+
/**
|
|
162
|
+
* @description This API triggers export of customer data. The exported zip file contains CSV files with customer-related data.
|
|
163
|
+
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
export:Export;
|
|
31
167
|
}
|
|
32
168
|
export interface CustomersInputParam {
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @description null
|
|
172
|
+
|
|
173
|
+
*/
|
|
174
|
+
|
|
33
175
|
export_type?:ExportType;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @description The unique ID of the [business entity](/docs/api?prod_cat_ver=2#mbe) of this subscription. This is always the same as the [business entity](/docs/api/subscriptions?prod_cat_ver=2#subscription_customer_id) of the customer.
|
|
179
|
+
The ID of the business entity created for the site. For Product Catalog 1.0, all the site data is tied to this business entity.
|
|
180
|
+
**Note**
|
|
181
|
+
|
|
182
|
+
[Multiple Business Entities](/docs/api?prod_cat_ver=2#mbe) is a feature available only on Product Catalog 2.0.
|
|
183
|
+
|
|
184
|
+
*/
|
|
185
|
+
|
|
34
186
|
business_entity_id?:{is?:string,is_not?:string,starts_with?:string};
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @description Parameters for customer
|
|
190
|
+
|
|
191
|
+
*/
|
|
192
|
+
|
|
35
193
|
customer?:{auto_close_invoices?:{is?:'true' | 'false'},auto_collection?:{in?:string,is?:'off' | 'on',is_not?:'off' | 'on',not_in?:string},channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},company?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},created_at?:{after?:string,before?:string,between?:string,on?:string},email?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},first_name?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},last_name?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},offline_payment_method?:{in?:string,is?:'bank_transfer' | 'no_preference' | 'ach_credit' | 'boleto' | 'check' | 'sepa_credit' | 'cash',is_not?:'bank_transfer' | 'no_preference' | 'ach_credit' | 'boleto' | 'check' | 'sepa_credit' | 'cash',not_in?:string},phone?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},taxability?:{in?:string,is?:'taxable' | 'exempt',is_not?:'taxable' | 'exempt',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @description Parameters for relationship
|
|
197
|
+
|
|
198
|
+
*/
|
|
199
|
+
|
|
36
200
|
relationship?:{invoice_owner_id?:{is?:string,is_not?:string,starts_with?:string},parent_id?:{is?:string,is_not?:string,starts_with?:string},payment_owner_id?:{is?:string,is_not?:string,starts_with?:string}};
|
|
37
201
|
}
|
|
38
|
-
export interface AttachedItemsResponse {
|
|
39
|
-
|
|
202
|
+
export interface AttachedItemsResponse {
|
|
203
|
+
/**
|
|
204
|
+
* @description This API triggers export of attached item data. The exported zip file contains CSV files with attached item-related data.
|
|
205
|
+
|
|
206
|
+
*/
|
|
207
|
+
|
|
208
|
+
export:Export;
|
|
40
209
|
}
|
|
41
210
|
export interface AttachedItemsInputParam {
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @description optional, enumerated string filter
|
|
214
|
+
To filter based on the type of of the attached item. Possible values are : `addon`, `charge`. Possible values are : plan, addon, charge.
|
|
215
|
+
**Supported operators :** is, is_not, in, not_in
|
|
216
|
+
|
|
217
|
+
**Example →** *item_type\[is_not\] = "plan"*
|
|
218
|
+
|
|
219
|
+
*/
|
|
220
|
+
|
|
42
221
|
item_type?:{in?:string,is?:'charge' | 'addon' | 'plan',is_not?:'charge' | 'addon' | 'plan',not_in?:string};
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @description Parameters for attached_item
|
|
225
|
+
|
|
226
|
+
*/
|
|
227
|
+
|
|
43
228
|
attached_item?:{charge_on_event?:{in?:string,is?:'subscription_creation' | 'subscription_activation' | 'subscription_trial_start' | 'contract_termination' | 'plan_activation' | 'on_demand',is_not?:'subscription_creation' | 'subscription_activation' | 'subscription_trial_start' | 'contract_termination' | 'plan_activation' | 'on_demand',not_in?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},parent_item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},type?:{in?:string,is?:'optional' | 'mandatory' | 'recommended',is_not?:'optional' | 'mandatory' | 'recommended',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
44
229
|
}
|
|
45
|
-
export interface TransactionsResponse {
|
|
46
|
-
|
|
230
|
+
export interface TransactionsResponse {
|
|
231
|
+
/**
|
|
232
|
+
* @description This API triggers export of transaction data. The exported zip file contains CSV files with transaction-related data.
|
|
233
|
+
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
export:Export;
|
|
47
237
|
}
|
|
48
238
|
export interface TransactionsInputParam {
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @description Parameters for transaction
|
|
242
|
+
|
|
243
|
+
*/
|
|
244
|
+
|
|
49
245
|
transaction?:{amount?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},amount_capturable?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},customer_id?:{in?:string,is?:string,is_not?:string,is_present?:'true' | 'false',not_in?:string,starts_with?:string},date?:{after?:string,before?:string,between?:string,on?:string},gateway?:{in?:string,is?:'bluepay' | 'beanstream' | 'elavon' | 'orbital' | 'hdfc' | 'nmi' | 'moneris' | 'metrics_global' | 'pin' | 'stripe' | 'quickbooks' | 'razorpay' | 'eway_rapid' | 'balanced_payments' | 'ecentric' | 'wepay' | 'chargebee_payments' | 'bank_of_america' | 'braintree' | 'first_data_global' | 'paypal_express_checkout' | 'ingenico_direct' | 'moneris_us' | 'exact' | 'migs' | 'checkout_com' | 'not_applicable' | 'paypal_pro' | 'ogone' | 'eway' | 'gocardless' | 'global_payments' | 'paymill' | 'adyen' | 'paypal' | 'chargebee' | 'authorize_net' | 'tco' | 'bluesnap' | 'windcave' | 'paypal_payflow_pro' | 'amazon_payments' | 'mollie' | 'cybersource' | 'wirecard' | 'sage_pay' | 'vantiv' | 'worldpay',is_not?:'bluepay' | 'beanstream' | 'elavon' | 'orbital' | 'hdfc' | 'nmi' | 'moneris' | 'metrics_global' | 'pin' | 'stripe' | 'quickbooks' | 'razorpay' | 'eway_rapid' | 'balanced_payments' | 'ecentric' | 'wepay' | 'chargebee_payments' | 'bank_of_america' | 'braintree' | 'first_data_global' | 'paypal_express_checkout' | 'ingenico_direct' | 'moneris_us' | 'exact' | 'migs' | 'checkout_com' | 'not_applicable' | 'paypal_pro' | 'ogone' | 'eway' | 'gocardless' | 'global_payments' | 'paymill' | 'adyen' | 'paypal' | 'chargebee' | 'authorize_net' | 'tco' | 'bluesnap' | 'windcave' | 'paypal_payflow_pro' | 'amazon_payments' | 'mollie' | 'cybersource' | 'wirecard' | 'sage_pay' | 'vantiv' | 'worldpay',not_in?:string},gateway_account_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},id_at_gateway?:{is?:string,is_not?:string,starts_with?:string},payment_method?:{in?:string,is?:'other' | 'netbanking_emandates' | 'ach_credit' | 'dotpay' | 'boleto' | 'direct_debit' | 'chargeback' | 'wechat_pay' | 'cash' | 'giropay' | 'bank_transfer' | 'alipay' | 'ideal' | 'google_pay' | 'custom' | 'unionpay' | 'check' | 'sofort' | 'amazon_payments' | 'upi' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'sepa_credit' | 'card',is_not?:'other' | 'netbanking_emandates' | 'ach_credit' | 'dotpay' | 'boleto' | 'direct_debit' | 'chargeback' | 'wechat_pay' | 'cash' | 'giropay' | 'bank_transfer' | 'alipay' | 'ideal' | 'google_pay' | 'custom' | 'unionpay' | 'check' | 'sofort' | 'amazon_payments' | 'upi' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'sepa_credit' | 'card',not_in?:string},payment_source_id?:{in?:string,is?:string,is_not?:string,is_present?:'true' | 'false',not_in?:string,starts_with?:string},reference_number?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},status?:{in?:string,is?:'in_progress' | 'success' | 'failure' | 'voided' | 'timeout' | 'needs_attention',is_not?:'in_progress' | 'success' | 'failure' | 'voided' | 'timeout' | 'needs_attention',not_in?:string},subscription_id?:{in?:string,is?:string,is_not?:string,is_present?:'true' | 'false',not_in?:string,starts_with?:string},type?:{in?:string,is?:'authorization' | 'payment_reversal' | 'payment' | 'refund',is_not?:'authorization' | 'payment_reversal' | 'payment' | 'refund',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
50
246
|
}
|
|
51
|
-
export interface DifferentialPricesResponse {
|
|
52
|
-
|
|
247
|
+
export interface DifferentialPricesResponse {
|
|
248
|
+
/**
|
|
249
|
+
* @description This API triggers export of differential price data. The exported zip file contains CSV files with differential price-related data.
|
|
250
|
+
|
|
251
|
+
*/
|
|
252
|
+
|
|
253
|
+
export:Export;
|
|
53
254
|
}
|
|
54
255
|
export interface DifferentialPricesInputParam {
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @description optional, string filter
|
|
259
|
+
Item Id of Addon / Charge item price for which differential pricing is applied to.
|
|
260
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
261
|
+
|
|
262
|
+
**Example →** *item_id\[is\] = "day-pass"*
|
|
263
|
+
|
|
264
|
+
*/
|
|
265
|
+
|
|
55
266
|
item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* @description Parameters for differential_price
|
|
270
|
+
|
|
271
|
+
*/
|
|
272
|
+
|
|
56
273
|
differential_price?:{id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},item_price_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},parent_item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string}};
|
|
57
274
|
}
|
|
58
|
-
export interface ItemFamiliesResponse {
|
|
59
|
-
|
|
275
|
+
export interface ItemFamiliesResponse {
|
|
276
|
+
/**
|
|
277
|
+
* @description This API triggers export of item family data. The exported zip file contains CSV files with item family-related data.
|
|
278
|
+
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
export:Export;
|
|
60
282
|
}
|
|
61
283
|
export interface ItemFamiliesInputParam {
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @description Parameters for item_family
|
|
287
|
+
|
|
288
|
+
*/
|
|
289
|
+
|
|
62
290
|
item_family?:{id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},name?:{is?:string,is_not?:string,starts_with?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
63
291
|
}
|
|
64
|
-
export interface InvoicesResponse {
|
|
65
|
-
|
|
292
|
+
export interface InvoicesResponse {
|
|
293
|
+
/**
|
|
294
|
+
* @description This API triggers export of invoice data. The exported zip file contains CSV files with invoice-related data.
|
|
295
|
+
|
|
296
|
+
*/
|
|
297
|
+
|
|
298
|
+
export:Export;
|
|
66
299
|
}
|
|
67
300
|
export interface InvoicesInputParam {
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* @description optional, string filter
|
|
304
|
+
Payment owner of an invoice.
|
|
305
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
306
|
+
|
|
307
|
+
**Example →** *payment_owner\[is\] = "payment_customer"*
|
|
308
|
+
|
|
309
|
+
*/
|
|
310
|
+
|
|
68
311
|
payment_owner?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* @description Parameters for invoice
|
|
315
|
+
|
|
316
|
+
*/
|
|
317
|
+
|
|
69
318
|
invoice?:{amount_adjusted?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},amount_due?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},amount_paid?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},credits_applied?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},customer_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},date?:{after?:string,before?:string,between?:string,on?:string},dunning_status?:{in?:string,is?:'in_progress' | 'stopped' | 'success' | 'exhausted',is_not?:'in_progress' | 'stopped' | 'success' | 'exhausted',is_present?:'true' | 'false',not_in?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},paid_at?:{after?:string,before?:string,between?:string,on?:string},price_type?:{in?:string,is?:'tax_exclusive' | 'tax_inclusive',is_not?:'tax_exclusive' | 'tax_inclusive',not_in?:string},recurring?:{is?:'true' | 'false'},status?:{in?:string,is?:'pending' | 'paid' | 'voided' | 'not_paid' | 'posted' | 'payment_due',is_not?:'pending' | 'paid' | 'voided' | 'not_paid' | 'posted' | 'payment_due',not_in?:string},subscription_id?:{in?:string,is?:string,is_not?:string,is_present?:'true' | 'false',not_in?:string,starts_with?:string},total?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
70
319
|
}
|
|
71
|
-
export interface RetrieveResponse {
|
|
72
|
-
|
|
320
|
+
export interface RetrieveResponse {
|
|
321
|
+
/**
|
|
322
|
+
* @description This API gets the status of the export job initiated by the Exports API. If the export job is completed, the downloads resource will also be obtained in the API response. The returned URL in the downloads resource is secure and can be downloaded. The URL expires after 4 hours. Please note that this is a public URL, and can be downloaded by anyone with whom it's shared.
|
|
323
|
+
|
|
324
|
+
**Note:** In case the export is in Failed or In-process state, then the downloads resource will not be available.
|
|
325
|
+
|
|
326
|
+
*/
|
|
327
|
+
|
|
328
|
+
export:Export;
|
|
73
329
|
}
|
|
74
330
|
|
|
75
|
-
export interface ItemsResponse {
|
|
76
|
-
|
|
331
|
+
export interface ItemsResponse {
|
|
332
|
+
/**
|
|
333
|
+
* @description This API triggers export of item data. The exported zip file contains CSV files with item-related data.
|
|
334
|
+
|
|
335
|
+
*/
|
|
336
|
+
|
|
337
|
+
export:Export;
|
|
77
338
|
}
|
|
78
339
|
export interface ItemsInputParam {
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @description Parameters for item
|
|
343
|
+
|
|
344
|
+
*/
|
|
345
|
+
|
|
79
346
|
item?:{channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},enabled_for_checkout?:{is?:'true' | 'false'},enabled_in_portal?:{is?:'true' | 'false'},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},is_giftable?:{is?:'true' | 'false'},item_applicability?:{in?:string,is?:'all' | 'restricted',is_not?:'all' | 'restricted',not_in?:string},item_family_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},metered?:{is?:'true' | 'false'},name?:{is?:string,is_not?:string,starts_with?:string},status?:{in?:string,is?:'archived' | 'deleted' | 'active',is_not?:'archived' | 'deleted' | 'active',not_in?:string},type?:{in?:string,is?:'charge' | 'addon' | 'plan',is_not?:'charge' | 'addon' | 'plan',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string},usage_calculation?:{in?:string,is?:'max_usage' | 'sum_of_usages' | 'last_usage',is_not?:'max_usage' | 'sum_of_usages' | 'last_usage',not_in?:string}};
|
|
80
347
|
}
|
|
81
|
-
export interface DeferredRevenueResponse {
|
|
82
|
-
|
|
348
|
+
export interface DeferredRevenueResponse {
|
|
349
|
+
/**
|
|
350
|
+
* @description This API triggers export for the Deferred Revenue Report.
|
|
351
|
+
|
|
352
|
+
**Note:** This API call is asynchronous. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. In case you are using any of the client libraries, use the **wait for export completion** function provided as an instance method in the library. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **waitForExportCompletion()** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **waitForExportCompletion()** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **WaitForExportCompletion** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which wait until the export status changes.
|
|
353
|
+
|
|
354
|
+
*/
|
|
355
|
+
|
|
356
|
+
export:Export;
|
|
83
357
|
}
|
|
84
358
|
export interface DeferredRevenueInputParam {
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* @description Determines the scope of the report. Returns the report based on the value specified. \* subscription - Subscription \* invoice - Invoice \* product - Product (Includes Plan, Addon and Adhoc) \* customer - Customer
|
|
362
|
+
|
|
363
|
+
*/
|
|
364
|
+
|
|
85
365
|
report_by:ReportBy;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* @description Value must be in ISO 4217 format. Generates the report based on the value specified. If no currency_code value is specified, then consolidated report based on base currency is returned.
|
|
369
|
+
|
|
370
|
+
*/
|
|
371
|
+
|
|
86
372
|
currency_code?:string;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* @description Obtains report data from the specified month, combined with the value specified for report_from_year.Values must be between 1 and 12, where 1 is January and 12 is December.
|
|
376
|
+
|
|
377
|
+
*/
|
|
378
|
+
|
|
87
379
|
report_from_month:number;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* @description Obtains report data from the specified year, combined with the value specified for report_from_month.
|
|
383
|
+
|
|
384
|
+
*/
|
|
385
|
+
|
|
88
386
|
report_from_year:number;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* @description Obtains report data from the specified month, combined with the value specified for report_to_year.Values must be between 1 and 12, where 1 is January and 12 is December.
|
|
390
|
+
|
|
391
|
+
*/
|
|
392
|
+
|
|
89
393
|
report_to_month:number;
|
|
394
|
+
|
|
395
|
+
/**
|
|
396
|
+
* @description Obtains report data until the specified year, combined with the value specified for report_to_month.
|
|
397
|
+
|
|
398
|
+
*/
|
|
399
|
+
|
|
90
400
|
report_to_year:number;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* @description Returns amount with discount in the report. If value specified is false, it returns amount without discount.
|
|
404
|
+
|
|
405
|
+
*/
|
|
406
|
+
|
|
91
407
|
include_discounts?:boolean;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* @description optional, string filter
|
|
411
|
+
Payment owner of an invoice.
|
|
412
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
413
|
+
|
|
414
|
+
**Example →** *payment_owner\[is\] = "payment_customer"*
|
|
415
|
+
|
|
416
|
+
*/
|
|
417
|
+
|
|
92
418
|
payment_owner?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* @description optional, string filter
|
|
422
|
+
The plan item code.
|
|
423
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
424
|
+
|
|
425
|
+
**Example →** *item_id\[is\] = "silver"*
|
|
426
|
+
|
|
427
|
+
*/
|
|
428
|
+
|
|
93
429
|
item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* @description optional, string filter
|
|
433
|
+
The plan item price code.
|
|
434
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
435
|
+
|
|
436
|
+
**Example →** *item_price_id\[is\] = "silver-USD-monthly"*
|
|
437
|
+
|
|
438
|
+
*/
|
|
439
|
+
|
|
94
440
|
item_price_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* @description optional, string filter
|
|
444
|
+
Reason code for canceling the subscription. Must be one from a list of reason codes set in the Chargebee app in **Settings \> Configure Chargebee \> Reason Codes \> Subscriptions \> Subscription Cancellation** . Must be passed if set as mandatory in the app. The codes are case-sensitive.
|
|
445
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
446
|
+
|
|
447
|
+
**Example →** *cancel_reason_code\[is\] = "Not Paid"*
|
|
448
|
+
|
|
449
|
+
*/
|
|
450
|
+
|
|
95
451
|
cancel_reason_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* @description The unique ID of the [business entity](/docs/api?prod_cat_ver=2#mbe) of this subscription. This is always the same as the [business entity](/docs/api/subscriptions?prod_cat_ver=2#subscription_customer_id) of the customer.
|
|
455
|
+
The ID of the business entity created for the site. For Product Catalog 1.0, all the site data is tied to this business entity.
|
|
456
|
+
**Note**
|
|
457
|
+
|
|
458
|
+
[Multiple Business Entities](/docs/api?prod_cat_ver=2#mbe) is a feature available only on Product Catalog 2.0.
|
|
459
|
+
|
|
460
|
+
*/
|
|
461
|
+
|
|
96
462
|
business_entity_id?:{is?:string,is_not?:string,starts_with?:string};
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* @description Parameters for invoice
|
|
466
|
+
|
|
467
|
+
*/
|
|
468
|
+
|
|
97
469
|
invoice?:{amount_adjusted?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},amount_due?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},amount_paid?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},credits_applied?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},date?:{after?:string,before?:string,between?:string,on?:string},dunning_status?:{in?:string,is?:'in_progress' | 'stopped' | 'success' | 'exhausted',is_not?:'in_progress' | 'stopped' | 'success' | 'exhausted',is_present?:'true' | 'false',not_in?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},paid_at?:{after?:string,before?:string,between?:string,on?:string},price_type?:{in?:string,is?:'tax_exclusive' | 'tax_inclusive',is_not?:'tax_exclusive' | 'tax_inclusive',not_in?:string},recurring?:{is?:'true' | 'false'},status?:{in?:string,is?:'pending' | 'paid' | 'voided' | 'not_paid' | 'posted' | 'payment_due',is_not?:'pending' | 'paid' | 'voided' | 'not_paid' | 'posted' | 'payment_due',not_in?:string},total?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* @description Parameters for subscription
|
|
473
|
+
|
|
474
|
+
*/
|
|
475
|
+
|
|
98
476
|
subscription?:{activated_at?:{after?:string,before?:string,between?:string,is_present?:'true' | 'false',on?:string},auto_close_invoices?:{is?:'true' | 'false'},cancel_reason?:{in?:string,is?:'tax_calculation_failed' | 'fraud_review_failed' | 'currency_incompatible_with_gateway' | 'non_compliant_eu_customer' | 'non_compliant_customer' | 'not_paid' | 'no_card',is_not?:'tax_calculation_failed' | 'fraud_review_failed' | 'currency_incompatible_with_gateway' | 'non_compliant_eu_customer' | 'non_compliant_customer' | 'not_paid' | 'no_card',is_present?:'true' | 'false',not_in?:string},cancelled_at?:{after?:string,before?:string,between?:string,on?:string},channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},created_at?:{after?:string,before?:string,between?:string,on?:string},customer_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},has_scheduled_changes?:{is?:'true' | 'false'},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},next_billing_at?:{after?:string,before?:string,between?:string,on?:string},offline_payment_method?:{in?:string,is?:'bank_transfer' | 'no_preference' | 'ach_credit' | 'boleto' | 'check' | 'sepa_credit' | 'cash',is_not?:'bank_transfer' | 'no_preference' | 'ach_credit' | 'boleto' | 'check' | 'sepa_credit' | 'cash',not_in?:string},remaining_billing_cycles?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,is_present?:'true' | 'false',lt?:string,lte?:string},status?:{in?:string,is?:'in_trial' | 'paused' | 'future' | 'active' | 'cancelled' | 'non_renewing',is_not?:'in_trial' | 'paused' | 'future' | 'active' | 'cancelled' | 'non_renewing',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* @description Parameters for customer
|
|
480
|
+
|
|
481
|
+
*/
|
|
482
|
+
|
|
99
483
|
customer?:{auto_close_invoices?:{is?:'true' | 'false'},auto_collection?:{in?:string,is?:'off' | 'on',is_not?:'off' | 'on',not_in?:string},channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},company?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},created_at?:{after?:string,before?:string,between?:string,on?:string},email?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},first_name?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},last_name?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},offline_payment_method?:{in?:string,is?:'bank_transfer' | 'no_preference' | 'ach_credit' | 'boleto' | 'check' | 'sepa_credit' | 'cash',is_not?:'bank_transfer' | 'no_preference' | 'ach_credit' | 'boleto' | 'check' | 'sepa_credit' | 'cash',not_in?:string},phone?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},taxability?:{in?:string,is?:'taxable' | 'exempt',is_not?:'taxable' | 'exempt',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* @description Parameters for relationship
|
|
487
|
+
|
|
488
|
+
*/
|
|
489
|
+
|
|
100
490
|
relationship?:{invoice_owner_id?:{is?:string,is_not?:string,starts_with?:string},parent_id?:{is?:string,is_not?:string,starts_with?:string},payment_owner_id?:{is?:string,is_not?:string,starts_with?:string}};
|
|
101
491
|
}
|
|
102
|
-
export interface RevenueRecognitionResponse {
|
|
103
|
-
|
|
492
|
+
export interface RevenueRecognitionResponse {
|
|
493
|
+
/**
|
|
494
|
+
* @description This API triggers export for the revenue recognition report.
|
|
495
|
+
|
|
496
|
+
**Note:** This API call is asynchronous. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. In case you are using any of the client libraries, use the **wait for export completion** function provided as an instance method in the library. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **waitForExportCompletion()** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **waitForExportCompletion()** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **WaitForExportCompletion** on the returned **Export** resource which will wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which wait until the export status changes. You need to check if this operation has completed by checking if the export status is **completed** . You can do this by retrieving the export in a loop with a minimum delay of 10 secs between two retrieve requests. Use the method **wait_for_export_completion** on the returned **export** resource which wait until the export status changes.
|
|
497
|
+
|
|
498
|
+
*/
|
|
499
|
+
|
|
500
|
+
export:Export;
|
|
104
501
|
}
|
|
105
502
|
export interface RevenueRecognitionInputParam {
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* @description Determines the scope of the report. Returns the report based on the value specified. \* subscription - Subscription \* invoice - Invoice \* product - Product (Includes Plan, Addon and Adhoc) \* customer - Customer
|
|
506
|
+
|
|
507
|
+
*/
|
|
508
|
+
|
|
106
509
|
report_by:ReportBy;
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* @description Value must be in [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) format. Generates the report based on the value specified. If no currency_code value is specified, then consolidated report based on base currency is returned.
|
|
513
|
+
|
|
514
|
+
*/
|
|
515
|
+
|
|
107
516
|
currency_code?:string;
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* @description Obtains report data from the specified month, combined with the value specified for report_from_year. Values must be between 1 and 12, where 1 is January and 12 is December.
|
|
520
|
+
|
|
521
|
+
*/
|
|
522
|
+
|
|
108
523
|
report_from_month:number;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* @description Obtains report data from the specified year, combined with the value specified for report_from_month.
|
|
527
|
+
|
|
528
|
+
*/
|
|
529
|
+
|
|
109
530
|
report_from_year:number;
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* @description Obtains report data from the specified month, combined with the value specified for report_to_year. Values must be between 1 and 12, where 1 is January and 12 is December.
|
|
534
|
+
|
|
535
|
+
*/
|
|
536
|
+
|
|
110
537
|
report_to_month:number;
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* @description Obtains report data until the specified year, combined with the value specified for report_to_month.
|
|
541
|
+
|
|
542
|
+
*/
|
|
543
|
+
|
|
111
544
|
report_to_year:number;
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* @description Returns amount with discount in the report. If value specified is false, it returns amount without discount.
|
|
548
|
+
|
|
549
|
+
*/
|
|
550
|
+
|
|
112
551
|
include_discounts?:boolean;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* @description optional, string filter
|
|
555
|
+
Payment owner of an invoice.
|
|
556
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
557
|
+
|
|
558
|
+
**Example →** *payment_owner\[is\] = "payment_customer"*
|
|
559
|
+
|
|
560
|
+
*/
|
|
561
|
+
|
|
113
562
|
payment_owner?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* @description optional, string filter
|
|
566
|
+
The plan item code.
|
|
567
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
568
|
+
|
|
569
|
+
**Example →** *item_id\[is\] = "silver"*
|
|
570
|
+
|
|
571
|
+
*/
|
|
572
|
+
|
|
114
573
|
item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* @description optional, string filter
|
|
577
|
+
The plan item price code.
|
|
578
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
579
|
+
|
|
580
|
+
**Example →** *item_price_id\[is\] = "silver-USD-monthly"*
|
|
581
|
+
|
|
582
|
+
*/
|
|
583
|
+
|
|
115
584
|
item_price_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* @description optional, string filter
|
|
588
|
+
Reason code for canceling the subscription. Must be one from a list of reason codes set in the Chargebee app in **Settings \> Configure Chargebee \> Reason Codes \> Subscriptions \> Subscription Cancellation** . Must be passed if set as mandatory in the app. The codes are case-sensitive.
|
|
589
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
590
|
+
|
|
591
|
+
**Example →** *cancel_reason_code\[is\] = "Not Paid"*
|
|
592
|
+
|
|
593
|
+
*/
|
|
594
|
+
|
|
116
595
|
cancel_reason_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* @description The unique ID of the [business entity](/docs/api?prod_cat_ver=2#mbe) of this subscription. This is always the same as the [business entity](/docs/api/subscriptions?prod_cat_ver=2#subscription_customer_id) of the customer.
|
|
599
|
+
The ID of the business entity created for the site. For Product Catalog 1.0, all the site data is tied to this business entity.
|
|
600
|
+
**Note**
|
|
601
|
+
|
|
602
|
+
[Multiple Business Entities](/docs/api?prod_cat_ver=2#mbe) is a feature available only on Product Catalog 2.0.
|
|
603
|
+
|
|
604
|
+
*/
|
|
605
|
+
|
|
117
606
|
business_entity_id?:{is?:string,is_not?:string,starts_with?:string};
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* @description Parameters for invoice
|
|
610
|
+
|
|
611
|
+
*/
|
|
612
|
+
|
|
118
613
|
invoice?:{amount_adjusted?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},amount_due?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},amount_paid?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},credits_applied?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},date?:{after?:string,before?:string,between?:string,on?:string},dunning_status?:{in?:string,is?:'in_progress' | 'stopped' | 'success' | 'exhausted',is_not?:'in_progress' | 'stopped' | 'success' | 'exhausted',is_present?:'true' | 'false',not_in?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},paid_at?:{after?:string,before?:string,between?:string,on?:string},price_type?:{in?:string,is?:'tax_exclusive' | 'tax_inclusive',is_not?:'tax_exclusive' | 'tax_inclusive',not_in?:string},recurring?:{is?:'true' | 'false'},status?:{in?:string,is?:'pending' | 'paid' | 'voided' | 'not_paid' | 'posted' | 'payment_due',is_not?:'pending' | 'paid' | 'voided' | 'not_paid' | 'posted' | 'payment_due',not_in?:string},total?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* @description Parameters for subscription
|
|
617
|
+
|
|
618
|
+
*/
|
|
619
|
+
|
|
119
620
|
subscription?:{activated_at?:{after?:string,before?:string,between?:string,is_present?:'true' | 'false',on?:string},auto_close_invoices?:{is?:'true' | 'false'},cancel_reason?:{in?:string,is?:'tax_calculation_failed' | 'fraud_review_failed' | 'currency_incompatible_with_gateway' | 'non_compliant_eu_customer' | 'non_compliant_customer' | 'not_paid' | 'no_card',is_not?:'tax_calculation_failed' | 'fraud_review_failed' | 'currency_incompatible_with_gateway' | 'non_compliant_eu_customer' | 'non_compliant_customer' | 'not_paid' | 'no_card',is_present?:'true' | 'false',not_in?:string},cancelled_at?:{after?:string,before?:string,between?:string,on?:string},channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},created_at?:{after?:string,before?:string,between?:string,on?:string},customer_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},has_scheduled_changes?:{is?:'true' | 'false'},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},next_billing_at?:{after?:string,before?:string,between?:string,on?:string},offline_payment_method?:{in?:string,is?:'bank_transfer' | 'no_preference' | 'ach_credit' | 'boleto' | 'check' | 'sepa_credit' | 'cash',is_not?:'bank_transfer' | 'no_preference' | 'ach_credit' | 'boleto' | 'check' | 'sepa_credit' | 'cash',not_in?:string},remaining_billing_cycles?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,is_present?:'true' | 'false',lt?:string,lte?:string},status?:{in?:string,is?:'in_trial' | 'paused' | 'future' | 'active' | 'cancelled' | 'non_renewing',is_not?:'in_trial' | 'paused' | 'future' | 'active' | 'cancelled' | 'non_renewing',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* @description Parameters for customer
|
|
624
|
+
|
|
625
|
+
*/
|
|
626
|
+
|
|
120
627
|
customer?:{auto_close_invoices?:{is?:'true' | 'false'},auto_collection?:{in?:string,is?:'off' | 'on',is_not?:'off' | 'on',not_in?:string},channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},company?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},created_at?:{after?:string,before?:string,between?:string,on?:string},email?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},first_name?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},last_name?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},offline_payment_method?:{in?:string,is?:'bank_transfer' | 'no_preference' | 'ach_credit' | 'boleto' | 'check' | 'sepa_credit' | 'cash',is_not?:'bank_transfer' | 'no_preference' | 'ach_credit' | 'boleto' | 'check' | 'sepa_credit' | 'cash',not_in?:string},phone?:{is?:string,is_not?:string,is_present?:'true' | 'false',starts_with?:string},taxability?:{in?:string,is?:'taxable' | 'exempt',is_not?:'taxable' | 'exempt',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* @description Parameters for relationship
|
|
631
|
+
|
|
632
|
+
*/
|
|
633
|
+
|
|
121
634
|
relationship?:{invoice_owner_id?:{is?:string,is_not?:string,starts_with?:string},parent_id?:{is?:string,is_not?:string,starts_with?:string},payment_owner_id?:{is?:string,is_not?:string,starts_with?:string}};
|
|
122
635
|
}
|
|
123
|
-
export interface CreditNotesResponse {
|
|
124
|
-
|
|
636
|
+
export interface CreditNotesResponse {
|
|
637
|
+
/**
|
|
638
|
+
* @description This API triggers export of credit note data. The exported zip file contains CSV files with credit note-related data.
|
|
639
|
+
|
|
640
|
+
*/
|
|
641
|
+
|
|
642
|
+
export:Export;
|
|
125
643
|
}
|
|
126
644
|
export interface CreditNotesInputParam {
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* @description Parameters for credit_note
|
|
648
|
+
|
|
649
|
+
*/
|
|
650
|
+
|
|
127
651
|
credit_note?:{amount_allocated?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},amount_available?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},amount_refunded?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},create_reason_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},customer_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},date?:{after?:string,before?:string,between?:string,on?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},price_type?:{in?:string,is?:'tax_exclusive' | 'tax_inclusive',is_not?:'tax_exclusive' | 'tax_inclusive',not_in?:string},reason_code?:{in?:string,is?:'other' | 'product_unsatisfactory' | 'subscription_pause' | 'order_cancellation' | 'service_unsatisfactory' | 'subscription_cancellation' | 'chargeback' | 'order_change' | 'write_off' | 'waiver' | 'subscription_change' | 'fraudulent',is_not?:'other' | 'product_unsatisfactory' | 'subscription_pause' | 'order_cancellation' | 'service_unsatisfactory' | 'subscription_cancellation' | 'chargeback' | 'order_change' | 'write_off' | 'waiver' | 'subscription_change' | 'fraudulent',not_in?:string},reference_invoice_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},status?:{in?:string,is?:'refund_due' | 'adjusted' | 'refunded' | 'voided',is_not?:'refund_due' | 'adjusted' | 'refunded' | 'voided',not_in?:string},subscription_id?:{in?:string,is?:string,is_not?:string,is_present?:'true' | 'false',not_in?:string,starts_with?:string},total?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},type?:{in?:string,is?:'adjustment' | 'refundable',is_not?:'adjustment' | 'refundable',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string},voided_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
128
652
|
}
|
|
129
|
-
export interface CouponsResponse {
|
|
130
|
-
|
|
653
|
+
export interface CouponsResponse {
|
|
654
|
+
/**
|
|
655
|
+
* @description This API triggers export of coupon data. The exported zip file contains CSV files with coupon-related data.
|
|
656
|
+
|
|
657
|
+
*/
|
|
658
|
+
|
|
659
|
+
export:Export;
|
|
131
660
|
}
|
|
132
661
|
export interface CouponsInputParam {
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* @description optional, string filter
|
|
665
|
+
The currency code ([ISO 4217 format](https://www.chargebee.com/docs/supported-currencies.html)) of the coupon. Applicable for *fixed_amount* coupons alone.
|
|
666
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
667
|
+
|
|
668
|
+
**Example →** *currency_code\[is\] = "USD"*
|
|
669
|
+
|
|
670
|
+
*/
|
|
671
|
+
|
|
133
672
|
currency_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* @description Parameters for coupon
|
|
676
|
+
|
|
677
|
+
*/
|
|
678
|
+
|
|
134
679
|
coupon?:{apply_on?:{in?:string,is?:'invoice_amount' | 'each_specified_item',is_not?:'invoice_amount' | 'each_specified_item',not_in?:string},created_at?:{after?:string,before?:string,between?:string,on?:string},discount_type?:{in?:string,is?:'fixed_amount' | 'percentage',is_not?:'fixed_amount' | 'percentage',not_in?:string},duration_type?:{in?:string,is?:'limited_period' | 'one_time' | 'forever',is_not?:'limited_period' | 'one_time' | 'forever',not_in?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},name?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},status?:{in?:string,is?:'archived' | 'expired' | 'deleted' | 'active',is_not?:'archived' | 'expired' | 'deleted' | 'active',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
135
680
|
}
|
|
136
|
-
export interface OrdersResponse {
|
|
137
|
-
|
|
681
|
+
export interface OrdersResponse {
|
|
682
|
+
/**
|
|
683
|
+
* @description This API triggers export of order data. The exported zip file contains CSV files with order-related data.
|
|
684
|
+
|
|
685
|
+
*/
|
|
686
|
+
|
|
687
|
+
export:Export;
|
|
138
688
|
}
|
|
139
689
|
export interface OrdersInputParam {
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* @description optional, in cents filter
|
|
693
|
+
Total amount charged for the order.
|
|
694
|
+
**Supported operators :** is, is_not, lt, lte, gt, gte, between
|
|
695
|
+
|
|
696
|
+
**Example →** *total\[is\] = "1394532759"*
|
|
697
|
+
|
|
698
|
+
*/
|
|
699
|
+
|
|
140
700
|
total?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string};
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* @description Parameters for order
|
|
704
|
+
|
|
705
|
+
*/
|
|
706
|
+
|
|
141
707
|
order?:{amount_paid?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},cancelled_at?:{after?:string,before?:string,between?:string,on?:string},customer_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},delivered_at?:{after?:string,before?:string,between?:string,on?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},is_resent?:{is?:'true' | 'false'},order_date?:{after?:string,before?:string,between?:string,on?:string},original_order_id?:{is?:string,is_not?:string,starts_with?:string},price_type?:{in?:string,is?:'tax_exclusive' | 'tax_inclusive',is_not?:'tax_exclusive' | 'tax_inclusive',not_in?:string},refundable_credits?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},refundable_credits_issued?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},resent_status?:{in?:string,is?:'fully_resent' | 'partially_resent',is_not?:'fully_resent' | 'partially_resent',not_in?:string},shipped_at?:{after?:string,before?:string,between?:string,on?:string},shipping_date?:{after?:string,before?:string,between?:string,on?:string},status?:{in?:string,is?:'new' | 'partially_delivered' | 'queued' | 'delivered' | 'on_hold' | 'shipped' | 'processing' | 'cancelled' | 'voided' | 'complete' | 'awaiting_shipment' | 'returned',is_not?:'new' | 'partially_delivered' | 'queued' | 'delivered' | 'on_hold' | 'shipped' | 'processing' | 'cancelled' | 'voided' | 'complete' | 'awaiting_shipment' | 'returned',not_in?:string},subscription_id?:{in?:string,is?:string,is_not?:string,is_present?:'true' | 'false',not_in?:string,starts_with?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
142
708
|
}
|
|
143
|
-
export interface ItemPricesResponse {
|
|
144
|
-
|
|
709
|
+
export interface ItemPricesResponse {
|
|
710
|
+
/**
|
|
711
|
+
* @description This API triggers export of item price data. The exported zip file contains CSV files with item price-related data.
|
|
712
|
+
|
|
713
|
+
*/
|
|
714
|
+
|
|
715
|
+
export:Export;
|
|
145
716
|
}
|
|
146
717
|
export interface ItemPricesInputParam {
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* @description optional, string filter
|
|
721
|
+
Filter item prices based on `item_family_id`.
|
|
722
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
723
|
+
|
|
724
|
+
**Example →** *item_family_id\[is\] = "Acme"*
|
|
725
|
+
|
|
726
|
+
*/
|
|
727
|
+
|
|
147
728
|
item_family_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* @description optional, enumerated string filter
|
|
732
|
+
Filter item prices based on `item_type`. Possible values are : plan, addon, charge.
|
|
733
|
+
**Supported operators :** is, is_not, in, not_in
|
|
734
|
+
|
|
735
|
+
**Example →** *item_type\[is_not\] = "plan"*
|
|
736
|
+
|
|
737
|
+
*/
|
|
738
|
+
|
|
148
739
|
item_type?:{in?:string,is?:'charge' | 'addon' | 'plan',is_not?:'charge' | 'addon' | 'plan',not_in?:string};
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* @description optional, string filter
|
|
743
|
+
Filter item prices based on their `currency_code`.
|
|
744
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
745
|
+
|
|
746
|
+
**Example →** *currency_code\[is\] = "USD"*
|
|
747
|
+
|
|
748
|
+
*/
|
|
749
|
+
|
|
149
750
|
currency_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* @description Parameters for item_price
|
|
754
|
+
|
|
755
|
+
*/
|
|
756
|
+
|
|
150
757
|
item_price?:{channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},name?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},period?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},period_unit?:{in?:string,is?:'week' | 'month' | 'year' | 'day',is_not?:'week' | 'month' | 'year' | 'day',not_in?:string},pricing_model?:{in?:string,is?:'volume' | 'per_unit' | 'tiered' | 'flat_fee' | 'stairstep',is_not?:'volume' | 'per_unit' | 'tiered' | 'flat_fee' | 'stairstep',not_in?:string},status?:{in?:string,is?:'archived' | 'deleted' | 'active',is_not?:'archived' | 'deleted' | 'active',not_in?:string},trial_period?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string},trial_period_unit?:{in?:string,is?:'month' | 'day',is_not?:'month' | 'day',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
151
758
|
}
|
|
152
|
-
export interface SubscriptionsResponse {
|
|
153
|
-
|
|
759
|
+
export interface SubscriptionsResponse {
|
|
760
|
+
/**
|
|
761
|
+
* @description This API triggers export of subscription data. The exported zip file contains CSV files with subscription-related data.
|
|
762
|
+
|
|
763
|
+
*/
|
|
764
|
+
|
|
765
|
+
export:Export;
|
|
154
766
|
}
|
|
155
767
|
export interface SubscriptionsInputParam {
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* @description null
|
|
771
|
+
|
|
772
|
+
*/
|
|
773
|
+
|
|
156
774
|
export_type?:ExportType;
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* @description optional, string filter
|
|
778
|
+
The plan item code.
|
|
779
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
780
|
+
|
|
781
|
+
**Example →** *item_id\[is\] = "silver"*
|
|
782
|
+
|
|
783
|
+
*/
|
|
784
|
+
|
|
157
785
|
item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* @description optional, string filter
|
|
789
|
+
The plan item price code.
|
|
790
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
791
|
+
|
|
792
|
+
**Example →** *item_price_id\[is\] = "silver-USD-monthly"*
|
|
793
|
+
|
|
794
|
+
*/
|
|
795
|
+
|
|
158
796
|
item_price_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* @description optional, string filter
|
|
800
|
+
Reason code for canceling the subscription. Must be one from a list of reason codes set in the Chargebee app in **Settings \> Configure Chargebee \> Reason Codes \> Subscriptions \> Subscription Cancellation** . Must be passed if set as mandatory in the app. The codes are case-sensitive.
|
|
801
|
+
**Supported operators :** is, is_not, starts_with, in, not_in
|
|
802
|
+
|
|
803
|
+
**Example →** *cancel_reason_code\[is\] = "Not Paid"*
|
|
804
|
+
|
|
805
|
+
*/
|
|
806
|
+
|
|
159
807
|
cancel_reason_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* @description Parameters for subscription
|
|
811
|
+
|
|
812
|
+
*/
|
|
813
|
+
|
|
160
814
|
subscription?:{activated_at?:{after?:string,before?:string,between?:string,is_present?:'true' | 'false',on?:string},auto_close_invoices?:{is?:'true' | 'false'},cancel_reason?:{in?:string,is?:'tax_calculation_failed' | 'fraud_review_failed' | 'currency_incompatible_with_gateway' | 'non_compliant_eu_customer' | 'non_compliant_customer' | 'not_paid' | 'no_card',is_not?:'tax_calculation_failed' | 'fraud_review_failed' | 'currency_incompatible_with_gateway' | 'non_compliant_eu_customer' | 'non_compliant_customer' | 'not_paid' | 'no_card',is_present?:'true' | 'false',not_in?:string},cancelled_at?:{after?:string,before?:string,between?:string,on?:string},channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string},created_at?:{after?:string,before?:string,between?:string,on?:string},customer_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},has_scheduled_changes?:{is?:'true' | 'false'},id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string},next_billing_at?:{after?:string,before?:string,between?:string,on?:string},offline_payment_method?:{in?:string,is?:'bank_transfer' | 'no_preference' | 'ach_credit' | 'boleto' | 'check' | 'sepa_credit' | 'cash',is_not?:'bank_transfer' | 'no_preference' | 'ach_credit' | 'boleto' | 'check' | 'sepa_credit' | 'cash',not_in?:string},remaining_billing_cycles?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,is_present?:'true' | 'false',lt?:string,lte?:string},status?:{in?:string,is?:'in_trial' | 'paused' | 'future' | 'active' | 'cancelled' | 'non_renewing',is_not?:'in_trial' | 'paused' | 'future' | 'active' | 'cancelled' | 'non_renewing',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
161
815
|
}
|
|
162
|
-
export interface Download {
|
|
816
|
+
export interface Download {
|
|
817
|
+
/**
|
|
818
|
+
* @description The URL at which the file is available for download.
|
|
819
|
+
|
|
820
|
+
*/
|
|
821
|
+
|
|
163
822
|
download_url?:string;
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* @description The time until which the `download_url` is valid.
|
|
826
|
+
|
|
827
|
+
*/
|
|
828
|
+
|
|
164
829
|
valid_till?:number;
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* @description The [media type](https://en.wikipedia.org/wiki/Media_type) of the file.
|
|
833
|
+
|
|
834
|
+
*/
|
|
835
|
+
|
|
165
836
|
mime_type?:string;
|
|
166
837
|
}
|
|
167
838
|
}
|