chargebee 3.29.0 → 3.30.1

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 (82) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/resources/api_endpoints.js +69 -0
  4. package/cjs/resources/webhook/eventType.js +4 -0
  5. package/cjs/schema/alert.schema.js +8 -3
  6. package/cjs/schema/coupon.schema.js +1 -1
  7. package/cjs/schema/credit_note.schema.js +8 -0
  8. package/cjs/schema/credit_unit.schema.js +38 -0
  9. package/cjs/schema/customer.schema.js +24 -0
  10. package/cjs/schema/entitlement.schema.js +4 -4
  11. package/cjs/schema/estimate.schema.js +9 -0
  12. package/cjs/schema/event.schema.js +16 -0
  13. package/cjs/schema/export.schema.js +21 -5
  14. package/cjs/schema/gift.schema.js +8 -0
  15. package/cjs/schema/grant_block.schema.js +4 -0
  16. package/cjs/schema/index.js +1 -0
  17. package/cjs/schema/invoice.schema.js +30 -2
  18. package/cjs/schema/item.schema.js +1 -1
  19. package/cjs/schema/item_family.schema.js +1 -1
  20. package/cjs/schema/item_price.schema.js +1 -1
  21. package/cjs/schema/ledger_operation.schema.js +14 -4
  22. package/cjs/schema/meter.schema.js +1 -1
  23. package/cjs/schema/payment_intent.schema.js +8 -0
  24. package/cjs/schema/payment_source.schema.js +28 -0
  25. package/cjs/schema/price_variant.schema.js +1 -1
  26. package/cjs/schema/purchase.schema.js +4 -0
  27. package/cjs/schema/ramp.schema.js +2 -2
  28. package/cjs/schema/subscription.schema.js +57 -0
  29. package/cjs/schema/transaction.schema.js +20 -0
  30. package/cjs/schema/webhook_endpoint.schema.js +8 -0
  31. package/cjs/util.js +12 -2
  32. package/esm/environment.js +1 -1
  33. package/esm/resources/api_endpoints.js +69 -0
  34. package/esm/resources/webhook/eventType.js +4 -0
  35. package/esm/schema/alert.schema.js +8 -3
  36. package/esm/schema/coupon.schema.js +1 -1
  37. package/esm/schema/credit_note.schema.js +8 -0
  38. package/esm/schema/credit_unit.schema.js +35 -0
  39. package/esm/schema/customer.schema.js +24 -0
  40. package/esm/schema/entitlement.schema.js +4 -4
  41. package/esm/schema/estimate.schema.js +9 -0
  42. package/esm/schema/event.schema.js +16 -0
  43. package/esm/schema/export.schema.js +21 -5
  44. package/esm/schema/gift.schema.js +8 -0
  45. package/esm/schema/grant_block.schema.js +4 -0
  46. package/esm/schema/index.js +1 -0
  47. package/esm/schema/invoice.schema.js +30 -2
  48. package/esm/schema/item.schema.js +1 -1
  49. package/esm/schema/item_family.schema.js +1 -1
  50. package/esm/schema/item_price.schema.js +1 -1
  51. package/esm/schema/ledger_operation.schema.js +13 -3
  52. package/esm/schema/meter.schema.js +1 -1
  53. package/esm/schema/payment_intent.schema.js +8 -0
  54. package/esm/schema/payment_source.schema.js +28 -0
  55. package/esm/schema/price_variant.schema.js +1 -1
  56. package/esm/schema/purchase.schema.js +4 -0
  57. package/esm/schema/ramp.schema.js +2 -2
  58. package/esm/schema/subscription.schema.js +57 -0
  59. package/esm/schema/transaction.schema.js +20 -0
  60. package/esm/schema/webhook_endpoint.schema.js +8 -0
  61. package/esm/util.js +12 -2
  62. package/package.json +1 -1
  63. package/types/core.d.ts +27 -2
  64. package/types/index.d.ts +3 -0
  65. package/types/resources/Alert.d.ts +4 -2
  66. package/types/resources/AttachedItem.d.ts +2 -2
  67. package/types/resources/Content.d.ts +2 -0
  68. package/types/resources/CreditUnit.d.ts +90 -0
  69. package/types/resources/Customer.d.ts +10 -2
  70. package/types/resources/Estimate.d.ts +11 -2
  71. package/types/resources/Event.d.ts +4 -0
  72. package/types/resources/Gift.d.ts +10 -2
  73. package/types/resources/GrantBlock.d.ts +11 -5
  74. package/types/resources/Invoice.d.ts +10 -2
  75. package/types/resources/LedgerAccountBalance.d.ts +3 -1
  76. package/types/resources/LedgerEntry.d.ts +22 -0
  77. package/types/resources/LedgerOperation.d.ts +33 -6
  78. package/types/resources/PaymentIntent.d.ts +25 -5
  79. package/types/resources/PaymentSource.d.ts +5 -1
  80. package/types/resources/Purchase.d.ts +5 -1
  81. package/types/resources/Subscription.d.ts +36 -7
  82. package/types/resources/WebhookEvent.d.ts +26 -0
@@ -387,6 +387,7 @@ declare module 'chargebee' {
387
387
  refundable_credits_handling?: RefundableCreditsHandlingEnum;
388
388
  contract_term_cancel_option?: ContractTermCancelOptionEnum;
389
389
  invoice_date?: number;
390
+ include_cancellation_day_in_billing?: boolean;
390
391
  cancel_reason_code?: string;
391
392
  subscription_items?: SubscriptionItemsCancelSubscriptionForItemsInputParam[];
392
393
  }
@@ -1073,7 +1074,11 @@ declare module 'chargebee' {
1073
1074
  | 'south_korean_cards'
1074
1075
  | 'paynow'
1075
1076
  | 'bizum'
1076
- | 'promptpay';
1077
+ | 'promptpay'
1078
+ | 'dana'
1079
+ | 'touch_n_go'
1080
+ | 'tamara'
1081
+ | 'qpay';
1077
1082
  reference_id?: string;
1078
1083
  /**
1079
1084
  * @deprecated Please refer API docs to use other attributes
@@ -1178,7 +1183,11 @@ declare module 'chargebee' {
1178
1183
  | 'south_korean_cards'
1179
1184
  | 'paynow'
1180
1185
  | 'bizum'
1181
- | 'promptpay';
1186
+ | 'promptpay'
1187
+ | 'dana'
1188
+ | 'touch_n_go'
1189
+ | 'tamara'
1190
+ | 'qpay';
1182
1191
  reference_id?: string;
1183
1192
  /**
1184
1193
  * @deprecated Please refer API docs to use other attributes
@@ -28,6 +28,7 @@ declare module 'chargebee' {
28
28
  TaxWithheldDeletedContent &
29
29
  UnbilledChargesDeletedContent &
30
30
  CouponUpdatedContent &
31
+ GrantBlocksCreatedContent &
31
32
  OmnichannelSubscriptionItemReactivatedContent &
32
33
  OmnichannelSubscriptionItemRenewedContent &
33
34
  UnbilledChargesCreatedContent &
@@ -169,6 +170,7 @@ declare module 'chargebee' {
169
170
  SubscriptionDeletedContent &
170
171
  PaymentSourceAddedContent &
171
172
  SubscriptionMovedInContent &
173
+ LedgerUpdatedContent &
172
174
  ItemPriceCreatedContent &
173
175
  SubscriptionScheduledCancellationRemovedContent &
174
176
  PaymentRefundedContent &
@@ -203,6 +205,7 @@ declare module 'chargebee' {
203
205
  PaymentSourceBusinessEntityChangedContent &
204
206
  PromotionalCreditsAddedContent &
205
207
  SubscriptionRampUpdatedContent &
208
+ LedgerAccountBalanceUpdatedContent &
206
209
  CustomerEntitlementsUpdatedContent &
207
210
  PaymentSourceExpiredContent &
208
211
  CustomerMovedOutContent &
@@ -233,6 +236,7 @@ declare module 'chargebee' {
233
236
  AttachedItemUpdatedContent &
234
237
  PaymentSourceUpdatedContent &
235
238
  BusinessEntityDeletedContent &
239
+ GrantBlocksUpdatedContent &
236
240
  AuthorizationVoidedContent &
237
241
  SubscriptionRampDeletedContent &
238
242
  PlanDeletedContent &
@@ -231,7 +231,11 @@ declare module 'chargebee' {
231
231
  | 'south_korean_cards'
232
232
  | 'paynow'
233
233
  | 'bizum'
234
- | 'promptpay';
234
+ | 'promptpay'
235
+ | 'dana'
236
+ | 'touch_n_go'
237
+ | 'tamara'
238
+ | 'qpay';
235
239
  reference_id?: string;
236
240
  /**
237
241
  * @deprecated Please refer API docs to use other attributes
@@ -330,7 +334,11 @@ declare module 'chargebee' {
330
334
  | 'south_korean_cards'
331
335
  | 'paynow'
332
336
  | 'bizum'
333
- | 'promptpay';
337
+ | 'promptpay'
338
+ | 'dana'
339
+ | 'touch_n_go'
340
+ | 'tamara'
341
+ | 'qpay';
334
342
  reference_id?: string;
335
343
  /**
336
344
  * @deprecated Please refer API docs to use other attributes
@@ -4,6 +4,10 @@
4
4
  declare module 'chargebee' {
5
5
  export interface GrantBlock {
6
6
  id: string;
7
+ subscription_id?: string;
8
+ account_type?: 'provisioned' | 'overdraft';
9
+ unit_id?: string;
10
+ unit_type?: 'credit_unit';
7
11
  granted_amount: string;
8
12
  effective_from: number;
9
13
  expires_at: number;
@@ -20,11 +24,12 @@ declare module 'chargebee' {
20
24
  | 'subscription_changed'
21
25
  | 'top_up'
22
26
  | 'promotional_grants'
23
- | 'rollover';
24
- created_at?: number;
25
- account_type?: 'provisioned' | 'overdraft';
26
- unit_id?: string;
27
- unit_type?: 'credit_unit';
27
+ | 'rollover'
28
+ | 'grant_renewal'
29
+ | 'subscription_renewed';
30
+ created_at: number;
31
+ modified_at: number;
32
+ resource_version?: number;
28
33
  metadata?: any;
29
34
  }
30
35
 
@@ -49,6 +54,7 @@ declare module 'chargebee' {
49
54
  offset?: string;
50
55
  subscription_id: filter.String;
51
56
  unit_id?: filter.String;
57
+ account_type?: filter.Enum;
52
58
  effective_from?: filter.Timestamp;
53
59
  expires_at?: filter.Timestamp;
54
60
  created_at?: filter.Timestamp;
@@ -1313,7 +1313,11 @@ declare module 'chargebee' {
1313
1313
  | 'south_korean_cards'
1314
1314
  | 'paynow'
1315
1315
  | 'bizum'
1316
- | 'promptpay';
1316
+ | 'promptpay'
1317
+ | 'dana'
1318
+ | 'touch_n_go'
1319
+ | 'tamara'
1320
+ | 'qpay';
1317
1321
  reference_id?: string;
1318
1322
  /**
1319
1323
  * @deprecated Please refer API docs to use other attributes
@@ -1487,7 +1491,11 @@ declare module 'chargebee' {
1487
1491
  | 'south_korean_cards'
1488
1492
  | 'paynow'
1489
1493
  | 'bizum'
1490
- | 'promptpay';
1494
+ | 'promptpay'
1495
+ | 'dana'
1496
+ | 'touch_n_go'
1497
+ | 'tamara'
1498
+ | 'qpay';
1491
1499
  reference_id?: string;
1492
1500
  /**
1493
1501
  * @deprecated Please refer API docs to use other attributes
@@ -6,7 +6,9 @@ declare module 'chargebee' {
6
6
  subscription_id: string;
7
7
  unit_id: string;
8
8
  unit_type: 'credit_unit';
9
- modified_at?: number;
9
+ created_at: number;
10
+ modified_at: number;
11
+ resource_version?: number;
10
12
  provisioned_balance?: LedgerAccountBalance.ProvisionedBalance;
11
13
  overdraft_balance?: LedgerAccountBalance.OverdraftBalance;
12
14
  }
@@ -0,0 +1,22 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+
4
+ declare module 'chargebee' {
5
+ export interface LedgerEntry {
6
+ id: string;
7
+ subscription_id?: string;
8
+ account_type?: 'provisioned' | 'overdraft';
9
+ unit_id?: string;
10
+ unit_type?: 'credit_unit';
11
+ amount: string;
12
+ grant_block_start_balance: string;
13
+ grant_block_end_balance: string;
14
+ account_start_balance: string;
15
+ account_end_balance: string;
16
+ type: TypeEnum;
17
+ ledger_operation_id: string;
18
+ grant_block_id: string;
19
+ created_at: number;
20
+ modified_at: number;
21
+ }
22
+ }
@@ -4,6 +4,9 @@
4
4
  declare module 'chargebee' {
5
5
  export interface LedgerOperation {
6
6
  id: string;
7
+ subscription_id?: string;
8
+ unit_id?: string;
9
+ unit_type?: 'credit_unit';
7
10
  type:
8
11
  | 'allocation'
9
12
  | 'capture'
@@ -20,13 +23,10 @@ declare module 'chargebee' {
20
23
  overdraft_start_balance: string;
21
24
  overdraft_end_balance: string;
22
25
  parent_ledger_operation_id?: string;
23
- ledger_operation_timestamp?: number;
26
+ ledger_operation_timestamp: number;
24
27
  auto_release_timestamp?: number;
25
- created_at?: number;
26
- modified_at?: number;
27
- subscription_id?: string;
28
- unit_id?: string;
29
- unit_type?: 'credit_unit';
28
+ created_at: number;
29
+ modified_at: number;
30
30
  metadata?: any;
31
31
  }
32
32
 
@@ -61,6 +61,11 @@ declare module 'chargebee' {
61
61
  input: ReleaseAuthorizationInputParam,
62
62
  headers?: ChargebeeRequestHeader,
63
63
  ): Promise<ChargebeeResponse<ReleaseAuthorizationResponse>>;
64
+
65
+ allocate(
66
+ input: AllocateInputParam,
67
+ headers?: ChargebeeRequestHeader,
68
+ ): Promise<ChargebeeResponse<AllocateResponse>>;
64
69
  }
65
70
 
66
71
  export interface RetrieveLedgerOperationResponse {
@@ -75,21 +80,36 @@ declare module 'chargebee' {
75
80
  export interface CaptureResponse {
76
81
  ledger_operation: LedgerOperation;
77
82
  ledger_account_balance: LedgerAccountBalance;
83
+ grant_blocks: GrantBlock[];
84
+ ledger_entries: LedgerEntry[];
78
85
  }
79
86
 
80
87
  export interface AuthorizeResponse {
81
88
  ledger_operation: LedgerOperation;
82
89
  ledger_account_balance: LedgerAccountBalance;
90
+ grant_blocks: GrantBlock[];
91
+ ledger_entries: LedgerEntry[];
83
92
  }
84
93
 
85
94
  export interface CaptureAuthorizationResponse {
86
95
  ledger_operation: LedgerOperation;
87
96
  ledger_account_balance: LedgerAccountBalance;
97
+ grant_blocks: GrantBlock[];
98
+ ledger_entries: LedgerEntry[];
88
99
  }
89
100
 
90
101
  export interface ReleaseAuthorizationResponse {
91
102
  ledger_operation: LedgerOperation;
92
103
  ledger_account_balance: LedgerAccountBalance;
104
+ grant_blocks: GrantBlock[];
105
+ ledger_entries: LedgerEntry[];
106
+ }
107
+
108
+ export interface AllocateResponse {
109
+ ledger_account_balance: LedgerAccountBalance;
110
+ ledger_operations: LedgerOperation[];
111
+ grant_blocks: GrantBlock[];
112
+ ledger_entries: LedgerEntry[];
93
113
  }
94
114
 
95
115
  // REQUEST PARAMS
@@ -135,5 +155,12 @@ declare module 'chargebee' {
135
155
  ledger_operation_timestamp: number;
136
156
  metadata?: any;
137
157
  }
158
+ export interface AllocateInputParam {
159
+ subscription_id: string;
160
+ unit_id: string;
161
+ amount: string;
162
+ expires_at: number;
163
+ metadata?: any;
164
+ }
138
165
  }
139
166
  }
@@ -58,7 +58,11 @@ declare module 'chargebee' {
58
58
  | 'south_korean_cards'
59
59
  | 'paynow'
60
60
  | 'bizum'
61
- | 'promptpay';
61
+ | 'promptpay'
62
+ | 'dana'
63
+ | 'touch_n_go'
64
+ | 'tamara'
65
+ | 'qpay';
62
66
  success_url?: string;
63
67
  failure_url?: string;
64
68
  created_at: number;
@@ -162,7 +166,11 @@ declare module 'chargebee' {
162
166
  | 'south_korean_cards'
163
167
  | 'paynow'
164
168
  | 'bizum'
165
- | 'promptpay';
169
+ | 'promptpay'
170
+ | 'dana'
171
+ | 'touch_n_go'
172
+ | 'tamara'
173
+ | 'qpay';
166
174
  id_at_gateway?: string;
167
175
  error_code?: string;
168
176
  error_text?: string;
@@ -229,7 +237,11 @@ declare module 'chargebee' {
229
237
  | 'south_korean_cards'
230
238
  | 'paynow'
231
239
  | 'bizum'
232
- | 'promptpay';
240
+ | 'promptpay'
241
+ | 'dana'
242
+ | 'touch_n_go'
243
+ | 'tamara'
244
+ | 'qpay';
233
245
  id_at_gateway?: string;
234
246
  error_code?: string;
235
247
  error_text?: string;
@@ -313,7 +325,11 @@ declare module 'chargebee' {
313
325
  | 'south_korean_cards'
314
326
  | 'paynow'
315
327
  | 'bizum'
316
- | 'promptpay';
328
+ | 'promptpay'
329
+ | 'dana'
330
+ | 'touch_n_go'
331
+ | 'tamara'
332
+ | 'qpay';
317
333
  success_url?: string;
318
334
  failure_url?: string;
319
335
  }
@@ -369,7 +385,11 @@ declare module 'chargebee' {
369
385
  | 'south_korean_cards'
370
386
  | 'paynow'
371
387
  | 'bizum'
372
- | 'promptpay';
388
+ | 'promptpay'
389
+ | 'dana'
390
+ | 'touch_n_go'
391
+ | 'tamara'
392
+ | 'qpay';
373
393
  success_url?: string;
374
394
  failure_url?: string;
375
395
  }
@@ -482,7 +482,11 @@ declare module 'chargebee' {
482
482
  | 'south_korean_cards'
483
483
  | 'paynow'
484
484
  | 'bizum'
485
- | 'promptpay';
485
+ | 'promptpay'
486
+ | 'dana'
487
+ | 'touch_n_go'
488
+ | 'tamara'
489
+ | 'qpay';
486
490
  reference_id?: string;
487
491
  /**
488
492
  * @deprecated Please refer API docs to use other attributes
@@ -125,7 +125,11 @@ declare module 'chargebee' {
125
125
  | 'south_korean_cards'
126
126
  | 'paynow'
127
127
  | 'bizum'
128
- | 'promptpay';
128
+ | 'promptpay'
129
+ | 'dana'
130
+ | 'touch_n_go'
131
+ | 'tamara'
132
+ | 'qpay';
129
133
  reference_id?: string;
130
134
  /**
131
135
  * @deprecated Please refer API docs to use other attributes
@@ -1269,6 +1269,7 @@ declare module 'chargebee' {
1269
1269
  refundable_credits_handling?: RefundableCreditsHandlingEnum;
1270
1270
  contract_term_cancel_option?: ContractTermCancelOptionEnum;
1271
1271
  invoice_date?: number;
1272
+ include_cancellation_day_in_billing?: boolean;
1272
1273
  cancel_reason_code?: string;
1273
1274
  decommissioned?: boolean;
1274
1275
  subscription_items?: SubscriptionItemsCancelForItemsInputParam[];
@@ -1435,7 +1436,11 @@ declare module 'chargebee' {
1435
1436
  | 'south_korean_cards'
1436
1437
  | 'paynow'
1437
1438
  | 'bizum'
1438
- | 'promptpay';
1439
+ | 'promptpay'
1440
+ | 'dana'
1441
+ | 'touch_n_go'
1442
+ | 'tamara'
1443
+ | 'qpay';
1439
1444
  reference_id?: string;
1440
1445
  /**
1441
1446
  * @deprecated Please refer API docs to use other attributes
@@ -1590,7 +1595,11 @@ declare module 'chargebee' {
1590
1595
  | 'south_korean_cards'
1591
1596
  | 'paynow'
1592
1597
  | 'bizum'
1593
- | 'promptpay';
1598
+ | 'promptpay'
1599
+ | 'dana'
1600
+ | 'touch_n_go'
1601
+ | 'tamara'
1602
+ | 'qpay';
1594
1603
  reference_id?: string;
1595
1604
  /**
1596
1605
  * @deprecated Please refer API docs to use other attributes
@@ -1712,7 +1721,11 @@ declare module 'chargebee' {
1712
1721
  | 'south_korean_cards'
1713
1722
  | 'paynow'
1714
1723
  | 'bizum'
1715
- | 'promptpay';
1724
+ | 'promptpay'
1725
+ | 'dana'
1726
+ | 'touch_n_go'
1727
+ | 'tamara'
1728
+ | 'qpay';
1716
1729
  reference_id?: string;
1717
1730
  /**
1718
1731
  * @deprecated Please refer API docs to use other attributes
@@ -1889,7 +1902,11 @@ declare module 'chargebee' {
1889
1902
  | 'south_korean_cards'
1890
1903
  | 'paynow'
1891
1904
  | 'bizum'
1892
- | 'promptpay';
1905
+ | 'promptpay'
1906
+ | 'dana'
1907
+ | 'touch_n_go'
1908
+ | 'tamara'
1909
+ | 'qpay';
1893
1910
  reference_id?: string;
1894
1911
  /**
1895
1912
  * @deprecated Please refer API docs to use other attributes
@@ -2080,7 +2097,11 @@ declare module 'chargebee' {
2080
2097
  | 'south_korean_cards'
2081
2098
  | 'paynow'
2082
2099
  | 'bizum'
2083
- | 'promptpay';
2100
+ | 'promptpay'
2101
+ | 'dana'
2102
+ | 'touch_n_go'
2103
+ | 'tamara'
2104
+ | 'qpay';
2084
2105
  reference_id?: string;
2085
2106
  /**
2086
2107
  * @deprecated Please refer API docs to use other attributes
@@ -2227,7 +2248,11 @@ declare module 'chargebee' {
2227
2248
  | 'south_korean_cards'
2228
2249
  | 'paynow'
2229
2250
  | 'bizum'
2230
- | 'promptpay';
2251
+ | 'promptpay'
2252
+ | 'dana'
2253
+ | 'touch_n_go'
2254
+ | 'tamara'
2255
+ | 'qpay';
2231
2256
  reference_id?: string;
2232
2257
  /**
2233
2258
  * @deprecated Please refer API docs to use other attributes
@@ -2680,7 +2705,11 @@ declare module 'chargebee' {
2680
2705
  | 'south_korean_cards'
2681
2706
  | 'paynow'
2682
2707
  | 'bizum'
2683
- | 'promptpay';
2708
+ | 'promptpay'
2709
+ | 'dana'
2710
+ | 'touch_n_go'
2711
+ | 'tamara'
2712
+ | 'qpay';
2684
2713
  reference_id?: string;
2685
2714
  /**
2686
2715
  * @deprecated Please refer API docs to use other attributes
@@ -11,6 +11,7 @@ declare module 'chargebee' {
11
11
  TaxWithheldDeleted = 'tax_withheld_deleted',
12
12
  UnbilledChargesDeleted = 'unbilled_charges_deleted',
13
13
  CouponUpdated = 'coupon_updated',
14
+ GrantBlocksCreated = 'grant_blocks_created',
14
15
  OmnichannelSubscriptionItemReactivated = 'omnichannel_subscription_item_reactivated',
15
16
  OmnichannelSubscriptionItemRenewed = 'omnichannel_subscription_item_renewed',
16
17
  UnbilledChargesCreated = 'unbilled_charges_created',
@@ -152,6 +153,7 @@ declare module 'chargebee' {
152
153
  SubscriptionDeleted = 'subscription_deleted',
153
154
  PaymentSourceAdded = 'payment_source_added',
154
155
  SubscriptionMovedIn = 'subscription_moved_in',
156
+ LedgerUpdated = 'ledger_updated',
155
157
  ItemPriceCreated = 'item_price_created',
156
158
  SubscriptionScheduledCancellationRemoved = 'subscription_scheduled_cancellation_removed',
157
159
  PaymentRefunded = 'payment_refunded',
@@ -186,6 +188,7 @@ declare module 'chargebee' {
186
188
  PaymentSourceBusinessEntityChanged = 'payment_source_business_entity_changed',
187
189
  PromotionalCreditsAdded = 'promotional_credits_added',
188
190
  SubscriptionRampUpdated = 'subscription_ramp_updated',
191
+ LedgerAccountBalanceUpdated = 'ledger_account_balance_updated',
189
192
  CustomerEntitlementsUpdated = 'customer_entitlements_updated',
190
193
  PaymentSourceExpired = 'payment_source_expired',
191
194
  CustomerMovedOut = 'customer_moved_out',
@@ -216,6 +219,7 @@ declare module 'chargebee' {
216
219
  AttachedItemUpdated = 'attached_item_updated',
217
220
  PaymentSourceUpdated = 'payment_source_updated',
218
221
  BusinessEntityDeleted = 'business_entity_deleted',
222
+ GrantBlocksUpdated = 'grant_blocks_updated',
219
223
  AuthorizationVoided = 'authorization_voided',
220
224
  SubscriptionRampDeleted = 'subscription_ramp_deleted',
221
225
  PlanDeleted = 'plan_deleted',
@@ -239,6 +243,7 @@ declare module 'chargebee' {
239
243
  [WebhookEventType.TaxWithheldDeleted]: TaxWithheldDeletedContent;
240
244
  [WebhookEventType.UnbilledChargesDeleted]: UnbilledChargesDeletedContent;
241
245
  [WebhookEventType.CouponUpdated]: CouponUpdatedContent;
246
+ [WebhookEventType.GrantBlocksCreated]: GrantBlocksCreatedContent;
242
247
  [WebhookEventType.OmnichannelSubscriptionItemReactivated]: OmnichannelSubscriptionItemReactivatedContent;
243
248
  [WebhookEventType.OmnichannelSubscriptionItemRenewed]: OmnichannelSubscriptionItemRenewedContent;
244
249
  [WebhookEventType.UnbilledChargesCreated]: UnbilledChargesCreatedContent;
@@ -380,6 +385,7 @@ declare module 'chargebee' {
380
385
  [WebhookEventType.SubscriptionDeleted]: SubscriptionDeletedContent;
381
386
  [WebhookEventType.PaymentSourceAdded]: PaymentSourceAddedContent;
382
387
  [WebhookEventType.SubscriptionMovedIn]: SubscriptionMovedInContent;
388
+ [WebhookEventType.LedgerUpdated]: LedgerUpdatedContent;
383
389
  [WebhookEventType.ItemPriceCreated]: ItemPriceCreatedContent;
384
390
  [WebhookEventType.SubscriptionScheduledCancellationRemoved]: SubscriptionScheduledCancellationRemovedContent;
385
391
  [WebhookEventType.PaymentRefunded]: PaymentRefundedContent;
@@ -414,6 +420,7 @@ declare module 'chargebee' {
414
420
  [WebhookEventType.PaymentSourceBusinessEntityChanged]: PaymentSourceBusinessEntityChangedContent;
415
421
  [WebhookEventType.PromotionalCreditsAdded]: PromotionalCreditsAddedContent;
416
422
  [WebhookEventType.SubscriptionRampUpdated]: SubscriptionRampUpdatedContent;
423
+ [WebhookEventType.LedgerAccountBalanceUpdated]: LedgerAccountBalanceUpdatedContent;
417
424
  [WebhookEventType.CustomerEntitlementsUpdated]: CustomerEntitlementsUpdatedContent;
418
425
  [WebhookEventType.PaymentSourceExpired]: PaymentSourceExpiredContent;
419
426
  [WebhookEventType.CustomerMovedOut]: CustomerMovedOutContent;
@@ -444,6 +451,7 @@ declare module 'chargebee' {
444
451
  [WebhookEventType.AttachedItemUpdated]: AttachedItemUpdatedContent;
445
452
  [WebhookEventType.PaymentSourceUpdated]: PaymentSourceUpdatedContent;
446
453
  [WebhookEventType.BusinessEntityDeleted]: BusinessEntityDeletedContent;
454
+ [WebhookEventType.GrantBlocksUpdated]: GrantBlocksUpdatedContent;
447
455
  [WebhookEventType.AuthorizationVoided]: AuthorizationVoidedContent;
448
456
  [WebhookEventType.SubscriptionRampDeleted]: SubscriptionRampDeletedContent;
449
457
  [WebhookEventType.PlanDeleted]: PlanDeletedContent;
@@ -514,6 +522,9 @@ declare module 'chargebee' {
514
522
  export type CouponUpdatedContent = {
515
523
  coupon: Coupon;
516
524
  };
525
+ export type GrantBlocksCreatedContent = {
526
+ grant_block: GrantBlock[];
527
+ };
517
528
  export type OmnichannelSubscriptionItemReactivatedContent = {
518
529
  omnichannel_subscription: OmnichannelSubscription;
519
530
 
@@ -1317,6 +1328,15 @@ declare module 'chargebee' {
1317
1328
  export type SubscriptionMovedInContent = {
1318
1329
  subscription: Subscription;
1319
1330
  };
1331
+ export type LedgerUpdatedContent = {
1332
+ ledger_operation: LedgerOperation[];
1333
+
1334
+ ledger_account_balance: LedgerAccountBalance;
1335
+
1336
+ grant_block: GrantBlock[];
1337
+
1338
+ ledger_entry: LedgerEntry[];
1339
+ };
1320
1340
  export type ItemPriceCreatedContent = {
1321
1341
  item_price: ItemPrice;
1322
1342
  };
@@ -1519,6 +1539,9 @@ declare module 'chargebee' {
1519
1539
  export type SubscriptionRampUpdatedContent = {
1520
1540
  ramp: Ramp;
1521
1541
  };
1542
+ export type LedgerAccountBalanceUpdatedContent = {
1543
+ ledger_account_balance: LedgerAccountBalance;
1544
+ };
1522
1545
  export type CustomerEntitlementsUpdatedContent = {
1523
1546
  impacted_customer: ImpactedCustomer;
1524
1547
  };
@@ -1659,6 +1682,9 @@ declare module 'chargebee' {
1659
1682
  export type BusinessEntityDeletedContent = {
1660
1683
  business_entity: BusinessEntity;
1661
1684
  };
1685
+ export type GrantBlocksUpdatedContent = {
1686
+ grant_block: GrantBlock[];
1687
+ };
1662
1688
  export type AuthorizationVoidedContent = {
1663
1689
  transaction: Transaction;
1664
1690
  };