chargebee 3.22.1 → 3.23.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 CHANGED
@@ -1,3 +1,57 @@
1
+ ### v3.23.0 (2026-03-27)
2
+ * * *
3
+ ### New Resources:
4
+ - [`Alert`](https://apidocs.chargebee.com/docs/api/alerts) has been added.
5
+ - [`AlertStatus`](https://apidocs.chargebee.com/docs/api/alert_statuses) has been added.
6
+ - [`CpqQuoteSignature`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures) has been added.
7
+
8
+
9
+ ### New Actions:
10
+ - [`update_a_quote_signature_status`](https://apidocs.chargebee.com/docs/api/quotes/update-a-quote-signature-status) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
11
+ - [`update_a_quote_signature`](https://apidocs.chargebee.com/docs/api/quotes/update-a-quote-signature) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
12
+ - [`retrieve_a_quote_signature_signed_pdf`](https://apidocs.chargebee.com/docs/api/quotes/retrieve-a-quote-signature-signed-pdf) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
13
+ - [`retrieve_a_quote_signature`](https://apidocs.chargebee.com/docs/api/quotes/retrieve-a-quote-signature) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
14
+ - [`create_a_quote_signature`](https://apidocs.chargebee.com/docs/api/quotes/create-a-quote-signature) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
15
+ - [`refresh_a_quote_signature_link`](https://apidocs.chargebee.com/docs/api/quotes/refresh-a-quote-signature-link) has been added to [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
16
+
17
+
18
+ ### New Attributes:
19
+ - [`reference_id`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#reference_id) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices).
20
+ - [`provider_references`](https://apidocs.chargebee.com/docs/api/einvoices/einvoice-object#provider_references) has been added to [`Einvoice`](https://apidocs.chargebee.com/docs/api/einvoices).
21
+ - [`created_at`](https://apidocs.chargebee.com/docs/api/unbilled_charges/unbilled-charge-object#created_at) has been added to [`UnbilledCharge`](https://apidocs.chargebee.com/docs/api/unbilled_charges).
22
+
23
+
24
+ ### New Parameters:
25
+ - [`include_usage_charges`](https://apidocs.chargebee.com/docs/api/estimates/upcoming-invoices-estimate#include_usage_charges) has been added as query parameter to [`upcoming_invoices_estimate`](https://apidocs.chargebee.com/docs/api/estimates/upcoming-invoices-estimate) in [`Estimate`](https://apidocs.chargebee.com/docs/api/estimates).
26
+ - [`business_entity_id`](https://apidocs.chargebee.com/docs/api/hosted_pages/manage-payment-sources#business_entity_id) has been added as request body parameter to [`manage_payment_sources`](https://apidocs.chargebee.com/docs/api/hosted_pages/manage-payment-sources) in [`HostedPage`](https://apidocs.chargebee.com/docs/api/hosted_pages).
27
+ - [`cpq_quote_signature`](https://apidocs.chargebee.com/docs/api/quotes/update-a-quote-signature-status#cpq_quote_signature) has been added as request body parameter to [`update_a_quote_signature_status`](https://apidocs.chargebee.com/docs/api/quotes/update-a-quote-signature-status) in [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
28
+ - [`gateway_account_id`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts/create-a-virtual-bank-account#gateway_account_id) has been added as request body parameter to [`create_a_virtual_bank_account`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts/create-a-virtual-bank-account) in [`VirtualBankAccount`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts).
29
+ - [`gateway_account_id`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts/create-a-virtual-bank-account-using-permanent-token#gateway_account_id) has been added as request body parameter to [`create_a_virtual_bank_account_using_permanent_token`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts/create-a-virtual-bank-account-using-permanent-token) in [`VirtualBankAccount`](https://apidocs.chargebee.com/docs/api/virtual_bank_accounts).
30
+
31
+
32
+ ### New Events:
33
+ - [`alert_status_changed`](https://apidocs.chargebee.com/docs/api/events/webhook/alert_status_changed) has been added.
34
+
35
+
36
+ ### New Enums:
37
+ - `alert_status` has been added as a new value enum `EntityType`.
38
+ - `alert_status_changed` has been added as a new value enum `EventType`.
39
+ - `pix` has been added as a new value enum `PaymentMethod`.
40
+ - `pix` has been added as a new value enum `PaymentMethodType`.
41
+ - `pix` and `usage_exceeded` have been added as new values enum `Type`.
42
+ - `enabled` and `disabled` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/alerts/alert-object#status) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
43
+ - `global` and `subscription` have been added as new values to enum attribute [`scope`](https://apidocs.chargebee.com/docs/api/alerts/alert-object#scope) in [`Alert`](https://apidocs.chargebee.com/docs/api/alerts).
44
+ - `draft`, `active`, `signed`, `expired`, `cancelled`, and `declined` have been added as new values to enum attribute [`status`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures/cpq-quote-signature-object#status) in [`CpqQuoteSignature`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures).
45
+ - `esign_and_pay`, `esign`, and `pay` have been added as new values to enum attribute [`customer_acceptance_method`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures/cpq-quote-signature-object#customer_acceptance_method) in [`CpqQuoteSignature`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures).
46
+ - `consolidated` and `detailed` have been added as new values to enum attribute [`quote_type`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures/cpq-quote-signature-object#quote_type) in [`CpqQuoteSignature`](https://apidocs.chargebee.com/docs/api/cpq_quote_signatures).
47
+ - `pix` has been added as a new value to enum attribute [`payment_method_type`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#payment_method_type) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
48
+ - `pix` has been added as a new value to enum attribute [`active_payment_attempt.payment_method_type`](https://apidocs.chargebee.com/docs/api/payment_intents/payment-intent-object#active_payment_attempt_payment_method_type) in [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
49
+ - `pix` has been added as a new value to enum request body parameter `payment_method_type` in [`update_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/update-a-payment-intent) of [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
50
+ - `pix` has been added as a new value to enum request body parameter `payment_method_type` in [`create_a_payment_intent`](https://apidocs.chargebee.com/docs/api/payment_intents/create-a-payment-intent) of [`PaymentIntent`](https://apidocs.chargebee.com/docs/api/payment_intents).
51
+ - `expired`, `declined`, `draft`, `active`, `signed`, and `cancelled` have been added as new values to enum request body parameter `cpq_quote_signature.status` in [`update_a_quote_signature_status`](https://apidocs.chargebee.com/docs/api/quotes/update-a-quote-signature-status) of [`Quote`](https://apidocs.chargebee.com/docs/api/quotes).
52
+
53
+
54
+
1
55
  ### v3.22.1 (2026-03-09)
2
56
  * * *
3
57
  ### Bug Fixes:
@@ -11,7 +11,7 @@ exports.Environment = {
11
11
  hostSuffix: '.chargebee.com',
12
12
  apiPath: '/api/v2',
13
13
  timeout: DEFAULT_TIME_OUT,
14
- clientVersion: 'v3.22.1',
14
+ clientVersion: 'v3.23.0',
15
15
  port: DEFAULT_PORT,
16
16
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
17
17
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
@@ -2949,6 +2949,82 @@ exports.Endpoints = {
2949
2949
  isIdempotent: true,
2950
2950
  },
2951
2951
  ],
2952
+ [
2953
+ 'retrieveSignature',
2954
+ 'GET',
2955
+ '/quotes',
2956
+ '/retrieve_signature',
2957
+ true,
2958
+ null,
2959
+ false,
2960
+ {},
2961
+ {},
2962
+ ],
2963
+ [
2964
+ 'retrieveSignedPdf',
2965
+ 'POST',
2966
+ '/quotes',
2967
+ '/retrieve_signed_pdf',
2968
+ true,
2969
+ null,
2970
+ false,
2971
+ {},
2972
+ {
2973
+ isIdempotent: true,
2974
+ },
2975
+ ],
2976
+ [
2977
+ 'createSignature',
2978
+ 'POST',
2979
+ '/quotes',
2980
+ '/create_signature',
2981
+ true,
2982
+ null,
2983
+ false,
2984
+ {},
2985
+ {
2986
+ isIdempotent: true,
2987
+ },
2988
+ ],
2989
+ [
2990
+ 'updateSignature',
2991
+ 'POST',
2992
+ '/quotes',
2993
+ '/update_signature',
2994
+ true,
2995
+ null,
2996
+ false,
2997
+ {},
2998
+ {
2999
+ isIdempotent: true,
3000
+ },
3001
+ ],
3002
+ [
3003
+ 'updateSignatureStatus',
3004
+ 'POST',
3005
+ '/quotes',
3006
+ '/update_signature_status',
3007
+ true,
3008
+ null,
3009
+ false,
3010
+ {},
3011
+ {
3012
+ isIdempotent: true,
3013
+ },
3014
+ ],
3015
+ [
3016
+ 'refreshSignatureLink',
3017
+ 'POST',
3018
+ '/quotes',
3019
+ '/refresh_signature_link',
3020
+ true,
3021
+ null,
3022
+ false,
3023
+ {},
3024
+ {
3025
+ isIdempotent: true,
3026
+ },
3027
+ ],
2952
3028
  ],
2953
3029
  quotedSubscription: [],
2954
3030
  quotedCharge: [],
@@ -2956,6 +3032,7 @@ exports.Endpoints = {
2956
3032
  quotedDeltaRamp: [],
2957
3033
  billingConfiguration: [],
2958
3034
  quoteLineGroup: [],
3035
+ cpqQuoteSignature: [],
2959
3036
  plan: [
2960
3037
  [
2961
3038
  'create',
@@ -4898,6 +4975,8 @@ exports.Endpoints = {
4898
4975
  {},
4899
4976
  ],
4900
4977
  ],
4978
+ alert: [],
4979
+ alertStatus: [],
4901
4980
  impactedCustomer: [],
4902
4981
  subscriptionEntitlementsUpdatedDetail: [],
4903
4982
  subscriptionEntitlementsCreatedDetail: [],
@@ -11,6 +11,7 @@ var WebhookEventType;
11
11
  WebhookEventType["AddonCreated"] = "addon_created";
12
12
  WebhookEventType["AddonDeleted"] = "addon_deleted";
13
13
  WebhookEventType["AddonUpdated"] = "addon_updated";
14
+ WebhookEventType["AlertStatusChanged"] = "alert_status_changed";
14
15
  WebhookEventType["AttachedItemCreated"] = "attached_item_created";
15
16
  WebhookEventType["AttachedItemDeleted"] = "attached_item_deleted";
16
17
  WebhookEventType["AttachedItemUpdated"] = "attached_item_updated";
@@ -8,7 +8,7 @@ export const Environment = {
8
8
  hostSuffix: '.chargebee.com',
9
9
  apiPath: '/api/v2',
10
10
  timeout: DEFAULT_TIME_OUT,
11
- clientVersion: 'v3.22.1',
11
+ clientVersion: 'v3.23.0',
12
12
  port: DEFAULT_PORT,
13
13
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
14
14
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
@@ -2946,6 +2946,82 @@ export const Endpoints = {
2946
2946
  isIdempotent: true,
2947
2947
  },
2948
2948
  ],
2949
+ [
2950
+ 'retrieveSignature',
2951
+ 'GET',
2952
+ '/quotes',
2953
+ '/retrieve_signature',
2954
+ true,
2955
+ null,
2956
+ false,
2957
+ {},
2958
+ {},
2959
+ ],
2960
+ [
2961
+ 'retrieveSignedPdf',
2962
+ 'POST',
2963
+ '/quotes',
2964
+ '/retrieve_signed_pdf',
2965
+ true,
2966
+ null,
2967
+ false,
2968
+ {},
2969
+ {
2970
+ isIdempotent: true,
2971
+ },
2972
+ ],
2973
+ [
2974
+ 'createSignature',
2975
+ 'POST',
2976
+ '/quotes',
2977
+ '/create_signature',
2978
+ true,
2979
+ null,
2980
+ false,
2981
+ {},
2982
+ {
2983
+ isIdempotent: true,
2984
+ },
2985
+ ],
2986
+ [
2987
+ 'updateSignature',
2988
+ 'POST',
2989
+ '/quotes',
2990
+ '/update_signature',
2991
+ true,
2992
+ null,
2993
+ false,
2994
+ {},
2995
+ {
2996
+ isIdempotent: true,
2997
+ },
2998
+ ],
2999
+ [
3000
+ 'updateSignatureStatus',
3001
+ 'POST',
3002
+ '/quotes',
3003
+ '/update_signature_status',
3004
+ true,
3005
+ null,
3006
+ false,
3007
+ {},
3008
+ {
3009
+ isIdempotent: true,
3010
+ },
3011
+ ],
3012
+ [
3013
+ 'refreshSignatureLink',
3014
+ 'POST',
3015
+ '/quotes',
3016
+ '/refresh_signature_link',
3017
+ true,
3018
+ null,
3019
+ false,
3020
+ {},
3021
+ {
3022
+ isIdempotent: true,
3023
+ },
3024
+ ],
2949
3025
  ],
2950
3026
  quotedSubscription: [],
2951
3027
  quotedCharge: [],
@@ -2953,6 +3029,7 @@ export const Endpoints = {
2953
3029
  quotedDeltaRamp: [],
2954
3030
  billingConfiguration: [],
2955
3031
  quoteLineGroup: [],
3032
+ cpqQuoteSignature: [],
2956
3033
  plan: [
2957
3034
  [
2958
3035
  'create',
@@ -4895,6 +4972,8 @@ export const Endpoints = {
4895
4972
  {},
4896
4973
  ],
4897
4974
  ],
4975
+ alert: [],
4976
+ alertStatus: [],
4898
4977
  impactedCustomer: [],
4899
4978
  subscriptionEntitlementsUpdatedDetail: [],
4900
4979
  subscriptionEntitlementsCreatedDetail: [],
@@ -8,6 +8,7 @@ export var WebhookEventType;
8
8
  WebhookEventType["AddonCreated"] = "addon_created";
9
9
  WebhookEventType["AddonDeleted"] = "addon_deleted";
10
10
  WebhookEventType["AddonUpdated"] = "addon_updated";
11
+ WebhookEventType["AlertStatusChanged"] = "alert_status_changed";
11
12
  WebhookEventType["AttachedItemCreated"] = "attached_item_created";
12
13
  WebhookEventType["AttachedItemDeleted"] = "attached_item_deleted";
13
14
  WebhookEventType["AttachedItemUpdated"] = "attached_item_updated";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chargebee",
3
- "version": "3.22.1",
3
+ "version": "3.23.0",
4
4
  "description": "A library for integrating with Chargebee.",
5
5
  "scripts": {
6
6
  "prepack": "npm install && npm run build",
package/types/core.d.ts CHANGED
@@ -152,6 +152,7 @@ declare module 'chargebee' {
152
152
  | 'usage_file'
153
153
  | 'business_rule'
154
154
  | 'ruleset'
155
+ | 'alert_status'
155
156
  | 'charge';
156
157
  type EventNameEnum = 'cancellation_page_loaded';
157
158
  type EventTypeEnum =
@@ -365,6 +366,7 @@ declare module 'chargebee' {
365
366
  | 'omnichannel_subscription_item_pause_scheduled'
366
367
  | 'omnichannel_subscription_moved_in'
367
368
  | 'omnichannel_transaction_created'
369
+ | 'alert_status_changed'
368
370
  | 'plan_created'
369
371
  | 'plan_updated'
370
372
  | 'plan_deleted'
@@ -516,7 +518,8 @@ declare module 'chargebee' {
516
518
  | 'kakao_pay'
517
519
  | 'naver_pay'
518
520
  | 'revolut_pay'
519
- | 'cash_app_pay';
521
+ | 'cash_app_pay'
522
+ | 'pix';
520
523
  type PaymentMethodSavePolicyEnum = 'always' | 'ask' | 'never';
521
524
  type PaymentMethodTypeEnum =
522
525
  | 'card'
@@ -552,7 +555,8 @@ declare module 'chargebee' {
552
555
  | 'kakao_pay'
553
556
  | 'naver_pay'
554
557
  | 'revolut_pay'
555
- | 'cash_app_pay';
558
+ | 'cash_app_pay'
559
+ | 'pix';
556
560
  type PaymentVoucherTypeEnum = 'boleto';
557
561
  type PeriodUnitEnum = 'day' | 'week' | 'month' | 'year';
558
562
  type PriceTypeEnum = 'tax_exclusive' | 'tax_inclusive';
@@ -655,9 +659,11 @@ declare module 'chargebee' {
655
659
  | 'naver_pay'
656
660
  | 'revolut_pay'
657
661
  | 'cash_app_pay'
662
+ | 'pix'
658
663
  | 'free_trial'
659
664
  | 'pay_up_front'
660
- | 'pay_as_you_go';
665
+ | 'pay_as_you_go'
666
+ | 'usage_exceeded';
661
667
  type UnbilledChargesHandlingEnum = 'no_action' | 'invoice';
662
668
  type UnbilledChargesOptionEnum = 'invoice' | 'delete';
663
669
  type UnpaidInvoicesHandlingEnum = 'no_action' | 'schedule_payment_collection';
@@ -672,4 +678,223 @@ declare module 'chargebee' {
672
678
  type VoucherTypeEnum = 'boleto';
673
679
  type WindowSizeEnum = 'month' | 'week' | 'day' | 'hour' | 'minute';
674
680
  type ChargeOnEnum = 'immediately' | 'on_event';
681
+ type AlertStatusEnum = AlertStatusEnum;
682
+ type EnabledEventsEnum =
683
+ | 'coupon_created'
684
+ | 'coupon_updated'
685
+ | 'coupon_deleted'
686
+ | 'coupon_set_created'
687
+ | 'coupon_set_updated'
688
+ | 'coupon_set_deleted'
689
+ | 'coupon_codes_added'
690
+ | 'coupon_codes_deleted'
691
+ | 'coupon_codes_updated'
692
+ | 'customer_created'
693
+ | 'customer_changed'
694
+ | 'customer_deleted'
695
+ | 'customer_moved_out'
696
+ | 'customer_moved_in'
697
+ | 'promotional_credits_added'
698
+ | 'promotional_credits_deducted'
699
+ | 'subscription_created'
700
+ | 'subscription_created_with_backdating'
701
+ | 'subscription_started'
702
+ | 'subscription_trial_end_reminder'
703
+ | 'subscription_activated'
704
+ | 'subscription_activated_with_backdating'
705
+ | 'subscription_changed'
706
+ | 'subscription_trial_extended'
707
+ | 'mrr_updated'
708
+ | 'subscription_changed_with_backdating'
709
+ | 'subscription_cancellation_scheduled'
710
+ | 'subscription_cancellation_reminder'
711
+ | 'subscription_cancelled'
712
+ | 'subscription_canceled_with_backdating'
713
+ | 'subscription_reactivated'
714
+ | 'subscription_reactivated_with_backdating'
715
+ | 'subscription_renewed'
716
+ | 'subscription_items_renewed'
717
+ | 'subscription_scheduled_cancellation_removed'
718
+ | 'subscription_changes_scheduled'
719
+ | 'subscription_scheduled_changes_removed'
720
+ | 'subscription_shipping_address_updated'
721
+ | 'subscription_deleted'
722
+ | 'subscription_paused'
723
+ | 'subscription_pause_scheduled'
724
+ | 'subscription_scheduled_pause_removed'
725
+ | 'subscription_resumed'
726
+ | 'subscription_resumption_scheduled'
727
+ | 'subscription_scheduled_resumption_removed'
728
+ | 'subscription_advance_invoice_schedule_added'
729
+ | 'subscription_advance_invoice_schedule_updated'
730
+ | 'subscription_advance_invoice_schedule_removed'
731
+ | 'pending_invoice_created'
732
+ | 'pending_invoice_updated'
733
+ | 'invoice_generated'
734
+ | 'invoice_generated_with_backdating'
735
+ | 'invoice_updated'
736
+ | 'invoice_deleted'
737
+ | 'credit_note_created'
738
+ | 'credit_note_created_with_backdating'
739
+ | 'credit_note_updated'
740
+ | 'credit_note_deleted'
741
+ | 'payment_schedules_created'
742
+ | 'payment_schedules_updated'
743
+ | 'payment_schedule_scheme_created'
744
+ | 'payment_schedule_scheme_deleted'
745
+ | 'subscription_renewal_reminder'
746
+ | 'add_usages_reminder'
747
+ | 'payment_due_reminder'
748
+ | 'transaction_created'
749
+ | 'transaction_updated'
750
+ | 'transaction_deleted'
751
+ | 'payment_succeeded'
752
+ | 'payment_failed'
753
+ | 'dunning_updated'
754
+ | 'payment_refunded'
755
+ | 'payment_initiated'
756
+ | 'refund_initiated'
757
+ | 'authorization_succeeded'
758
+ | 'authorization_voided'
759
+ | 'card_added'
760
+ | 'card_updated'
761
+ | 'card_expiry_reminder'
762
+ | 'card_expired'
763
+ | 'card_deleted'
764
+ | 'payment_source_added'
765
+ | 'payment_source_updated'
766
+ | 'payment_source_deleted'
767
+ | 'payment_source_expiring'
768
+ | 'payment_source_expired'
769
+ | 'payment_source_locally_deleted'
770
+ | 'virtual_bank_account_added'
771
+ | 'virtual_bank_account_updated'
772
+ | 'virtual_bank_account_deleted'
773
+ | 'token_created'
774
+ | 'token_consumed'
775
+ | 'token_expired'
776
+ | 'unbilled_charges_created'
777
+ | 'unbilled_charges_voided'
778
+ | 'unbilled_charges_deleted'
779
+ | 'unbilled_charges_invoiced'
780
+ | 'order_created'
781
+ | 'order_updated'
782
+ | 'order_cancelled'
783
+ | 'order_delivered'
784
+ | 'order_returned'
785
+ | 'order_ready_to_process'
786
+ | 'order_ready_to_ship'
787
+ | 'order_deleted'
788
+ | 'order_resent'
789
+ | 'quote_created'
790
+ | 'quote_updated'
791
+ | 'quote_deleted'
792
+ | 'tax_withheld_recorded'
793
+ | 'tax_withheld_deleted'
794
+ | 'tax_withheld_refunded'
795
+ | 'gift_scheduled'
796
+ | 'gift_unclaimed'
797
+ | 'gift_claimed'
798
+ | 'gift_expired'
799
+ | 'gift_cancelled'
800
+ | 'gift_updated'
801
+ | 'hierarchy_created'
802
+ | 'hierarchy_deleted'
803
+ | 'payment_intent_created'
804
+ | 'payment_intent_updated'
805
+ | 'contract_term_created'
806
+ | 'contract_term_renewed'
807
+ | 'contract_term_terminated'
808
+ | 'contract_term_completed'
809
+ | 'contract_term_cancelled'
810
+ | 'item_family_created'
811
+ | 'item_family_updated'
812
+ | 'item_family_deleted'
813
+ | 'item_created'
814
+ | 'item_updated'
815
+ | 'item_deleted'
816
+ | 'item_price_created'
817
+ | 'item_price_updated'
818
+ | 'item_price_deleted'
819
+ | 'attached_item_created'
820
+ | 'attached_item_updated'
821
+ | 'attached_item_deleted'
822
+ | 'differential_price_created'
823
+ | 'differential_price_updated'
824
+ | 'differential_price_deleted'
825
+ | 'feature_created'
826
+ | 'feature_updated'
827
+ | 'feature_deleted'
828
+ | 'feature_activated'
829
+ | 'feature_reactivated'
830
+ | 'feature_archived'
831
+ | 'item_entitlements_updated'
832
+ | 'entitlement_overrides_updated'
833
+ | 'entitlement_overrides_removed'
834
+ | 'item_entitlements_removed'
835
+ | 'entitlement_overrides_auto_removed'
836
+ | 'subscription_entitlements_created'
837
+ | 'subscription_entitlements_updated'
838
+ | 'business_entity_created'
839
+ | 'business_entity_updated'
840
+ | 'business_entity_deleted'
841
+ | 'customer_business_entity_changed'
842
+ | 'subscription_business_entity_changed'
843
+ | 'purchase_created'
844
+ | 'voucher_created'
845
+ | 'voucher_expired'
846
+ | 'voucher_create_failed'
847
+ | 'item_price_entitlements_updated'
848
+ | 'item_price_entitlements_removed'
849
+ | 'subscription_ramp_created'
850
+ | 'subscription_ramp_deleted'
851
+ | 'subscription_ramp_applied'
852
+ | 'subscription_ramp_drafted'
853
+ | 'subscription_ramp_updated'
854
+ | 'price_variant_created'
855
+ | 'price_variant_updated'
856
+ | 'price_variant_deleted'
857
+ | 'customer_entitlements_updated'
858
+ | 'subscription_moved_in'
859
+ | 'subscription_moved_out'
860
+ | 'subscription_movement_failed'
861
+ | 'omnichannel_subscription_created'
862
+ | 'omnichannel_subscription_item_renewed'
863
+ | 'omnichannel_subscription_item_downgraded'
864
+ | 'omnichannel_subscription_item_expired'
865
+ | 'omnichannel_subscription_item_cancellation_scheduled'
866
+ | 'omnichannel_subscription_item_scheduled_cancellation_removed'
867
+ | 'omnichannel_subscription_item_resubscribed'
868
+ | 'omnichannel_subscription_item_upgraded'
869
+ | 'omnichannel_subscription_item_cancelled'
870
+ | 'omnichannel_subscription_imported'
871
+ | 'omnichannel_subscription_item_grace_period_started'
872
+ | 'omnichannel_subscription_item_grace_period_expired'
873
+ | 'omnichannel_subscription_item_dunning_started'
874
+ | 'omnichannel_subscription_item_dunning_expired'
875
+ | 'rule_created'
876
+ | 'rule_updated'
877
+ | 'rule_deleted'
878
+ | 'record_purchase_failed'
879
+ | 'omnichannel_subscription_item_change_scheduled'
880
+ | 'omnichannel_subscription_item_scheduled_change_removed'
881
+ | 'omnichannel_subscription_item_reactivated'
882
+ | 'sales_order_created'
883
+ | 'sales_order_updated'
884
+ | 'omnichannel_subscription_item_changed'
885
+ | 'omnichannel_subscription_item_paused'
886
+ | 'omnichannel_subscription_item_resumed'
887
+ | 'omnichannel_one_time_order_created'
888
+ | 'omnichannel_one_time_order_item_cancelled'
889
+ | 'usage_file_ingested'
890
+ | 'omnichannel_subscription_item_pause_scheduled'
891
+ | 'omnichannel_subscription_moved_in'
892
+ | 'omnichannel_transaction_created'
893
+ | 'alert_status_changed'
894
+ | 'plan_created'
895
+ | 'plan_updated'
896
+ | 'plan_deleted'
897
+ | 'addon_created'
898
+ | 'addon_updated'
899
+ | 'addon_deleted'[];
675
900
  }
package/types/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  ///<reference path='./resources/Addon.d.ts' />
2
2
  ///<reference path='./resources/Address.d.ts' />
3
3
  ///<reference path='./resources/AdvanceInvoiceSchedule.d.ts' />
4
+ ///<reference path='./resources/Alert.d.ts' />
5
+ ///<reference path='./resources/AlertStatus.d.ts' />
4
6
  ///<reference path='./resources/AttachedItem.d.ts' />
5
7
  ///<reference path='./resources/Attribute.d.ts' />
6
8
  ///<reference path='./resources/BillingConfiguration.d.ts' />
@@ -15,6 +17,7 @@
15
17
  ///<reference path='./resources/Coupon.d.ts' />
16
18
  ///<reference path='./resources/CouponCode.d.ts' />
17
19
  ///<reference path='./resources/CouponSet.d.ts' />
20
+ ///<reference path='./resources/CpqQuoteSignature.d.ts' />
18
21
  ///<reference path='./resources/CreditNote.d.ts' />
19
22
  ///<reference path='./resources/CreditNoteEstimate.d.ts' />
20
23
  ///<reference path='./resources/Currency.d.ts' />
@@ -0,0 +1,19 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+
4
+ declare module 'chargebee' {
5
+ export interface Alert {
6
+ id: string;
7
+ type?: TypeEnum;
8
+ name: string;
9
+ description?: string;
10
+ metered_feature_id: string;
11
+ subscription_id?: string;
12
+ status?: 'enabled' | 'disabled';
13
+ alarm_triggered_at?: number;
14
+ scope?: 'global' | 'subscription';
15
+ meta?: string;
16
+ created_at: number;
17
+ updated_at: number;
18
+ }
19
+ }
@@ -0,0 +1,11 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+
4
+ declare module 'chargebee' {
5
+ export interface AlertStatus {
6
+ alert_id: string;
7
+ subscription_id: string;
8
+ alert_status: AlertStatusEnum;
9
+ alarm_triggered_at?: number;
10
+ }
11
+ }
@@ -6,6 +6,8 @@ declare module 'chargebee' {
6
6
  addon: Addon;
7
7
  address: Address;
8
8
  advance_invoice_schedule: AdvanceInvoiceSchedule;
9
+ alert: Alert;
10
+ alert_status: AlertStatus;
9
11
  attached_item: AttachedItem;
10
12
  attribute: Attribute;
11
13
  billing_configuration: BillingConfiguration;
@@ -20,6 +22,7 @@ declare module 'chargebee' {
20
22
  coupon: Coupon;
21
23
  coupon_code: CouponCode;
22
24
  coupon_set: CouponSet;
25
+ cpq_quote_signature: CpqQuoteSignature;
23
26
  credit_note: CreditNote;
24
27
  credit_note_estimate: CreditNoteEstimate;
25
28
  currency: Currency;
@@ -0,0 +1,25 @@
1
+ ///<reference path='./../core.d.ts'/>
2
+ ///<reference path='./../index.d.ts'/>
3
+
4
+ declare module 'chargebee' {
5
+ export interface CpqQuoteSignature {
6
+ id: string;
7
+ status:
8
+ | 'draft'
9
+ | 'active'
10
+ | 'signed'
11
+ | 'expired'
12
+ | 'cancelled'
13
+ | 'declined';
14
+ name?: string;
15
+ document_name?: string;
16
+ customer_acceptance_method: 'esign_and_pay' | 'esign' | 'pay';
17
+ quote_type: 'consolidated' | 'detailed';
18
+ expires_at?: number;
19
+ timezone?: string;
20
+ provider_request_id?: string;
21
+ provider_document_id?: string;
22
+ created_at: number;
23
+ modified_at: number;
24
+ }
25
+ }
@@ -421,6 +421,7 @@ declare module 'chargebee' {
421
421
  }
422
422
  export interface Einvoice {
423
423
  id: string;
424
+ reference_id?: string;
424
425
  reference_number?: string;
425
426
  status:
426
427
  | 'scheduled'
@@ -437,6 +438,7 @@ declare module 'chargebee' {
437
438
  | 'conditionally_accepted'
438
439
  | 'paid';
439
440
  message?: string;
441
+ provider_references?: any[];
440
442
  }
441
443
  export interface SiteDetailsAtCreation {
442
444
  timezone?: string;
@@ -761,7 +761,8 @@ declare module 'chargebee' {
761
761
  | 'revolut_pay'
762
762
  | 'cash_app_pay'
763
763
  | 'wechat_pay'
764
- | 'alipay';
764
+ | 'alipay'
765
+ | 'pix';
765
766
  reference_id?: string;
766
767
  /**
767
768
  * @deprecated Please refer API docs to use other attributes
@@ -945,7 +946,8 @@ declare module 'chargebee' {
945
946
  | 'revolut_pay'
946
947
  | 'cash_app_pay'
947
948
  | 'wechat_pay'
948
- | 'alipay';
949
+ | 'alipay'
950
+ | 'pix';
949
951
  /**
950
952
  * @deprecated Please refer API docs to use other attributes
951
953
  */
@@ -4,6 +4,7 @@
4
4
  declare module 'chargebee' {
5
5
  export interface Einvoice {
6
6
  id: string;
7
+ reference_id?: string;
7
8
  reference_number?: string;
8
9
  status:
9
10
  | 'scheduled'
@@ -20,5 +21,6 @@ declare module 'chargebee' {
20
21
  | 'conditionally_accepted'
21
22
  | 'paid';
22
23
  message?: string;
24
+ provider_references?: any;
23
25
  }
24
26
  }
@@ -68,6 +68,7 @@ declare module 'chargebee' {
68
68
 
69
69
  upcomingInvoicesEstimate(
70
70
  customer_id: string,
71
+ input?: UpcomingInvoicesEstimateInputParam,
71
72
  headers?: ChargebeeRequestHeader,
72
73
  ): Promise<ChargebeeResponse<UpcomingInvoicesEstimateResponse>>;
73
74
 
@@ -355,6 +356,9 @@ declare module 'chargebee' {
355
356
  prorate?: boolean;
356
357
  invoice_immediately?: boolean;
357
358
  }
359
+ export interface UpcomingInvoicesEstimateInputParam {
360
+ include_usage_charges?: boolean;
361
+ }
358
362
  export interface ChangeTermEndInputParam {
359
363
  term_ends_at: number;
360
364
  prorate?: boolean;
@@ -1053,7 +1057,8 @@ declare module 'chargebee' {
1053
1057
  | 'revolut_pay'
1054
1058
  | 'cash_app_pay'
1055
1059
  | 'wechat_pay'
1056
- | 'alipay';
1060
+ | 'alipay'
1061
+ | 'pix';
1057
1062
  reference_id?: string;
1058
1063
  /**
1059
1064
  * @deprecated Please refer API docs to use other attributes
@@ -1142,7 +1147,8 @@ declare module 'chargebee' {
1142
1147
  | 'revolut_pay'
1143
1148
  | 'cash_app_pay'
1144
1149
  | 'wechat_pay'
1145
- | 'alipay';
1150
+ | 'alipay'
1151
+ | 'pix';
1146
1152
  reference_id?: string;
1147
1153
  /**
1148
1154
  * @deprecated Please refer API docs to use other attributes
@@ -69,6 +69,7 @@ declare module 'chargebee' {
69
69
  ItemFamilyUpdatedContent &
70
70
  OrderCreatedContent &
71
71
  PriceVariantDeletedContent &
72
+ AlertStatusChangedContent &
72
73
  SubscriptionMovementFailedContent &
73
74
  CustomerMovedInContent &
74
75
  SubscriptionAdvanceInvoiceScheduleUpdatedContent &
@@ -214,7 +214,8 @@ declare module 'chargebee' {
214
214
  | 'revolut_pay'
215
215
  | 'cash_app_pay'
216
216
  | 'wechat_pay'
217
- | 'alipay';
217
+ | 'alipay'
218
+ | 'pix';
218
219
  reference_id?: string;
219
220
  /**
220
221
  * @deprecated Please refer API docs to use other attributes
@@ -297,7 +298,8 @@ declare module 'chargebee' {
297
298
  | 'revolut_pay'
298
299
  | 'cash_app_pay'
299
300
  | 'wechat_pay'
300
- | 'alipay';
301
+ | 'alipay'
302
+ | 'pix';
301
303
  reference_id?: string;
302
304
  /**
303
305
  * @deprecated Please refer API docs to use other attributes
@@ -407,6 +407,7 @@ declare module 'chargebee' {
407
407
  card?: CardUpdatePaymentMethodInputParam;
408
408
  }
409
409
  export interface ManagePaymentSourcesInputParam {
410
+ business_entity_id?: string;
410
411
  redirect_url?: string;
411
412
  customer?: CustomerManagePaymentSourcesInputParam;
412
413
  card?: CardManagePaymentSourcesInputParam;
@@ -837,6 +837,7 @@ declare module 'chargebee' {
837
837
  }
838
838
  export interface Einvoice {
839
839
  id: string;
840
+ reference_id?: string;
840
841
  reference_number?: string;
841
842
  status:
842
843
  | 'scheduled'
@@ -853,6 +854,7 @@ declare module 'chargebee' {
853
854
  | 'conditionally_accepted'
854
855
  | 'paid';
855
856
  message?: string;
857
+ provider_references?: any[];
856
858
  }
857
859
  export interface SiteDetailsAtCreation {
858
860
  timezone?: string;
@@ -1279,7 +1281,8 @@ declare module 'chargebee' {
1279
1281
  | 'revolut_pay'
1280
1282
  | 'cash_app_pay'
1281
1283
  | 'wechat_pay'
1282
- | 'alipay';
1284
+ | 'alipay'
1285
+ | 'pix';
1283
1286
  reference_id?: string;
1284
1287
  /**
1285
1288
  * @deprecated Please refer API docs to use other attributes
@@ -1437,7 +1440,8 @@ declare module 'chargebee' {
1437
1440
  | 'revolut_pay'
1438
1441
  | 'cash_app_pay'
1439
1442
  | 'wechat_pay'
1440
- | 'alipay';
1443
+ | 'alipay'
1444
+ | 'pix';
1441
1445
  reference_id?: string;
1442
1446
  /**
1443
1447
  * @deprecated Please refer API docs to use other attributes
@@ -42,7 +42,8 @@ declare module 'chargebee' {
42
42
  | 'revolut_pay'
43
43
  | 'cash_app_pay'
44
44
  | 'wechat_pay'
45
- | 'alipay';
45
+ | 'alipay'
46
+ | 'pix';
46
47
  success_url?: string;
47
48
  failure_url?: string;
48
49
  created_at: number;
@@ -129,7 +130,8 @@ declare module 'chargebee' {
129
130
  | 'revolut_pay'
130
131
  | 'cash_app_pay'
131
132
  | 'wechat_pay'
132
- | 'alipay';
133
+ | 'alipay'
134
+ | 'pix';
133
135
  id_at_gateway?: string;
134
136
  error_code?: string;
135
137
  error_text?: string;
@@ -180,7 +182,8 @@ declare module 'chargebee' {
180
182
  | 'revolut_pay'
181
183
  | 'cash_app_pay'
182
184
  | 'wechat_pay'
183
- | 'alipay';
185
+ | 'alipay'
186
+ | 'pix';
184
187
  id_at_gateway?: string;
185
188
  error_code?: string;
186
189
  error_text?: string;
@@ -231,7 +234,8 @@ declare module 'chargebee' {
231
234
  | 'revolut_pay'
232
235
  | 'cash_app_pay'
233
236
  | 'wechat_pay'
234
- | 'alipay';
237
+ | 'alipay'
238
+ | 'pix';
235
239
  success_url?: string;
236
240
  failure_url?: string;
237
241
  }
@@ -271,7 +275,8 @@ declare module 'chargebee' {
271
275
  | 'revolut_pay'
272
276
  | 'cash_app_pay'
273
277
  | 'wechat_pay'
274
- | 'alipay';
278
+ | 'alipay'
279
+ | 'pix';
275
280
  success_url?: string;
276
281
  failure_url?: string;
277
282
  }
@@ -464,7 +464,8 @@ declare module 'chargebee' {
464
464
  | 'revolut_pay'
465
465
  | 'cash_app_pay'
466
466
  | 'wechat_pay'
467
- | 'alipay';
467
+ | 'alipay'
468
+ | 'pix';
468
469
  reference_id?: string;
469
470
  /**
470
471
  * @deprecated Please refer API docs to use other attributes
@@ -109,7 +109,8 @@ declare module 'chargebee' {
109
109
  | 'revolut_pay'
110
110
  | 'cash_app_pay'
111
111
  | 'wechat_pay'
112
- | 'alipay';
112
+ | 'alipay'
113
+ | 'pix';
113
114
  reference_id?: string;
114
115
  /**
115
116
  * @deprecated Please refer API docs to use other attributes
@@ -178,6 +178,61 @@ declare module 'chargebee' {
178
178
  input?: PdfInputParam,
179
179
  headers?: ChargebeeRequestHeader,
180
180
  ): Promise<ChargebeeResponse<PdfResponse>>;
181
+
182
+ /**
183
+ * @deprecated This method is deprecated and will be removed in a future version.
184
+ */
185
+
186
+ retrieveSignature(
187
+ quote_id: string,
188
+ headers?: ChargebeeRequestHeader,
189
+ ): Promise<ChargebeeResponse<RetrieveSignatureResponse>>;
190
+
191
+ /**
192
+ * @deprecated This method is deprecated and will be removed in a future version.
193
+ */
194
+
195
+ retrieveSignedPdf(
196
+ quote_id: string,
197
+ headers?: ChargebeeRequestHeader,
198
+ ): Promise<ChargebeeResponse<RetrieveSignedPdfResponse>>;
199
+
200
+ /**
201
+ * @deprecated This method is deprecated and will be removed in a future version.
202
+ */
203
+
204
+ createSignature(
205
+ quote_id: string,
206
+ headers?: ChargebeeRequestHeader,
207
+ ): Promise<ChargebeeResponse<CreateSignatureResponse>>;
208
+
209
+ /**
210
+ * @deprecated This method is deprecated and will be removed in a future version.
211
+ */
212
+
213
+ updateSignature(
214
+ quote_id: string,
215
+ headers?: ChargebeeRequestHeader,
216
+ ): Promise<ChargebeeResponse<UpdateSignatureResponse>>;
217
+
218
+ /**
219
+ * @deprecated This method is deprecated and will be removed in a future version.
220
+ */
221
+
222
+ updateSignatureStatus(
223
+ quote_id: string,
224
+ input?: UpdateSignatureStatusInputParam,
225
+ headers?: ChargebeeRequestHeader,
226
+ ): Promise<ChargebeeResponse<UpdateSignatureStatusResponse>>;
227
+
228
+ /**
229
+ * @deprecated This method is deprecated and will be removed in a future version.
230
+ */
231
+
232
+ refreshSignatureLink(
233
+ quote_id: string,
234
+ headers?: ChargebeeRequestHeader,
235
+ ): Promise<ChargebeeResponse<RefreshSignatureLinkResponse>>;
181
236
  }
182
237
 
183
238
  export interface RetrieveResponse {
@@ -302,6 +357,30 @@ declare module 'chargebee' {
302
357
  download: Download;
303
358
  }
304
359
 
360
+ export interface RetrieveSignatureResponse {
361
+ cpq_quote_signature: CpqQuoteSignature;
362
+ }
363
+
364
+ export interface RetrieveSignedPdfResponse {
365
+ download: Download;
366
+ }
367
+
368
+ export interface CreateSignatureResponse {
369
+ cpq_quote_signature: CpqQuoteSignature;
370
+ }
371
+
372
+ export interface UpdateSignatureResponse {
373
+ cpq_quote_signature: CpqQuoteSignature;
374
+ }
375
+
376
+ export interface UpdateSignatureStatusResponse {
377
+ cpq_quote_signature: CpqQuoteSignature;
378
+ }
379
+
380
+ export interface RefreshSignatureLinkResponse {
381
+ cpq_quote_signature: CpqQuoteSignature;
382
+ }
383
+
305
384
  export interface LineItem {
306
385
  id?: string;
307
386
  subscription_id?: string;
@@ -726,6 +805,9 @@ declare module 'chargebee' {
726
805
  consolidated_view?: boolean;
727
806
  disposition_type?: DispositionTypeEnum;
728
807
  }
808
+ export interface UpdateSignatureStatusInputParam {
809
+ cpq_quote_signature?: CpqQuoteSignatureUpdateSignatureStatusInputParam;
810
+ }
729
811
  export interface ShippingAddressCreateSubForCustomerQuoteInputParam {
730
812
  first_name?: string;
731
813
  last_name?: string;
@@ -1646,5 +1728,15 @@ declare module 'chargebee' {
1646
1728
  po_number?: string;
1647
1729
  auto_close_invoices?: boolean;
1648
1730
  }
1731
+
1732
+ export interface CpqQuoteSignatureUpdateSignatureStatusInputParam {
1733
+ status?:
1734
+ | 'draft'
1735
+ | 'active'
1736
+ | 'signed'
1737
+ | 'expired'
1738
+ | 'cancelled'
1739
+ | 'declined';
1740
+ }
1649
1741
  }
1650
1742
  }
@@ -1418,7 +1418,8 @@ declare module 'chargebee' {
1418
1418
  | 'revolut_pay'
1419
1419
  | 'cash_app_pay'
1420
1420
  | 'wechat_pay'
1421
- | 'alipay';
1421
+ | 'alipay'
1422
+ | 'pix';
1422
1423
  reference_id?: string;
1423
1424
  /**
1424
1425
  * @deprecated Please refer API docs to use other attributes
@@ -1557,7 +1558,8 @@ declare module 'chargebee' {
1557
1558
  | 'revolut_pay'
1558
1559
  | 'cash_app_pay'
1559
1560
  | 'wechat_pay'
1560
- | 'alipay';
1561
+ | 'alipay'
1562
+ | 'pix';
1561
1563
  reference_id?: string;
1562
1564
  /**
1563
1565
  * @deprecated Please refer API docs to use other attributes
@@ -1663,7 +1665,8 @@ declare module 'chargebee' {
1663
1665
  | 'revolut_pay'
1664
1666
  | 'cash_app_pay'
1665
1667
  | 'wechat_pay'
1666
- | 'alipay';
1668
+ | 'alipay'
1669
+ | 'pix';
1667
1670
  reference_id?: string;
1668
1671
  /**
1669
1672
  * @deprecated Please refer API docs to use other attributes
@@ -1824,7 +1827,8 @@ declare module 'chargebee' {
1824
1827
  | 'revolut_pay'
1825
1828
  | 'cash_app_pay'
1826
1829
  | 'wechat_pay'
1827
- | 'alipay';
1830
+ | 'alipay'
1831
+ | 'pix';
1828
1832
  reference_id?: string;
1829
1833
  /**
1830
1834
  * @deprecated Please refer API docs to use other attributes
@@ -1999,7 +2003,8 @@ declare module 'chargebee' {
1999
2003
  | 'revolut_pay'
2000
2004
  | 'cash_app_pay'
2001
2005
  | 'wechat_pay'
2002
- | 'alipay';
2006
+ | 'alipay'
2007
+ | 'pix';
2003
2008
  reference_id?: string;
2004
2009
  /**
2005
2010
  * @deprecated Please refer API docs to use other attributes
@@ -2130,7 +2135,8 @@ declare module 'chargebee' {
2130
2135
  | 'revolut_pay'
2131
2136
  | 'cash_app_pay'
2132
2137
  | 'wechat_pay'
2133
- | 'alipay';
2138
+ | 'alipay'
2139
+ | 'pix';
2134
2140
  reference_id?: string;
2135
2141
  /**
2136
2142
  * @deprecated Please refer API docs to use other attributes
@@ -2567,7 +2573,8 @@ declare module 'chargebee' {
2567
2573
  | 'revolut_pay'
2568
2574
  | 'cash_app_pay'
2569
2575
  | 'wechat_pay'
2570
- | 'alipay';
2576
+ | 'alipay'
2577
+ | 'pix';
2571
2578
  reference_id?: string;
2572
2579
  /**
2573
2580
  * @deprecated Please refer API docs to use other attributes
@@ -29,6 +29,7 @@ declare module 'chargebee' {
29
29
  unit_amount_in_decimal?: string;
30
30
  quantity_in_decimal?: string;
31
31
  amount_in_decimal?: string;
32
+ created_at?: number;
32
33
  updated_at: number;
33
34
  tiers?: UnbilledCharge.Tier[];
34
35
  is_advance_charge?: boolean;
@@ -17,10 +17,6 @@ declare module 'chargebee' {
17
17
 
18
18
  export namespace UsageCharge {
19
19
  export class UsageChargeResource {
20
- /**
21
- * @deprecated This method is deprecated and will be removed in a future version.
22
- */
23
-
24
20
  retrieveUsageChargesForSubscription(
25
21
  subscription_id: string,
26
22
  input?: RetrieveUsageChargesForSubscriptionInputParam,
@@ -12,10 +12,6 @@ declare module 'chargebee' {
12
12
 
13
13
  export namespace UsageSummary {
14
14
  export class UsageSummaryResource {
15
- /**
16
- * @deprecated This method is deprecated and will be removed in a future version.
17
- */
18
-
19
15
  retrieveUsageSummaryForSubscription(
20
16
  subscription_id: string,
21
17
  input: RetrieveUsageSummaryForSubscriptionInputParam,
@@ -53,6 +53,7 @@ declare module 'chargebee' {
53
53
  ItemFamilyUpdated = 'item_family_updated',
54
54
  OrderCreated = 'order_created',
55
55
  PriceVariantDeleted = 'price_variant_deleted',
56
+ AlertStatusChanged = 'alert_status_changed',
56
57
  SubscriptionMovementFailed = 'subscription_movement_failed',
57
58
  CustomerMovedIn = 'customer_moved_in',
58
59
  SubscriptionAdvanceInvoiceScheduleUpdated = 'subscription_advance_invoice_schedule_updated',
@@ -277,6 +278,7 @@ declare module 'chargebee' {
277
278
  [WebhookEventType.ItemFamilyUpdated]: ItemFamilyUpdatedContent;
278
279
  [WebhookEventType.OrderCreated]: OrderCreatedContent;
279
280
  [WebhookEventType.PriceVariantDeleted]: PriceVariantDeletedContent;
281
+ [WebhookEventType.AlertStatusChanged]: AlertStatusChangedContent;
280
282
  [WebhookEventType.SubscriptionMovementFailed]: SubscriptionMovementFailedContent;
281
283
  [WebhookEventType.CustomerMovedIn]: CustomerMovedInContent;
282
284
  [WebhookEventType.SubscriptionAdvanceInvoiceScheduleUpdated]: SubscriptionAdvanceInvoiceScheduleUpdatedContent;
@@ -754,6 +756,11 @@ declare module 'chargebee' {
754
756
 
755
757
  attribute: Attribute;
756
758
  };
759
+ export type AlertStatusChangedContent = {
760
+ alert: Alert;
761
+
762
+ alert_status: AlertStatus;
763
+ };
757
764
  export type SubscriptionMovementFailedContent = {
758
765
  subscription: Subscription;
759
766
  };