chargebee 2.26.0 → 2.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +8 -1
- package/package.json +1 -1
- package/types/core.d.ts +1 -0
- package/types/resources/Address.d.ts +235 -5
- package/types/resources/AdvanceInvoiceSchedule.d.ts +78 -2
- package/types/resources/AttachedItem.d.ts +285 -13
- package/types/resources/Card.d.ts +375 -13
- package/types/resources/Comment.d.ts +160 -11
- package/types/resources/Contact.d.ts +54 -0
- package/types/resources/ContractTerm.d.ts +83 -0
- package/types/resources/Coupon.d.ts +628 -20
- package/types/resources/CouponCode.d.ts +46 -5
- package/types/resources/CouponSet.d.ts +194 -17
- package/types/resources/CreditNote.d.ts +1100 -44
- package/types/resources/CreditNoteEstimate.d.ts +75 -6
- package/types/resources/Customer.d.ts +1819 -73
- package/types/resources/DifferentialPrice.d.ts +246 -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 +1021 -27
- package/types/resources/Event.d.ts +138 -8
- package/types/resources/Export.d.ts +622 -32
- package/types/resources/Feature.d.ts +287 -22
- package/types/resources/Gift.d.ts +296 -24
- package/types/resources/Hierarchy.d.ts +30 -0
- package/types/resources/HostedPage.d.ts +1046 -37
- package/types/resources/ImpactedItem.d.ts +41 -1
- package/types/resources/ImpactedSubscription.d.ts +36 -1
- package/types/resources/InAppSubscription.d.ts +369 -9
- package/types/resources/Invoice.d.ts +1942 -92
- package/types/resources/InvoiceEstimate.d.ts +75 -6
- package/types/resources/Item.d.ts +522 -16
- package/types/resources/ItemEntitlement.d.ts +162 -13
- package/types/resources/ItemFamily.d.ts +153 -15
- package/types/resources/ItemPrice.d.ts +951 -26
- package/types/resources/Media.d.ts +24 -0
- package/types/resources/NonSubscription.d.ts +46 -3
- package/types/resources/Order.d.ts +1172 -32
- package/types/resources/PaymentIntent.d.ts +293 -8
- package/types/resources/PaymentReferenceNumber.d.ts +24 -0
- package/types/resources/PaymentSource.d.ts +984 -55
- package/types/resources/PaymentVoucher.d.ts +252 -14
- package/types/resources/PortalSession.d.ts +154 -10
- package/types/resources/PromotionalCredit.d.ts +300 -16
- package/types/resources/Purchase.d.ts +206 -5
- package/types/resources/Quote.d.ts +1430 -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 +68 -3
- package/types/resources/SiteMigrationDetail.d.ts +98 -5
- package/types/resources/Subscription.d.ts +2564 -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 +82 -7
- package/types/resources/Token.d.ts +164 -7
- package/types/resources/Transaction.d.ts +567 -25
- package/types/resources/UnbilledCharge.d.ts +309 -14
- package/types/resources/Usage.d.ts +237 -13
- package/types/resources/VirtualBankAccount.d.ts +220 -17
|
@@ -1,14 +1,68 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface Contact {
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @description Unique reference ID provided for the contact.
|
|
7
|
+
|
|
8
|
+
*/
|
|
9
|
+
|
|
4
10
|
id:string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @description First name of the contact.
|
|
14
|
+
|
|
15
|
+
*/
|
|
16
|
+
|
|
5
17
|
first_name?:string;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @description Last name of the contact.
|
|
21
|
+
|
|
22
|
+
*/
|
|
23
|
+
|
|
6
24
|
last_name?:string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @description Email of the contact.
|
|
28
|
+
|
|
29
|
+
*/
|
|
30
|
+
|
|
7
31
|
email:string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @description Phone number of the contact.
|
|
35
|
+
|
|
36
|
+
*/
|
|
37
|
+
|
|
8
38
|
phone?:string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @description Label/Tag provided for contact.
|
|
42
|
+
|
|
43
|
+
*/
|
|
44
|
+
|
|
9
45
|
label?:string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @description Contact enabled / disabled
|
|
49
|
+
|
|
50
|
+
*/
|
|
51
|
+
|
|
10
52
|
enabled:boolean;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @description Whether Account Emails option is enabled for the contact.
|
|
56
|
+
|
|
57
|
+
*/
|
|
58
|
+
|
|
11
59
|
send_account_email:boolean;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @description Whether Billing Emails option is enabled for the contact.
|
|
63
|
+
|
|
64
|
+
*/
|
|
65
|
+
|
|
12
66
|
send_billing_email:boolean;
|
|
13
67
|
}
|
|
14
68
|
}
|
|
@@ -1,17 +1,100 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
declare module 'chargebee' {
|
|
3
3
|
export interface ContractTerm {
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @description Id that uniquely identifies the contract term in the site.
|
|
7
|
+
|
|
8
|
+
*/
|
|
9
|
+
|
|
4
10
|
id:string;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @description Current status of contract \* active - An actively running contract term. \* cancelled - The contract term was ended because:
|
|
14
|
+
|
|
15
|
+
* a change in the subscription caused a [subscription term reset](subscriptions#update_a_subscription_force_term_reset).
|
|
16
|
+
* the subscription was cancelled due to non-payment.
|
|
17
|
+
\* terminated - The contract term was terminated ahead of completion. \* completed - The contract term has run its full duration.
|
|
18
|
+
|
|
19
|
+
*/
|
|
20
|
+
|
|
5
21
|
status:'active' | 'cancelled' | 'completed' | 'terminated';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @description The start date of the contract term
|
|
25
|
+
|
|
26
|
+
*/
|
|
27
|
+
|
|
6
28
|
contract_start:number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @description The end date of the contract term
|
|
32
|
+
|
|
33
|
+
*/
|
|
34
|
+
|
|
7
35
|
contract_end:number;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @description The number of billing cycles of the subscription that the contract term is for.
|
|
39
|
+
|
|
40
|
+
*/
|
|
41
|
+
|
|
8
42
|
billing_cycle:number;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @description Action to be taken when the contract term completes. \* renew -
|
|
46
|
+
* Contract term completes and a new contract term is started for the number of billing cycles specified in [`contract_billing_cycle_on_renewal`](subscriptions#create_subscription_for_customer_contract_term_billing_cycle_on_renewal).
|
|
47
|
+
* The `action_at_term_end` for the new contract term is set to `renew`.
|
|
48
|
+
\* evergreen - Contract term completes and the subscription renews. \* renew_once - Used when you want to renew the contract term just once. Does the following:
|
|
49
|
+
* Contract term completes and a new contract term is started for the number of billing cycles specified in [`contract_billing_cycle_on_renewal`](subscriptions#create_subscription_for_customer_contract_term_billing_cycle_on_renewal).
|
|
50
|
+
* The `action_at_term_end` for the new contract term is set to `cancel`.
|
|
51
|
+
\* cancel - Contract term completes and subscription is canceled.
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
*/
|
|
55
|
+
|
|
9
56
|
action_at_term_end:'cancel' | 'renew_once' | 'renew' | 'evergreen';
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @description The sum of the [totals](invoices#invoice_total) of all the invoices raised as part of the contract term. For `active` contract terms, this is a predicted value. The value depends on the [type of currency](./#handling_currency_units). If the subscription was [imported](#import_a_subscription) with the contract term, then this value includes the value passed for `total_amount_raised`.
|
|
60
|
+
|
|
61
|
+
*/
|
|
62
|
+
|
|
10
63
|
total_contract_value:number;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @description It refers to the total amount of revenue that is expected to be generated from a specific contract term, calculated as the sum of all invoices raised during the term, regardless of payment status. It is based on past performance and the specified currency in the contract. If the subscription was imported, the value for `total_amount_raised_before_tax` is included in the calculation of the total contract value before tax. It's important to note that this value excludes any applicable taxes.
|
|
67
|
+
|
|
68
|
+
*/
|
|
69
|
+
|
|
11
70
|
total_contract_value_before_tax:number;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @description The number of days before [`contract_end`](contract_terms#contract_term_contract_end), during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure
|
|
74
|
+
|
|
75
|
+
*/
|
|
76
|
+
|
|
12
77
|
cancellation_cutoff_period?:number;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @description The date when the contract term was created.
|
|
81
|
+
|
|
82
|
+
*/
|
|
83
|
+
|
|
13
84
|
created_at:number;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @description The [Id](subscriptions#subscription_id) of the subscription that this contract term is for.
|
|
88
|
+
|
|
89
|
+
*/
|
|
90
|
+
|
|
14
91
|
subscription_id:string;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @description The number of subscription billing cycles remaining after the current one for the contract term. This attribute is only returned for `active` contract terms.
|
|
95
|
+
|
|
96
|
+
*/
|
|
97
|
+
|
|
15
98
|
remaining_billing_cycles?:number;
|
|
16
99
|
}
|
|
17
100
|
}
|