chargebee 2.51.0 → 2.52.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 +27 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +14 -1
- package/package.json +1 -1
- package/types/core.d.ts +4 -4
- package/types/index.d.ts +2 -0
- package/types/resources/Address.d.ts +2 -194
- package/types/resources/AdvanceInvoiceSchedule.d.ts +5 -67
- package/types/resources/Attribute.d.ts +4 -1
- package/types/resources/BillingConfiguration.d.ts +21 -0
- package/types/resources/Brand.d.ts +12 -0
- package/types/resources/BusinessEntity.d.ts +8 -6
- package/types/resources/BusinessEntityTransfer.d.ts +10 -7
- package/types/resources/Card.d.ts +11 -311
- package/types/resources/Comment.d.ts +7 -124
- package/types/resources/Contact.d.ts +2 -44
- package/types/resources/ContractTerm.d.ts +4 -72
- package/types/resources/Coupon.d.ts +0 -37
- package/types/resources/CouponCode.d.ts +67 -35
- package/types/resources/CouponSet.d.ts +12 -121
- package/types/resources/CreditNote.d.ts +0 -6
- package/types/resources/Currency.d.ts +8 -5
- package/types/resources/Customer.d.ts +90 -89
- package/types/resources/Discount.d.ts +2 -89
- package/types/resources/Download.d.ts +2 -14
- package/types/resources/Entitlement.d.ts +15 -103
- package/types/resources/EntitlementOverride.d.ts +4 -89
- package/types/resources/Estimate.d.ts +2 -10
- package/types/resources/Event.d.ts +23 -108
- package/types/resources/Export.d.ts +116 -432
- package/types/resources/Feature.d.ts +17 -319
- package/types/resources/GatewayErrorDetail.d.ts +6 -48
- package/types/resources/Gift.d.ts +34 -294
- package/types/resources/Hierarchy.d.ts +4 -24
- package/types/resources/ImpactedItem.d.ts +4 -36
- package/types/resources/ImpactedItemPrice.d.ts +5 -2
- package/types/resources/ImpactedSubscription.d.ts +3 -30
- package/types/resources/InAppSubscription.d.ts +13 -355
- package/types/resources/Invoice.d.ts +2 -16
- package/types/resources/InvoiceEstimate.d.ts +1 -1
- package/types/resources/Item.d.ts +0 -7
- package/types/resources/ItemEntitlement.d.ts +15 -155
- package/types/resources/NonSubscription.d.ts +9 -6
- package/types/resources/PaymentIntent.d.ts +9 -255
- package/types/resources/PaymentReferenceNumber.d.ts +3 -20
- package/types/resources/PaymentSource.d.ts +2 -2
- package/types/resources/PaymentVoucher.d.ts +20 -203
- package/types/resources/PortalSession.d.ts +4 -146
- package/types/resources/PromotionalCredit.d.ts +10 -215
- package/types/resources/Purchase.d.ts +3 -1
- package/types/resources/Quote.d.ts +19 -1
- package/types/resources/QuotedRamp.d.ts +11 -16
- package/types/resources/RecordedPurchase.d.ts +2 -0
- package/types/resources/ResourceMigration.d.ts +2 -54
- package/types/resources/SiteMigrationDetail.d.ts +13 -55
- package/types/resources/Subscription.d.ts +11 -9
- package/types/resources/SubscriptionEntitlement.d.ts +6 -106
- package/types/resources/SubscriptionEstimate.d.ts +14 -11
- package/types/resources/TaxWithheld.d.ts +14 -26
- package/types/resources/ThirdPartyPaymentMethod.d.ts +2 -19
- package/types/resources/TimeMachine.d.ts +3 -64
- package/types/resources/Token.d.ts +3 -60
- package/types/resources/Transaction.d.ts +2 -2
- package/types/resources/Usage.d.ts +21 -165
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
### v2.52.0 (2025-07-18)
|
|
2
|
+
* * *
|
|
3
|
+
|
|
4
|
+
### New Resources:
|
|
5
|
+
* BillingConfiguration has been added.
|
|
6
|
+
* Brand has been added.
|
|
7
|
+
|
|
8
|
+
### New Attributes:
|
|
9
|
+
* has_children has been added to Hierarchy
|
|
10
|
+
* coupon_applicability_mappings has been added to QuotedRamp.
|
|
11
|
+
|
|
12
|
+
### New Endpoint:
|
|
13
|
+
* listHierarchyDetail has been added to Customer.
|
|
14
|
+
|
|
15
|
+
### New Input parameters:
|
|
16
|
+
* change_reason children has been added to Entitlement#CreateRequest.
|
|
17
|
+
* entitlements[apply_grandfathering] has been added to Entitlement#CreateRequest.
|
|
18
|
+
* replace_primary_payment_source has been added to Purchase#CreateRequest.
|
|
19
|
+
* omnichannel_subscription has been added to RecordedPurchase#CreateRequest.
|
|
20
|
+
* contract_term has been added to Subscription#RemoveScheduledCancellationRequest.
|
|
21
|
+
* contract_term_billing_cycle_on_renewal has been added to Subscription#RemoveScheduledCancellationRequest.
|
|
22
|
+
|
|
23
|
+
### New Enums:
|
|
24
|
+
* payconiq_by_bancontact has been added to PaymentMethodType.
|
|
25
|
+
* solidgate has been added to Gateway.
|
|
26
|
+
* solidgate has been added to PaymentMethod.
|
|
27
|
+
|
|
1
28
|
### v2.51.0 (2025-06-19)
|
|
2
29
|
* * *
|
|
3
30
|
|
package/lib/chargebee.js
CHANGED
|
@@ -702,6 +702,17 @@ var _endpoints = {
|
|
|
702
702
|
{
|
|
703
703
|
}
|
|
704
704
|
],
|
|
705
|
+
[
|
|
706
|
+
"list_hierarchy_detail",
|
|
707
|
+
"GET",
|
|
708
|
+
"/customers",
|
|
709
|
+
"/hierarchy_detail",
|
|
710
|
+
true,
|
|
711
|
+
null,
|
|
712
|
+
false,
|
|
713
|
+
{
|
|
714
|
+
}
|
|
715
|
+
],
|
|
705
716
|
[
|
|
706
717
|
"update_hierarchy_settings",
|
|
707
718
|
"POST",
|
|
@@ -2795,6 +2806,7 @@ var _endpoints = {
|
|
|
2795
2806
|
"quoted_subscription": [],
|
|
2796
2807
|
"quoted_charge": [],
|
|
2797
2808
|
"quoted_ramp": [],
|
|
2809
|
+
"billing_configuration": [],
|
|
2798
2810
|
"quote_line_group": [],
|
|
2799
2811
|
"plan": [
|
|
2800
2812
|
[
|
|
@@ -4778,6 +4790,7 @@ var _endpoints = {
|
|
|
4778
4790
|
{
|
|
4779
4791
|
}
|
|
4780
4792
|
]
|
|
4781
|
-
]
|
|
4793
|
+
],
|
|
4794
|
+
"brand": []
|
|
4782
4795
|
};
|
|
4783
4796
|
module.exports = _endpoints;
|
package/package.json
CHANGED
package/types/core.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ declare module 'chargebee' {
|
|
|
51
51
|
type ExportType = 'data' | 'import_friendly_data'
|
|
52
52
|
type FreePeriodUnit = 'day' | 'week' | 'month' | 'year'
|
|
53
53
|
type FriendOfferType = 'none' | 'coupon' | 'coupon_code'
|
|
54
|
-
type Gateway = 'chargebee' | 'chargebee_payments' | 'adyen' | 'stripe' | 'wepay' | 'braintree' | 'authorize_net' | 'paypal_pro' | 'pin' | 'eway' | 'eway_rapid' | 'worldpay' | 'balanced_payments' | 'beanstream' | 'bluepay' | 'elavon' | 'first_data_global' | 'hdfc' | 'migs' | 'nmi' | 'ogone' | 'paymill' | 'paypal_payflow_pro' | 'sage_pay' | 'tco' | 'wirecard' | 'amazon_payments' | 'paypal_express_checkout' | 'orbital' | 'moneris_us' | 'moneris' | 'bluesnap' | 'cybersource' | 'vantiv' | 'checkout_com' | 'paypal' | 'ingenico_direct' | 'exact' | 'mollie' | 'quickbooks' | 'razorpay' | 'global_payments' | 'bank_of_america' | 'ecentric' | 'metrics_global' | 'windcave' | 'pay_com' | 'ebanx' | 'dlocal' | 'nuvei' | 'paystack' | 'jp_morgan' | 'gocardless' | 'not_applicable'
|
|
54
|
+
type Gateway = 'chargebee' | 'chargebee_payments' | 'adyen' | 'stripe' | 'wepay' | 'braintree' | 'authorize_net' | 'paypal_pro' | 'pin' | 'eway' | 'eway_rapid' | 'worldpay' | 'balanced_payments' | 'beanstream' | 'bluepay' | 'elavon' | 'first_data_global' | 'hdfc' | 'migs' | 'nmi' | 'ogone' | 'paymill' | 'paypal_payflow_pro' | 'sage_pay' | 'tco' | 'wirecard' | 'amazon_payments' | 'paypal_express_checkout' | 'orbital' | 'moneris_us' | 'moneris' | 'bluesnap' | 'cybersource' | 'vantiv' | 'checkout_com' | 'paypal' | 'ingenico_direct' | 'exact' | 'mollie' | 'quickbooks' | 'razorpay' | 'global_payments' | 'bank_of_america' | 'ecentric' | 'metrics_global' | 'windcave' | 'pay_com' | 'ebanx' | 'dlocal' | 'nuvei' | 'solidgate' | 'paystack' | 'jp_morgan' | 'gocardless' | 'not_applicable'
|
|
55
55
|
type HierarchyOperationType = 'complete_hierarchy' | 'subordinates' | 'path_to_root'
|
|
56
56
|
type InvoiceDunningHandling = 'continue' | 'stop'
|
|
57
57
|
type ItemType = 'plan' | 'addon' | 'charge'
|
|
@@ -63,8 +63,8 @@ declare module 'chargebee' {
|
|
|
63
63
|
type OperationType = 'add' | 'remove'
|
|
64
64
|
type PauseOption = 'immediately' | 'end_of_term' | 'specific_date' | 'billing_cycles'
|
|
65
65
|
type PaymentInitiator = 'customer' | 'merchant'
|
|
66
|
-
type PaymentMethod = 'cash' | 'check' | 'bank_transfer' | 'other' | 'custom' | 'chargeback' | 'card' | 'amazon_payments' | 'paypal_express_checkout' | 'direct_debit' | 'alipay' | 'unionpay' | 'apple_pay' | 'wechat_pay' | 'ach_credit' | 'sepa_credit' | 'ideal' | 'google_pay' | 'sofort' | 'bancontact' | 'giropay' | 'dotpay' | 'upi' | 'netbanking_emandates' | 'boleto' | 'venmo' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'automated_bank_transfer' | 'klarna_pay_now' | 'online_banking_poland'
|
|
67
|
-
type PaymentMethodType = 'card' | 'paypal_express_checkout' | 'amazon_payments' | 'direct_debit' | 'generic' | 'alipay' | 'unionpay' | 'apple_pay' | 'wechat_pay' | 'ideal' | 'google_pay' | 'sofort' | 'bancontact' | 'giropay' | 'dotpay' | 'upi' | 'netbanking_emandates' | 'venmo' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'automated_bank_transfer' | 'klarna_pay_now' | 'online_banking_poland'
|
|
66
|
+
type PaymentMethod = 'cash' | 'check' | 'bank_transfer' | 'other' | 'custom' | 'chargeback' | 'card' | 'amazon_payments' | 'paypal_express_checkout' | 'direct_debit' | 'alipay' | 'unionpay' | 'apple_pay' | 'wechat_pay' | 'ach_credit' | 'sepa_credit' | 'ideal' | 'google_pay' | 'sofort' | 'bancontact' | 'giropay' | 'dotpay' | 'upi' | 'netbanking_emandates' | 'boleto' | 'venmo' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'automated_bank_transfer' | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact'
|
|
67
|
+
type PaymentMethodType = 'card' | 'paypal_express_checkout' | 'amazon_payments' | 'direct_debit' | 'generic' | 'alipay' | 'unionpay' | 'apple_pay' | 'wechat_pay' | 'ideal' | 'google_pay' | 'sofort' | 'bancontact' | 'giropay' | 'dotpay' | 'upi' | 'netbanking_emandates' | 'venmo' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'automated_bank_transfer' | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact'
|
|
68
68
|
type PaymentVoucherType = 'boleto'
|
|
69
69
|
type PeriodUnit = 'day' | 'week' | 'month' | 'year'
|
|
70
70
|
type PriceType = 'tax_exclusive' | 'tax_inclusive'
|
|
@@ -86,7 +86,7 @@ declare module 'chargebee' {
|
|
|
86
86
|
type Taxability = 'taxable' | 'exempt'
|
|
87
87
|
type TaxjarExemptionCategory = 'wholesale' | 'government' | 'other'
|
|
88
88
|
type TrialEndAction = 'site_default' | 'plan_default' | 'activate_subscription' | 'cancel_subscription'
|
|
89
|
-
type Type = 'card' | 'paypal_express_checkout' | 'amazon_payments' | 'direct_debit' | 'generic' | 'alipay' | 'unionpay' | 'apple_pay' | 'wechat_pay' | 'ideal' | 'google_pay' | 'sofort' | 'bancontact' | 'giropay' | 'dotpay' | 'upi' | 'netbanking_emandates' | 'venmo' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'automated_bank_transfer' | 'klarna_pay_now' | 'online_banking_poland'
|
|
89
|
+
type Type = 'card' | 'paypal_express_checkout' | 'amazon_payments' | 'direct_debit' | 'generic' | 'alipay' | 'unionpay' | 'apple_pay' | 'wechat_pay' | 'ideal' | 'google_pay' | 'sofort' | 'bancontact' | 'giropay' | 'dotpay' | 'upi' | 'netbanking_emandates' | 'venmo' | 'pay_to' | 'faster_payments' | 'sepa_instant_transfer' | 'automated_bank_transfer' | 'klarna_pay_now' | 'online_banking_poland' | 'payconiq_by_bancontact'
|
|
90
90
|
type UnbilledChargesHandling = 'no_action' | 'invoice'
|
|
91
91
|
type UnbilledChargesOption = 'invoice' | 'delete'
|
|
92
92
|
type UnpaidInvoicesHandling = 'no_action' | 'schedule_payment_collection'
|
package/types/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
///<reference path='./resources/AdvanceInvoiceSchedule.d.ts' />
|
|
4
4
|
///<reference path='./resources/AttachedItem.d.ts' />
|
|
5
5
|
///<reference path='./resources/Attribute.d.ts' />
|
|
6
|
+
///<reference path='./resources/BillingConfiguration.d.ts' />
|
|
7
|
+
///<reference path='./resources/Brand.d.ts' />
|
|
6
8
|
///<reference path='./resources/BusinessEntity.d.ts' />
|
|
7
9
|
///<reference path='./resources/BusinessEntityTransfer.d.ts' />
|
|
8
10
|
///<reference path='./resources/Card.d.ts' />
|
|
@@ -1,140 +1,46 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
2
3
|
declare module 'chargebee' {
|
|
3
4
|
export interface Address {
|
|
4
5
|
|
|
5
|
-
/**
|
|
6
|
-
* @description Label to identify the address. This is unique for all the address for a subscription.
|
|
7
6
|
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
7
|
label:string;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @description First name
|
|
14
8
|
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
9
|
first_name?:string;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @description Last name
|
|
21
10
|
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
11
|
last_name?:string;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description Email
|
|
28
12
|
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
13
|
email?:string;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @description Company name
|
|
35
14
|
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
15
|
company?:string;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* @description Phone number
|
|
42
16
|
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
17
|
phone?:string;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @description Address line 1
|
|
49
18
|
|
|
50
|
-
*/
|
|
51
|
-
|
|
52
19
|
addr?:string;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @description Address line 2
|
|
56
20
|
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
21
|
extended_addr?:string;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @description Address line 3
|
|
63
22
|
|
|
64
|
-
*/
|
|
65
|
-
|
|
66
23
|
extended_addr2?:string;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @description Name of the city
|
|
70
24
|
|
|
71
|
-
*/
|
|
72
|
-
|
|
73
25
|
city?:string;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @description The [ISO 3166-2 state/province code](https://www.iso.org/obp/ui/#search) without the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set `state_code` as `AZ` (not `US-AZ`). For Tamil Nadu (India), set as `TN` (not `IN-TN`). For British Columbia (Canada), set as `BC` (not `CA-BC`).
|
|
77
26
|
|
|
78
|
-
*/
|
|
79
|
-
|
|
80
27
|
state_code?:string;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @description State or Province
|
|
84
28
|
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
29
|
state?:string;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @description The billing address country of the customer. Must be one of [ISO 3166 alpha-2 country code](https://www.iso.org/iso-3166-country-codes.html).
|
|
91
30
|
|
|
92
|
-
**Note** : If you enter an invalid country code, the system will return an error.
|
|
93
|
-
|
|
94
|
-
**Brexit**
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
If you have enabled [EU VAT](https://www.chargebee.com/docs/eu-vat.html) in 2021 or later, or have [manually enable](https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee) the Brexit configuration, then `XI` (the code for **United Kingdom -- Northern Ireland**) is available as an option.
|
|
98
|
-
|
|
99
|
-
*/
|
|
100
|
-
|
|
101
31
|
country?:string;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @description Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address).
|
|
105
32
|
|
|
106
|
-
*/
|
|
107
|
-
|
|
108
33
|
zip?:string;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @description The address verification status. \* partially_valid - The address is valid for taxability but has not been validated for shipping. \* not_validated - Address is not yet validated. \* invalid - Address is invalid. \* valid - Address was validated successfully.
|
|
112
34
|
|
|
113
|
-
*/
|
|
114
|
-
|
|
115
35
|
validation_status?:ValidationStatus;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* @description A unique and immutable identifier for the subscription. If not provided, it is autogenerated.
|
|
119
36
|
|
|
120
|
-
*/
|
|
121
|
-
|
|
122
37
|
subscription_id:string;
|
|
38
|
+
|
|
123
39
|
}
|
|
124
40
|
export namespace Address {
|
|
125
41
|
export class AddressResource {
|
|
126
|
-
/**
|
|
127
|
-
* @description Retrieves an address resource for a subscription and the specified label.
|
|
128
|
-
|
|
129
|
-
*/
|
|
130
|
-
|
|
131
42
|
retrieve(input:RetrieveInputParam):ChargebeeRequest<RetrieveResponse>;
|
|
132
43
|
|
|
133
|
-
/**
|
|
134
|
-
* @description Adds or replaces the address for a subscription. If an address is already present for the specified label, it will be replaced otherwise new address is added with that label.
|
|
135
|
-
|
|
136
|
-
*/
|
|
137
|
-
|
|
138
44
|
update(input:UpdateInputParam):ChargebeeRequest<UpdateResponse>;
|
|
139
45
|
}
|
|
140
46
|
export interface RetrieveResponse {
|
|
@@ -142,18 +48,8 @@ If you have enabled [EU VAT](https://www.chargebee.com/docs/eu-vat.html) in 2021
|
|
|
142
48
|
}
|
|
143
49
|
export interface RetrieveInputParam {
|
|
144
50
|
|
|
145
|
-
/**
|
|
146
|
-
* @description Retrieves an address resource for a subscription and the specified label.
|
|
147
|
-
|
|
148
|
-
*/
|
|
149
|
-
|
|
150
51
|
subscription_id:string;
|
|
151
52
|
|
|
152
|
-
/**
|
|
153
|
-
* @description Retrieves an address resource for a subscription and the specified label.
|
|
154
|
-
|
|
155
|
-
*/
|
|
156
|
-
|
|
157
53
|
label:string;
|
|
158
54
|
}
|
|
159
55
|
export interface UpdateResponse {
|
|
@@ -161,124 +57,36 @@ If you have enabled [EU VAT](https://www.chargebee.com/docs/eu-vat.html) in 2021
|
|
|
161
57
|
}
|
|
162
58
|
export interface UpdateInputParam {
|
|
163
59
|
|
|
164
|
-
/**
|
|
165
|
-
* @description A unique and immutable identifier for the subscription. If not provided, it is autogenerated.
|
|
166
|
-
|
|
167
|
-
*/
|
|
168
|
-
|
|
169
60
|
subscription_id:string;
|
|
170
61
|
|
|
171
|
-
/**
|
|
172
|
-
* @description Label to identify the address. This is unique for all the address for a subscription.
|
|
173
|
-
|
|
174
|
-
*/
|
|
175
|
-
|
|
176
62
|
label:string;
|
|
177
63
|
|
|
178
|
-
/**
|
|
179
|
-
* @description First name.
|
|
180
|
-
|
|
181
|
-
*/
|
|
182
|
-
|
|
183
64
|
first_name?:string;
|
|
184
65
|
|
|
185
|
-
/**
|
|
186
|
-
* @description Last name.
|
|
187
|
-
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
66
|
last_name?:string;
|
|
191
67
|
|
|
192
|
-
/**
|
|
193
|
-
* @description Email.
|
|
194
|
-
|
|
195
|
-
*/
|
|
196
|
-
|
|
197
68
|
email?:string;
|
|
198
69
|
|
|
199
|
-
/**
|
|
200
|
-
* @description Company name.
|
|
201
|
-
|
|
202
|
-
*/
|
|
203
|
-
|
|
204
70
|
company?:string;
|
|
205
71
|
|
|
206
|
-
/**
|
|
207
|
-
* @description Phone number.
|
|
208
|
-
|
|
209
|
-
*/
|
|
210
|
-
|
|
211
72
|
phone?:string;
|
|
212
73
|
|
|
213
|
-
/**
|
|
214
|
-
* @description Address line 1.
|
|
215
|
-
|
|
216
|
-
*/
|
|
217
|
-
|
|
218
74
|
addr?:string;
|
|
219
75
|
|
|
220
|
-
/**
|
|
221
|
-
* @description Address line 2.
|
|
222
|
-
|
|
223
|
-
*/
|
|
224
|
-
|
|
225
76
|
extended_addr?:string;
|
|
226
77
|
|
|
227
|
-
/**
|
|
228
|
-
* @description Address line 3.
|
|
229
|
-
|
|
230
|
-
*/
|
|
231
|
-
|
|
232
78
|
extended_addr2?:string;
|
|
233
79
|
|
|
234
|
-
/**
|
|
235
|
-
* @description Name of the city.
|
|
236
|
-
|
|
237
|
-
*/
|
|
238
|
-
|
|
239
80
|
city?:string;
|
|
240
81
|
|
|
241
|
-
/**
|
|
242
|
-
* @description The [ISO 3166-2 state/province code](https://www.iso.org/obp/ui/#search/code) without the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set `state_code` as `AZ` (not `US-AZ`). For Tamil Nadu (India), set as `TN` (not `IN-TN`). For British Columbia (Canada), set as `BC` (not `CA-BC`).
|
|
243
|
-
|
|
244
|
-
*/
|
|
245
|
-
|
|
246
82
|
state_code?:string;
|
|
247
83
|
|
|
248
|
-
/**
|
|
249
|
-
* @description The state/province name. Is set by Chargebee automatically for US, Canada and India If `state_code` is provided.
|
|
250
|
-
|
|
251
|
-
*/
|
|
252
|
-
|
|
253
84
|
state?:string;
|
|
254
85
|
|
|
255
|
-
/**
|
|
256
|
-
* @description Zip or postal code. The number of characters is validated according to the rules [specified here](https://chromium-i18n.appspot.com/ssl-address).
|
|
257
|
-
|
|
258
|
-
*/
|
|
259
|
-
|
|
260
86
|
zip?:string;
|
|
261
87
|
|
|
262
|
-
/**
|
|
263
|
-
* @description The billing address country of the customer. Must be one of [ISO 3166 alpha-2 country code](https://www.iso.org/iso-3166-country-codes.html).
|
|
264
|
-
|
|
265
|
-
**Note** : If you enter an invalid country code, the system will return an error.
|
|
266
|
-
|
|
267
|
-
**Brexit**
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
If you have enabled [EU VAT](https://www.chargebee.com/docs/eu-vat.html) in 2021 or later, or have [manually enable](https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee) the Brexit configuration, then `XI` (the code for **United Kingdom -- Northern Ireland**) is available as an option.
|
|
271
|
-
.
|
|
272
|
-
|
|
273
|
-
*/
|
|
274
|
-
|
|
275
88
|
country?:string;
|
|
276
89
|
|
|
277
|
-
/**
|
|
278
|
-
* @description The address verification status. \* partially_valid - The address is valid for taxability but has not been validated for shipping. \* not_validated - Address is not yet validated. \* invalid - Address is invalid. \* valid - Address was validated successfully.
|
|
279
|
-
|
|
280
|
-
*/
|
|
281
|
-
|
|
282
90
|
validation_status?:ValidationStatus;
|
|
283
91
|
}
|
|
284
92
|
|
|
@@ -1,102 +1,40 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
2
3
|
declare module 'chargebee' {
|
|
3
4
|
export interface AdvanceInvoiceSchedule {
|
|
4
5
|
|
|
5
|
-
/**
|
|
6
|
-
* @description System-generated and immutable unique Id for the `advance_invoice_schedule`.
|
|
7
6
|
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
7
|
id:string;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @description The type of advance invoice or advance invoicing schedule. \* specific_dates - The advance charges occur on specific dates. For each date, [a fixed number of billing cycles](advance_invoice_schedules#advance_invoice_schedule_specific_dates_schedule_terms_to_charge) is charged for. There can be up to 5 dates configured. \* fixed_intervals - The advance charges occur at [fixed intervals of time](advance_invoice_schedules#advance_invoice_schedule_fixed_interval_schedule_terms_to_charge).
|
|
14
8
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
schedule_type?:'specific_dates' | 'fixed_intervals';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @description When the `schedule_type` is `fixed_intervals`, this object gives further details of the schedule.
|
|
9
|
+
schedule_type?:'fixed_intervals' | 'specific_dates';
|
|
21
10
|
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
11
|
fixed_interval_schedule?:AdvanceInvoiceSchedule.FixedIntervalSchedule;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @description The advance charges occur on specific dates. For each date, [a fixed number of billing cycles](advance_invoice_schedules#advance_invoice_schedule_specific_dates_schedule_terms_to_charge) is charged for. There can be up to 5 dates configured.
|
|
28
12
|
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
13
|
specific_dates_schedule?:AdvanceInvoiceSchedule.SpecificDatesSchedule;
|
|
14
|
+
|
|
32
15
|
}
|
|
33
16
|
export namespace AdvanceInvoiceSchedule {
|
|
34
17
|
|
|
35
18
|
|
|
36
19
|
export interface FixedIntervalSchedule {
|
|
37
|
-
/**
|
|
38
|
-
* @description Specifies when the schedule should end. \* after_number_of_intervals - Advance invoices are generated a `specified number of times` \* subscription_end - Advance invoices are generated for as long as the subscription is active. \* specific_date - End the advance invoicing schedule on a `specific date`.
|
|
39
|
-
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
20
|
end_schedule_on?:EndScheduleOn;
|
|
43
21
|
|
|
44
|
-
/**
|
|
45
|
-
* @description The number of advance invoices to generate. The schedule is created such that the total number of billing cycles in the schedule does not exceed the [`remaining_billing_cycles`](subscriptions#subscription_remaining_billing_cycles) of the subscription. This parameter is applicable only when [`fixed_interval_schedule[end_schedule_on]`](advance_invoice_schedules#advance_invoice_schedule_fixed_interval_schedule_end_schedule_on) = `after_number_of_intervals`
|
|
46
|
-
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
22
|
number_of_occurrences?:number;
|
|
50
23
|
|
|
51
|
-
/**
|
|
52
|
-
* @description The number of days before each interval that advance invoices are generated.
|
|
53
|
-
|
|
54
|
-
*/
|
|
55
|
-
|
|
56
24
|
days_before_renewal?:number;
|
|
57
25
|
|
|
58
|
-
/**
|
|
59
|
-
* @description The date when the schedule should end. Advance invoices are not generated beyond this date. It must be at least 1 day before the start of the last billing cycle of the subscription and also within 5 years from the current date. This parameter is only applicable when [`fixed_interval_schedule[end_schedule_on]`](advance_invoice_schedules#advance_invoice_schedule_fixed_interval_schedule_end_schedule_on) = `specific_date`.
|
|
60
|
-
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
26
|
end_date?:number;
|
|
64
27
|
|
|
65
|
-
|
|
66
|
-
* @description The date when this advance invoicing schedule was created.
|
|
67
|
-
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
|
-
created_at?:number;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @description The number of billing cycles in one interval.
|
|
74
|
-
|
|
75
|
-
*/
|
|
28
|
+
created_at:number;
|
|
76
29
|
|
|
77
30
|
terms_to_charge?:number;
|
|
78
31
|
}
|
|
79
32
|
export interface SpecificDatesSchedule {
|
|
80
|
-
/**
|
|
81
|
-
* @description The number of billing cycles to charge for, on the date specified. Applicable only when [`schedule_type`](advance_invoice_schedules#advance_invoice_schedule_schedule_type) is specific_dates.
|
|
82
|
-
|
|
83
|
-
*/
|
|
84
|
-
|
|
85
33
|
terms_to_charge?:number;
|
|
86
34
|
|
|
87
|
-
/**
|
|
88
|
-
* @description The unique id of the member of the advance_invoice_schedule array which corresponds to the specific_dates_schedule that you intend to modify. Only applicable when [`schedule_type`](advance_invoice_schedules#advance_invoice_schedule_schedule_type) is `specific_dates`.
|
|
89
|
-
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
35
|
date?:number;
|
|
93
36
|
|
|
94
|
-
|
|
95
|
-
* @description The date when this advance invoicing schedule was created.
|
|
96
|
-
|
|
97
|
-
*/
|
|
98
|
-
|
|
99
|
-
created_at?:number;
|
|
37
|
+
created_at:number;
|
|
100
38
|
}
|
|
101
39
|
}
|
|
102
40
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
declare module 'chargebee' {
|
|
4
|
+
export interface BillingConfiguration {
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
is_calendar_billing_enabled:boolean;
|
|
8
|
+
|
|
9
|
+
billing_dates?:BillingConfiguration.BillingDate[];
|
|
10
|
+
|
|
11
|
+
}
|
|
12
|
+
export namespace BillingConfiguration {
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export interface BillingDate {
|
|
16
|
+
start_date?:number;
|
|
17
|
+
|
|
18
|
+
end_date?:number;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -3,19 +3,21 @@
|
|
|
3
3
|
declare module 'chargebee' {
|
|
4
4
|
export interface BusinessEntity {
|
|
5
5
|
|
|
6
|
+
|
|
6
7
|
id:string;
|
|
7
|
-
|
|
8
|
+
|
|
8
9
|
name:string;
|
|
9
|
-
|
|
10
|
+
|
|
10
11
|
status:'active' | 'inactive';
|
|
11
|
-
|
|
12
|
+
|
|
12
13
|
deleted:boolean;
|
|
13
|
-
|
|
14
|
+
|
|
14
15
|
created_at:number;
|
|
15
|
-
|
|
16
|
+
|
|
16
17
|
resource_version?:number;
|
|
17
|
-
|
|
18
|
+
|
|
18
19
|
updated_at?:number;
|
|
20
|
+
|
|
19
21
|
}
|
|
20
22
|
export namespace BusinessEntity {
|
|
21
23
|
export class BusinessEntityResource {
|
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
2
3
|
declare module 'chargebee' {
|
|
3
4
|
export interface BusinessEntityTransfer {
|
|
4
5
|
|
|
6
|
+
|
|
5
7
|
id:string;
|
|
6
|
-
|
|
8
|
+
|
|
7
9
|
resource_type:'customer' | 'subscription';
|
|
8
|
-
|
|
10
|
+
|
|
9
11
|
resource_id:string;
|
|
10
|
-
|
|
12
|
+
|
|
11
13
|
active_resource_id:string;
|
|
12
|
-
|
|
14
|
+
|
|
13
15
|
destination_business_entity_id:string;
|
|
14
|
-
|
|
16
|
+
|
|
15
17
|
source_business_entity_id:string;
|
|
16
|
-
|
|
18
|
+
|
|
17
19
|
reason_code:'correction';
|
|
18
|
-
|
|
20
|
+
|
|
19
21
|
created_at:number;
|
|
22
|
+
|
|
20
23
|
}
|
|
21
24
|
}
|