chargebee 2.45.0 → 2.47.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.
@@ -1,38 +1,43 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
2
3
  declare module 'chargebee' {
3
4
  export interface InvoiceEstimate {
4
5
 
6
+
5
7
  recurring:boolean;
6
-
8
+
7
9
  price_type:PriceType;
8
-
10
+
9
11
  currency_code:string;
10
-
12
+
11
13
  sub_total:number;
12
-
14
+
13
15
  total?:number;
14
-
16
+
15
17
  credits_applied?:number;
16
-
18
+
17
19
  amount_paid?:number;
18
-
20
+
19
21
  amount_due?:number;
20
-
21
- round_off_amount?:number;
22
-
23
- customer_id?:string;
24
-
22
+
25
23
  line_items?:InvoiceEstimate.LineItem[];
26
-
24
+
27
25
  discounts?:InvoiceEstimate.Discount[];
28
-
26
+
29
27
  taxes?:InvoiceEstimate.Tax[];
30
-
28
+
31
29
  line_item_taxes?:InvoiceEstimate.LineItemTax[];
32
-
30
+
33
31
  line_item_tiers?:InvoiceEstimate.LineItemTier[];
34
-
32
+
33
+ line_item_credits?:InvoiceEstimate.LineItemCredit[];
34
+
35
35
  line_item_discounts?:InvoiceEstimate.LineItemDiscount[];
36
+
37
+ round_off_amount?:number;
38
+
39
+ customer_id?:string;
40
+
36
41
  }
37
42
  export namespace InvoiceEstimate {
38
43
 
@@ -52,7 +57,7 @@ declare module 'chargebee' {
52
57
 
53
58
  amount?:number;
54
59
 
55
- pricing_model?:'volume' | 'per_unit' | 'tiered' | 'flat_fee' | 'stairstep';
60
+ pricing_model?:'flat_fee' | 'per_unit' | 'tiered' | 'volume' | 'stairstep';
56
61
 
57
62
  is_taxed:boolean;
58
63
 
@@ -69,7 +74,7 @@ declare module 'chargebee' {
69
74
  discount_amount?:number;
70
75
 
71
76
  item_level_discount_amount?:number;
72
-
77
+
73
78
  usage_percentage?:string;
74
79
 
75
80
  reference_line_item_id?:string;
@@ -78,9 +83,9 @@ declare module 'chargebee' {
78
83
 
79
84
  entity_description?:string;
80
85
 
81
- entity_type:'addon_item_price' | 'plan_item_price' | 'charge_item_price' | 'adhoc';
86
+ entity_type:'adhoc' | 'plan_item_price' | 'addon_item_price' | 'charge_item_price' | 'plan_setup' | 'plan' | 'addon';
82
87
 
83
- tax_exempt_reason?:'high_value_physical_goods' | 'tax_not_configured' | 'reverse_charge' | 'zero_rated' | 'tax_not_configured_external_provider' | 'customer_exempt' | 'region_non_taxable' | 'zero_value_item' | 'export' | 'product_exempt';
88
+ 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
89
 
85
90
  entity_id?:string;
86
91
 
@@ -91,9 +96,7 @@ declare module 'chargebee' {
91
96
 
92
97
  description?:string;
93
98
 
94
- line_item_id?:string;
95
-
96
- entity_type:'item_level_coupon' | 'promotional_credits' | 'item_level_discount' | 'prorated_credits' | 'document_level_discount' | 'document_level_coupon';
99
+ entity_type:'item_level_coupon' | 'document_level_coupon' | 'promotional_credits' | 'prorated_credits' | 'item_level_discount' | 'document_level_discount';
97
100
 
98
101
  discount_type?:'fixed_amount' | 'percentage';
99
102
 
@@ -129,7 +132,7 @@ declare module 'chargebee' {
129
132
 
130
133
  tax_amount:number;
131
134
 
132
- tax_juris_type?:'special' | 'country' | 'unincorporated' | 'other' | 'city' | 'federal' | 'county' | 'state';
135
+ tax_juris_type?:'country' | 'federal' | 'state' | 'county' | 'city' | 'special' | 'unincorporated' | 'other';
133
136
 
134
137
  tax_juris_name?:string;
135
138
 
@@ -158,10 +161,17 @@ declare module 'chargebee' {
158
161
 
159
162
  unit_amount_in_decimal?:string;
160
163
  }
164
+ export interface LineItemCredit {
165
+ cn_id:string;
166
+
167
+ applied_amount:number;
168
+
169
+ line_item_id?:string;
170
+ }
161
171
  export interface LineItemDiscount {
162
172
  line_item_id:string;
163
173
 
164
- discount_type:'item_level_coupon' | 'promotional_credits' | 'item_level_discount' | 'prorated_credits' | 'document_level_discount' | 'document_level_coupon';
174
+ discount_type:'item_level_coupon' | 'document_level_coupon' | 'promotional_credits' | 'prorated_credits' | 'item_level_discount' | 'document_level_discount';
165
175
 
166
176
  coupon_id?:string;
167
177
 
@@ -56,6 +56,8 @@ declare module 'chargebee' {
56
56
 
57
57
  metadata?:object;
58
58
 
59
+ deleted:boolean;
60
+
59
61
  business_entity_id?:string;
60
62
 
61
63
  }
@@ -20,6 +20,8 @@ declare module 'chargebee' {
20
20
 
21
21
  business_entity_id?:string;
22
22
 
23
+ deleted:boolean;
24
+
23
25
  }
24
26
  export namespace ItemFamily {
25
27
  export class ItemFamilyResource {
@@ -86,6 +86,8 @@ declare module 'chargebee' {
86
86
 
87
87
  show_description_in_quotes?:boolean;
88
88
 
89
+ deleted:boolean;
90
+
89
91
  business_entity_id?:string;
90
92
 
91
93
  }
@@ -20,6 +20,8 @@ declare module 'chargebee' {
20
20
 
21
21
  omnichannel_subscription_items:OmnichannelSubscriptionItem[];
22
22
 
23
+ initial_purchase_transaction?:OmnichannelSubscription.OmnichannelTransaction;
24
+
23
25
  }
24
26
  export namespace OmnichannelSubscription {
25
27
  export class OmnichannelSubscriptionResource {
@@ -82,6 +84,26 @@ declare module 'chargebee' {
82
84
 
83
85
  offset?:string;
84
86
  }
85
-
87
+ export interface OmnichannelTransaction {
88
+ id:string;
89
+
90
+ id_at_source:string;
91
+
92
+ app_id:string;
93
+
94
+ price_currency:string;
95
+
96
+ price_units:number;
97
+
98
+ price_nanos:number;
99
+
100
+ type:'purchase' | 'renewal';
101
+
102
+ transacted_at:number;
103
+
104
+ created_at:number;
105
+
106
+ resource_version?:number;
107
+ }
86
108
  }
87
109
  }
@@ -8,7 +8,7 @@ declare module 'chargebee' {
8
8
 
9
9
  item_id_at_source:string;
10
10
 
11
- status:'active' | 'expired' | 'cancelled';
11
+ status:'active' | 'expired' | 'cancelled' | 'in_dunning' | 'in_grace_period';
12
12
 
13
13
  current_term_start?:number;
14
14
 
@@ -22,6 +22,8 @@ declare module 'chargebee' {
22
22
 
23
23
  cancellation_reason?:'customer_cancelled' | 'customer_did_not_consent_to_price_increase';
24
24
 
25
+ grace_period_expires_at?:number;
26
+
25
27
  resource_version?:number;
26
28
 
27
29
  }