chargebee 2.26.0 → 2.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/lib/chargebee.js +1 -1
  3. package/lib/resources/api_endpoints.js +8 -1
  4. package/package.json +1 -1
  5. package/types/core.d.ts +1 -0
  6. package/types/resources/Address.d.ts +235 -5
  7. package/types/resources/AdvanceInvoiceSchedule.d.ts +78 -2
  8. package/types/resources/AttachedItem.d.ts +285 -13
  9. package/types/resources/Card.d.ts +375 -13
  10. package/types/resources/Comment.d.ts +160 -11
  11. package/types/resources/Contact.d.ts +54 -0
  12. package/types/resources/ContractTerm.d.ts +83 -0
  13. package/types/resources/Coupon.d.ts +628 -20
  14. package/types/resources/CouponCode.d.ts +46 -5
  15. package/types/resources/CouponSet.d.ts +194 -17
  16. package/types/resources/CreditNote.d.ts +1100 -44
  17. package/types/resources/CreditNoteEstimate.d.ts +75 -6
  18. package/types/resources/Customer.d.ts +1819 -73
  19. package/types/resources/DifferentialPrice.d.ts +246 -15
  20. package/types/resources/Discount.d.ts +107 -0
  21. package/types/resources/Download.d.ts +18 -0
  22. package/types/resources/EntitlementOverride.d.ts +101 -7
  23. package/types/resources/Estimate.d.ts +1021 -27
  24. package/types/resources/Event.d.ts +138 -8
  25. package/types/resources/Export.d.ts +622 -32
  26. package/types/resources/Feature.d.ts +287 -22
  27. package/types/resources/Gift.d.ts +296 -24
  28. package/types/resources/Hierarchy.d.ts +30 -0
  29. package/types/resources/HostedPage.d.ts +1046 -37
  30. package/types/resources/ImpactedItem.d.ts +41 -1
  31. package/types/resources/ImpactedSubscription.d.ts +36 -1
  32. package/types/resources/InAppSubscription.d.ts +369 -9
  33. package/types/resources/Invoice.d.ts +1942 -92
  34. package/types/resources/InvoiceEstimate.d.ts +75 -6
  35. package/types/resources/Item.d.ts +522 -16
  36. package/types/resources/ItemEntitlement.d.ts +162 -13
  37. package/types/resources/ItemFamily.d.ts +153 -15
  38. package/types/resources/ItemPrice.d.ts +951 -26
  39. package/types/resources/Media.d.ts +24 -0
  40. package/types/resources/NonSubscription.d.ts +46 -3
  41. package/types/resources/Order.d.ts +1172 -32
  42. package/types/resources/PaymentIntent.d.ts +293 -8
  43. package/types/resources/PaymentReferenceNumber.d.ts +24 -0
  44. package/types/resources/PaymentSource.d.ts +984 -55
  45. package/types/resources/PaymentVoucher.d.ts +252 -14
  46. package/types/resources/PortalSession.d.ts +154 -10
  47. package/types/resources/PromotionalCredit.d.ts +300 -16
  48. package/types/resources/Purchase.d.ts +206 -5
  49. package/types/resources/Quote.d.ts +1430 -62
  50. package/types/resources/QuoteLineGroup.d.ts +134 -5
  51. package/types/resources/QuotedCharge.d.ts +63 -5
  52. package/types/resources/QuotedSubscription.d.ts +192 -5
  53. package/types/resources/ResourceMigration.d.ts +68 -3
  54. package/types/resources/SiteMigrationDetail.d.ts +98 -5
  55. package/types/resources/Subscription.d.ts +2564 -137
  56. package/types/resources/SubscriptionEntitlement.d.ts +116 -8
  57. package/types/resources/SubscriptionEstimate.d.ts +36 -2
  58. package/types/resources/TaxWithheld.d.ts +32 -0
  59. package/types/resources/ThirdPartyPaymentMethod.d.ts +24 -0
  60. package/types/resources/TimeMachine.d.ts +82 -7
  61. package/types/resources/Token.d.ts +164 -7
  62. package/types/resources/Transaction.d.ts +567 -25
  63. package/types/resources/UnbilledCharge.d.ts +309 -14
  64. package/types/resources/Usage.d.ts +237 -13
  65. package/types/resources/VirtualBankAccount.d.ts +220 -17
@@ -1,167 +1,757 @@
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&#x27;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
- export:Export;
160
+ export interface CustomersResponse {
161
+ export:Export;
31
162
  }
32
163
  export interface CustomersInputParam {
164
+
165
+ /**
166
+ * @description null
167
+
168
+ */
169
+
33
170
  export_type?:ExportType;
171
+
172
+ /**
173
+ * @description The unique ID of the [business entity](/docs/api?prod_cat_ver&#x3D;2#mbe) of this subscription. This is always the same as the [business entity](/docs/api/subscriptions?prod_cat_ver&#x3D;2#subscription_customer_id) of the customer.
174
+ 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.
175
+ **Note**
176
+
177
+ [Multiple Business Entities](/docs/api?prod_cat_ver&#x3D;2#mbe) is a feature available only on Product Catalog 2.0.
178
+
179
+ */
180
+
34
181
  business_entity_id?:{is?:string,is_not?:string,starts_with?:string};
182
+
183
+ /**
184
+ * @description Parameters for customer
185
+
186
+ */
187
+
35
188
  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}};
189
+
190
+ /**
191
+ * @description Parameters for relationship
192
+
193
+ */
194
+
36
195
  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
196
  }
38
- export interface AttachedItemsResponse {
39
- export:Export;
197
+ export interface AttachedItemsResponse {
198
+ export:Export;
40
199
  }
41
200
  export interface AttachedItemsInputParam {
201
+
202
+ /**
203
+ * @description optional, enumerated string filter
204
+ To filter based on the type of of the attached item. Possible values are : &#x60;addon&#x60;, &#x60;charge&#x60;. Possible values are : plan, addon, charge.
205
+ **Supported operators :** is, is_not, in, not_in
206
+
207
+ **Example →** *item_type\[is_not\] &#x3D; &quot;plan&quot;*
208
+
209
+ */
210
+
42
211
  item_type?:{in?:string,is?:'charge' | 'addon' | 'plan',is_not?:'charge' | 'addon' | 'plan',not_in?:string};
212
+
213
+ /**
214
+ * @description Parameters for attached_item
215
+
216
+ */
217
+
43
218
  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
219
  }
45
- export interface TransactionsResponse {
46
- export:Export;
220
+ export interface TransactionsResponse {
221
+ export:Export;
47
222
  }
48
223
  export interface TransactionsInputParam {
224
+
225
+ /**
226
+ * @description Parameters for transaction
227
+
228
+ */
229
+
49
230
  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
231
  }
51
- export interface DifferentialPricesResponse {
52
- export:Export;
232
+ export interface DifferentialPricesResponse {
233
+ export:Export;
53
234
  }
54
235
  export interface DifferentialPricesInputParam {
236
+
237
+ /**
238
+ * @description optional, string filter
239
+ Item Id of Addon / Charge item price for which differential pricing is applied to.
240
+ **Supported operators :** is, is_not, starts_with, in, not_in
241
+
242
+ **Example →** *item_id\[is\] &#x3D; &quot;day-pass&quot;*
243
+
244
+ */
245
+
55
246
  item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
247
+
248
+ /**
249
+ * @description Parameters for differential_price
250
+
251
+ */
252
+
56
253
  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
254
  }
58
- export interface ItemFamiliesResponse {
59
- export:Export;
255
+ export interface ItemFamiliesResponse {
256
+ export:Export;
60
257
  }
61
258
  export interface ItemFamiliesInputParam {
259
+
260
+ /**
261
+ * @description Parameters for item_family
262
+
263
+ */
264
+
62
265
  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
266
  }
64
- export interface InvoicesResponse {
65
- export:Export;
267
+ export interface InvoicesResponse {
268
+ export:Export;
66
269
  }
67
270
  export interface InvoicesInputParam {
271
+
272
+ /**
273
+ * @description optional, string filter
274
+ Payment owner of an invoice.
275
+ **Supported operators :** is, is_not, starts_with, in, not_in
276
+
277
+ **Example →** *payment_owner\[is\] &#x3D; &quot;payment_customer&quot;*
278
+
279
+ */
280
+
68
281
  payment_owner?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
282
+
283
+ /**
284
+ * @description Parameters for invoice
285
+
286
+ */
287
+
69
288
  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
289
  }
71
- export interface RetrieveResponse {
72
- export:Export;
290
+ export interface RetrieveResponse {
291
+ export:Export;
73
292
  }
74
293
 
75
- export interface ItemsResponse {
76
- export:Export;
294
+ export interface ItemsResponse {
295
+ export:Export;
77
296
  }
78
297
  export interface ItemsInputParam {
298
+
299
+ /**
300
+ * @description Parameters for item
301
+
302
+ */
303
+
79
304
  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
305
  }
81
- export interface DeferredRevenueResponse {
82
- export:Export;
306
+ export interface DeferredRevenueResponse {
307
+ export:Export;
83
308
  }
84
309
  export interface DeferredRevenueInputParam {
310
+
311
+ /**
312
+ * @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
313
+
314
+ */
315
+
85
316
  report_by:ReportBy;
317
+
318
+ /**
319
+ * @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.
320
+
321
+ */
322
+
86
323
  currency_code?:string;
324
+
325
+ /**
326
+ * @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.
327
+
328
+ */
329
+
87
330
  report_from_month:number;
331
+
332
+ /**
333
+ * @description Obtains report data from the specified year, combined with the value specified for report_from_month.
334
+
335
+ */
336
+
88
337
  report_from_year:number;
338
+
339
+ /**
340
+ * @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.
341
+
342
+ */
343
+
89
344
  report_to_month:number;
345
+
346
+ /**
347
+ * @description Obtains report data until the specified year, combined with the value specified for report_to_month.
348
+
349
+ */
350
+
90
351
  report_to_year:number;
352
+
353
+ /**
354
+ * @description Returns amount with discount in the report. If value specified is false, it returns amount without discount.
355
+
356
+ */
357
+
91
358
  include_discounts?:boolean;
359
+
360
+ /**
361
+ * @description optional, string filter
362
+ Payment owner of an invoice.
363
+ **Supported operators :** is, is_not, starts_with, in, not_in
364
+
365
+ **Example →** *payment_owner\[is\] &#x3D; &quot;payment_customer&quot;*
366
+
367
+ */
368
+
92
369
  payment_owner?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
370
+
371
+ /**
372
+ * @description optional, string filter
373
+ The plan item code.
374
+ **Supported operators :** is, is_not, starts_with, in, not_in
375
+
376
+ **Example →** *item_id\[is\] &#x3D; &quot;silver&quot;*
377
+
378
+ */
379
+
93
380
  item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
381
+
382
+ /**
383
+ * @description optional, string filter
384
+ The plan item price code.
385
+ **Supported operators :** is, is_not, starts_with, in, not_in
386
+
387
+ **Example →** *item_price_id\[is\] &#x3D; &quot;silver-USD-monthly&quot;*
388
+
389
+ */
390
+
94
391
  item_price_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
392
+
393
+ /**
394
+ * @description optional, string filter
395
+ Reason code for canceling the subscription. Must be one from a list of reason codes set in the Chargebee app in **Settings \&gt; Configure Chargebee \&gt; Reason Codes \&gt; Subscriptions \&gt; Subscription Cancellation** . Must be passed if set as mandatory in the app. The codes are case-sensitive.
396
+ **Supported operators :** is, is_not, starts_with, in, not_in
397
+
398
+ **Example →** *cancel_reason_code\[is\] &#x3D; &quot;Not Paid&quot;*
399
+
400
+ */
401
+
95
402
  cancel_reason_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
403
+
404
+ /**
405
+ * @description The unique ID of the [business entity](/docs/api?prod_cat_ver&#x3D;2#mbe) of this subscription. This is always the same as the [business entity](/docs/api/subscriptions?prod_cat_ver&#x3D;2#subscription_customer_id) of the customer.
406
+ 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.
407
+ **Note**
408
+
409
+ [Multiple Business Entities](/docs/api?prod_cat_ver&#x3D;2#mbe) is a feature available only on Product Catalog 2.0.
410
+
411
+ */
412
+
96
413
  business_entity_id?:{is?:string,is_not?:string,starts_with?:string};
414
+
415
+ /**
416
+ * @description Parameters for invoice
417
+
418
+ */
419
+
97
420
  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}};
421
+
422
+ /**
423
+ * @description Parameters for subscription
424
+
425
+ */
426
+
98
427
  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}};
428
+
429
+ /**
430
+ * @description Parameters for customer
431
+
432
+ */
433
+
99
434
  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}};
435
+
436
+ /**
437
+ * @description Parameters for relationship
438
+
439
+ */
440
+
100
441
  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
442
  }
102
- export interface RevenueRecognitionResponse {
103
- export:Export;
443
+ export interface RevenueRecognitionResponse {
444
+ export:Export;
104
445
  }
105
446
  export interface RevenueRecognitionInputParam {
447
+
448
+ /**
449
+ * @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
450
+
451
+ */
452
+
106
453
  report_by:ReportBy;
454
+
455
+ /**
456
+ * @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.
457
+
458
+ */
459
+
107
460
  currency_code?:string;
461
+
462
+ /**
463
+ * @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.
464
+
465
+ */
466
+
108
467
  report_from_month:number;
468
+
469
+ /**
470
+ * @description Obtains report data from the specified year, combined with the value specified for report_from_month.
471
+
472
+ */
473
+
109
474
  report_from_year:number;
475
+
476
+ /**
477
+ * @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.
478
+
479
+ */
480
+
110
481
  report_to_month:number;
482
+
483
+ /**
484
+ * @description Obtains report data until the specified year, combined with the value specified for report_to_month.
485
+
486
+ */
487
+
111
488
  report_to_year:number;
489
+
490
+ /**
491
+ * @description Returns amount with discount in the report. If value specified is false, it returns amount without discount.
492
+
493
+ */
494
+
112
495
  include_discounts?:boolean;
496
+
497
+ /**
498
+ * @description optional, string filter
499
+ Payment owner of an invoice.
500
+ **Supported operators :** is, is_not, starts_with, in, not_in
501
+
502
+ **Example →** *payment_owner\[is\] &#x3D; &quot;payment_customer&quot;*
503
+
504
+ */
505
+
113
506
  payment_owner?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
507
+
508
+ /**
509
+ * @description optional, string filter
510
+ The plan item code.
511
+ **Supported operators :** is, is_not, starts_with, in, not_in
512
+
513
+ **Example →** *item_id\[is\] &#x3D; &quot;silver&quot;*
514
+
515
+ */
516
+
114
517
  item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
518
+
519
+ /**
520
+ * @description optional, string filter
521
+ The plan item price code.
522
+ **Supported operators :** is, is_not, starts_with, in, not_in
523
+
524
+ **Example →** *item_price_id\[is\] &#x3D; &quot;silver-USD-monthly&quot;*
525
+
526
+ */
527
+
115
528
  item_price_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
529
+
530
+ /**
531
+ * @description optional, string filter
532
+ Reason code for canceling the subscription. Must be one from a list of reason codes set in the Chargebee app in **Settings \&gt; Configure Chargebee \&gt; Reason Codes \&gt; Subscriptions \&gt; Subscription Cancellation** . Must be passed if set as mandatory in the app. The codes are case-sensitive.
533
+ **Supported operators :** is, is_not, starts_with, in, not_in
534
+
535
+ **Example →** *cancel_reason_code\[is\] &#x3D; &quot;Not Paid&quot;*
536
+
537
+ */
538
+
116
539
  cancel_reason_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
540
+
541
+ /**
542
+ * @description The unique ID of the [business entity](/docs/api?prod_cat_ver&#x3D;2#mbe) of this subscription. This is always the same as the [business entity](/docs/api/subscriptions?prod_cat_ver&#x3D;2#subscription_customer_id) of the customer.
543
+ 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.
544
+ **Note**
545
+
546
+ [Multiple Business Entities](/docs/api?prod_cat_ver&#x3D;2#mbe) is a feature available only on Product Catalog 2.0.
547
+
548
+ */
549
+
117
550
  business_entity_id?:{is?:string,is_not?:string,starts_with?:string};
551
+
552
+ /**
553
+ * @description Parameters for invoice
554
+
555
+ */
556
+
118
557
  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}};
558
+
559
+ /**
560
+ * @description Parameters for subscription
561
+
562
+ */
563
+
119
564
  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}};
565
+
566
+ /**
567
+ * @description Parameters for customer
568
+
569
+ */
570
+
120
571
  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}};
572
+
573
+ /**
574
+ * @description Parameters for relationship
575
+
576
+ */
577
+
121
578
  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
579
  }
123
- export interface CreditNotesResponse {
124
- export:Export;
580
+ export interface CreditNotesResponse {
581
+ export:Export;
125
582
  }
126
583
  export interface CreditNotesInputParam {
584
+
585
+ /**
586
+ * @description Parameters for credit_note
587
+
588
+ */
589
+
127
590
  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
591
  }
129
- export interface CouponsResponse {
130
- export:Export;
592
+ export interface CouponsResponse {
593
+ export:Export;
131
594
  }
132
595
  export interface CouponsInputParam {
596
+
597
+ /**
598
+ * @description optional, string filter
599
+ The currency code ([ISO 4217 format](https://www.chargebee.com/docs/supported-currencies.html)) of the coupon. Applicable for *fixed_amount* coupons alone.
600
+ **Supported operators :** is, is_not, starts_with, in, not_in
601
+
602
+ **Example →** *currency_code\[is\] &#x3D; &quot;USD&quot;*
603
+
604
+ */
605
+
133
606
  currency_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
607
+
608
+ /**
609
+ * @description Parameters for coupon
610
+
611
+ */
612
+
134
613
  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
614
  }
136
- export interface OrdersResponse {
137
- export:Export;
615
+ export interface OrdersResponse {
616
+ export:Export;
138
617
  }
139
618
  export interface OrdersInputParam {
619
+
620
+ /**
621
+ * @description optional, in cents filter
622
+ Total amount charged for the order.
623
+ **Supported operators :** is, is_not, lt, lte, gt, gte, between
624
+
625
+ **Example →** *total\[is\] &#x3D; &quot;1394532759&quot;*
626
+
627
+ */
628
+
140
629
  total?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string};
630
+
631
+ /**
632
+ * @description Parameters for order
633
+
634
+ */
635
+
141
636
  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
637
  }
143
- export interface ItemPricesResponse {
144
- export:Export;
638
+ export interface ItemPricesResponse {
639
+ export:Export;
145
640
  }
146
641
  export interface ItemPricesInputParam {
642
+
643
+ /**
644
+ * @description optional, string filter
645
+ Filter item prices based on &#x60;item_family_id&#x60;.
646
+ **Supported operators :** is, is_not, starts_with, in, not_in
647
+
648
+ **Example →** *item_family_id\[is\] &#x3D; &quot;Acme&quot;*
649
+
650
+ */
651
+
147
652
  item_family_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
653
+
654
+ /**
655
+ * @description optional, enumerated string filter
656
+ Filter item prices based on &#x60;item_type&#x60;. Possible values are : plan, addon, charge.
657
+ **Supported operators :** is, is_not, in, not_in
658
+
659
+ **Example →** *item_type\[is_not\] &#x3D; &quot;plan&quot;*
660
+
661
+ */
662
+
148
663
  item_type?:{in?:string,is?:'charge' | 'addon' | 'plan',is_not?:'charge' | 'addon' | 'plan',not_in?:string};
664
+
665
+ /**
666
+ * @description optional, string filter
667
+ Filter item prices based on their &#x60;currency_code&#x60;.
668
+ **Supported operators :** is, is_not, starts_with, in, not_in
669
+
670
+ **Example →** *currency_code\[is\] &#x3D; &quot;USD&quot;*
671
+
672
+ */
673
+
149
674
  currency_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
675
+
676
+ /**
677
+ * @description Parameters for item_price
678
+
679
+ */
680
+
150
681
  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
682
  }
152
- export interface SubscriptionsResponse {
153
- export:Export;
683
+ export interface SubscriptionsResponse {
684
+ export:Export;
154
685
  }
155
686
  export interface SubscriptionsInputParam {
687
+
688
+ /**
689
+ * @description null
690
+
691
+ */
692
+
156
693
  export_type?:ExportType;
694
+
695
+ /**
696
+ * @description optional, string filter
697
+ The plan item code.
698
+ **Supported operators :** is, is_not, starts_with, in, not_in
699
+
700
+ **Example →** *item_id\[is\] &#x3D; &quot;silver&quot;*
701
+
702
+ */
703
+
157
704
  item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
705
+
706
+ /**
707
+ * @description optional, string filter
708
+ The plan item price code.
709
+ **Supported operators :** is, is_not, starts_with, in, not_in
710
+
711
+ **Example →** *item_price_id\[is\] &#x3D; &quot;silver-USD-monthly&quot;*
712
+
713
+ */
714
+
158
715
  item_price_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
716
+
717
+ /**
718
+ * @description optional, string filter
719
+ Reason code for canceling the subscription. Must be one from a list of reason codes set in the Chargebee app in **Settings \&gt; Configure Chargebee \&gt; Reason Codes \&gt; Subscriptions \&gt; Subscription Cancellation** . Must be passed if set as mandatory in the app. The codes are case-sensitive.
720
+ **Supported operators :** is, is_not, starts_with, in, not_in
721
+
722
+ **Example →** *cancel_reason_code\[is\] &#x3D; &quot;Not Paid&quot;*
723
+
724
+ */
725
+
159
726
  cancel_reason_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
727
+
728
+ /**
729
+ * @description Parameters for subscription
730
+
731
+ */
732
+
160
733
  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
734
  }
162
- export interface Download {
735
+ export interface Download {
736
+ /**
737
+ * @description The URL at which the file is available for download.
738
+
739
+ */
740
+
163
741
  download_url?:string;
742
+
743
+ /**
744
+ * @description The time until which the &#x60;download_url&#x60; is valid.
745
+
746
+ */
747
+
164
748
  valid_till?:number;
749
+
750
+ /**
751
+ * @description The [media type](https://en.wikipedia.org/wiki/Media_type) of the file.
752
+
753
+ */
754
+
165
755
  mime_type?:string;
166
756
  }
167
757
  }