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
|
@@ -2,194 +2,1139 @@
|
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface ItemPrice {
|
|
4
4
|
[key : string] : any;
|
|
5
|
+
/**
|
|
6
|
+
* @description The identifier for the item price. It is unique and immutable.
|
|
7
|
+
|
|
8
|
+
*/
|
|
9
|
+
|
|
5
10
|
id:string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @description A unique display name for the item price in the Chargebee UI. If `external_name` is not provided, this is also used in customer-facing pages and documents such as [invoices](./invoices?prod_cat_ver=2) and [hosted pages](hosted_pages?prod_cat_ver=2).
|
|
14
|
+
|
|
15
|
+
*/
|
|
16
|
+
|
|
6
17
|
name:string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @description Id of the item_family
|
|
21
|
+
|
|
22
|
+
*/
|
|
23
|
+
|
|
7
24
|
item_family_id?:string;
|
|
25
|
+
|
|
8
26
|
product_id?:string;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @description The id of the item that the item price belongs to.
|
|
30
|
+
|
|
31
|
+
*/
|
|
32
|
+
|
|
9
33
|
item_id?:string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @description Description of the item price.
|
|
37
|
+
|
|
38
|
+
*/
|
|
39
|
+
|
|
10
40
|
description?:string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @description The status of the item price. \* archived - The item price is no longer active and cannot be used in new subscriptions or added to existing ones. Existing subscriptions that already have this item price will continue to renew with the item price. \* active - The item price can be used in subscriptions. \* deleted - Indicates that the item price has been deleted. The `id` and `name` can be reused.
|
|
44
|
+
|
|
45
|
+
*/
|
|
46
|
+
|
|
11
47
|
status?:'archived' | 'deleted' | 'active';
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @description The name of the item price used in customer-facing pages and documents. These include [invoices](./invoices?prod_cat_ver=2) and [hosted pages](hosted_pages?prod_cat_ver=2). If not provided, then `name` is used
|
|
51
|
+
|
|
52
|
+
*/
|
|
53
|
+
|
|
12
54
|
external_name?:string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @description The [pricing scheme](https://www.chargebee.com/docs/2.0/plans.html#pricing-models) for this item price. If subscriptions, invoices or [differential prices](./differential_prices?prod_cat_ver=2) exist for this item price, `pricing_model` cannot be changed.
|
|
58
|
+
\* tiered - The per unit price is based on the tier that the total quantity falls in.
|
|
59
|
+
\* per_unit - A fixed price per unit quantity.
|
|
60
|
+
\* flat_fee - A fixed price that is not quantity-based.
|
|
61
|
+
\* volume - There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.
|
|
62
|
+
\* stairstep - A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.
|
|
63
|
+
|
|
64
|
+
*/
|
|
65
|
+
|
|
13
66
|
pricing_model:PricingModel;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @description The cost of the item price when the pricing model is `flat_fee`. When the pricing model is `per_unit`, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in the [minor unit of the currency](https://apidocs.chargebee.com/docs/api#handling_currency_units).
|
|
70
|
+
|
|
71
|
+
*/
|
|
72
|
+
|
|
14
73
|
price?:number;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @description The price of the item when the pricing_model is `flat_fee`. When the pricing model is `per_unit`, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in decimal and in major units of the currency. Also, this is only applicable when [multi-decimal pricing](https://apidocs.chargebee.com/docs/api#handling_currency_units) is enabled.
|
|
77
|
+
|
|
78
|
+
*/
|
|
79
|
+
|
|
15
80
|
price_in_decimal?:string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @description
|
|
84
|
+
|
|
85
|
+
* When the item `type` is `plan`: The billing period of the plan in `period_unit`s. For example, create a 6 month plan by providing `period` as 6 and `period_unit` as month.
|
|
86
|
+
* When item `type` is `addon`: The period of the addon in `period_unit`s. For example, create an addon with a 2 month `period` by providing period as 2 and `period_unit` as `month`. The period of an addon is the duration for which its `price` applies. When attached to a plan, the addon is billed for the billing period of the plan. [Learn more.](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
If subscriptions or invoices exist for this item price, `period` cannot be changed. The `period` is mandatory when the item `type` is `plan` or `addon`
|
|
91
|
+
|
|
92
|
+
*/
|
|
93
|
+
|
|
16
94
|
period?:number;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @description The currency code ([ISO 4217 format](https://www.chargebee.com/docs/2.0/supported-currencies.html)) for the item price. If subscriptions, invoices or [differential prices](./differential_prices?prod_cat_ver=2) exist for this item price, `currency_code` cannot be changed.
|
|
98
|
+
|
|
99
|
+
*/
|
|
100
|
+
|
|
17
101
|
currency_code:string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @description The unit of time for `period`. If subscriptions or invoices exist for this item price, `period_unit` cannot be changed. The `period_unit` is mandatory when the item `type` is `plan` or `addon` \* month - A period of 1 calendar month. \* week - A period of 7 days. \* year - A period of 1 calendar year. \* day - A period of 24 hours.
|
|
105
|
+
|
|
106
|
+
*/
|
|
107
|
+
|
|
18
108
|
period_unit?:'week' | 'month' | 'year' | 'day';
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @description The trial period of the plan in `trial_period_unit`s. You can also set [trial periods for addons](https://www.chargebee.com/docs/2.0/addons-trial.html); contact [Support](https://chargebee.freshdesk.com/support/home) to enable that feature.
|
|
112
|
+
|
|
113
|
+
*/
|
|
114
|
+
|
|
19
115
|
trial_period?:number;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* @description The unit of time for `trial_period`. \* month - A period of 1 calendar month. \* day - A period of 24 hours.
|
|
119
|
+
|
|
120
|
+
*/
|
|
121
|
+
|
|
20
122
|
trial_period_unit?:'month' | 'day';
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @description Applicable only when [End-of-trial Action](https://www.chargebee.com/docs/trial_periods.html#how-to-define-the-end-of-trial-actions-for-subscriptions) has been enabled for the site. Specifies the operation to be carried out for the subscription once the trial ends. Whenever the `item.type` is `plan` and a trial period is defined for this item price, this attribute (parameter) is returned (required). This can be overridden at the [subscription-level](subscriptions?prod_cat_ver=2#subscription_trial_end_action). \* cancel_subscription - The subscription cancels. \* activate_subscription - The subscription activates and charges are raised for non-metered items. \* site_default - The action [configured for the site](https://www.chargebee.com/docs/trial_periods.html#how-to-define-the-end-of-trial-actions-for-subscriptions) at the time when the trial ends, takes effect.
|
|
126
|
+
|
|
127
|
+
*/
|
|
128
|
+
|
|
21
129
|
trial_end_action?:'activate_subscription' | 'cancel_subscription' | 'site_default';
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @description Defines the shipping frequency. Example: to bill customer every 2 weeks, provide "2" here.
|
|
133
|
+
|
|
134
|
+
*/
|
|
135
|
+
|
|
22
136
|
shipping_period?:number;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @description Defines the shipping frequency in association with shipping period. \* day - A period of 24 hours. \* week - A period of 7 days. \* year - A period of 1 calendar year. \* month - A period of 1 calendar month.
|
|
140
|
+
|
|
141
|
+
*/
|
|
142
|
+
|
|
23
143
|
shipping_period_unit?:'week' | 'month' | 'year' | 'day';
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @description The default number of billing cycles a subscription to the plan must run. Can be [overridden](./subscriptions?prod_cat_ver=2) for a subscription.
|
|
147
|
+
|
|
148
|
+
Addons can also [have billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html). However, you must contact [Support](https://chargebee.freshdesk.com/support/home) to enable that. Also, for addons, you can [override this](./attached_items?prod_cat_ver=2) while attaching it to a plan. However, if you provide the value while [applying the addon to a subscription](./subscriptions?prod_cat_ver=2#subscription_subscription_items_item_type), then that value takes still higher precedence.
|
|
149
|
+
If subscriptions, invoices or [differential prices](./differential_prices?prod_cat_ver=2) exist for this item price, `billing_cycles` cannot be changed.
|
|
150
|
+
|
|
151
|
+
*/
|
|
152
|
+
|
|
24
153
|
billing_cycles?:number;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* @description Free quantity the subscriptions of this item_price will have. Only the quantity more than this will be charged for the subscription.
|
|
157
|
+
|
|
158
|
+
*/
|
|
159
|
+
|
|
25
160
|
free_quantity:number;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @description The quantity of the item that is available free-of-charge, represented in decimal. When a subscription is created for this plan or when the plan of a subscription is changed to this one, only the quantity above this number is charged for. Applicable for quantity-based plans and only when [multi-decimal pricing](https://apidocs.chargebee.com/docs/api#handling_currency_units) is enabled.
|
|
164
|
+
|
|
165
|
+
*/
|
|
166
|
+
|
|
26
167
|
free_quantity_in_decimal?:string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @description The subscription channel this object originated from and is maintained in. \* app_store - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Apple App Store. Direct manipulation of this object via UI or API is disallowed. \* web - The object was created (and is maintained) for the web channel directly in Chargebee via API or UI. \* play_store - The object data is synchronized with data from [in-app subscription(s)](https://apidocs.chargebee.com/docs/api/in_app_subscriptions) created in Google Play Store. Direct manipulation of this object via UI or API is disallowed.
|
|
171
|
+
|
|
172
|
+
In-App Subscriptions is currently in early access. Contact [eap@chargebee.com](mailto:eap@chargebee.com) for more information.
|
|
173
|
+
|
|
174
|
+
*/
|
|
175
|
+
|
|
27
176
|
channel?:Channel;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @description Version number of this resource. The `resource_version` is updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.
|
|
180
|
+
|
|
181
|
+
*/
|
|
182
|
+
|
|
28
183
|
resource_version?:number;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @description Timestamp indicating when this item price was last updated
|
|
187
|
+
|
|
188
|
+
*/
|
|
189
|
+
|
|
29
190
|
updated_at?:number;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @description Timestamp indicating when this item price was created
|
|
194
|
+
|
|
195
|
+
*/
|
|
196
|
+
|
|
30
197
|
created_at:number;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* @description Timestamp indicating when this item price was archived.
|
|
201
|
+
|
|
202
|
+
*/
|
|
203
|
+
|
|
31
204
|
archived_at?:number;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @description A customer-facing note added to all invoices associated with this API resource. This note becomes one among [all the notes](/docs/api/invoices#invoice_notes) displayed on the invoice PDF.
|
|
208
|
+
|
|
209
|
+
*/
|
|
210
|
+
|
|
32
211
|
invoice_notes?:string;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @description Specifies whether taxes apply to this item price. This value is set and returned even if [Taxes](https://www.chargebee.com/docs/tax.html) have been disabled in Chargebee. However, the value is effective only while Taxes are enabled.
|
|
215
|
+
|
|
216
|
+
*/
|
|
217
|
+
|
|
33
218
|
is_taxable?:boolean;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* @description A set of key-value pairs stored as additional information for the item price. [Learn more](./#meta_data).
|
|
222
|
+
|
|
223
|
+
*/
|
|
224
|
+
|
|
34
225
|
metadata?:object;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @description Type of item. \* addon - A recurring component that can be added to a subscription in addition to its plan. \* charge - A non-recurring component that can be added to a subscription in addition to its plan. An charge can also be applied to a customer [directly](./invoices?prod_cat_ver=2#create_invoice_for_a_charge-item) without being applied to a subscription. \* plan - An essential component of a subscription. Every subscription has exactly one plan. It has a recurring charge and its period defines the billing period of the subscription.
|
|
229
|
+
|
|
230
|
+
*/
|
|
231
|
+
|
|
35
232
|
item_type?:ItemType;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* @description Whether the item price's description should be shown on [invoice PDFs](/docs/api/invoices#retrieve_invoice_as_pdf). If this Boolean is changed, only invoices generated (or [regenerated](https://www.chargebee.com/docs/invoice-operations.html#actions-for-payment-due-not-paid-invoices_regenerate-invoice)) after the change are affected; past invoices are not.
|
|
236
|
+
|
|
237
|
+
*/
|
|
238
|
+
|
|
36
239
|
show_description_in_invoices?:boolean;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @description Whether the item price's description should be shown on [quote PDFs](/docs/api/quotes#retrieve_quote_as_pdf). If this Boolean is changed, only quotes created after the change are affected; past quotes are not.
|
|
243
|
+
|
|
244
|
+
*/
|
|
245
|
+
|
|
37
246
|
show_description_in_quotes?:boolean;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* @description List of quantity-based pricing tiers for the item price. Applicable only for `tiered`, `volume`, and `stairstep` ` pricing_models`.
|
|
250
|
+
|
|
251
|
+
*/
|
|
252
|
+
|
|
38
253
|
tiers?:ItemPrice.Tier[];
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* @description The tax details for the item price. Includes those details relevant for third-party integrations.
|
|
257
|
+
|
|
258
|
+
*/
|
|
259
|
+
|
|
39
260
|
tax_detail?:ItemPrice.TaxDetail;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @description Accounting integration details. The values are typically dependent on the [accounting integration](https://www.chargebee.com/docs/finance-integration-index.html) used.
|
|
264
|
+
|
|
265
|
+
*/
|
|
266
|
+
|
|
40
267
|
accounting_detail?:ItemPrice.AccountingDetail;
|
|
41
268
|
}
|
|
42
269
|
export namespace ItemPrice {
|
|
43
|
-
export class ItemPriceResource {
|
|
270
|
+
export class ItemPriceResource {
|
|
271
|
+
/**
|
|
272
|
+
* @description Returns the set of all applicable [addon-items](items?prod_cat_ver=2#addon-items) for a specific [plan-item price](item_prices?prod_cat_ver=2#types). This set consists of all addon-items whose item prices can be applied to a subscription having the plan-item price in it. When determining this set, Chargebee considers the [item_applicability](items?prod_cat_ver=2#item_item_applicability) and [applicable_items](items?prod_cat_ver=2#item_applicable_items) defined for the parent item of the plan-item price.
|
|
273
|
+
|
|
274
|
+
*/
|
|
275
|
+
|
|
44
276
|
find_applicable_items(item_price_id:string, input?:FindApplicableItemsInputParam):ChargebeeRequest<FindApplicableItemsResponse>;
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @description This API retrieves a specific item price using the id.
|
|
280
|
+
|
|
281
|
+
*/
|
|
282
|
+
|
|
45
283
|
retrieve(item_price_id:string):ChargebeeRequest<RetrieveResponse>;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* @description Updates an item price with the changes specified. Unspecified item price attributes are not modified.
|
|
287
|
+
|
|
288
|
+
*/
|
|
289
|
+
|
|
46
290
|
update(item_price_id:string, input?:UpdateInputParam):ChargebeeRequest<UpdateResponse>;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* @description Deletes an item price, marking its `status` as `deleted`. If it is part of a subscription or invoice, the item price `status` is marked `archived` instead. Once deleted, the `id` and `name` of the item price can be reused to create a new item price.
|
|
294
|
+
|
|
295
|
+
*/
|
|
296
|
+
|
|
47
297
|
delete(item_price_id:string):ChargebeeRequest<DeleteResponse>;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* @description Returns the set of all applicable [addon-item](item_prices?prod_cat_ver=2#types) prices for a specific plan-item price. This set consists of all the addon-item prices that can be applied to a subscription having the plan-item price. When determining this set, Chargebee considers the following:
|
|
301
|
+
|
|
302
|
+
* the [item_applicability](items?prod_cat_ver=2#item_item_applicability) and [applicable_items](items?prod_cat_ver=2#item_applicable_items) defined for the parent item of the plan-item price
|
|
303
|
+
* the [compatibility](subscriptions?prod_cat_ver=2#compatibility) of the addon-item prices to the plan-item price
|
|
304
|
+
|
|
305
|
+
**Note**
|
|
306
|
+
|
|
307
|
+
If an addon-item price has [differential pricing](differential_prices?prod_cat_ver=2) defined against the parent item of the plan-item price, then the pricing information in the addon-item price object returned, reflects the differential pricing.
|
|
308
|
+
|
|
309
|
+
*/
|
|
310
|
+
|
|
48
311
|
find_applicable_item_prices(item_price_id:string, input?:FindApplicableItemPricesInputParam):ChargebeeRequest<FindApplicableItemPricesResponse>;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* @description Returns a list of item prices satisfying **all** the conditions specified in the filter parameters below. The list is sorted by the date of creation in descending order.
|
|
315
|
+
|
|
316
|
+
*/
|
|
317
|
+
|
|
49
318
|
list(input?:ListInputParam):ChargebeeRequest<ListResponse>;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* @description This API creates an item price (a price point) for an [item](./items?prod_cat_ver=2).
|
|
322
|
+
|
|
323
|
+
*/
|
|
324
|
+
|
|
50
325
|
create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
|
|
51
326
|
}
|
|
52
|
-
export interface FindApplicableItemsResponse {
|
|
53
|
-
|
|
54
|
-
|
|
327
|
+
export interface FindApplicableItemsResponse {
|
|
328
|
+
/**
|
|
329
|
+
* @description Returns the set of all applicable [addon-items](items?prod_cat_ver=2#addon-items) for a specific [plan-item price](item_prices?prod_cat_ver=2#types). This set consists of all addon-items whose item prices can be applied to a subscription having the plan-item price in it. When determining this set, Chargebee considers the [item_applicability](items?prod_cat_ver=2#item_item_applicability) and [applicable_items](items?prod_cat_ver=2#item_applicable_items) defined for the parent item of the plan-item price.
|
|
330
|
+
|
|
331
|
+
*/
|
|
332
|
+
|
|
333
|
+
list:{item:Item}[];
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* @description Returns the set of all applicable [addon-items](items?prod_cat_ver=2#addon-items) for a specific [plan-item price](item_prices?prod_cat_ver=2#types). This set consists of all addon-items whose item prices can be applied to a subscription having the plan-item price in it. When determining this set, Chargebee considers the [item_applicability](items?prod_cat_ver=2#item_item_applicability) and [applicable_items](items?prod_cat_ver=2#item_applicable_items) defined for the parent item of the plan-item price.
|
|
337
|
+
|
|
338
|
+
*/
|
|
339
|
+
|
|
340
|
+
next_offset?:string;
|
|
55
341
|
}
|
|
56
342
|
export interface FindApplicableItemsInputParam {
|
|
57
|
-
[key : string]: any;
|
|
343
|
+
[key : string]: any;
|
|
344
|
+
/**
|
|
345
|
+
* @description The number of resources to be returned.
|
|
346
|
+
|
|
347
|
+
*/
|
|
348
|
+
|
|
58
349
|
limit?:number;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set \`offset\` to the value of \`next_offset\` obtained in the previous iteration of the API call.
|
|
353
|
+
|
|
354
|
+
*/
|
|
355
|
+
|
|
59
356
|
offset?:string;
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* @description Returns the set of all applicable [addon-items](items?prod_cat_ver=2#addon-items) for a specific [plan-item price](item_prices?prod_cat_ver=2#types). This set consists of all addon-items whose item prices can be applied to a subscription having the plan-item price in it. When determining this set, Chargebee considers the [item_applicability](items?prod_cat_ver=2#item_item_applicability) and [applicable_items](items?prod_cat_ver=2#item_applicable_items) defined for the parent item of the plan-item price.
|
|
360
|
+
|
|
361
|
+
*/
|
|
362
|
+
|
|
60
363
|
sort_by?:{asc?:'updated_at' | 'name' | 'id',desc?:'updated_at' | 'name' | 'id'};
|
|
61
364
|
}
|
|
62
|
-
export interface RetrieveResponse {
|
|
63
|
-
|
|
365
|
+
export interface RetrieveResponse {
|
|
366
|
+
/**
|
|
367
|
+
* @description This API retrieves a specific item price using the id.
|
|
368
|
+
|
|
369
|
+
*/
|
|
370
|
+
|
|
371
|
+
item_price:ItemPrice;
|
|
64
372
|
}
|
|
65
373
|
|
|
66
|
-
export interface UpdateResponse {
|
|
67
|
-
|
|
374
|
+
export interface UpdateResponse {
|
|
375
|
+
/**
|
|
376
|
+
* @description Updates an item price with the changes specified. Unspecified item price attributes are not modified.
|
|
377
|
+
|
|
378
|
+
*/
|
|
379
|
+
|
|
380
|
+
item_price:ItemPrice;
|
|
68
381
|
}
|
|
69
382
|
export interface UpdateInputParam {
|
|
70
|
-
[key : string] : any;
|
|
383
|
+
[key : string] : any;
|
|
384
|
+
/**
|
|
385
|
+
* @description A unique display name for the item price in the Chargebee UI. If `external_name` is not provided, this is also used in customer-facing pages and documents such as [invoices](./invoices?prod_cat_ver=2) and [hosted pages](hosted_pages?prod_cat_ver=2).
|
|
386
|
+
|
|
387
|
+
*/
|
|
388
|
+
|
|
71
389
|
name?:string;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* @description Description of the item price.
|
|
393
|
+
|
|
394
|
+
*/
|
|
395
|
+
|
|
72
396
|
description?:string;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* @description The status of the item price. \* archived - The item price is no longer active and cannot be used in new subscriptions or added to existing ones. Existing subscriptions that already have this item price will continue to renew with the item price. \* active - The item price can be used in subscriptions. \* deleted - Indicates that the item price has been deleted. The `id` and `name` can be reused.
|
|
400
|
+
|
|
401
|
+
*/
|
|
402
|
+
|
|
73
403
|
status?:'archived' | 'active';
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* @description The name of the item price used in customer-facing pages and documents. These include [invoices](./invoices?prod_cat_ver=2) and [hosted pages](hosted_pages?prod_cat_ver=2). If not provided, then `name` is used.
|
|
407
|
+
|
|
408
|
+
*/
|
|
409
|
+
|
|
74
410
|
external_name?:string;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* @description The currency code ([ISO 4217 format](https://www.chargebee.com/docs/2.0/supported-currencies.html)) for the item price. If subscriptions, invoices or [differential prices](./differential_prices?prod_cat_ver=2) exist for this item price, `currency_code` cannot be changed.
|
|
414
|
+
|
|
415
|
+
*/
|
|
416
|
+
|
|
75
417
|
currency_code?:string;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* @description A customer-facing note added to all invoices associated with this API resource. This note becomes one among [all the notes](/docs/api/invoices#invoice_notes) displayed on the invoice PDF.
|
|
421
|
+
|
|
422
|
+
*/
|
|
423
|
+
|
|
76
424
|
invoice_notes?:string;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* @description Specifies whether taxes apply to this item price. This value is set and returned even if [Taxes](https://www.chargebee.com/docs/tax.html) have been disabled in Chargebee. However, the value is effective only while Taxes are enabled.
|
|
428
|
+
|
|
429
|
+
*/
|
|
430
|
+
|
|
77
431
|
is_taxable?:boolean;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* @description Free quantity the subscriptions of this item_price will have. Only the quantity more than this will be charged for the subscription.
|
|
435
|
+
|
|
436
|
+
*/
|
|
437
|
+
|
|
78
438
|
free_quantity?:number;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* @description The quantity of the item that is available free-of-charge, represented in decimal. When a subscription is created for this plan or when the plan of a subscription is changed to this one, only the quantity above this number is charged for. Applicable for quantity-based plans and only when [multi-decimal pricing](https://apidocs.chargebee.com/docs/api#handling_currency_units) is enabled.
|
|
442
|
+
|
|
443
|
+
*/
|
|
444
|
+
|
|
79
445
|
free_quantity_in_decimal?:string;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* @description A set of key-value pairs stored as additional information for the item price. [Learn more](./#meta_data).
|
|
449
|
+
|
|
450
|
+
*/
|
|
451
|
+
|
|
80
452
|
metadata?:object;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* @description The [pricing scheme](https://www.chargebee.com/docs/2.0/plans.html#pricing-models) for this item price. If subscriptions, invoices or [differential prices](./differential_prices?prod_cat_ver=2) exist for this item price, `pricing_model` cannot be changed.
|
|
456
|
+
\* tiered - The per unit price is based on the tier that the total quantity falls in.
|
|
457
|
+
\* per_unit - A fixed price per unit quantity.
|
|
458
|
+
\* flat_fee - A fixed price that is not quantity-based.
|
|
459
|
+
\* volume - There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.
|
|
460
|
+
\* stairstep - A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.
|
|
461
|
+
|
|
462
|
+
*/
|
|
463
|
+
|
|
81
464
|
pricing_model?:PricingModel;
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* @description The cost of the item price when the pricing model is `flat_fee`. When the pricing model is `per_unit`, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in the [minor unit of the currency](https://apidocs.chargebee.com/docs/api#handling_currency_units).
|
|
468
|
+
|
|
469
|
+
*/
|
|
470
|
+
|
|
82
471
|
price?:number;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* @description The price of the item when the pricing_model is `flat_fee`. When the pricing model is `per_unit`, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in decimal and in major units of the currency. Also, this is only applicable when [multi-decimal pricing](https://apidocs.chargebee.com/docs/api#handling_currency_units) is enabled.
|
|
475
|
+
|
|
476
|
+
*/
|
|
477
|
+
|
|
83
478
|
price_in_decimal?:string;
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* @description The unit of time for `period`. If subscriptions or invoices exist for this item price, `period_unit` cannot be changed. The `period_unit` is mandatory when the item `type` is `plan` or `addon`. \* month - A period of 1 calendar month. \* week - A period of 7 days. \* year - A period of 1 calendar year. \* day - A period of 24 hours.
|
|
482
|
+
|
|
483
|
+
*/
|
|
484
|
+
|
|
84
485
|
period_unit?:'week' | 'month' | 'year' | 'day';
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* @description
|
|
489
|
+
|
|
490
|
+
* When the item `type` is `plan`: The billing period of the plan in `period_unit`s. For example, create a 6 month plan by providing `period` as 6 and `period_unit` as month.
|
|
491
|
+
* When item `type` is `addon`: The period of the addon in `period_unit`s. For example, create an addon with a 2 month `period` by providing period as 2 and `period_unit` as `month`. The period of an addon is the duration for which its `price` applies. When attached to a plan, the addon is billed for the billing period of the plan. [Learn more.](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
If subscriptions or invoices exist for this item price, `period` cannot be changed. The `period` is mandatory when the item `type` is `plan` or `addon`.
|
|
496
|
+
|
|
497
|
+
*/
|
|
498
|
+
|
|
85
499
|
period?:number;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* @description The unit of time for `trial_period`. \* month - A period of 1 calendar month. \* day - A period of 24 hours.
|
|
503
|
+
|
|
504
|
+
*/
|
|
505
|
+
|
|
86
506
|
trial_period_unit?:'month' | 'day';
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* @description The trial period of the plan in `trial_period_unit`s. You can also set [trial periods for addons](https://www.chargebee.com/docs/2.0/addons-trial.html); contact [Support](https://chargebee.freshdesk.com/support/home) to enable that feature.
|
|
510
|
+
|
|
511
|
+
*/
|
|
512
|
+
|
|
87
513
|
trial_period?:number;
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* @description Defines the shipping frequency. Example: to bill customer every 2 weeks, provide "2" here.
|
|
517
|
+
|
|
518
|
+
*/
|
|
519
|
+
|
|
88
520
|
shipping_period?:number;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* @description Defines the shipping frequency in association with shipping period. \* day - A period of 24 hours. \* week - A period of 7 days. \* year - A period of 1 calendar year. \* month - A period of 1 calendar month.
|
|
524
|
+
|
|
525
|
+
*/
|
|
526
|
+
|
|
89
527
|
shipping_period_unit?:'week' | 'month' | 'year' | 'day';
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* @description The default number of billing cycles a subscription to the plan must run. Can be [overridden](./subscriptions?prod_cat_ver=2) for a subscription.
|
|
531
|
+
|
|
532
|
+
Addons can also [have billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html). However, you must contact [Support](https://chargebee.freshdesk.com/support/home) to enable that. Also, for addons, you can [override this](./attached_items?prod_cat_ver=2) while attaching it to a plan. However, if you provide the value while [applying the addon to a subscription](./subscriptions?prod_cat_ver=2#subscription_subscription_items_item_type), then that value takes still higher precedence.
|
|
533
|
+
If subscriptions, invoices or [differential prices](./differential_prices?prod_cat_ver=2) exist for this item price, `billing_cycles` cannot be changed.
|
|
534
|
+
|
|
535
|
+
*/
|
|
536
|
+
|
|
90
537
|
billing_cycles?:number;
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* @description Applicable only when [End-of-trial Action](https://www.chargebee.com/docs/trial_periods.html#how-to-define-the-end-of-trial-actions-for-subscriptions) has been enabled for the site. Specifies the operation to be carried out for the subscription once the trial ends. Whenever the `item.type` is `plan` and a trial period is defined for this item price, this attribute (parameter) is returned (required). This can be overridden at the [subscription-level](subscriptions?prod_cat_ver=2#subscription_trial_end_action). \* cancel_subscription - The subscription cancels. \* activate_subscription - The subscription activates and charges are raised for non-metered items. \* site_default - The action [configured for the site](https://www.chargebee.com/docs/trial_periods.html#how-to-define-the-end-of-trial-actions-for-subscriptions) at the time when the trial ends, takes effect.
|
|
541
|
+
|
|
542
|
+
*/
|
|
543
|
+
|
|
91
544
|
trial_end_action?:'activate_subscription' | 'cancel_subscription' | 'site_default';
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* @description Whether the item price's description should be shown on [invoice PDFs](/docs/api/invoices#retrieve_invoice_as_pdf). If this Boolean is changed, only invoices generated (or [regenerated](https://www.chargebee.com/docs/invoice-operations.html#actions-for-payment-due-not-paid-invoices_regenerate-invoice)) after the change are affected; past invoices are not.
|
|
548
|
+
|
|
549
|
+
*/
|
|
550
|
+
|
|
92
551
|
show_description_in_invoices?:boolean;
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* @description Whether the item price's description should be shown on [quote PDFs](/docs/api/quotes#retrieve_quote_as_pdf). If this Boolean is changed, only quotes created after the change are affected; past quotes are not.
|
|
555
|
+
|
|
556
|
+
*/
|
|
557
|
+
|
|
93
558
|
show_description_in_quotes?:boolean;
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* @description Parameters for tax_detail
|
|
562
|
+
|
|
563
|
+
*/
|
|
564
|
+
|
|
94
565
|
tax_detail?:{avalara_sale_type?:AvalaraSaleType,avalara_service_type?:number,avalara_tax_code?:string,avalara_transaction_type?:number,hsn_code?:string,tax_profile_id?:string,taxjar_product_code?:string};
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* @description Parameters for accounting_detail
|
|
569
|
+
|
|
570
|
+
*/
|
|
571
|
+
|
|
95
572
|
accounting_detail?:{accounting_category1?:string,accounting_category2?:string,accounting_category3?:string,accounting_category4?:string,accounting_code?:string,sku?:string};
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* @description Parameters for tiers
|
|
576
|
+
|
|
577
|
+
*/
|
|
578
|
+
|
|
96
579
|
tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
97
580
|
}
|
|
98
|
-
export interface DeleteResponse {
|
|
99
|
-
|
|
581
|
+
export interface DeleteResponse {
|
|
582
|
+
/**
|
|
583
|
+
* @description Deletes an item price, marking its `status` as `deleted`. If it is part of a subscription or invoice, the item price `status` is marked `archived` instead. Once deleted, the `id` and `name` of the item price can be reused to create a new item price.
|
|
584
|
+
|
|
585
|
+
*/
|
|
586
|
+
|
|
587
|
+
item_price:ItemPrice;
|
|
100
588
|
}
|
|
101
589
|
|
|
102
|
-
export interface FindApplicableItemPricesResponse {
|
|
103
|
-
|
|
104
|
-
|
|
590
|
+
export interface FindApplicableItemPricesResponse {
|
|
591
|
+
/**
|
|
592
|
+
* @description Returns the set of all applicable [addon-item](item_prices?prod_cat_ver=2#types) prices for a specific plan-item price. This set consists of all the addon-item prices that can be applied to a subscription having the plan-item price. When determining this set, Chargebee considers the following:
|
|
593
|
+
|
|
594
|
+
* the [item_applicability](items?prod_cat_ver=2#item_item_applicability) and [applicable_items](items?prod_cat_ver=2#item_applicable_items) defined for the parent item of the plan-item price
|
|
595
|
+
* the [compatibility](subscriptions?prod_cat_ver=2#compatibility) of the addon-item prices to the plan-item price
|
|
596
|
+
|
|
597
|
+
**Note**
|
|
598
|
+
|
|
599
|
+
If an addon-item price has [differential pricing](differential_prices?prod_cat_ver=2) defined against the parent item of the plan-item price, then the pricing information in the addon-item price object returned, reflects the differential pricing.
|
|
600
|
+
|
|
601
|
+
*/
|
|
602
|
+
|
|
603
|
+
list:{item_price:ItemPrice}[];
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* @description Returns the set of all applicable [addon-item](item_prices?prod_cat_ver=2#types) prices for a specific plan-item price. This set consists of all the addon-item prices that can be applied to a subscription having the plan-item price. When determining this set, Chargebee considers the following:
|
|
607
|
+
|
|
608
|
+
* the [item_applicability](items?prod_cat_ver=2#item_item_applicability) and [applicable_items](items?prod_cat_ver=2#item_applicable_items) defined for the parent item of the plan-item price
|
|
609
|
+
* the [compatibility](subscriptions?prod_cat_ver=2#compatibility) of the addon-item prices to the plan-item price
|
|
610
|
+
|
|
611
|
+
**Note**
|
|
612
|
+
|
|
613
|
+
If an addon-item price has [differential pricing](differential_prices?prod_cat_ver=2) defined against the parent item of the plan-item price, then the pricing information in the addon-item price object returned, reflects the differential pricing.
|
|
614
|
+
|
|
615
|
+
*/
|
|
616
|
+
|
|
617
|
+
next_offset?:string;
|
|
105
618
|
}
|
|
106
619
|
export interface FindApplicableItemPricesInputParam {
|
|
107
|
-
[key : string]: any;
|
|
620
|
+
[key : string]: any;
|
|
621
|
+
/**
|
|
622
|
+
* @description The number of resources to be returned.
|
|
623
|
+
|
|
624
|
+
*/
|
|
625
|
+
|
|
108
626
|
limit?:number;
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set \`offset\` to the value of \`next_offset\` obtained in the previous iteration of the API call.
|
|
630
|
+
|
|
631
|
+
*/
|
|
632
|
+
|
|
109
633
|
offset?:string;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* @description Returns the set of all applicable [addon-item](item_prices?prod_cat_ver=2#types) prices for a specific plan-item price. This set consists of all the addon-item prices that can be applied to a subscription having the plan-item price. When determining this set, Chargebee considers the following:
|
|
637
|
+
|
|
638
|
+
* the [item_applicability](items?prod_cat_ver=2#item_item_applicability) and [applicable_items](items?prod_cat_ver=2#item_applicable_items) defined for the parent item of the plan-item price
|
|
639
|
+
* the [compatibility](subscriptions?prod_cat_ver=2#compatibility) of the addon-item prices to the plan-item price
|
|
640
|
+
|
|
641
|
+
**Note**
|
|
642
|
+
|
|
643
|
+
If an addon-item price has [differential pricing](differential_prices?prod_cat_ver=2) defined against the parent item of the plan-item price, then the pricing information in the addon-item price object returned, reflects the differential pricing.
|
|
644
|
+
|
|
645
|
+
*/
|
|
646
|
+
|
|
110
647
|
item_id?:string;
|
|
648
|
+
|
|
649
|
+
/**
|
|
650
|
+
* @description Returns the set of all applicable [addon-item](item_prices?prod_cat_ver=2#types) prices for a specific plan-item price. This set consists of all the addon-item prices that can be applied to a subscription having the plan-item price. When determining this set, Chargebee considers the following:
|
|
651
|
+
|
|
652
|
+
* the [item_applicability](items?prod_cat_ver=2#item_item_applicability) and [applicable_items](items?prod_cat_ver=2#item_applicable_items) defined for the parent item of the plan-item price
|
|
653
|
+
* the [compatibility](subscriptions?prod_cat_ver=2#compatibility) of the addon-item prices to the plan-item price
|
|
654
|
+
|
|
655
|
+
**Note**
|
|
656
|
+
|
|
657
|
+
If an addon-item price has [differential pricing](differential_prices?prod_cat_ver=2) defined against the parent item of the plan-item price, then the pricing information in the addon-item price object returned, reflects the differential pricing.
|
|
658
|
+
|
|
659
|
+
*/
|
|
660
|
+
|
|
111
661
|
sort_by?:{asc?:'updated_at' | 'name' | 'id',desc?:'updated_at' | 'name' | 'id'};
|
|
112
662
|
}
|
|
113
|
-
export interface ListResponse {
|
|
114
|
-
|
|
115
|
-
|
|
663
|
+
export interface ListResponse {
|
|
664
|
+
/**
|
|
665
|
+
* @description Returns a list of item prices satisfying **all** the conditions specified in the filter parameters below. The list is sorted by the date of creation in descending order.
|
|
666
|
+
|
|
667
|
+
*/
|
|
668
|
+
|
|
669
|
+
list:{item_price:ItemPrice}[];
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* @description Returns a list of item prices satisfying **all** the conditions specified in the filter parameters below. The list is sorted by the date of creation in descending order.
|
|
673
|
+
|
|
674
|
+
*/
|
|
675
|
+
|
|
676
|
+
next_offset?:string;
|
|
116
677
|
}
|
|
117
678
|
export interface ListInputParam {
|
|
118
|
-
[key : string]: any;
|
|
679
|
+
[key : string]: any;
|
|
680
|
+
/**
|
|
681
|
+
* @description The number of resources to be returned.
|
|
682
|
+
|
|
683
|
+
*/
|
|
684
|
+
|
|
119
685
|
limit?:number;
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* @description Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set \`offset\` to the value of \`next_offset\` obtained in the previous iteration of the API call.
|
|
689
|
+
|
|
690
|
+
*/
|
|
691
|
+
|
|
120
692
|
offset?:string;
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* @description Filter item prices based on their [id](#).
|
|
696
|
+
|
|
697
|
+
*/
|
|
698
|
+
|
|
121
699
|
id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* @description Filter item prices based on their `name`s.
|
|
703
|
+
|
|
704
|
+
*/
|
|
705
|
+
|
|
122
706
|
name?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* @description Filter item prices based on their `pricing_model`.
|
|
710
|
+
|
|
711
|
+
*/
|
|
712
|
+
|
|
123
713
|
pricing_model?:{in?:string,is?:'volume' | 'per_unit' | 'tiered' | 'flat_fee' | 'stairstep',is_not?:'volume' | 'per_unit' | 'tiered' | 'flat_fee' | 'stairstep',not_in?:string};
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* @description Filter item prices based on their `item_id`.
|
|
717
|
+
|
|
718
|
+
*/
|
|
719
|
+
|
|
124
720
|
item_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* @description Filter item prices based on `item_family_id`.
|
|
724
|
+
|
|
725
|
+
*/
|
|
726
|
+
|
|
125
727
|
item_family_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* @description Filter item prices based on `item_type`.
|
|
731
|
+
|
|
732
|
+
*/
|
|
733
|
+
|
|
126
734
|
item_type?:{in?:string,is?:'charge' | 'addon' | 'plan',is_not?:'charge' | 'addon' | 'plan',not_in?:string};
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* @description Filter item prices based on their `currency_code`.
|
|
738
|
+
|
|
739
|
+
*/
|
|
740
|
+
|
|
127
741
|
currency_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* @description Filter item prices based on their `trial_period`.
|
|
745
|
+
|
|
746
|
+
*/
|
|
747
|
+
|
|
128
748
|
trial_period?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string};
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* @description Filter item prices based on their `trial_period_unit`.
|
|
752
|
+
|
|
753
|
+
*/
|
|
754
|
+
|
|
129
755
|
trial_period_unit?:{in?:string,is?:'month' | 'day',is_not?:'month' | 'day',not_in?:string};
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* @description Filter item prices based on their `status`.
|
|
759
|
+
|
|
760
|
+
*/
|
|
761
|
+
|
|
130
762
|
status?:{in?:string,is?:'archived' | 'deleted' | 'active',is_not?:'archived' | 'deleted' | 'active',not_in?:string};
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* @description Filter item prices based on their `updated_at`.
|
|
766
|
+
|
|
767
|
+
*/
|
|
768
|
+
|
|
131
769
|
updated_at?:{after?:string,before?:string,between?:string,on?:string};
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* @description Filter item prices based on their `period_unit`.
|
|
773
|
+
|
|
774
|
+
*/
|
|
775
|
+
|
|
132
776
|
period_unit?:{in?:string,is?:'week' | 'month' | 'year' | 'day',is_not?:'week' | 'month' | 'year' | 'day',not_in?:string};
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* @description Filter item prices based on their `period`.
|
|
780
|
+
|
|
781
|
+
*/
|
|
782
|
+
|
|
133
783
|
period?:{between?:string,gt?:string,gte?:string,is?:string,is_not?:string,lt?:string,lte?:string};
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* @description The subscription channel this object originated from and is maintained in.
|
|
787
|
+
|
|
788
|
+
*/
|
|
789
|
+
|
|
134
790
|
channel?:{in?:string,is?:'app_store' | 'web' | 'play_store',is_not?:'app_store' | 'web' | 'play_store',not_in?:string};
|
|
791
|
+
|
|
792
|
+
/**
|
|
793
|
+
* @description Returns a list of item prices satisfying **all** the conditions specified in the filter parameters below. The list is sorted by the date of creation in descending order.
|
|
794
|
+
|
|
795
|
+
*/
|
|
796
|
+
|
|
135
797
|
sort_by?:{asc?:'updated_at' | 'name' | 'id',desc?:'updated_at' | 'name' | 'id'};
|
|
136
798
|
}
|
|
137
|
-
export interface CreateResponse {
|
|
138
|
-
|
|
799
|
+
export interface CreateResponse {
|
|
800
|
+
/**
|
|
801
|
+
* @description This API creates an item price (a price point) for an [item](./items?prod_cat_ver=2).
|
|
802
|
+
|
|
803
|
+
*/
|
|
804
|
+
|
|
805
|
+
item_price:ItemPrice;
|
|
139
806
|
}
|
|
140
807
|
export interface CreateInputParam {
|
|
141
|
-
[key : string] : any;
|
|
808
|
+
[key : string] : any;
|
|
809
|
+
/**
|
|
810
|
+
* @description The identifier for the item price. It is unique and immutable.
|
|
811
|
+
|
|
812
|
+
*/
|
|
813
|
+
|
|
142
814
|
id:string;
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* @description A unique display name for the item price in the Chargebee UI. If `external_name` is not provided, this is also used in customer-facing pages and documents such as [invoices](./invoices?prod_cat_ver=2) and [hosted pages](hosted_pages?prod_cat_ver=2).
|
|
818
|
+
|
|
819
|
+
*/
|
|
820
|
+
|
|
143
821
|
name:string;
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* @description Description of the item price.
|
|
825
|
+
|
|
826
|
+
*/
|
|
827
|
+
|
|
144
828
|
description?:string;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* @description The id of the item that the item price belongs to.
|
|
832
|
+
|
|
833
|
+
*/
|
|
834
|
+
|
|
145
835
|
item_id:string;
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* @description A customer-facing note added to all invoices associated with this API resource. This note becomes one among [all the notes](/docs/api/invoices#invoice_notes) displayed on the invoice PDF.
|
|
839
|
+
|
|
840
|
+
*/
|
|
841
|
+
|
|
146
842
|
invoice_notes?:string;
|
|
843
|
+
|
|
844
|
+
/**
|
|
845
|
+
* @description The name of the item price used in customer-facing pages and documents. These include [invoices](./invoices?prod_cat_ver=2) and [hosted pages](hosted_pages?prod_cat_ver=2). If not provided, then `name` is used.
|
|
846
|
+
|
|
847
|
+
*/
|
|
848
|
+
|
|
147
849
|
external_name?:string;
|
|
850
|
+
|
|
851
|
+
/**
|
|
852
|
+
* @description The currency code ([ISO 4217 format](https://www.chargebee.com/docs/supported-currencies.html)) for the item price. Is required when multiple currencies have been enabled.
|
|
853
|
+
|
|
854
|
+
*/
|
|
855
|
+
|
|
148
856
|
currency_code?:string;
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* @description Specifies whether taxes apply to this item price. This value is set and returned even if [Taxes](https://www.chargebee.com/docs/tax.html) have been disabled in Chargebee. However, the value is effective only while Taxes are enabled.
|
|
860
|
+
|
|
861
|
+
*/
|
|
862
|
+
|
|
149
863
|
is_taxable?:boolean;
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
* @description Free quantity the subscriptions of this item_price will have. Only the quantity more than this will be charged for the subscription.
|
|
867
|
+
|
|
868
|
+
*/
|
|
869
|
+
|
|
150
870
|
free_quantity?:number;
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* @description The quantity of the item that is available free-of-charge, represented in decimal. When a subscription is created for this plan or when the plan of a subscription is changed to this one, only the quantity above this number is charged for. Applicable for quantity-based plans and only when [multi-decimal pricing](https://apidocs.chargebee.com/docs/api#handling_currency_units) is enabled.
|
|
874
|
+
|
|
875
|
+
*/
|
|
876
|
+
|
|
151
877
|
free_quantity_in_decimal?:string;
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* @description A set of key-value pairs stored as additional information for the item price. [Learn more](./#meta_data).
|
|
881
|
+
|
|
882
|
+
*/
|
|
883
|
+
|
|
152
884
|
metadata?:object;
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* @description Whether the item price's description should be shown on [invoice PDFs](/docs/api/invoices#retrieve_invoice_as_pdf). If this Boolean is changed, only invoices generated (or [regenerated](https://www.chargebee.com/docs/invoice-operations.html#actions-for-payment-due-not-paid-invoices_regenerate-invoice)) after the change are affected; past invoices are not.
|
|
888
|
+
|
|
889
|
+
*/
|
|
890
|
+
|
|
153
891
|
show_description_in_invoices?:boolean;
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* @description Whether the item price's description should be shown on [quote PDFs](/docs/api/quotes#retrieve_quote_as_pdf). If this Boolean is changed, only quotes created after the change are affected; past quotes are not.
|
|
895
|
+
|
|
896
|
+
*/
|
|
897
|
+
|
|
154
898
|
show_description_in_quotes?:boolean;
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* @description The [pricing scheme](https://www.chargebee.com/docs/2.0/plans.html#pricing-models) for this item price. If subscriptions, invoices or [differential prices](./differential_prices?prod_cat_ver=2) exist for this item price, `pricing_model` cannot be changed.
|
|
902
|
+
\* tiered - The per unit price is based on the tier that the total quantity falls in.
|
|
903
|
+
\* per_unit - A fixed price per unit quantity.
|
|
904
|
+
\* flat_fee - A fixed price that is not quantity-based.
|
|
905
|
+
\* volume - There are quantity tiers for which per unit prices are set. Quantities are purchased from successive tiers.
|
|
906
|
+
\* stairstep - A quantity-based pricing scheme. The item is charged a fixed price based on the tier that the total quantity falls in.
|
|
907
|
+
|
|
908
|
+
*/
|
|
909
|
+
|
|
155
910
|
pricing_model?:PricingModel;
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* @description The cost of the item price when the pricing model is `flat_fee`. When the pricing model is `per_unit`, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in the [minor unit of the currency](https://apidocs.chargebee.com/docs/api#handling_currency_units).
|
|
914
|
+
|
|
915
|
+
*/
|
|
916
|
+
|
|
156
917
|
price?:number;
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* @description The price of the item when the pricing_model is `flat_fee`. When the pricing model is `per_unit`, it is the price per unit quantity of the item. Not applicable for the other pricing models. The value is in decimal and in major units of the currency. Also, this is only applicable when [multi-decimal pricing](https://apidocs.chargebee.com/docs/api#handling_currency_units) is enabled.
|
|
921
|
+
|
|
922
|
+
*/
|
|
923
|
+
|
|
157
924
|
price_in_decimal?:string;
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* @description The unit of time for `period`. If subscriptions or invoices exist for this item price, `period_unit` cannot be changed. The `period_unit` is mandatory when the item `type` is `plan` or `addon`. \* month - A period of 1 calendar month. \* week - A period of 7 days. \* year - A period of 1 calendar year. \* day - A period of 24 hours.
|
|
928
|
+
|
|
929
|
+
*/
|
|
930
|
+
|
|
158
931
|
period_unit?:'week' | 'month' | 'year' | 'day';
|
|
932
|
+
|
|
933
|
+
/**
|
|
934
|
+
* @description
|
|
935
|
+
|
|
936
|
+
* When the item `type` is `plan`: The billing period of the plan in `period_unit`s. For example, create a 6 month plan by providing `period` as 6 and `period_unit` as month.
|
|
937
|
+
* When item `type` is `addon`: The period of the addon in `period_unit`s. For example, create an addon with a 2 month `period` by providing period as 2 and `period_unit` as `month`. The period of an addon is the duration for which its `price` applies. When attached to a plan, the addon is billed for the billing period of the plan. [Learn more.](https://www.chargebee.com/docs/2.0/addons-billingcycle.html)
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
If subscriptions or invoices exist for this item price, `period` cannot be changed. The `period` is mandatory when the item `type` is `plan` or `addon`.
|
|
942
|
+
|
|
943
|
+
*/
|
|
944
|
+
|
|
159
945
|
period?:number;
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* @description The unit of time for `trial_period`. \* month - A period of 1 calendar month. \* day - A period of 24 hours.
|
|
949
|
+
|
|
950
|
+
*/
|
|
951
|
+
|
|
160
952
|
trial_period_unit?:'month' | 'day';
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* @description The trial period of the plan in `trial_period_unit`s. You can also set [trial periods for addons](https://www.chargebee.com/docs/2.0/addons-trial.html); contact [Support](https://chargebee.freshdesk.com/support/home) to enable that feature.
|
|
956
|
+
|
|
957
|
+
*/
|
|
958
|
+
|
|
161
959
|
trial_period?:number;
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* @description Defines the shipping frequency. Example: to bill customer every 2 weeks, provide "2" here.
|
|
963
|
+
|
|
964
|
+
*/
|
|
965
|
+
|
|
162
966
|
shipping_period?:number;
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* @description Defines the shipping frequency in association with shipping period. \* day - A period of 24 hours. \* week - A period of 7 days. \* year - A period of 1 calendar year. \* month - A period of 1 calendar month.
|
|
970
|
+
|
|
971
|
+
*/
|
|
972
|
+
|
|
163
973
|
shipping_period_unit?:'week' | 'month' | 'year' | 'day';
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* @description The default number of billing cycles a subscription to the plan must run. Can be [overridden](./subscriptions?prod_cat_ver=2) for a subscription.
|
|
977
|
+
|
|
978
|
+
Addons can also [have billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle.html). However, you must contact [Support](https://chargebee.freshdesk.com/support/home) to enable that. Also, for addons, you can [override this](./attached_items?prod_cat_ver=2) while attaching it to a plan. However, if you provide the value while [applying the addon to a subscription](./subscriptions?prod_cat_ver=2#subscription_subscription_items_item_type), then that value takes still higher precedence.
|
|
979
|
+
If subscriptions, invoices or [differential prices](./differential_prices?prod_cat_ver=2) exist for this item price, `billing_cycles` cannot be changed.
|
|
980
|
+
|
|
981
|
+
*/
|
|
982
|
+
|
|
164
983
|
billing_cycles?:number;
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* @description Applicable only when [End-of-trial Action](https://www.chargebee.com/docs/trial_periods.html#how-to-define-the-end-of-trial-actions-for-subscriptions) has been enabled for the site. Specifies the operation to be carried out for the subscription once the trial ends. Whenever the `item.type` is `plan` and a trial period is defined for this item price, this attribute (parameter) is returned (required). This can be overridden at the [subscription-level](subscriptions?prod_cat_ver=2#subscription_trial_end_action). \* cancel_subscription - The subscription cancels. \* activate_subscription - The subscription activates and charges are raised for non-metered items. \* site_default - The action [configured for the site](https://www.chargebee.com/docs/trial_periods.html#how-to-define-the-end-of-trial-actions-for-subscriptions) at the time when the trial ends, takes effect.
|
|
987
|
+
|
|
988
|
+
*/
|
|
989
|
+
|
|
165
990
|
trial_end_action?:'activate_subscription' | 'cancel_subscription' | 'site_default';
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* @description Parameters for tax_detail
|
|
994
|
+
|
|
995
|
+
*/
|
|
996
|
+
|
|
166
997
|
tax_detail?:{avalara_sale_type?:AvalaraSaleType,avalara_service_type?:number,avalara_tax_code?:string,avalara_transaction_type?:number,hsn_code?:string,tax_profile_id?:string,taxjar_product_code?:string};
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* @description Parameters for accounting_detail
|
|
1001
|
+
|
|
1002
|
+
*/
|
|
1003
|
+
|
|
167
1004
|
accounting_detail?:{accounting_category1?:string,accounting_category2?:string,accounting_category3?:string,accounting_category4?:string,accounting_code?:string,sku?:string};
|
|
1005
|
+
|
|
1006
|
+
/**
|
|
1007
|
+
* @description Parameters for tiers
|
|
1008
|
+
|
|
1009
|
+
*/
|
|
1010
|
+
|
|
168
1011
|
tiers?:{ending_unit?:number,ending_unit_in_decimal?:string,price?:number,price_in_decimal?:string,starting_unit?:number,starting_unit_in_decimal?:string}[];
|
|
169
1012
|
}
|
|
170
|
-
export interface Tier {
|
|
1013
|
+
export interface Tier {
|
|
171
1014
|
starting_unit?:number;
|
|
1015
|
+
|
|
172
1016
|
ending_unit?:number;
|
|
1017
|
+
|
|
173
1018
|
price?:number;
|
|
1019
|
+
|
|
174
1020
|
starting_unit_in_decimal?:string;
|
|
1021
|
+
|
|
175
1022
|
ending_unit_in_decimal?:string;
|
|
1023
|
+
|
|
176
1024
|
price_in_decimal?:string;
|
|
177
1025
|
}
|
|
178
|
-
export interface TaxDetail {
|
|
1026
|
+
export interface TaxDetail {
|
|
1027
|
+
/**
|
|
1028
|
+
* @description The tax profile of the item price.
|
|
1029
|
+
|
|
1030
|
+
*/
|
|
1031
|
+
|
|
179
1032
|
tax_profile_id?:string;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* @description Indicates the [Avalara sale type](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/transaction-information/#lineitem) for the item price. Applicable only if you use the [AvaTax for Communications integration](https://www.chargebee.com/docs/2.0/avatax-for-communication.html). \* vendor_use - Transaction is for an item that is subject to vendor use tax \* consumed - Transaction is for an item that is consumed directly \* wholesale - Transaction is a sale to another company that will resell your product or service to another consumer \* retail - Transaction is a sale to an end user
|
|
1036
|
+
|
|
1037
|
+
*/
|
|
1038
|
+
|
|
180
1039
|
avalara_sale_type?:AvalaraSaleType;
|
|
1040
|
+
|
|
1041
|
+
/**
|
|
1042
|
+
* @description Indicates the [Avalara transaction type](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/transaction-information/#lineitem) for the item price. Applicable only if you use the [AvaTax for Communications integration](https://www.chargebee.com/docs/2.0/avatax-for-communication.html).
|
|
1043
|
+
|
|
1044
|
+
*/
|
|
1045
|
+
|
|
181
1046
|
avalara_transaction_type?:number;
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* @description Indicates the [Avalara service type](https://developer.avalara.com/communications/dev-guide_rest_v2/customizing-transactions/sample-transactions/transaction-information/#lineitem) for the item price. Applicable only if you use the [AvaTax for Communications integration](https://www.chargebee.com/docs/2.0/avatax-for-communication.html).
|
|
1050
|
+
|
|
1051
|
+
*/
|
|
1052
|
+
|
|
182
1053
|
avalara_service_type?:number;
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* @description The [Avalara tax codes](https://taxcode.avatax.avalara.com) for the item price. Applicable only if you use [AvaTax for Sales integration](https://www.chargebee.com/docs/2.0/avalara-for-sales.html).
|
|
1057
|
+
|
|
1058
|
+
*/
|
|
1059
|
+
|
|
183
1060
|
avalara_tax_code?:string;
|
|
1061
|
+
|
|
1062
|
+
/**
|
|
1063
|
+
* @description The [HSN code](https://cbic-gst.gov.in/gst-goods-services-rates.html) to which the item is mapped for calculating the customer's tax in India. Applicable only when both of the following conditions are true:
|
|
1064
|
+
|
|
1065
|
+
* **[India](https://www.chargebee.com/docs/indian-gst.html#configuring-indian-gst)** has been enabled as a **Tax Region**. (An error is returned when this condition is not true.)
|
|
1066
|
+
* The [**AvaTax for Sales** integration](\"https://www.chargebee.com/docs/avalara.html\") has been enabled in Chargebee.
|
|
1067
|
+
|
|
1068
|
+
*/
|
|
1069
|
+
|
|
184
1070
|
hsn_code?:string;
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* @description The [TaxJar product code](https://developers.taxjar.com/api/reference/#get-list-tax-categories) for the item price. Applicable only if you use [TaxJar integration](https://www.chargebee.com/docs/2.0/taxjar.html).
|
|
1074
|
+
|
|
1075
|
+
*/
|
|
1076
|
+
|
|
185
1077
|
taxjar_product_code?:string;
|
|
186
1078
|
}
|
|
187
|
-
export interface AccountingDetail {
|
|
1079
|
+
export interface AccountingDetail {
|
|
1080
|
+
/**
|
|
1081
|
+
* @description This maps to the sku or product name in the accounting integration.
|
|
1082
|
+
|
|
1083
|
+
*/
|
|
1084
|
+
|
|
188
1085
|
sku?:string;
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* @description The identifier of the chart of accounts under which the item price falls in the accounting system.
|
|
1089
|
+
|
|
1090
|
+
*/
|
|
1091
|
+
|
|
189
1092
|
accounting_code?:string;
|
|
1093
|
+
|
|
1094
|
+
/**
|
|
1095
|
+
* @description Used exclusively with the following [accounting integrations](https://www.chargebee.com/docs/2.0/finance-integration-index.html )
|
|
1096
|
+
|
|
1097
|
+
* [**Xero:**](https://www.chargebee.com/docs/2.0/xero.html )If you've categorized your products in Xero, provide the category name and option. Use the format: `<category-name>: <option>`. For example:`Location: Singapore.`
|
|
1098
|
+
* [**QuickBooks:**](https://www.chargebee.com/docs/2.0/quickbooks.html )If you've categorized your product sales in QuickBooks according to Classes, provide the class name here. Use the following format: `<parent class>:<sub-class-1>:<sub-class-2>...`
|
|
1099
|
+
* [**NetSuite:**](https://www.chargebee.com/docs/2.0/netsuite.html )If you've categorized your products in NetSuite under Classes, provide the class name here. Use the following format: `<parent class>: <sub-class-1>: <sub-class2>....` For example: `Services: Plan.`
|
|
1100
|
+
* [**Intacct:**](https://www.chargebee.com/docs/2.0/intacct.html )If you've classified your products in Intacct under Locations, provide the name of the Location here.
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
*/
|
|
1104
|
+
|
|
190
1105
|
accounting_category1?:string;
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* @description Used exclusively with the following [accounting integrations](https://www.chargebee.com/docs/2.0/finance-integration-index.html )
|
|
1109
|
+
|
|
1110
|
+
* [**Xero:**](https://www.chargebee.com/docs/2.0/xero.html )If you've categorized your products in Xero, then provide the second category name and option here. Use the format: `<category-name>: <option>....` For example, `Region: South`
|
|
1111
|
+
* [**QuickBooks:**](https://www.chargebee.com/docs/2.0/quickbooks.html )If you've categorized your product sales in QuickBooks according to Location, provide the Location name here. Use the following format: `<parent-location>:<sub-location-1>:<sub-location-2>....` For example: `Location: North America: Canada`
|
|
1112
|
+
* [**NetSuite:**](https://www.chargebee.com/docs/2.0/netsuite.html )If you've categorized your products in NetSuite under Locations, provide the location name here. Use the following format `<parent-location> : <sub-location-1>: <sub-location-2>....` For example: `NA:US:CA`
|
|
1113
|
+
* [**Intacct:**](https://www.chargebee.com/docs/2.0/intacct.html )If you've classified your products in Intacct under Dimensions, provide the value of the Dimension here.
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
*/
|
|
1117
|
+
|
|
191
1118
|
accounting_category2?:string;
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* @description Used exclusively with the following [accounting integrations](https://www.chargebee.com/docs/2.0/finance-integration-index.html )
|
|
1122
|
+
|
|
1123
|
+
* [**NetSuite:**](https://www.chargebee.com/docs/2.0/netsuite.html )If you've categorized your products in NetSuite under Departments, pass the department name here. Use the following format: `<parent-department> : <sub-department-1>: <sub-department-2>....` For example: `Production: Assembly.`
|
|
1124
|
+
* [**Intacct:**](https://www.chargebee.com/docs/2.0/intacct.html )If you've classified your products in Intacct under multiple Dimensions, provide the value of the second Dimension here.
|
|
1125
|
+
|
|
1126
|
+
*/
|
|
1127
|
+
|
|
192
1128
|
accounting_category3?:string;
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* @description Used exclusively with the following [accounting integrations](https://www.chargebee.com/docs/1.0/finance-integration-index.html )
|
|
1132
|
+
|
|
1133
|
+
* [**NetSuite:**](https://www.chargebee.com/docs/2.0/netsuite.html )Provide the "Revenue Recognition Rule Id" for the product from NetSuite.
|
|
1134
|
+
* [**Intacct:**](https://www.chargebee.com/docs/2.0/intacct.html )If you have configured "Revenue Recognition Templates" for products in Intacct, provide the template ID for the product.
|
|
1135
|
+
|
|
1136
|
+
*/
|
|
1137
|
+
|
|
193
1138
|
accounting_category4?:string;
|
|
194
1139
|
}
|
|
195
1140
|
}
|