chargebee 3.30.0 → 3.31.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 +74 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +84 -2
- package/cjs/resources/webhook/eventType.js +4 -0
- package/cjs/schema/coupon.schema.js +1 -1
- package/cjs/schema/credit_note.schema.js +7 -2
- package/cjs/schema/credit_unit.schema.js +2 -2
- package/cjs/schema/entitlement.schema.js +4 -4
- package/cjs/schema/entitlement_override.schema.js +1 -1
- package/cjs/schema/estimate.schema.js +2 -2
- package/cjs/schema/event.schema.js +16 -0
- package/cjs/schema/export.schema.js +35 -3
- package/cjs/schema/hosted_page.schema.js +1 -0
- package/cjs/schema/index.js +1 -0
- package/cjs/schema/invoice.schema.js +11 -4
- package/cjs/schema/ledger_operation.schema.js +2 -2
- package/cjs/schema/meter.schema.js +1 -1
- package/cjs/schema/omnichannel_subscription.schema.js +6 -2
- package/cjs/schema/payment_intent.schema.js +4 -0
- package/cjs/schema/payment_source.schema.js +9 -2
- package/cjs/schema/pricing_page_session.schema.js +1 -1
- package/cjs/schema/quote.schema.js +60 -0
- package/cjs/schema/quote_entitlement.schema.js +25 -0
- package/cjs/schema/ramp.schema.js +2 -2
- package/cjs/schema/subscription.schema.js +2 -2
- package/cjs/schema/webhook_endpoint.schema.js +8 -0
- package/cjs/util.js +12 -2
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +84 -2
- package/esm/resources/webhook/eventType.js +4 -0
- package/esm/schema/coupon.schema.js +1 -1
- package/esm/schema/credit_note.schema.js +6 -1
- package/esm/schema/credit_unit.schema.js +2 -2
- package/esm/schema/entitlement.schema.js +4 -4
- package/esm/schema/entitlement_override.schema.js +1 -1
- package/esm/schema/estimate.schema.js +2 -2
- package/esm/schema/event.schema.js +16 -0
- package/esm/schema/export.schema.js +34 -2
- package/esm/schema/hosted_page.schema.js +1 -0
- package/esm/schema/index.js +1 -0
- package/esm/schema/invoice.schema.js +10 -3
- package/esm/schema/ledger_operation.schema.js +2 -2
- package/esm/schema/meter.schema.js +1 -1
- package/esm/schema/omnichannel_subscription.schema.js +6 -2
- package/esm/schema/payment_intent.schema.js +4 -0
- package/esm/schema/payment_source.schema.js +8 -1
- package/esm/schema/pricing_page_session.schema.js +1 -1
- package/esm/schema/quote.schema.js +60 -0
- package/esm/schema/quote_entitlement.schema.js +22 -0
- package/esm/schema/ramp.schema.js +2 -2
- package/esm/schema/subscription.schema.js +2 -2
- package/esm/schema/webhook_endpoint.schema.js +8 -0
- package/esm/util.js +12 -2
- package/package.json +2 -2
- package/types/core.d.ts +78 -3
- package/types/index.d.ts +6 -0
- package/types/resources/Content.d.ts +4 -0
- package/types/resources/CreditNote.d.ts +14 -0
- package/types/resources/Event.d.ts +4 -0
- package/types/resources/Export.d.ts +20 -0
- package/types/resources/GatewayPaymentMethodToken.d.ts +15 -0
- package/types/resources/HostedPage.d.ts +1 -0
- package/types/resources/Invoice.d.ts +17 -1
- package/types/resources/OmnichannelSubscriptionItemMetric.d.ts +18 -0
- package/types/resources/PaymentIntent.d.ts +14 -11
- package/types/resources/PaymentSource.d.ts +17 -0
- package/types/resources/PricingPageSession.d.ts +1 -1
- package/types/resources/Quote.d.ts +45 -0
- package/types/resources/QuoteEntitlement.d.ts +49 -0
- package/types/resources/QuotedRamp.d.ts +1 -0
- package/types/resources/VaultedPaymentMethod.d.ts +28 -0
- package/types/resources/WebhookEvent.d.ts +24 -0
|
@@ -61,11 +61,13 @@ declare module 'chargebee' {
|
|
|
61
61
|
SubscriptionAdvanceInvoiceScheduleUpdated = 'subscription_advance_invoice_schedule_updated',
|
|
62
62
|
ItemDeleted = 'item_deleted',
|
|
63
63
|
SubscriptionRampDrafted = 'subscription_ramp_drafted',
|
|
64
|
+
VaultTokenUpdated = 'vault_token_updated',
|
|
64
65
|
DunningUpdated = 'dunning_updated',
|
|
65
66
|
OmnichannelSubscriptionItemRecovered = 'omnichannel_subscription_item_recovered',
|
|
66
67
|
ItemEntitlementsUpdated = 'item_entitlements_updated',
|
|
67
68
|
TokenConsumed = 'token_consumed',
|
|
68
69
|
HierarchyDeleted = 'hierarchy_deleted',
|
|
70
|
+
VaultTokenDeleted = 'vault_token_deleted',
|
|
69
71
|
SubscriptionCancellationScheduled = 'subscription_cancellation_scheduled',
|
|
70
72
|
SubscriptionRenewed = 'subscription_renewed',
|
|
71
73
|
FeatureUpdated = 'feature_updated',
|
|
@@ -110,6 +112,7 @@ declare module 'chargebee' {
|
|
|
110
112
|
CardUpdated = 'card_updated',
|
|
111
113
|
CustomerCreated = 'customer_created',
|
|
112
114
|
SubscriptionRenewalReminder = 'subscription_renewal_reminder',
|
|
115
|
+
OmnichannelSubscriptionItemMrrUpdated = 'omnichannel_subscription_item_mrr_updated',
|
|
113
116
|
PaymentDueReminder = 'payment_due_reminder',
|
|
114
117
|
OrderDelivered = 'order_delivered',
|
|
115
118
|
OmnichannelSubscriptionItemCancellationScheduled = 'omnichannel_subscription_item_cancellation_scheduled',
|
|
@@ -189,6 +192,7 @@ declare module 'chargebee' {
|
|
|
189
192
|
PromotionalCreditsAdded = 'promotional_credits_added',
|
|
190
193
|
SubscriptionRampUpdated = 'subscription_ramp_updated',
|
|
191
194
|
LedgerAccountBalanceUpdated = 'ledger_account_balance_updated',
|
|
195
|
+
VaultTokenCreated = 'vault_token_created',
|
|
192
196
|
CustomerEntitlementsUpdated = 'customer_entitlements_updated',
|
|
193
197
|
PaymentSourceExpired = 'payment_source_expired',
|
|
194
198
|
CustomerMovedOut = 'customer_moved_out',
|
|
@@ -293,11 +297,13 @@ declare module 'chargebee' {
|
|
|
293
297
|
[WebhookEventType.SubscriptionAdvanceInvoiceScheduleUpdated]: SubscriptionAdvanceInvoiceScheduleUpdatedContent;
|
|
294
298
|
[WebhookEventType.ItemDeleted]: ItemDeletedContent;
|
|
295
299
|
[WebhookEventType.SubscriptionRampDrafted]: SubscriptionRampDraftedContent;
|
|
300
|
+
[WebhookEventType.VaultTokenUpdated]: VaultTokenUpdatedContent;
|
|
296
301
|
[WebhookEventType.DunningUpdated]: DunningUpdatedContent;
|
|
297
302
|
[WebhookEventType.OmnichannelSubscriptionItemRecovered]: OmnichannelSubscriptionItemRecoveredContent;
|
|
298
303
|
[WebhookEventType.ItemEntitlementsUpdated]: ItemEntitlementsUpdatedContent;
|
|
299
304
|
[WebhookEventType.TokenConsumed]: TokenConsumedContent;
|
|
300
305
|
[WebhookEventType.HierarchyDeleted]: HierarchyDeletedContent;
|
|
306
|
+
[WebhookEventType.VaultTokenDeleted]: VaultTokenDeletedContent;
|
|
301
307
|
[WebhookEventType.SubscriptionCancellationScheduled]: SubscriptionCancellationScheduledContent;
|
|
302
308
|
[WebhookEventType.SubscriptionRenewed]: SubscriptionRenewedContent;
|
|
303
309
|
[WebhookEventType.FeatureUpdated]: FeatureUpdatedContent;
|
|
@@ -342,6 +348,7 @@ declare module 'chargebee' {
|
|
|
342
348
|
[WebhookEventType.CardUpdated]: CardUpdatedContent;
|
|
343
349
|
[WebhookEventType.CustomerCreated]: CustomerCreatedContent;
|
|
344
350
|
[WebhookEventType.SubscriptionRenewalReminder]: SubscriptionRenewalReminderContent;
|
|
351
|
+
[WebhookEventType.OmnichannelSubscriptionItemMrrUpdated]: OmnichannelSubscriptionItemMrrUpdatedContent;
|
|
345
352
|
[WebhookEventType.PaymentDueReminder]: PaymentDueReminderContent;
|
|
346
353
|
[WebhookEventType.OrderDelivered]: OrderDeliveredContent;
|
|
347
354
|
[WebhookEventType.OmnichannelSubscriptionItemCancellationScheduled]: OmnichannelSubscriptionItemCancellationScheduledContent;
|
|
@@ -421,6 +428,7 @@ declare module 'chargebee' {
|
|
|
421
428
|
[WebhookEventType.PromotionalCreditsAdded]: PromotionalCreditsAddedContent;
|
|
422
429
|
[WebhookEventType.SubscriptionRampUpdated]: SubscriptionRampUpdatedContent;
|
|
423
430
|
[WebhookEventType.LedgerAccountBalanceUpdated]: LedgerAccountBalanceUpdatedContent;
|
|
431
|
+
[WebhookEventType.VaultTokenCreated]: VaultTokenCreatedContent;
|
|
424
432
|
[WebhookEventType.CustomerEntitlementsUpdated]: CustomerEntitlementsUpdatedContent;
|
|
425
433
|
[WebhookEventType.PaymentSourceExpired]: PaymentSourceExpiredContent;
|
|
426
434
|
[WebhookEventType.CustomerMovedOut]: CustomerMovedOutContent;
|
|
@@ -806,6 +814,9 @@ declare module 'chargebee' {
|
|
|
806
814
|
export type SubscriptionRampDraftedContent = {
|
|
807
815
|
ramp: Ramp;
|
|
808
816
|
};
|
|
817
|
+
export type VaultTokenUpdatedContent = {
|
|
818
|
+
vaulted_payment_method: VaultedPaymentMethod;
|
|
819
|
+
};
|
|
809
820
|
export type DunningUpdatedContent = {
|
|
810
821
|
invoice: Invoice;
|
|
811
822
|
};
|
|
@@ -833,6 +844,9 @@ declare module 'chargebee' {
|
|
|
833
844
|
export type HierarchyDeletedContent = {
|
|
834
845
|
customer: Customer;
|
|
835
846
|
};
|
|
847
|
+
export type VaultTokenDeletedContent = {
|
|
848
|
+
vaulted_payment_method: VaultedPaymentMethod;
|
|
849
|
+
};
|
|
836
850
|
export type SubscriptionCancellationScheduledContent = {
|
|
837
851
|
subscription: Subscription;
|
|
838
852
|
|
|
@@ -1089,6 +1103,13 @@ declare module 'chargebee' {
|
|
|
1089
1103
|
|
|
1090
1104
|
advance_invoice_schedule: AdvanceInvoiceSchedule;
|
|
1091
1105
|
};
|
|
1106
|
+
export type OmnichannelSubscriptionItemMrrUpdatedContent = {
|
|
1107
|
+
omnichannel_subscription_item: OmnichannelSubscriptionItem;
|
|
1108
|
+
|
|
1109
|
+
omnichannel_subscription: OmnichannelSubscription;
|
|
1110
|
+
|
|
1111
|
+
omnichannel_subscription_item_metric: OmnichannelSubscriptionItemMetric;
|
|
1112
|
+
};
|
|
1092
1113
|
export type PaymentDueReminderContent = {
|
|
1093
1114
|
customer: Customer;
|
|
1094
1115
|
|
|
@@ -1542,6 +1563,9 @@ declare module 'chargebee' {
|
|
|
1542
1563
|
export type LedgerAccountBalanceUpdatedContent = {
|
|
1543
1564
|
ledger_account_balance: LedgerAccountBalance;
|
|
1544
1565
|
};
|
|
1566
|
+
export type VaultTokenCreatedContent = {
|
|
1567
|
+
vaulted_payment_method: VaultedPaymentMethod;
|
|
1568
|
+
};
|
|
1545
1569
|
export type CustomerEntitlementsUpdatedContent = {
|
|
1546
1570
|
impacted_customer: ImpactedCustomer;
|
|
1547
1571
|
};
|