chargebee 2.34.0 → 2.35.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.
- package/CHANGELOG.md +64 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +98 -0
- package/package.json +1 -1
- package/types/core.d.ts +1 -1
- package/types/index.d.ts +7 -0
- package/types/resources/Customer.d.ts +36 -4
- package/types/resources/Estimate.d.ts +26 -0
- package/types/resources/Export.d.ts +9 -0
- package/types/resources/Installment.d.ts +2 -0
- package/types/resources/InstallmentConfig.d.ts +7 -0
- package/types/resources/InstallmentDetail.d.ts +34 -0
- package/types/resources/ItemPrice.d.ts +38 -1
- package/types/resources/PaymentSource.d.ts +5 -0
- package/types/resources/PriceVariant.d.ts +295 -0
- package/types/resources/Ramp.d.ts +744 -0
- package/types/resources/Session.d.ts +41 -0
- package/types/resources/UnbilledCharge.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,67 @@
|
|
|
1
|
+
### v2.35.0 (2024-04-30)
|
|
2
|
+
* * *
|
|
3
|
+
|
|
4
|
+
#### New resources:
|
|
5
|
+
* PriceVariant has been added.
|
|
6
|
+
* Ramp has been added.
|
|
7
|
+
* InstallmentDetail has been added.
|
|
8
|
+
* Session has been added.
|
|
9
|
+
* Ramp has been added.
|
|
10
|
+
|
|
11
|
+
#### New Enum values:
|
|
12
|
+
* INVOICE_INSTALLMENTS_CREATED has been added in EventType enum.
|
|
13
|
+
* INVOICE_INSTALLMENT_UPDATED has been added in EventType enum.
|
|
14
|
+
* INSTALLMENT_CONFIG_CREATED has been added in EventType enum.
|
|
15
|
+
* INSTALLMENT_CONFIG_DELETED has been added in EventType enum.
|
|
16
|
+
* RAMP_CREATED has been added in EventType enum.
|
|
17
|
+
* RAMP_DELETED has been added in EventType enum.
|
|
18
|
+
* RAMP_APPLIED has been added in EventType enum.
|
|
19
|
+
|
|
20
|
+
#### New Attributes:
|
|
21
|
+
* tax_providers_fields has been added to Addon resource.
|
|
22
|
+
* tax_providers_fields has been added to Customer resource.
|
|
23
|
+
* tax_providers_fields has been added to ItemPrice resource.
|
|
24
|
+
* tax_providers_fields has been added to Plan resource.
|
|
25
|
+
* resource_version has been added to Installment resource.
|
|
26
|
+
* resource_version has been added to InstallmentConfig resource.
|
|
27
|
+
* KlarnaPayNow has been added to PaymentSource resource.
|
|
28
|
+
* business_entity_id has been added to UnbilledCharge resource.
|
|
29
|
+
|
|
30
|
+
#### New Endpoints:
|
|
31
|
+
* Exports#PriceVariantsRequest has been added to Exports resource.
|
|
32
|
+
|
|
33
|
+
#### New Input parameters:
|
|
34
|
+
* changes_scheduled_at, change_option has been added to Estimate#UpdateSubscriptionRequest.
|
|
35
|
+
* changes_scheduled_at, change_option has been added to Estimate#UpdateSubscriptionForItemsRequest.
|
|
36
|
+
* contract_term[contract_start] has been added to Estimate#CreateSubItemEstimateRequest.
|
|
37
|
+
* contract_term[contract_start] has been added to Estimate#CreateSubItemForCustomerEstimateRequest.
|
|
38
|
+
* contract_term[contract_start] has been added to Subscription#CreateWithItemsRequest.
|
|
39
|
+
* contract_term[contract_start] has been added to Subscription#UpdateForItemsRequest.
|
|
40
|
+
* price_variant_id has been added to ItemPrice#CreateRequest.
|
|
41
|
+
* price_variant_id has been added to ItemPrice#UpdateRequest.
|
|
42
|
+
* price_variant_id has been added to ItemPrice#ListRequest.
|
|
43
|
+
|
|
44
|
+
#### Removed attributes:
|
|
45
|
+
* additional_info has been removed from Invoice#StatmentDescriptor resource.
|
|
46
|
+
|
|
47
|
+
#### Removed Input parameters:
|
|
48
|
+
* additional_info has been removed from Subscription#CreateRequest.
|
|
49
|
+
* additional_info has been removed from Subscription#CreateForCustomerRequest.
|
|
50
|
+
* additional_info has been removed from Subscription#CreateWithItemsRequest.
|
|
51
|
+
* additional_info has been removed from Subscription#UpdateRequest.
|
|
52
|
+
* additional_info has been removed from Subscription#UpdateForItemsRequest.
|
|
53
|
+
* additional_info has been removed from Subscription#ReactivateRequest.
|
|
54
|
+
|
|
55
|
+
### v2.34.1 (2024-04-03)
|
|
56
|
+
* * *
|
|
57
|
+
|
|
58
|
+
#### New Input parameters:
|
|
59
|
+
* to_customer_id has been added to subscription#MoveRequest.
|
|
60
|
+
* copy_payment_source has been added to subscription#MoveRequest.
|
|
61
|
+
|
|
62
|
+
#### New endpoints:
|
|
63
|
+
* Subscription#MoveRequest has been added to the Subscription resource.
|
|
64
|
+
|
|
1
65
|
### v2.34.0 (2024-03-20)
|
|
2
66
|
* * *
|
|
3
67
|
|
package/lib/chargebee.js
CHANGED
|
@@ -251,6 +251,13 @@ var _endpoints = {
|
|
|
251
251
|
"/subscriptions",
|
|
252
252
|
"/remove_scheduled_resumption",
|
|
253
253
|
true
|
|
254
|
+
],
|
|
255
|
+
[
|
|
256
|
+
"move",
|
|
257
|
+
"POST",
|
|
258
|
+
"/subscriptions",
|
|
259
|
+
"/move",
|
|
260
|
+
true
|
|
254
261
|
]
|
|
255
262
|
],
|
|
256
263
|
"contract_term": [],
|
|
@@ -2259,6 +2266,13 @@ var _endpoints = {
|
|
|
2259
2266
|
"/exports",
|
|
2260
2267
|
"/differential_prices",
|
|
2261
2268
|
false
|
|
2269
|
+
],
|
|
2270
|
+
[
|
|
2271
|
+
"price_variants",
|
|
2272
|
+
"POST",
|
|
2273
|
+
"/exports",
|
|
2274
|
+
"/price_variants",
|
|
2275
|
+
false
|
|
2262
2276
|
]
|
|
2263
2277
|
],
|
|
2264
2278
|
"payment_intent": [
|
|
@@ -2359,6 +2373,43 @@ var _endpoints = {
|
|
|
2359
2373
|
true
|
|
2360
2374
|
]
|
|
2361
2375
|
],
|
|
2376
|
+
"price_variant": [
|
|
2377
|
+
[
|
|
2378
|
+
"create",
|
|
2379
|
+
"POST",
|
|
2380
|
+
"/price_variants",
|
|
2381
|
+
null,
|
|
2382
|
+
false
|
|
2383
|
+
],
|
|
2384
|
+
[
|
|
2385
|
+
"retrieve",
|
|
2386
|
+
"GET",
|
|
2387
|
+
"/price_variants",
|
|
2388
|
+
null,
|
|
2389
|
+
true
|
|
2390
|
+
],
|
|
2391
|
+
[
|
|
2392
|
+
"update",
|
|
2393
|
+
"POST",
|
|
2394
|
+
"/price_variants",
|
|
2395
|
+
null,
|
|
2396
|
+
true
|
|
2397
|
+
],
|
|
2398
|
+
[
|
|
2399
|
+
"delete",
|
|
2400
|
+
"POST",
|
|
2401
|
+
"/price_variants",
|
|
2402
|
+
"/delete",
|
|
2403
|
+
true
|
|
2404
|
+
],
|
|
2405
|
+
[
|
|
2406
|
+
"list",
|
|
2407
|
+
"GET",
|
|
2408
|
+
"/price_variants",
|
|
2409
|
+
null,
|
|
2410
|
+
false
|
|
2411
|
+
]
|
|
2412
|
+
],
|
|
2362
2413
|
"attribute": [],
|
|
2363
2414
|
"item_price": [
|
|
2364
2415
|
[
|
|
@@ -2709,6 +2760,36 @@ var _endpoints = {
|
|
|
2709
2760
|
true
|
|
2710
2761
|
]
|
|
2711
2762
|
],
|
|
2763
|
+
"ramp": [
|
|
2764
|
+
[
|
|
2765
|
+
"create_for_subscription",
|
|
2766
|
+
"POST",
|
|
2767
|
+
"/subscriptions",
|
|
2768
|
+
"/create_ramp",
|
|
2769
|
+
true
|
|
2770
|
+
],
|
|
2771
|
+
[
|
|
2772
|
+
"retrieve",
|
|
2773
|
+
"GET",
|
|
2774
|
+
"/ramps",
|
|
2775
|
+
null,
|
|
2776
|
+
true
|
|
2777
|
+
],
|
|
2778
|
+
[
|
|
2779
|
+
"delete",
|
|
2780
|
+
"POST",
|
|
2781
|
+
"/ramps",
|
|
2782
|
+
"/delete",
|
|
2783
|
+
true
|
|
2784
|
+
],
|
|
2785
|
+
[
|
|
2786
|
+
"list",
|
|
2787
|
+
"GET",
|
|
2788
|
+
"/ramps",
|
|
2789
|
+
null,
|
|
2790
|
+
false
|
|
2791
|
+
]
|
|
2792
|
+
],
|
|
2712
2793
|
"installment_config": [
|
|
2713
2794
|
[
|
|
2714
2795
|
"create",
|
|
@@ -2747,6 +2828,23 @@ var _endpoints = {
|
|
|
2747
2828
|
null,
|
|
2748
2829
|
false
|
|
2749
2830
|
]
|
|
2831
|
+
],
|
|
2832
|
+
"installment_detail": [],
|
|
2833
|
+
"session": [
|
|
2834
|
+
[
|
|
2835
|
+
"create",
|
|
2836
|
+
"POST",
|
|
2837
|
+
"/sessions",
|
|
2838
|
+
null,
|
|
2839
|
+
false
|
|
2840
|
+
],
|
|
2841
|
+
[
|
|
2842
|
+
"retrieve",
|
|
2843
|
+
"GET",
|
|
2844
|
+
"/sessions",
|
|
2845
|
+
null,
|
|
2846
|
+
true
|
|
2847
|
+
]
|
|
2750
2848
|
]
|
|
2751
2849
|
};
|
|
2752
2850
|
module.exports = _endpoints;
|
package/package.json
CHANGED
package/types/core.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ declare module 'chargebee' {
|
|
|
42
42
|
type EntityCode = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'p' | 'q' | 'r' | 'med2' | 'med1'
|
|
43
43
|
type EntityType = 'item' | 'product' | 'coupon' | 'addon' | 'item_price' | 'business_entity' | 'subscription' | 'item_family' | 'credit_note' | 'quote' | 'variant' | 'invoice' | 'plan' | 'transaction' | 'customer' | 'order' | 'price_variant'
|
|
44
44
|
type EventName = 'cancellation_page_loaded'
|
|
45
|
-
type EventType = '
|
|
45
|
+
type EventType = 'coupon_created' | 'coupon_updated' | 'coupon_deleted' | 'coupon_set_created' | 'coupon_set_updated' | 'coupon_set_deleted' | 'coupon_codes_added' | 'coupon_codes_deleted' | 'coupon_codes_updated' | 'customer_created' | 'customer_changed' | 'customer_deleted' | 'customer_moved_out' | 'customer_moved_in' | 'promotional_credits_added' | 'promotional_credits_deducted' | 'subscription_created' | 'subscription_created_with_backdating' | 'subscription_started' | 'subscription_trial_end_reminder' | 'subscription_activated' | 'subscription_activated_with_backdating' | 'subscription_changed' | 'subscription_trial_extended' | 'mrr_updated' | 'subscription_changed_with_backdating' | 'subscription_cancellation_scheduled' | 'subscription_cancellation_reminder' | 'subscription_cancelled' | 'subscription_canceled_with_backdating' | 'subscription_reactivated' | 'subscription_reactivated_with_backdating' | 'subscription_renewed' | 'subscription_scheduled_cancellation_removed' | 'subscription_changes_scheduled' | 'subscription_scheduled_changes_removed' | 'subscription_shipping_address_updated' | 'subscription_deleted' | 'subscription_paused' | 'subscription_pause_scheduled' | 'subscription_scheduled_pause_removed' | 'subscription_resumed' | 'subscription_resumption_scheduled' | 'subscription_scheduled_resumption_removed' | 'subscription_advance_invoice_schedule_added' | 'subscription_advance_invoice_schedule_updated' | 'subscription_advance_invoice_schedule_removed' | 'pending_invoice_created' | 'pending_invoice_updated' | 'invoice_generated' | 'invoice_generated_with_backdating' | 'invoice_updated' | 'invoice_deleted' | 'credit_note_created' | 'credit_note_created_with_backdating' | 'credit_note_updated' | 'credit_note_deleted' | 'invoice_installments_created' | 'invoice_installment_updated' | 'installment_config_created' | 'installment_config_deleted' | 'subscription_renewal_reminder' | 'add_usages_reminder' | 'transaction_created' | 'transaction_updated' | 'transaction_deleted' | 'payment_succeeded' | 'payment_failed' | 'payment_refunded' | 'payment_initiated' | 'refund_initiated' | 'authorization_succeeded' | 'authorization_voided' | 'card_added' | 'card_updated' | 'card_expiry_reminder' | 'card_expired' | 'card_deleted' | 'payment_source_added' | 'payment_source_updated' | 'payment_source_deleted' | 'payment_source_expiring' | 'payment_source_expired' | 'payment_source_locally_deleted' | 'virtual_bank_account_added' | 'virtual_bank_account_updated' | 'virtual_bank_account_deleted' | 'token_created' | 'token_consumed' | 'token_expired' | 'unbilled_charges_created' | 'unbilled_charges_voided' | 'unbilled_charges_deleted' | 'unbilled_charges_invoiced' | 'order_created' | 'order_updated' | 'order_cancelled' | 'order_delivered' | 'order_returned' | 'order_ready_to_process' | 'order_ready_to_ship' | 'order_deleted' | 'order_resent' | 'quote_created' | 'quote_updated' | 'quote_deleted' | 'tax_withheld_recorded' | 'tax_withheld_deleted' | 'tax_withheld_refunded' | 'gift_scheduled' | 'gift_unclaimed' | 'gift_claimed' | 'gift_expired' | 'gift_cancelled' | 'gift_updated' | 'hierarchy_created' | 'hierarchy_deleted' | 'payment_intent_created' | 'payment_intent_updated' | 'contract_term_created' | 'contract_term_renewed' | 'contract_term_terminated' | 'contract_term_completed' | 'contract_term_cancelled' | 'item_family_created' | 'item_family_updated' | 'item_family_deleted' | 'item_created' | 'item_updated' | 'item_deleted' | 'item_price_created' | 'item_price_updated' | 'item_price_deleted' | 'attached_item_created' | 'attached_item_updated' | 'attached_item_deleted' | 'differential_price_created' | 'differential_price_updated' | 'differential_price_deleted' | 'feature_created' | 'feature_updated' | 'feature_deleted' | 'feature_activated' | 'feature_reactivated' | 'feature_archived' | 'item_entitlements_updated' | 'entitlement_overrides_updated' | 'entitlement_overrides_removed' | 'item_entitlements_removed' | 'entitlement_overrides_auto_removed' | 'subscription_entitlements_created' | 'business_entity_created' | 'business_entity_updated' | 'business_entity_deleted' | 'customer_business_entity_changed' | 'subscription_business_entity_changed' | 'purchase_created' | 'voucher_created' | 'voucher_expired' | 'voucher_create_failed' | 'item_price_entitlements_updated' | 'item_price_entitlements_removed' | 'ramp_created' | 'ramp_deleted' | 'ramp_applied' | 'price_variant_created' | 'price_variant_updated' | 'price_variant_deleted'
|
|
46
46
|
type ExportType = 'data' | 'import_friendly_data'
|
|
47
47
|
type FreePeriodUnit = 'week' | 'month' | 'year' | 'day'
|
|
48
48
|
type FriendOfferType = 'coupon_code' | 'coupon' | 'none'
|
package/types/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
///<reference path='./resources/InAppSubscription.d.ts' />
|
|
32
32
|
///<reference path='./resources/Installment.d.ts' />
|
|
33
33
|
///<reference path='./resources/InstallmentConfig.d.ts' />
|
|
34
|
+
///<reference path='./resources/InstallmentDetail.d.ts' />
|
|
34
35
|
///<reference path='./resources/Invoice.d.ts' />
|
|
35
36
|
///<reference path='./resources/InvoiceEstimate.d.ts' />
|
|
36
37
|
///<reference path='./resources/Item.d.ts' />
|
|
@@ -45,13 +46,16 @@
|
|
|
45
46
|
///<reference path='./resources/PaymentSource.d.ts' />
|
|
46
47
|
///<reference path='./resources/PaymentVoucher.d.ts' />
|
|
47
48
|
///<reference path='./resources/PortalSession.d.ts' />
|
|
49
|
+
///<reference path='./resources/PriceVariant.d.ts' />
|
|
48
50
|
///<reference path='./resources/PromotionalCredit.d.ts' />
|
|
49
51
|
///<reference path='./resources/Purchase.d.ts' />
|
|
50
52
|
///<reference path='./resources/Quote.d.ts' />
|
|
51
53
|
///<reference path='./resources/QuoteLineGroup.d.ts' />
|
|
52
54
|
///<reference path='./resources/QuotedCharge.d.ts' />
|
|
53
55
|
///<reference path='./resources/QuotedSubscription.d.ts' />
|
|
56
|
+
///<reference path='./resources/Ramp.d.ts' />
|
|
54
57
|
///<reference path='./resources/ResourceMigration.d.ts' />
|
|
58
|
+
///<reference path='./resources/Session.d.ts' />
|
|
55
59
|
///<reference path='./resources/SiteMigrationDetail.d.ts' />
|
|
56
60
|
///<reference path='./resources/Subscription.d.ts' />
|
|
57
61
|
///<reference path='./resources/SubscriptionEntitlement.d.ts' />
|
|
@@ -100,10 +104,13 @@ declare module 'chargebee' {
|
|
|
100
104
|
static payment_source: PaymentSource.PaymentSourceResource;
|
|
101
105
|
static payment_voucher: PaymentVoucher.PaymentVoucherResource;
|
|
102
106
|
static portal_session: PortalSession.PortalSessionResource;
|
|
107
|
+
static price_variant: PriceVariant.PriceVariantResource;
|
|
103
108
|
static promotional_credit: PromotionalCredit.PromotionalCreditResource;
|
|
104
109
|
static purchase: Purchase.PurchaseResource;
|
|
105
110
|
static quote: Quote.QuoteResource;
|
|
111
|
+
static ramp: Ramp.RampResource;
|
|
106
112
|
static resource_migration: ResourceMigration.ResourceMigrationResource;
|
|
113
|
+
static session: Session.SessionResource;
|
|
107
114
|
static site_migration_detail: SiteMigrationDetail.SiteMigrationDetailResource;
|
|
108
115
|
static subscription: Subscription.SubscriptionResource;
|
|
109
116
|
static subscription_entitlement: SubscriptionEntitlement.SubscriptionEntitlementResource;
|
|
@@ -99,7 +99,20 @@ This setting can be [overridden](subscriptions#create_subscription_for_items_aut
|
|
|
99
99
|
allow_direct_debit:boolean;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
|
-
* @description
|
|
102
|
+
* @description **Note**
|
|
103
|
+
|
|
104
|
+
Applicable only when the customer's `billing_address.country` is New Zealand, Australia, or in the EU.
|
|
105
|
+
|
|
106
|
+
When the customer uses a [card](https://apidocs.chargebee.com/docs/api/payment_sources#payment_source_type) [payment source](https://apidocs.chargebee.com/docs/api/customers#customer_primary_payment_source_id), this attribute specifies whether the country of the customer and the card issuer are the same.
|
|
107
|
+
|
|
108
|
+
The following three location indicators are compared:
|
|
109
|
+
|
|
110
|
+
* The card issuer's country.
|
|
111
|
+
* The `billing_address.country`.
|
|
112
|
+
* The country to which `created_from_ip` belongs.
|
|
113
|
+
* When all three are the same, this attribute is set to true, otherwise it is set to false.
|
|
114
|
+
|
|
115
|
+
When all three are the same, this attribute is set to `true`, otherwise it is set to `false`.
|
|
103
116
|
|
|
104
117
|
*/
|
|
105
118
|
|
|
@@ -113,7 +126,13 @@ This setting can be [overridden](subscriptions#create_subscription_for_items_aut
|
|
|
113
126
|
created_at:number;
|
|
114
127
|
|
|
115
128
|
/**
|
|
116
|
-
* @description The IP address of the customer.
|
|
129
|
+
* @description The IP address of the customer when this customer record was created. It's mainly used for [referral integrations](https://www.chargebee.com/docs/marketing-integration-index.html) and validating VAT if the customer is in the EU or UK.
|
|
130
|
+
|
|
131
|
+
Depending on the method used to create the customer record, the field is set as follows:
|
|
132
|
+
|
|
133
|
+
* **API** : When creating the `customer` resource through the API, you must include the customer's IP address in a [custom HTTP request header](https://apidocs.chargebee.com/docs/api/advanced-features#user_details) (`chargebee-request-origin-ip`) for Chargebee to capture it.
|
|
134
|
+
* **Checkout** : For `customer` resources created through [Chargebee Checkout](https://www.chargebee.com/docs/2.0/hosted-checkout.html), Chargebee automatically captures the IP address of the customer.
|
|
135
|
+
* **UI** : When [creating a `customer`](https://www.chargebee.com/docs/2.0/customers.html#creating-a-new-customer) resource via the Chargebee Billing UI, this field is not relevant and the value must be ignored.
|
|
117
136
|
|
|
118
137
|
*/
|
|
119
138
|
|
|
@@ -176,7 +195,11 @@ To know more about what values you need to provide, refer to this [Avalara'
|
|
|
176
195
|
* @description **Note**
|
|
177
196
|
|
|
178
197
|
Applicable only when [Calendar Billing](https://www.chargebee.com/docs/calendar-billing.html) with support for customer-specific billing date is enabled and `billing_date_mode` is `manually_set`.
|
|
179
|
-
Specifies the day of the month for subscription renewals on month-based or year-based plans. Month-based and year-based plans are `item_price` resources where the `item_type` is set to `plan` and `period_unit` is set to `month` and `year` respectively.
|
|
198
|
+
Specifies the day of the month for subscription renewals on month-based or year-based plans. Month-based and year-based plans are `item_price` resources where the `item_type` is set to `plan` and `period_unit` is set to `month` and `year` respectively.
|
|
199
|
+
**Example**
|
|
200
|
+
|
|
201
|
+
* **Month-based subscriptions** : If `billing_date` is set to `15`, month-based renewals occur on the 15th of the month. It's important to note that if the value is set to `31`, renewals align with the last day of the month. Additionally, in February, a `billing_date` of `29`, `30`, or `31` aligns renewals for the last day of February.
|
|
202
|
+
* **Year-based subscriptions** : A `billing_date` of `15` and a `billing_month` of `7` schedules the renewal on the 15th of July.
|
|
180
203
|
|
|
181
204
|
*/
|
|
182
205
|
|
|
@@ -210,7 +233,7 @@ Indicates whether this customer's `billing_date` and `billin
|
|
|
210
233
|
|
|
211
234
|
*/
|
|
212
235
|
|
|
213
|
-
billing_day_of_week?:'sunday' | '
|
|
236
|
+
billing_day_of_week?:'sunday' | 'monday' | 'tuesday' | 'wednesday' | 'thursday' | 'friday' | 'saturday';
|
|
214
237
|
|
|
215
238
|
/**
|
|
216
239
|
* @description Indicates whether this customer's *billing_day_of_week* value is derived as per configurations or its specifically set (overriden). When specifically set, the *billing_day_of_week* will not be reset even when all of the weekly subscriptions are cancelled. \* using_defaults - Billing date is set based on defaults configured. \* manually_set - Billing date is specifically set (default configuration is overridden)
|
|
@@ -485,6 +508,8 @@ If there are additional entity identifiers for the customer not associated with
|
|
|
485
508
|
|
|
486
509
|
entity_identifiers?:Customer.EntityIdentifier[];
|
|
487
510
|
|
|
511
|
+
tax_providers_fields?:Customer.TaxProvidersField[];
|
|
512
|
+
|
|
488
513
|
/**
|
|
489
514
|
* @description The [account hierarchy](https://www.chargebee.com/docs/account-hierarchy.html) relationship that the customer is part of.
|
|
490
515
|
|
|
@@ -2240,6 +2265,13 @@ If there is only one entity identifier for the customer and the value is the sam
|
|
|
2240
2265
|
|
|
2241
2266
|
standard?:string;
|
|
2242
2267
|
}
|
|
2268
|
+
export interface TaxProvidersField {
|
|
2269
|
+
provider_name:string;
|
|
2270
|
+
|
|
2271
|
+
field_id:string;
|
|
2272
|
+
|
|
2273
|
+
field_value:string;
|
|
2274
|
+
}
|
|
2243
2275
|
export interface Relationship {
|
|
2244
2276
|
/**
|
|
2245
2277
|
* @description The `id` of the immediate parent of this customer under account hierarchy. If the customer is the root of the hierarchy, this attribute isn't returned.
|
|
@@ -690,6 +690,32 @@ In the response,
|
|
|
690
690
|
}
|
|
691
691
|
export interface UpdateSubscriptionForItemsInputParam {
|
|
692
692
|
|
|
693
|
+
/**
|
|
694
|
+
* @description Returns an estimate for updating a subscription.
|
|
695
|
+
|
|
696
|
+
In the response,
|
|
697
|
+
|
|
698
|
+
* [subscription_estimate](/docs/api/estimates#subscription_estimate_attributes): The details of the changed subscription such as `status`, next billing date, and so on.
|
|
699
|
+
* [invoice_estimate](/docs/api/estimates#invoice_estimate_attributes):The details of the immediate invoice, if it is generated. An immediate invoice is not generated when:
|
|
700
|
+
* `end_of_term` parameter is true
|
|
701
|
+
* `prorate` parameter is `false`
|
|
702
|
+
* No changes are made to the plan item prices or addon item prices in `subscription_items`.
|
|
703
|
+
* For changes such as [quantity downgrades](https://www.chargebee.com/docs/proration.html#proration-mechanism_plan-quantity-downgrade-paid-invoice).
|
|
704
|
+
* [next_invoice_estimate](/docs/api/estimates#next_invoice_estimate_attributes):The details of the invoice to be generated later (if any) on the occasion that no immediate invoice has been generated.
|
|
705
|
+
* [credit_note_estimates](/docs/api/estimates#credit_note_estimate_attributes):The list of credit notes (if any) generated during this operation.
|
|
706
|
+
* [unbilled_charge_estimates](/docs/api/estimates#unbilled_charge_estimate_attributes): The details of charges that have not been invoiced. This is returned only if the `invoice_immediately` parameter is set to `false`.
|
|
707
|
+
|
|
708
|
+
*/
|
|
709
|
+
|
|
710
|
+
changes_scheduled_at?:number;
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* @description null
|
|
714
|
+
|
|
715
|
+
*/
|
|
716
|
+
|
|
717
|
+
change_option?:ChangeOption;
|
|
718
|
+
|
|
693
719
|
/**
|
|
694
720
|
* @description Item ids of [mandatorily attached addons](./attached_items?prod_cat_ver=2) that are to be removed from the subscription.
|
|
695
721
|
|
|
@@ -156,6 +156,8 @@ declare module 'chargebee' {
|
|
|
156
156
|
*/
|
|
157
157
|
|
|
158
158
|
differential_prices(input?:DifferentialPricesInputParam):ChargebeeRequest<DifferentialPricesResponse>;
|
|
159
|
+
|
|
160
|
+
price_variants(input?:PriceVariantsInputParam):ChargebeeRequest<PriceVariantsResponse>;
|
|
159
161
|
}
|
|
160
162
|
export interface RetrieveResponse {
|
|
161
163
|
export:Export;
|
|
@@ -732,6 +734,13 @@ Item Id of Addon / Charge item price for which differential pricing is applied t
|
|
|
732
734
|
|
|
733
735
|
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}};
|
|
734
736
|
}
|
|
737
|
+
export interface PriceVariantsResponse {
|
|
738
|
+
export:Export;
|
|
739
|
+
}
|
|
740
|
+
export interface PriceVariantsInputParam {
|
|
741
|
+
|
|
742
|
+
price_variant?:{created_at?:{after?:string,before?:string,between?:string,on?: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?:'active' | 'archived',is_not?:'active' | 'archived',not_in?:string},updated_at?:{after?:string,before?:string,between?:string,on?:string}};
|
|
743
|
+
}
|
|
735
744
|
export interface Download {
|
|
736
745
|
/**
|
|
737
746
|
* @description The URL at which the file is available for download.
|
|
@@ -51,6 +51,13 @@ declare module 'chargebee' {
|
|
|
51
51
|
|
|
52
52
|
created_at:number;
|
|
53
53
|
|
|
54
|
+
/**
|
|
55
|
+
* @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.
|
|
56
|
+
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
resource_version?:number;
|
|
60
|
+
|
|
54
61
|
/**
|
|
55
62
|
* @description The timestamp at which the installment_config was last updated at.
|
|
56
63
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
declare module 'chargebee' {
|
|
3
|
+
export interface InstallmentDetail {
|
|
4
|
+
|
|
5
|
+
id?:string;
|
|
6
|
+
|
|
7
|
+
invoice_id?:string;
|
|
8
|
+
|
|
9
|
+
amount?:number;
|
|
10
|
+
|
|
11
|
+
installments?:InstallmentDetail.Installment[];
|
|
12
|
+
}
|
|
13
|
+
export namespace InstallmentDetail {
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export interface Installment {
|
|
17
|
+
id:string;
|
|
18
|
+
|
|
19
|
+
invoice_id:string;
|
|
20
|
+
|
|
21
|
+
date:number;
|
|
22
|
+
|
|
23
|
+
amount:number;
|
|
24
|
+
|
|
25
|
+
status:'posted' | 'payment_due' | 'paid';
|
|
26
|
+
|
|
27
|
+
created_at:number;
|
|
28
|
+
|
|
29
|
+
resource_version?:number;
|
|
30
|
+
|
|
31
|
+
updated_at?:number;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -53,6 +53,13 @@ If your input contains characters that are subjected to sanitization (like incom
|
|
|
53
53
|
|
|
54
54
|
external_name?:string;
|
|
55
55
|
|
|
56
|
+
/**
|
|
57
|
+
* @description An immutable unique identifier of a [price variant](price_variants).
|
|
58
|
+
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
price_variant_id?:string;
|
|
62
|
+
|
|
56
63
|
/**
|
|
57
64
|
* @description **Note**
|
|
58
65
|
|
|
@@ -272,6 +279,8 @@ In-App Subscriptions is currently in early access. Contact [eap@chargebee.com](m
|
|
|
272
279
|
|
|
273
280
|
tax_detail?:ItemPrice.TaxDetail;
|
|
274
281
|
|
|
282
|
+
tax_providers_fields?:ItemPrice.TaxProvidersField[];
|
|
283
|
+
|
|
275
284
|
/**
|
|
276
285
|
* @description Accounting integration details. The values are typically dependent on the [accounting integration](https://www.chargebee.com/docs/finance-integration-index.html) used.
|
|
277
286
|
|
|
@@ -406,6 +415,13 @@ Specifies how to manage charges or credits for the addon item price during a [su
|
|
|
406
415
|
|
|
407
416
|
currency_code?:string;
|
|
408
417
|
|
|
418
|
+
/**
|
|
419
|
+
* @description An immutable unique identifier of a [price variant](price_variants).
|
|
420
|
+
|
|
421
|
+
*/
|
|
422
|
+
|
|
423
|
+
price_variant_id?:string;
|
|
424
|
+
|
|
409
425
|
/**
|
|
410
426
|
* @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.
|
|
411
427
|
|
|
@@ -599,7 +615,14 @@ Specifies how to manage charges or credits for the addon item price during a [su
|
|
|
599
615
|
|
|
600
616
|
*/
|
|
601
617
|
|
|
602
|
-
proration_type?:'
|
|
618
|
+
proration_type?:'site_default' | 'partial_term' | 'full_term';
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* @description An immutable unique identifier of a [price variant](price_variants).
|
|
622
|
+
|
|
623
|
+
*/
|
|
624
|
+
|
|
625
|
+
price_variant_id?:string;
|
|
603
626
|
|
|
604
627
|
/**
|
|
605
628
|
* @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.
|
|
@@ -866,6 +889,13 @@ If subscriptions, invoices or [differential prices](./differential_prices?prod_c
|
|
|
866
889
|
|
|
867
890
|
currency_code?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
868
891
|
|
|
892
|
+
/**
|
|
893
|
+
* @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.
|
|
894
|
+
|
|
895
|
+
*/
|
|
896
|
+
|
|
897
|
+
price_variant_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
898
|
+
|
|
869
899
|
/**
|
|
870
900
|
* @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.
|
|
871
901
|
|
|
@@ -1132,6 +1162,13 @@ If an addon-item price has [differential pricing](differential_prices?prod_cat_v
|
|
|
1132
1162
|
|
|
1133
1163
|
taxjar_product_code?:string;
|
|
1134
1164
|
}
|
|
1165
|
+
export interface TaxProvidersField {
|
|
1166
|
+
provider_name:string;
|
|
1167
|
+
|
|
1168
|
+
field_id:string;
|
|
1169
|
+
|
|
1170
|
+
field_value:string;
|
|
1171
|
+
}
|
|
1135
1172
|
export interface AccountingDetail {
|
|
1136
1173
|
/**
|
|
1137
1174
|
* @description This maps to the sku or product name in the accounting integration.
|
|
@@ -152,6 +152,8 @@ declare module 'chargebee' {
|
|
|
152
152
|
|
|
153
153
|
venmo?:PaymentSource.Venmo;
|
|
154
154
|
|
|
155
|
+
klarna_pay_now?:PaymentSource.KlarnaPayNow;
|
|
156
|
+
|
|
155
157
|
/**
|
|
156
158
|
* @description Mandate details associated with the payment source.
|
|
157
159
|
|
|
@@ -1289,6 +1291,9 @@ If you have enabled [EU VAT](https://www.chargebee.com/docs/eu-vat.html) in 2021
|
|
|
1289
1291
|
export interface Venmo {
|
|
1290
1292
|
user_name?:string;
|
|
1291
1293
|
}
|
|
1294
|
+
export interface KlarnaPayNow {
|
|
1295
|
+
email?:string;
|
|
1296
|
+
}
|
|
1292
1297
|
export interface Mandate {
|
|
1293
1298
|
/**
|
|
1294
1299
|
* @description A unique mandate identifier used for recurring payments.
|