chargebee 3.28.1 → 3.30.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 +140 -0
- package/cjs/chargebee.cjs.js +1 -1
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +126 -0
- package/cjs/resources/webhook/eventType.js +5 -0
- package/cjs/schema/alert.schema.js +11 -5
- package/cjs/schema/coupon.schema.js +1 -1
- package/cjs/schema/credit_note.schema.js +13 -0
- package/cjs/schema/credit_unit.schema.js +38 -0
- package/cjs/schema/customer.schema.js +39 -0
- package/cjs/schema/entitlement.schema.js +4 -4
- package/cjs/schema/estimate.schema.js +18 -0
- package/cjs/schema/event.schema.js +20 -0
- package/cjs/schema/export.schema.js +33 -1
- package/cjs/schema/feature.schema.js +0 -1
- package/cjs/schema/gift.schema.js +14 -0
- package/cjs/schema/grant_block.schema.js +4 -0
- package/cjs/schema/index.js +1 -0
- package/cjs/schema/invoice.schema.js +63 -3
- package/cjs/schema/ledger_operation.schema.js +14 -4
- package/cjs/schema/meter.schema.js +10 -0
- package/cjs/schema/omnichannel_subscription.schema.js +2 -2
- package/cjs/schema/payment_intent.schema.js +14 -0
- package/cjs/schema/payment_source.schema.js +49 -0
- package/cjs/schema/purchase.schema.js +7 -0
- package/cjs/schema/ramp.schema.js +4 -2
- package/cjs/schema/recorded_purchase.schema.js +3 -0
- package/cjs/schema/subscription.schema.js +94 -0
- package/cjs/schema/transaction.schema.js +32 -0
- package/cjs/schema/webhook_endpoint.schema.js +10 -0
- package/cjs/telemetry/TelemetryAdapter.js +12 -7
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +126 -0
- package/esm/resources/webhook/eventType.js +5 -0
- package/esm/schema/alert.schema.js +11 -5
- package/esm/schema/coupon.schema.js +1 -1
- package/esm/schema/credit_note.schema.js +13 -0
- package/esm/schema/credit_unit.schema.js +35 -0
- package/esm/schema/customer.schema.js +39 -0
- package/esm/schema/entitlement.schema.js +4 -4
- package/esm/schema/estimate.schema.js +18 -0
- package/esm/schema/event.schema.js +20 -0
- package/esm/schema/export.schema.js +33 -1
- package/esm/schema/feature.schema.js +0 -1
- package/esm/schema/gift.schema.js +14 -0
- package/esm/schema/grant_block.schema.js +4 -0
- package/esm/schema/index.js +1 -0
- package/esm/schema/invoice.schema.js +63 -3
- package/esm/schema/ledger_operation.schema.js +13 -3
- package/esm/schema/meter.schema.js +10 -0
- package/esm/schema/omnichannel_subscription.schema.js +2 -2
- package/esm/schema/payment_intent.schema.js +14 -0
- package/esm/schema/payment_source.schema.js +49 -0
- package/esm/schema/purchase.schema.js +7 -0
- package/esm/schema/ramp.schema.js +4 -2
- package/esm/schema/recorded_purchase.schema.js +3 -0
- package/esm/schema/subscription.schema.js +94 -0
- package/esm/schema/transaction.schema.js +32 -0
- package/esm/schema/webhook_endpoint.schema.js +10 -0
- package/esm/telemetry/TelemetryAdapter.js +12 -7
- package/package.json +1 -1
- package/types/core.d.ts +65 -6
- package/types/index.d.ts +15 -8
- package/types/resources/Alert.d.ts +18 -3
- package/types/resources/AsyncResponse.d.ts +35 -0
- package/types/resources/AsyncResponseList.d.ts +8 -0
- package/types/resources/AttachedItem.d.ts +2 -2
- package/types/resources/ColumnDefinition.d.ts +9 -0
- package/types/resources/Content.d.ts +7 -0
- package/types/resources/CreditNote.d.ts +15 -0
- package/types/resources/CreditNoteEstimate.d.ts +5 -0
- package/types/resources/CreditUnit.d.ts +90 -0
- package/types/resources/Customer.d.ts +16 -2
- package/types/resources/Estimate.d.ts +20 -2
- package/types/resources/Event.d.ts +5 -0
- package/types/resources/Export.d.ts +1 -0
- package/types/resources/Feature.d.ts +2 -0
- package/types/resources/Gift.d.ts +16 -2
- package/types/resources/GrantBlock.d.ts +12 -6
- package/types/resources/Invoice.d.ts +41 -3
- package/types/resources/InvoiceEstimate.d.ts +5 -0
- package/types/resources/LedgerAccountBalance.d.ts +3 -1
- package/types/resources/LedgerEntry.d.ts +22 -0
- package/types/resources/LedgerOperation.d.ts +34 -9
- package/types/resources/Meter.d.ts +42 -0
- package/types/resources/MeteredFeature.d.ts +70 -0
- package/types/resources/PaymentIntent.d.ts +57 -5
- package/types/resources/PaymentSource.d.ts +8 -1
- package/types/resources/PromotionalGrant.d.ts +1 -1
- package/types/resources/Purchase.d.ts +8 -1
- package/types/resources/Quote.d.ts +5 -0
- package/types/resources/QuoteLineGroup.d.ts +5 -0
- package/types/resources/QuotedCharge.d.ts +3 -0
- package/types/resources/Ramp.d.ts +4 -1
- package/types/resources/RecordedPurchase.d.ts +3 -0
- package/types/resources/Subscription.d.ts +58 -7
- package/types/resources/WebhookEvent.d.ts +33 -0
|
@@ -882,6 +882,7 @@ declare module 'chargebee' {
|
|
|
882
882
|
override_relationship?: filter.Boolean;
|
|
883
883
|
business_entity_id?: filter.String;
|
|
884
884
|
channel?: filter.Enum;
|
|
885
|
+
decommissioned?: filter.Boolean;
|
|
885
886
|
'sort_by[asc]'?: string;
|
|
886
887
|
'sort_by[desc]'?: string;
|
|
887
888
|
[key: `cf_${string}`]: unknown;
|
|
@@ -1268,6 +1269,7 @@ declare module 'chargebee' {
|
|
|
1268
1269
|
refundable_credits_handling?: RefundableCreditsHandlingEnum;
|
|
1269
1270
|
contract_term_cancel_option?: ContractTermCancelOptionEnum;
|
|
1270
1271
|
invoice_date?: number;
|
|
1272
|
+
include_cancellation_day_in_billing?: boolean;
|
|
1271
1273
|
cancel_reason_code?: string;
|
|
1272
1274
|
decommissioned?: boolean;
|
|
1273
1275
|
subscription_items?: SubscriptionItemsCancelForItemsInputParam[];
|
|
@@ -1431,7 +1433,14 @@ declare module 'chargebee' {
|
|
|
1431
1433
|
| 'alipay_hk'
|
|
1432
1434
|
| 'paypay'
|
|
1433
1435
|
| 'gcash'
|
|
1434
|
-
| 'south_korean_cards'
|
|
1436
|
+
| 'south_korean_cards'
|
|
1437
|
+
| 'paynow'
|
|
1438
|
+
| 'bizum'
|
|
1439
|
+
| 'promptpay'
|
|
1440
|
+
| 'dana'
|
|
1441
|
+
| 'touch_n_go'
|
|
1442
|
+
| 'tamara'
|
|
1443
|
+
| 'qpay';
|
|
1435
1444
|
reference_id?: string;
|
|
1436
1445
|
/**
|
|
1437
1446
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1583,7 +1592,14 @@ declare module 'chargebee' {
|
|
|
1583
1592
|
| 'alipay_hk'
|
|
1584
1593
|
| 'paypay'
|
|
1585
1594
|
| 'gcash'
|
|
1586
|
-
| 'south_korean_cards'
|
|
1595
|
+
| 'south_korean_cards'
|
|
1596
|
+
| 'paynow'
|
|
1597
|
+
| 'bizum'
|
|
1598
|
+
| 'promptpay'
|
|
1599
|
+
| 'dana'
|
|
1600
|
+
| 'touch_n_go'
|
|
1601
|
+
| 'tamara'
|
|
1602
|
+
| 'qpay';
|
|
1587
1603
|
reference_id?: string;
|
|
1588
1604
|
/**
|
|
1589
1605
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1702,7 +1718,14 @@ declare module 'chargebee' {
|
|
|
1702
1718
|
| 'alipay_hk'
|
|
1703
1719
|
| 'paypay'
|
|
1704
1720
|
| 'gcash'
|
|
1705
|
-
| 'south_korean_cards'
|
|
1721
|
+
| 'south_korean_cards'
|
|
1722
|
+
| 'paynow'
|
|
1723
|
+
| 'bizum'
|
|
1724
|
+
| 'promptpay'
|
|
1725
|
+
| 'dana'
|
|
1726
|
+
| 'touch_n_go'
|
|
1727
|
+
| 'tamara'
|
|
1728
|
+
| 'qpay';
|
|
1706
1729
|
reference_id?: string;
|
|
1707
1730
|
/**
|
|
1708
1731
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1876,7 +1899,14 @@ declare module 'chargebee' {
|
|
|
1876
1899
|
| 'alipay_hk'
|
|
1877
1900
|
| 'paypay'
|
|
1878
1901
|
| 'gcash'
|
|
1879
|
-
| 'south_korean_cards'
|
|
1902
|
+
| 'south_korean_cards'
|
|
1903
|
+
| 'paynow'
|
|
1904
|
+
| 'bizum'
|
|
1905
|
+
| 'promptpay'
|
|
1906
|
+
| 'dana'
|
|
1907
|
+
| 'touch_n_go'
|
|
1908
|
+
| 'tamara'
|
|
1909
|
+
| 'qpay';
|
|
1880
1910
|
reference_id?: string;
|
|
1881
1911
|
/**
|
|
1882
1912
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -2064,7 +2094,14 @@ declare module 'chargebee' {
|
|
|
2064
2094
|
| 'alipay_hk'
|
|
2065
2095
|
| 'paypay'
|
|
2066
2096
|
| 'gcash'
|
|
2067
|
-
| 'south_korean_cards'
|
|
2097
|
+
| 'south_korean_cards'
|
|
2098
|
+
| 'paynow'
|
|
2099
|
+
| 'bizum'
|
|
2100
|
+
| 'promptpay'
|
|
2101
|
+
| 'dana'
|
|
2102
|
+
| 'touch_n_go'
|
|
2103
|
+
| 'tamara'
|
|
2104
|
+
| 'qpay';
|
|
2068
2105
|
reference_id?: string;
|
|
2069
2106
|
/**
|
|
2070
2107
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -2208,7 +2245,14 @@ declare module 'chargebee' {
|
|
|
2208
2245
|
| 'alipay_hk'
|
|
2209
2246
|
| 'paypay'
|
|
2210
2247
|
| 'gcash'
|
|
2211
|
-
| 'south_korean_cards'
|
|
2248
|
+
| 'south_korean_cards'
|
|
2249
|
+
| 'paynow'
|
|
2250
|
+
| 'bizum'
|
|
2251
|
+
| 'promptpay'
|
|
2252
|
+
| 'dana'
|
|
2253
|
+
| 'touch_n_go'
|
|
2254
|
+
| 'tamara'
|
|
2255
|
+
| 'qpay';
|
|
2212
2256
|
reference_id?: string;
|
|
2213
2257
|
/**
|
|
2214
2258
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -2658,7 +2702,14 @@ declare module 'chargebee' {
|
|
|
2658
2702
|
| 'alipay_hk'
|
|
2659
2703
|
| 'paypay'
|
|
2660
2704
|
| 'gcash'
|
|
2661
|
-
| 'south_korean_cards'
|
|
2705
|
+
| 'south_korean_cards'
|
|
2706
|
+
| 'paynow'
|
|
2707
|
+
| 'bizum'
|
|
2708
|
+
| 'promptpay'
|
|
2709
|
+
| 'dana'
|
|
2710
|
+
| 'touch_n_go'
|
|
2711
|
+
| 'tamara'
|
|
2712
|
+
| 'qpay';
|
|
2662
2713
|
reference_id?: string;
|
|
2663
2714
|
/**
|
|
2664
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',
|
|
@@ -183,8 +185,10 @@ declare module 'chargebee' {
|
|
|
183
185
|
OmnichannelSubscriptionItemGracePeriodStarted = 'omnichannel_subscription_item_grace_period_started',
|
|
184
186
|
CardExpiryReminder = 'card_expiry_reminder',
|
|
185
187
|
TokenCreated = 'token_created',
|
|
188
|
+
PaymentSourceBusinessEntityChanged = 'payment_source_business_entity_changed',
|
|
186
189
|
PromotionalCreditsAdded = 'promotional_credits_added',
|
|
187
190
|
SubscriptionRampUpdated = 'subscription_ramp_updated',
|
|
191
|
+
LedgerAccountBalanceUpdated = 'ledger_account_balance_updated',
|
|
188
192
|
CustomerEntitlementsUpdated = 'customer_entitlements_updated',
|
|
189
193
|
PaymentSourceExpired = 'payment_source_expired',
|
|
190
194
|
CustomerMovedOut = 'customer_moved_out',
|
|
@@ -215,6 +219,7 @@ declare module 'chargebee' {
|
|
|
215
219
|
AttachedItemUpdated = 'attached_item_updated',
|
|
216
220
|
PaymentSourceUpdated = 'payment_source_updated',
|
|
217
221
|
BusinessEntityDeleted = 'business_entity_deleted',
|
|
222
|
+
GrantBlocksUpdated = 'grant_blocks_updated',
|
|
218
223
|
AuthorizationVoided = 'authorization_voided',
|
|
219
224
|
SubscriptionRampDeleted = 'subscription_ramp_deleted',
|
|
220
225
|
PlanDeleted = 'plan_deleted',
|
|
@@ -238,6 +243,7 @@ declare module 'chargebee' {
|
|
|
238
243
|
[WebhookEventType.TaxWithheldDeleted]: TaxWithheldDeletedContent;
|
|
239
244
|
[WebhookEventType.UnbilledChargesDeleted]: UnbilledChargesDeletedContent;
|
|
240
245
|
[WebhookEventType.CouponUpdated]: CouponUpdatedContent;
|
|
246
|
+
[WebhookEventType.GrantBlocksCreated]: GrantBlocksCreatedContent;
|
|
241
247
|
[WebhookEventType.OmnichannelSubscriptionItemReactivated]: OmnichannelSubscriptionItemReactivatedContent;
|
|
242
248
|
[WebhookEventType.OmnichannelSubscriptionItemRenewed]: OmnichannelSubscriptionItemRenewedContent;
|
|
243
249
|
[WebhookEventType.UnbilledChargesCreated]: UnbilledChargesCreatedContent;
|
|
@@ -379,6 +385,7 @@ declare module 'chargebee' {
|
|
|
379
385
|
[WebhookEventType.SubscriptionDeleted]: SubscriptionDeletedContent;
|
|
380
386
|
[WebhookEventType.PaymentSourceAdded]: PaymentSourceAddedContent;
|
|
381
387
|
[WebhookEventType.SubscriptionMovedIn]: SubscriptionMovedInContent;
|
|
388
|
+
[WebhookEventType.LedgerUpdated]: LedgerUpdatedContent;
|
|
382
389
|
[WebhookEventType.ItemPriceCreated]: ItemPriceCreatedContent;
|
|
383
390
|
[WebhookEventType.SubscriptionScheduledCancellationRemoved]: SubscriptionScheduledCancellationRemovedContent;
|
|
384
391
|
[WebhookEventType.PaymentRefunded]: PaymentRefundedContent;
|
|
@@ -410,8 +417,10 @@ declare module 'chargebee' {
|
|
|
410
417
|
[WebhookEventType.OmnichannelSubscriptionItemGracePeriodStarted]: OmnichannelSubscriptionItemGracePeriodStartedContent;
|
|
411
418
|
[WebhookEventType.CardExpiryReminder]: CardExpiryReminderContent;
|
|
412
419
|
[WebhookEventType.TokenCreated]: TokenCreatedContent;
|
|
420
|
+
[WebhookEventType.PaymentSourceBusinessEntityChanged]: PaymentSourceBusinessEntityChangedContent;
|
|
413
421
|
[WebhookEventType.PromotionalCreditsAdded]: PromotionalCreditsAddedContent;
|
|
414
422
|
[WebhookEventType.SubscriptionRampUpdated]: SubscriptionRampUpdatedContent;
|
|
423
|
+
[WebhookEventType.LedgerAccountBalanceUpdated]: LedgerAccountBalanceUpdatedContent;
|
|
415
424
|
[WebhookEventType.CustomerEntitlementsUpdated]: CustomerEntitlementsUpdatedContent;
|
|
416
425
|
[WebhookEventType.PaymentSourceExpired]: PaymentSourceExpiredContent;
|
|
417
426
|
[WebhookEventType.CustomerMovedOut]: CustomerMovedOutContent;
|
|
@@ -442,6 +451,7 @@ declare module 'chargebee' {
|
|
|
442
451
|
[WebhookEventType.AttachedItemUpdated]: AttachedItemUpdatedContent;
|
|
443
452
|
[WebhookEventType.PaymentSourceUpdated]: PaymentSourceUpdatedContent;
|
|
444
453
|
[WebhookEventType.BusinessEntityDeleted]: BusinessEntityDeletedContent;
|
|
454
|
+
[WebhookEventType.GrantBlocksUpdated]: GrantBlocksUpdatedContent;
|
|
445
455
|
[WebhookEventType.AuthorizationVoided]: AuthorizationVoidedContent;
|
|
446
456
|
[WebhookEventType.SubscriptionRampDeleted]: SubscriptionRampDeletedContent;
|
|
447
457
|
[WebhookEventType.PlanDeleted]: PlanDeletedContent;
|
|
@@ -512,6 +522,9 @@ declare module 'chargebee' {
|
|
|
512
522
|
export type CouponUpdatedContent = {
|
|
513
523
|
coupon: Coupon;
|
|
514
524
|
};
|
|
525
|
+
export type GrantBlocksCreatedContent = {
|
|
526
|
+
grant_block: GrantBlock[];
|
|
527
|
+
};
|
|
515
528
|
export type OmnichannelSubscriptionItemReactivatedContent = {
|
|
516
529
|
omnichannel_subscription: OmnichannelSubscription;
|
|
517
530
|
|
|
@@ -1315,6 +1328,15 @@ declare module 'chargebee' {
|
|
|
1315
1328
|
export type SubscriptionMovedInContent = {
|
|
1316
1329
|
subscription: Subscription;
|
|
1317
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
|
+
};
|
|
1318
1340
|
export type ItemPriceCreatedContent = {
|
|
1319
1341
|
item_price: ItemPrice;
|
|
1320
1342
|
};
|
|
@@ -1504,6 +1526,11 @@ declare module 'chargebee' {
|
|
|
1504
1526
|
export type TokenCreatedContent = {
|
|
1505
1527
|
token: Token;
|
|
1506
1528
|
};
|
|
1529
|
+
export type PaymentSourceBusinessEntityChangedContent = {
|
|
1530
|
+
business_entity_transfer: BusinessEntityTransfer;
|
|
1531
|
+
|
|
1532
|
+
payment_source: PaymentSource;
|
|
1533
|
+
};
|
|
1507
1534
|
export type PromotionalCreditsAddedContent = {
|
|
1508
1535
|
customer: Customer;
|
|
1509
1536
|
|
|
@@ -1512,6 +1539,9 @@ declare module 'chargebee' {
|
|
|
1512
1539
|
export type SubscriptionRampUpdatedContent = {
|
|
1513
1540
|
ramp: Ramp;
|
|
1514
1541
|
};
|
|
1542
|
+
export type LedgerAccountBalanceUpdatedContent = {
|
|
1543
|
+
ledger_account_balance: LedgerAccountBalance;
|
|
1544
|
+
};
|
|
1515
1545
|
export type CustomerEntitlementsUpdatedContent = {
|
|
1516
1546
|
impacted_customer: ImpactedCustomer;
|
|
1517
1547
|
};
|
|
@@ -1652,6 +1682,9 @@ declare module 'chargebee' {
|
|
|
1652
1682
|
export type BusinessEntityDeletedContent = {
|
|
1653
1683
|
business_entity: BusinessEntity;
|
|
1654
1684
|
};
|
|
1685
|
+
export type GrantBlocksUpdatedContent = {
|
|
1686
|
+
grant_block: GrantBlock[];
|
|
1687
|
+
};
|
|
1655
1688
|
export type AuthorizationVoidedContent = {
|
|
1656
1689
|
transaction: Transaction;
|
|
1657
1690
|
};
|