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.
Files changed (65) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/lib/chargebee.js +1 -1
  3. package/lib/resources/api_endpoints.js +8 -1
  4. package/package.json +1 -1
  5. package/types/core.d.ts +1 -0
  6. package/types/resources/Address.d.ts +235 -5
  7. package/types/resources/AdvanceInvoiceSchedule.d.ts +78 -2
  8. package/types/resources/AttachedItem.d.ts +285 -13
  9. package/types/resources/Card.d.ts +375 -13
  10. package/types/resources/Comment.d.ts +160 -11
  11. package/types/resources/Contact.d.ts +54 -0
  12. package/types/resources/ContractTerm.d.ts +83 -0
  13. package/types/resources/Coupon.d.ts +628 -20
  14. package/types/resources/CouponCode.d.ts +46 -5
  15. package/types/resources/CouponSet.d.ts +194 -17
  16. package/types/resources/CreditNote.d.ts +1100 -44
  17. package/types/resources/CreditNoteEstimate.d.ts +75 -6
  18. package/types/resources/Customer.d.ts +1819 -73
  19. package/types/resources/DifferentialPrice.d.ts +246 -15
  20. package/types/resources/Discount.d.ts +107 -0
  21. package/types/resources/Download.d.ts +18 -0
  22. package/types/resources/EntitlementOverride.d.ts +101 -7
  23. package/types/resources/Estimate.d.ts +1021 -27
  24. package/types/resources/Event.d.ts +138 -8
  25. package/types/resources/Export.d.ts +622 -32
  26. package/types/resources/Feature.d.ts +287 -22
  27. package/types/resources/Gift.d.ts +296 -24
  28. package/types/resources/Hierarchy.d.ts +30 -0
  29. package/types/resources/HostedPage.d.ts +1046 -37
  30. package/types/resources/ImpactedItem.d.ts +41 -1
  31. package/types/resources/ImpactedSubscription.d.ts +36 -1
  32. package/types/resources/InAppSubscription.d.ts +369 -9
  33. package/types/resources/Invoice.d.ts +1942 -92
  34. package/types/resources/InvoiceEstimate.d.ts +75 -6
  35. package/types/resources/Item.d.ts +522 -16
  36. package/types/resources/ItemEntitlement.d.ts +162 -13
  37. package/types/resources/ItemFamily.d.ts +153 -15
  38. package/types/resources/ItemPrice.d.ts +951 -26
  39. package/types/resources/Media.d.ts +24 -0
  40. package/types/resources/NonSubscription.d.ts +46 -3
  41. package/types/resources/Order.d.ts +1172 -32
  42. package/types/resources/PaymentIntent.d.ts +293 -8
  43. package/types/resources/PaymentReferenceNumber.d.ts +24 -0
  44. package/types/resources/PaymentSource.d.ts +984 -55
  45. package/types/resources/PaymentVoucher.d.ts +252 -14
  46. package/types/resources/PortalSession.d.ts +154 -10
  47. package/types/resources/PromotionalCredit.d.ts +300 -16
  48. package/types/resources/Purchase.d.ts +206 -5
  49. package/types/resources/Quote.d.ts +1430 -62
  50. package/types/resources/QuoteLineGroup.d.ts +134 -5
  51. package/types/resources/QuotedCharge.d.ts +63 -5
  52. package/types/resources/QuotedSubscription.d.ts +192 -5
  53. package/types/resources/ResourceMigration.d.ts +68 -3
  54. package/types/resources/SiteMigrationDetail.d.ts +98 -5
  55. package/types/resources/Subscription.d.ts +2564 -137
  56. package/types/resources/SubscriptionEntitlement.d.ts +116 -8
  57. package/types/resources/SubscriptionEstimate.d.ts +36 -2
  58. package/types/resources/TaxWithheld.d.ts +32 -0
  59. package/types/resources/ThirdPartyPaymentMethod.d.ts +24 -0
  60. package/types/resources/TimeMachine.d.ts +82 -7
  61. package/types/resources/Token.d.ts +164 -7
  62. package/types/resources/Transaction.d.ts +567 -25
  63. package/types/resources/UnbilledCharge.d.ts +309 -14
  64. package/types/resources/Usage.d.ts +237 -13
  65. package/types/resources/VirtualBankAccount.d.ts +220 -17
@@ -1,95 +1,164 @@
1
1
  ///<reference path='./../core.d.ts'/>
2
2
  declare module 'chargebee' {
3
3
  export interface CreditNoteEstimate {
4
+
4
5
  reference_invoice_id:string;
6
+
5
7
  type:'adjustment' | 'refundable';
8
+
6
9
  price_type:PriceType;
10
+
7
11
  currency_code:string;
12
+
8
13
  sub_total:number;
14
+
9
15
  total:number;
16
+
10
17
  amount_allocated:number;
18
+
11
19
  amount_available:number;
20
+
12
21
  round_off_amount?:number;
22
+
13
23
  customer_id?:string;
24
+
14
25
  line_items?:CreditNoteEstimate.LineItem[];
26
+
15
27
  discounts?:CreditNoteEstimate.Discount[];
28
+
16
29
  taxes?:CreditNoteEstimate.Tax[];
30
+
17
31
  line_item_taxes?:CreditNoteEstimate.LineItemTax[];
32
+
18
33
  line_item_discounts?:CreditNoteEstimate.LineItemDiscount[];
34
+
19
35
  line_item_tiers?:CreditNoteEstimate.LineItemTier[];
20
36
  }
21
37
  export namespace CreditNoteEstimate {
22
38
 
23
39
 
24
- export interface LineItem {
40
+ export interface LineItem {
25
41
  id?:string;
42
+
26
43
  subscription_id?:string;
44
+
27
45
  date_from?:number;
46
+
28
47
  date_to?:number;
48
+
29
49
  unit_amount?:number;
50
+
30
51
  quantity?:number;
52
+
31
53
  amount?:number;
54
+
32
55
  pricing_model?:'volume' | 'per_unit' | 'tiered' | 'flat_fee' | 'stairstep';
56
+
33
57
  is_taxed?:boolean;
58
+
34
59
  tax_amount?:number;
60
+
35
61
  tax_rate?:number;
62
+
36
63
  unit_amount_in_decimal?:string;
64
+
37
65
  quantity_in_decimal?:string;
66
+
38
67
  amount_in_decimal?:string;
68
+
39
69
  discount_amount?:number;
70
+
40
71
  item_level_discount_amount?:number;
72
+
41
73
  reference_line_item_id?:string;
74
+
42
75
  description?:string;
76
+
43
77
  entity_description?:string;
78
+
44
79
  entity_type?:'addon_item_price' | 'plan_item_price' | 'charge_item_price' | 'adhoc';
80
+
45
81
  tax_exempt_reason?:'high_value_physical_goods' | 'tax_not_configured' | 'reverse_charge' | 'zero_rated' | 'customer_exempt' | 'region_non_taxable' | 'zero_value_item' | 'export' | 'product_exempt';
82
+
46
83
  entity_id?:string;
84
+
47
85
  customer_id?:string;
48
86
  }
49
- export interface Discount {
87
+ export interface Discount {
50
88
  amount?:number;
89
+
51
90
  description?:string;
91
+
52
92
  line_item_id?:string;
93
+
53
94
  entity_type?:'item_level_coupon' | 'promotional_credits' | 'item_level_discount' | 'prorated_credits' | 'document_level_discount' | 'document_level_coupon';
95
+
54
96
  discount_type?:'fixed_amount' | 'percentage';
97
+
55
98
  entity_id?:string;
99
+
56
100
  coupon_set_code?:string;
57
101
  }
58
- export interface Tax {
102
+ export interface Tax {
59
103
  name?:string;
104
+
60
105
  amount?:number;
106
+
61
107
  description?:string;
62
108
  }
63
- export interface LineItemTax {
109
+ export interface LineItemTax {
64
110
  line_item_id?:string;
111
+
65
112
  tax_name?:string;
113
+
66
114
  tax_rate?:number;
115
+
67
116
  is_partial_tax_applied?:boolean;
117
+
68
118
  is_non_compliance_tax?:boolean;
119
+
69
120
  taxable_amount?:number;
121
+
70
122
  tax_amount?:number;
123
+
71
124
  tax_juris_type?:'special' | 'country' | 'unincorporated' | 'other' | 'city' | 'federal' | 'county' | 'state';
125
+
72
126
  tax_juris_name?:string;
127
+
73
128
  tax_juris_code?:string;
129
+
74
130
  tax_amount_in_local_currency?:number;
131
+
75
132
  local_currency_code?:string;
76
133
  }
77
- export interface LineItemDiscount {
134
+ export interface LineItemDiscount {
78
135
  line_item_id?:string;
136
+
79
137
  discount_type?:'item_level_coupon' | 'promotional_credits' | 'item_level_discount' | 'prorated_credits' | 'document_level_discount' | 'document_level_coupon';
138
+
80
139
  coupon_id?:string;
140
+
81
141
  entity_id?:string;
142
+
82
143
  discount_amount?:number;
83
144
  }
84
- export interface LineItemTier {
145
+ export interface LineItemTier {
85
146
  line_item_id?:string;
147
+
86
148
  starting_unit?:number;
149
+
87
150
  ending_unit?:number;
151
+
88
152
  quantity_used?:number;
153
+
89
154
  unit_amount?:number;
155
+
90
156
  starting_unit_in_decimal?:string;
157
+
91
158
  ending_unit_in_decimal?:string;
159
+
92
160
  quantity_used_in_decimal?:string;
161
+
93
162
  unit_amount_in_decimal?:string;
94
163
  }
95
164
  }