chargebee 2.35.1 → 2.37.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 +78 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +78 -1
- package/package.json +1 -1
- package/types/core.d.ts +53 -50
- package/types/index.d.ts +9 -0
- package/types/resources/BusinessEntity.d.ts +83 -0
- package/types/resources/BusinessEntityTransfer.d.ts +21 -0
- package/types/resources/CreditNote.d.ts +14 -0
- package/types/resources/CreditNoteEstimate.d.ts +11 -15
- package/types/resources/Currency.d.ts +78 -0
- package/types/resources/Customer.d.ts +161 -1627
- package/types/resources/Estimate.d.ts +186 -1154
- package/types/resources/Invoice.d.ts +15 -0
- package/types/resources/ItemPrice.d.ts +3 -0
- package/types/resources/PaymentIntent.d.ts +4 -4
- package/types/resources/Purchase.d.ts +1 -0
- package/types/resources/Quote.d.ts +289 -1399
- package/types/resources/Subscription.d.ts +2 -0
- package/types/resources/UnbilledCharge.d.ts +28 -275
- package/.github/workflows/greeting.yml +0 -47
|
@@ -18,10 +18,6 @@ declare module 'chargebee' {
|
|
|
18
18
|
|
|
19
19
|
amount_available:number;
|
|
20
20
|
|
|
21
|
-
round_off_amount?:number;
|
|
22
|
-
|
|
23
|
-
customer_id?:string;
|
|
24
|
-
|
|
25
21
|
line_items?:CreditNoteEstimate.LineItem[];
|
|
26
22
|
|
|
27
23
|
discounts?:CreditNoteEstimate.Discount[];
|
|
@@ -33,6 +29,10 @@ declare module 'chargebee' {
|
|
|
33
29
|
line_item_discounts?:CreditNoteEstimate.LineItemDiscount[];
|
|
34
30
|
|
|
35
31
|
line_item_tiers?:CreditNoteEstimate.LineItemTier[];
|
|
32
|
+
|
|
33
|
+
round_off_amount?:number;
|
|
34
|
+
|
|
35
|
+
customer_id?:string;
|
|
36
36
|
}
|
|
37
37
|
export namespace CreditNoteEstimate {
|
|
38
38
|
|
|
@@ -52,7 +52,7 @@ declare module 'chargebee' {
|
|
|
52
52
|
|
|
53
53
|
amount?:number;
|
|
54
54
|
|
|
55
|
-
pricing_model?:'
|
|
55
|
+
pricing_model?:'flat_fee' | 'per_unit' | 'tiered' | 'volume' | 'stairstep';
|
|
56
56
|
|
|
57
57
|
is_taxed:boolean;
|
|
58
58
|
|
|
@@ -69,7 +69,7 @@ declare module 'chargebee' {
|
|
|
69
69
|
discount_amount?:number;
|
|
70
70
|
|
|
71
71
|
item_level_discount_amount?:number;
|
|
72
|
-
|
|
72
|
+
|
|
73
73
|
usage_percentage?:string;
|
|
74
74
|
|
|
75
75
|
reference_line_item_id?:string;
|
|
@@ -78,9 +78,9 @@ declare module 'chargebee' {
|
|
|
78
78
|
|
|
79
79
|
entity_description?:string;
|
|
80
80
|
|
|
81
|
-
entity_type:'
|
|
81
|
+
entity_type:'adhoc' | 'plan_item_price' | 'addon_item_price' | 'charge_item_price' | 'plan_setup' | 'plan' | 'addon';
|
|
82
82
|
|
|
83
|
-
tax_exempt_reason?:'
|
|
83
|
+
tax_exempt_reason?:'tax_not_configured' | 'region_non_taxable' | 'export' | 'customer_exempt' | 'product_exempt' | 'zero_rated' | 'reverse_charge' | 'high_value_physical_goods' | 'zero_value_item' | 'tax_not_configured_external_provider';
|
|
84
84
|
|
|
85
85
|
entity_id?:string;
|
|
86
86
|
|
|
@@ -91,11 +91,7 @@ declare module 'chargebee' {
|
|
|
91
91
|
|
|
92
92
|
description?:string;
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
entity_type:'item_level_coupon' | 'promotional_credits' | 'item_level_discount' | 'prorated_credits' | 'document_level_discount' | 'document_level_coupon';
|
|
97
|
-
|
|
98
|
-
discount_type?:'fixed_amount' | 'percentage';
|
|
94
|
+
entity_type:'item_level_coupon' | 'document_level_coupon' | 'promotional_credits' | 'prorated_credits' | 'item_level_discount' | 'document_level_discount';
|
|
99
95
|
|
|
100
96
|
entity_id?:string;
|
|
101
97
|
|
|
@@ -129,7 +125,7 @@ declare module 'chargebee' {
|
|
|
129
125
|
|
|
130
126
|
tax_amount:number;
|
|
131
127
|
|
|
132
|
-
tax_juris_type?:'
|
|
128
|
+
tax_juris_type?:'country' | 'federal' | 'state' | 'county' | 'city' | 'special' | 'unincorporated' | 'other';
|
|
133
129
|
|
|
134
130
|
tax_juris_name?:string;
|
|
135
131
|
|
|
@@ -142,7 +138,7 @@ declare module 'chargebee' {
|
|
|
142
138
|
export interface LineItemDiscount {
|
|
143
139
|
line_item_id:string;
|
|
144
140
|
|
|
145
|
-
discount_type:'item_level_coupon' | '
|
|
141
|
+
discount_type:'item_level_coupon' | 'document_level_coupon' | 'promotional_credits' | 'prorated_credits' | 'item_level_discount' | 'document_level_discount';
|
|
146
142
|
|
|
147
143
|
coupon_id?:string;
|
|
148
144
|
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
declare module 'chargebee' {
|
|
3
|
+
export interface Currency {
|
|
4
|
+
|
|
5
|
+
id?:string;
|
|
6
|
+
|
|
7
|
+
enabled:boolean;
|
|
8
|
+
|
|
9
|
+
forex_type?:'manual' | 'auto';
|
|
10
|
+
|
|
11
|
+
currency_code?:string;
|
|
12
|
+
|
|
13
|
+
is_base_currency?:boolean;
|
|
14
|
+
|
|
15
|
+
manual_exchange_rate?:string;
|
|
16
|
+
}
|
|
17
|
+
export namespace Currency {
|
|
18
|
+
export class CurrencyResource {
|
|
19
|
+
list():ChargebeeRequest<ListResponse>;
|
|
20
|
+
|
|
21
|
+
retrieve(site_currency_id:string):ChargebeeRequest<RetrieveResponse>;
|
|
22
|
+
|
|
23
|
+
create(input:CreateInputParam):ChargebeeRequest<CreateResponse>;
|
|
24
|
+
|
|
25
|
+
update(site_currency_id:string, input:UpdateInputParam):ChargebeeRequest<UpdateResponse>;
|
|
26
|
+
|
|
27
|
+
add_schedule(site_currency_id:string, input:AddScheduleInputParam):ChargebeeRequest<AddScheduleResponse>;
|
|
28
|
+
|
|
29
|
+
remove_schedule(site_currency_id:string):ChargebeeRequest<RemoveScheduleResponse>;
|
|
30
|
+
}
|
|
31
|
+
export interface ListResponse {
|
|
32
|
+
currency:Currency;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface RetrieveResponse {
|
|
36
|
+
currency:Currency;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface CreateResponse {
|
|
40
|
+
currency:Currency;
|
|
41
|
+
}
|
|
42
|
+
export interface CreateInputParam {
|
|
43
|
+
|
|
44
|
+
currency_code:string;
|
|
45
|
+
|
|
46
|
+
forex_type:'manual' | 'auto';
|
|
47
|
+
|
|
48
|
+
manual_exchange_rate?:string;
|
|
49
|
+
}
|
|
50
|
+
export interface UpdateResponse {
|
|
51
|
+
currency:Currency;
|
|
52
|
+
}
|
|
53
|
+
export interface UpdateInputParam {
|
|
54
|
+
|
|
55
|
+
forex_type:'manual' | 'auto';
|
|
56
|
+
|
|
57
|
+
manual_exchange_rate?:string;
|
|
58
|
+
}
|
|
59
|
+
export interface AddScheduleResponse {
|
|
60
|
+
scheduled_at:number;
|
|
61
|
+
|
|
62
|
+
currency:Currency;
|
|
63
|
+
}
|
|
64
|
+
export interface AddScheduleInputParam {
|
|
65
|
+
|
|
66
|
+
manual_exchange_rate:string;
|
|
67
|
+
|
|
68
|
+
schedule_at:number;
|
|
69
|
+
}
|
|
70
|
+
export interface RemoveScheduleResponse {
|
|
71
|
+
scheduled_at:number;
|
|
72
|
+
|
|
73
|
+
currency:Currency;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
}
|
|
78
|
+
}
|