chargebee 3.7.0 → 3.8.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 +65 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +2094 -258
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +2094 -258
- package/package.json +1 -1
- package/types/core.d.ts +4 -0
- package/types/index.d.ts +1 -0
- package/types/resources/Configuration.d.ts +1 -0
- package/types/resources/CreditNote.d.ts +10 -1
- package/types/resources/CreditNoteEstimate.d.ts +1 -1
- package/types/resources/Estimate.d.ts +10 -0
- package/types/resources/Invoice.d.ts +40 -4
- package/types/resources/InvoiceEstimate.d.ts +1 -1
- package/types/resources/Item.d.ts +2 -1
- package/types/resources/OmnichannelSubscriptionItem.d.ts +6 -0
- package/types/resources/Quote.d.ts +139 -4
- package/types/resources/QuoteLineGroup.d.ts +1 -1
- package/types/resources/QuotedRamp.d.ts +93 -0
- package/types/resources/Subscription.d.ts +2 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface QuotedRamp {
|
|
6
|
+
id: string;
|
|
7
|
+
line_items?: QuotedRamp.LineItem[];
|
|
8
|
+
discounts?: QuotedRamp.Discount[];
|
|
9
|
+
item_tiers?: QuotedRamp.ItemTier[];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export namespace QuotedRamp {
|
|
13
|
+
export interface LineItem {
|
|
14
|
+
item_price_id: string;
|
|
15
|
+
item_type: 'plan' | 'addon' | 'charge';
|
|
16
|
+
quantity?: number;
|
|
17
|
+
quantity_in_decimal?: string;
|
|
18
|
+
metered_quantity?: string;
|
|
19
|
+
unit_price?: number;
|
|
20
|
+
unit_price_in_decimal?: string;
|
|
21
|
+
amount?: number;
|
|
22
|
+
amount_in_decimal?: string;
|
|
23
|
+
billing_period?: number;
|
|
24
|
+
billing_period_unit?: 'day' | 'week' | 'month' | 'year';
|
|
25
|
+
free_quantity?: number;
|
|
26
|
+
free_quantity_in_decimal?: string;
|
|
27
|
+
billing_cycles?: number;
|
|
28
|
+
service_period_days?: number;
|
|
29
|
+
charge_on_event?:
|
|
30
|
+
| 'subscription_creation'
|
|
31
|
+
| 'subscription_trial_start'
|
|
32
|
+
| 'plan_activation'
|
|
33
|
+
| 'subscription_activation'
|
|
34
|
+
| 'contract_termination';
|
|
35
|
+
charge_once?: boolean;
|
|
36
|
+
charge_on_option?: 'immediately' | 'on_event';
|
|
37
|
+
start_date?: number;
|
|
38
|
+
end_date?: number;
|
|
39
|
+
ramp_tier_id?: string;
|
|
40
|
+
discount_amount?: number;
|
|
41
|
+
md_discount_amount?: string;
|
|
42
|
+
item_level_discount_amount?: number;
|
|
43
|
+
md_item_level_discount_amount?: string;
|
|
44
|
+
discount_per_billing_cycle?: number;
|
|
45
|
+
discount_per_billing_cycle_in_decimal?: string;
|
|
46
|
+
item_level_discount_per_billing_cycle?: number;
|
|
47
|
+
item_level_discount_per_billing_cycle_in_decimal?: string;
|
|
48
|
+
net_amount?: number;
|
|
49
|
+
md_net_amount?: string;
|
|
50
|
+
amount_per_billing_cycle?: number;
|
|
51
|
+
amount_per_billing_cycle_in_decimal?: string;
|
|
52
|
+
net_amount_per_billing_cycle?: number;
|
|
53
|
+
net_amount_per_billing_cycle_in_decimal?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface Discount {
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
invoice_name?: string;
|
|
59
|
+
type: 'fixed_amount' | 'percentage';
|
|
60
|
+
percentage?: number;
|
|
61
|
+
amount?: number;
|
|
62
|
+
duration_type: 'one_time' | 'forever' | 'limited_period';
|
|
63
|
+
entity_type:
|
|
64
|
+
| 'item_level_coupon'
|
|
65
|
+
| 'document_level_coupon'
|
|
66
|
+
| 'item_level_discount'
|
|
67
|
+
| 'document_level_discount';
|
|
68
|
+
entity_id?: string;
|
|
69
|
+
period?: number;
|
|
70
|
+
period_unit?: 'day' | 'week' | 'month' | 'year';
|
|
71
|
+
included_in_mrr: boolean;
|
|
72
|
+
apply_on: 'invoice_amount' | 'specific_item_price';
|
|
73
|
+
apply_on_item_type?: 'plan' | 'addon' | 'charge';
|
|
74
|
+
item_price_id?: string;
|
|
75
|
+
created_at: number;
|
|
76
|
+
updated_at?: number;
|
|
77
|
+
start_date?: number;
|
|
78
|
+
end_date?: number;
|
|
79
|
+
}
|
|
80
|
+
export interface ItemTier {
|
|
81
|
+
item_price_id: string;
|
|
82
|
+
starting_unit: number;
|
|
83
|
+
ending_unit?: number;
|
|
84
|
+
price: number;
|
|
85
|
+
starting_unit_in_decimal?: string;
|
|
86
|
+
ending_unit_in_decimal?: string;
|
|
87
|
+
price_in_decimal?: string;
|
|
88
|
+
ramp_tier_id?: string;
|
|
89
|
+
}
|
|
90
|
+
// REQUEST PARAMS
|
|
91
|
+
//---------------
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -887,6 +887,8 @@ declare module 'chargebee' {
|
|
|
887
887
|
export interface ContractTermsForSubscriptionInputParam {
|
|
888
888
|
limit?: number;
|
|
889
889
|
offset?: string;
|
|
890
|
+
'sort_by[asc]'?: string;
|
|
891
|
+
'sort_by[desc]'?: string;
|
|
890
892
|
}
|
|
891
893
|
export interface ListDiscountsInputParam {
|
|
892
894
|
limit?: number;
|