chargebee 3.0.0-beta.4 → 3.0.0-beta.5

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 (47) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/util.js +1 -1
  4. package/esm/environment.js +1 -1
  5. package/esm/util.js +1 -1
  6. package/package.json +1 -1
  7. package/types/core.d.ts +88 -78
  8. package/types/resources/Address.d.ts +2 -2
  9. package/types/resources/AdvanceInvoiceSchedule.d.ts +1 -1
  10. package/types/resources/AttachedItem.d.ts +4 -4
  11. package/types/resources/Card.d.ts +3 -3
  12. package/types/resources/Comment.d.ts +2 -2
  13. package/types/resources/Coupon.d.ts +5 -5
  14. package/types/resources/CreditNote.d.ts +7 -7
  15. package/types/resources/CreditNoteEstimate.d.ts +1 -1
  16. package/types/resources/Customer.d.ts +46 -46
  17. package/types/resources/Discount.d.ts +3 -3
  18. package/types/resources/Entitlement.d.ts +1 -1
  19. package/types/resources/EntitlementOverride.d.ts +1 -1
  20. package/types/resources/Estimate.d.ts +100 -100
  21. package/types/resources/Event.d.ts +3 -3
  22. package/types/resources/Export.d.ts +4 -4
  23. package/types/resources/Gift.d.ts +2 -2
  24. package/types/resources/HostedPage.d.ts +64 -64
  25. package/types/resources/Invoice.d.ts +44 -44
  26. package/types/resources/InvoiceEstimate.d.ts +1 -1
  27. package/types/resources/Item.d.ts +5 -5
  28. package/types/resources/ItemEntitlement.d.ts +2 -2
  29. package/types/resources/ItemFamily.d.ts +1 -1
  30. package/types/resources/ItemPrice.d.ts +11 -11
  31. package/types/resources/Order.d.ts +6 -6
  32. package/types/resources/PaymentSource.d.ts +13 -13
  33. package/types/resources/PaymentVoucher.d.ts +9 -9
  34. package/types/resources/PricingPageSession.d.ts +8 -8
  35. package/types/resources/PromotionalCredit.d.ts +4 -4
  36. package/types/resources/Purchase.d.ts +6 -6
  37. package/types/resources/Quote.d.ts +83 -83
  38. package/types/resources/QuotedSubscription.d.ts +1 -1
  39. package/types/resources/Ramp.d.ts +6 -6
  40. package/types/resources/Subscription.d.ts +144 -144
  41. package/types/resources/SubscriptionEstimate.d.ts +2 -2
  42. package/types/resources/ThirdPartyPaymentMethod.d.ts +2 -2
  43. package/types/resources/Token.d.ts +2 -2
  44. package/types/resources/Transaction.d.ts +3 -3
  45. package/types/resources/UnbilledCharge.d.ts +3 -3
  46. package/types/resources/Usage.d.ts +3 -3
  47. package/types/resources/VirtualBankAccount.d.ts +1 -1
@@ -63,7 +63,7 @@ declare module 'chargebee' {
63
63
  state?: string;
64
64
  zip?: string;
65
65
  country?: string;
66
- validation_status?: ValidationStatus;
66
+ validation_status?: ValidationStatusEnum;
67
67
  }
68
68
  export interface PricingPageCreateForNewSubscriptionInputParam {
69
69
  id: string;
@@ -91,19 +91,19 @@ declare module 'chargebee' {
91
91
  state?: string;
92
92
  zip?: string;
93
93
  country?: string;
94
- validation_status?: ValidationStatus;
94
+ validation_status?: ValidationStatusEnum;
95
95
  }
96
96
  export interface SubscriptionCreateForNewSubscriptionInputParam {
97
97
  id?: string;
98
98
  }
99
99
 
100
100
  export interface DiscountsCreateForNewSubscriptionInputParam {
101
- apply_on: ApplyOn;
102
- duration_type: DurationType;
101
+ apply_on: ApplyOnEnum;
102
+ duration_type: DurationTypeEnum;
103
103
  percentage?: number;
104
104
  amount?: number;
105
105
  period?: number;
106
- period_unit?: PeriodUnit;
106
+ period_unit?: PeriodUnitEnum;
107
107
  included_in_mrr?: boolean;
108
108
  item_price_id?: string;
109
109
  label?: string;
@@ -116,12 +116,12 @@ declare module 'chargebee' {
116
116
  }
117
117
 
118
118
  export interface DiscountsCreateForExistingSubscriptionInputParam {
119
- apply_on: ApplyOn;
120
- duration_type: DurationType;
119
+ apply_on: ApplyOnEnum;
120
+ duration_type: DurationTypeEnum;
121
121
  percentage?: number;
122
122
  amount?: number;
123
123
  period?: number;
124
- period_unit?: PeriodUnit;
124
+ period_unit?: PeriodUnitEnum;
125
125
  included_in_mrr?: boolean;
126
126
  item_price_id?: string;
127
127
  label?: string;
@@ -10,7 +10,7 @@ declare module 'chargebee' {
10
10
  amount: number;
11
11
  currency_code: string;
12
12
  description: string;
13
- credit_type: CreditType;
13
+ credit_type: CreditTypeEnum;
14
14
  reference?: string;
15
15
  closing_balance: number;
16
16
  done_by?: string;
@@ -78,7 +78,7 @@ declare module 'chargebee' {
78
78
  amount_in_decimal?: string;
79
79
  currency_code?: string;
80
80
  description: string;
81
- credit_type?: CreditType;
81
+ credit_type?: CreditTypeEnum;
82
82
  reference?: string;
83
83
  }
84
84
  export interface DeductInputParam {
@@ -87,7 +87,7 @@ declare module 'chargebee' {
87
87
  amount_in_decimal?: string;
88
88
  currency_code?: string;
89
89
  description: string;
90
- credit_type?: CreditType;
90
+ credit_type?: CreditTypeEnum;
91
91
  reference?: string;
92
92
  }
93
93
  export interface SetInputParam {
@@ -96,7 +96,7 @@ declare module 'chargebee' {
96
96
  amount_in_decimal?: string;
97
97
  currency_code?: string;
98
98
  description: string;
99
- credit_type?: CreditType;
99
+ credit_type?: CreditTypeEnum;
100
100
  reference?: string;
101
101
  }
102
102
  export interface ListInputParam {
@@ -123,7 +123,7 @@ declare module 'chargebee' {
123
123
  state_code?: string;
124
124
  country?: string;
125
125
  zip?: string;
126
- validation_status?: ValidationStatus;
126
+ validation_status?: ValidationStatusEnum;
127
127
  }
128
128
  export interface BillingAddressEstimateInputParam {
129
129
  line1?: string;
@@ -133,17 +133,17 @@ declare module 'chargebee' {
133
133
  state_code?: string;
134
134
  zip?: string;
135
135
  country?: string;
136
- validation_status?: ValidationStatus;
136
+ validation_status?: ValidationStatusEnum;
137
137
  }
138
138
  export interface CustomerEstimateInputParam {
139
139
  vat_number?: string;
140
140
  vat_number_prefix?: string;
141
141
  registered_for_gst?: boolean;
142
- taxability?: Taxability;
143
- entity_code?: EntityCode;
142
+ taxability?: TaxabilityEnum;
143
+ entity_code?: EntityCodeEnum;
144
144
  exempt_number?: string;
145
145
  exemption_details?: any;
146
- customer_type?: CustomerType;
146
+ customer_type?: CustomerTypeEnum;
147
147
  }
148
148
 
149
149
  export interface SubscriptionInfoEstimateInputParam {
@@ -196,7 +196,7 @@ declare module 'chargebee' {
196
196
  state_code?: string;
197
197
  country?: string;
198
198
  zip?: string;
199
- validation_status?: ValidationStatus;
199
+ validation_status?: ValidationStatusEnum;
200
200
  }
201
201
  }
202
202
  }
@@ -15,7 +15,7 @@ declare module 'chargebee' {
15
15
  | 'change_subscription'
16
16
  | 'onetime_invoice';
17
17
  vat_number?: string;
18
- price_type: PriceType;
18
+ price_type: PriceTypeEnum;
19
19
  valid_till: number;
20
20
  date: number;
21
21
  total_payable?: number;
@@ -403,7 +403,7 @@ declare module 'chargebee' {
403
403
  state?: string;
404
404
  country?: string;
405
405
  zip?: string;
406
- validation_status?: ValidationStatus;
406
+ validation_status?: ValidationStatusEnum;
407
407
  index: number;
408
408
  }
409
409
  export interface BillingAddress {
@@ -420,7 +420,7 @@ declare module 'chargebee' {
420
420
  state?: string;
421
421
  country?: string;
422
422
  zip?: string;
423
- validation_status?: ValidationStatus;
423
+ validation_status?: ValidationStatusEnum;
424
424
  }
425
425
  // REQUEST PARAMS
426
426
  //---------------
@@ -432,7 +432,7 @@ declare module 'chargebee' {
432
432
  billing_cycles?: number;
433
433
  mandatory_addons_to_remove?: string[];
434
434
  terms_to_charge?: number;
435
- billing_alignment_mode?: BillingAlignmentMode;
435
+ billing_alignment_mode?: BillingAlignmentModeEnum;
436
436
  coupon_ids?: string[];
437
437
  subscription?: SubscriptionCreateSubForCustomerQuoteInputParam;
438
438
  shipping_address?: ShippingAddressCreateSubForCustomerQuoteInputParam;
@@ -446,7 +446,7 @@ declare module 'chargebee' {
446
446
  billing_cycles?: number;
447
447
  mandatory_addons_to_remove?: string[];
448
448
  terms_to_charge?: number;
449
- billing_alignment_mode?: BillingAlignmentMode;
449
+ billing_alignment_mode?: BillingAlignmentModeEnum;
450
450
  coupon_ids?: string[];
451
451
  subscription?: SubscriptionEditCreateSubForCustomerQuoteInputParam;
452
452
  shipping_address?: ShippingAddressEditCreateSubForCustomerQuoteInputParam;
@@ -463,10 +463,10 @@ declare module 'chargebee' {
463
463
  billing_cycles?: number;
464
464
  terms_to_charge?: number;
465
465
  reactivate_from?: number;
466
- billing_alignment_mode?: BillingAlignmentMode;
466
+ billing_alignment_mode?: BillingAlignmentModeEnum;
467
467
  coupon_ids?: string[];
468
468
  replace_coupon_list?: boolean;
469
- change_option?: ChangeOption;
469
+ change_option?: ChangeOptionEnum;
470
470
  changes_scheduled_at?: number;
471
471
  force_term_reset?: boolean;
472
472
  reactivate?: boolean;
@@ -486,10 +486,10 @@ declare module 'chargebee' {
486
486
  billing_cycles?: number;
487
487
  terms_to_charge?: number;
488
488
  reactivate_from?: number;
489
- billing_alignment_mode?: BillingAlignmentMode;
489
+ billing_alignment_mode?: BillingAlignmentModeEnum;
490
490
  coupon_ids?: string[];
491
491
  replace_coupon_list?: boolean;
492
- change_option?: ChangeOption;
492
+ change_option?: ChangeOptionEnum;
493
493
  changes_scheduled_at?: number;
494
494
  force_term_reset?: boolean;
495
495
  reactivate?: boolean;
@@ -534,7 +534,7 @@ declare module 'chargebee' {
534
534
  billing_cycles?: number;
535
535
  mandatory_items_to_remove?: string[];
536
536
  terms_to_charge?: number;
537
- billing_alignment_mode?: BillingAlignmentMode;
537
+ billing_alignment_mode?: BillingAlignmentModeEnum;
538
538
  coupon_ids?: string[];
539
539
  subscription?: SubscriptionCreateSubItemsForCustomerQuoteInputParam;
540
540
  shipping_address?: ShippingAddressCreateSubItemsForCustomerQuoteInputParam;
@@ -549,7 +549,7 @@ declare module 'chargebee' {
549
549
  billing_cycles?: number;
550
550
  mandatory_items_to_remove?: string[];
551
551
  terms_to_charge?: number;
552
- billing_alignment_mode?: BillingAlignmentMode;
552
+ billing_alignment_mode?: BillingAlignmentModeEnum;
553
553
  coupon_ids?: string[];
554
554
  subscription?: SubscriptionEditCreateSubCustomerQuoteForItemsInputParam;
555
555
  shipping_address?: ShippingAddressEditCreateSubCustomerQuoteForItemsInputParam;
@@ -567,10 +567,10 @@ declare module 'chargebee' {
567
567
  billing_cycles?: number;
568
568
  terms_to_charge?: number;
569
569
  reactivate_from?: number;
570
- billing_alignment_mode?: BillingAlignmentMode;
570
+ billing_alignment_mode?: BillingAlignmentModeEnum;
571
571
  coupon_ids?: string[];
572
572
  replace_coupon_list?: boolean;
573
- change_option?: ChangeOption;
573
+ change_option?: ChangeOptionEnum;
574
574
  changes_scheduled_at?: number;
575
575
  force_term_reset?: boolean;
576
576
  reactivate?: boolean;
@@ -591,10 +591,10 @@ declare module 'chargebee' {
591
591
  billing_cycles?: number;
592
592
  terms_to_charge?: number;
593
593
  reactivate_from?: number;
594
- billing_alignment_mode?: BillingAlignmentMode;
594
+ billing_alignment_mode?: BillingAlignmentModeEnum;
595
595
  coupon_ids?: string[];
596
596
  replace_coupon_list?: boolean;
597
- change_option?: ChangeOption;
597
+ change_option?: ChangeOptionEnum;
598
598
  changes_scheduled_at?: number;
599
599
  force_term_reset?: boolean;
600
600
  reactivate?: boolean;
@@ -673,7 +673,7 @@ declare module 'chargebee' {
673
673
  }
674
674
  export interface PdfInputParam {
675
675
  consolidated_view?: boolean;
676
- disposition_type?: DispositionType;
676
+ disposition_type?: DispositionTypeEnum;
677
677
  }
678
678
  export interface ShippingAddressCreateSubForCustomerQuoteInputParam {
679
679
  first_name?: string;
@@ -689,7 +689,7 @@ declare module 'chargebee' {
689
689
  state?: string;
690
690
  zip?: string;
691
691
  country?: string;
692
- validation_status?: ValidationStatus;
692
+ validation_status?: ValidationStatusEnum;
693
693
  }
694
694
  export interface ContractTermCreateSubForCustomerQuoteInputParam {
695
695
  action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
@@ -706,7 +706,7 @@ declare module 'chargebee' {
706
706
  setup_fee?: number;
707
707
  trial_end?: number;
708
708
  start_date?: number;
709
- offline_payment_method?: OfflinePaymentMethod;
709
+ offline_payment_method?: OfflinePaymentMethodEnum;
710
710
  contract_term_billing_cycle_on_renewal?: number;
711
711
  }
712
712
 
@@ -717,9 +717,9 @@ declare module 'chargebee' {
717
717
  quantity_in_decimal?: string;
718
718
  unit_price_in_decimal?: string;
719
719
  service_period_in_days?: number;
720
- on_event?: OnEvent;
720
+ on_event?: OnEventEnum;
721
721
  charge_once?: boolean;
722
- charge_on?: ChargeOn;
722
+ charge_on?: ChargeOnEnum;
723
723
  }
724
724
  export interface AddonsCreateSubForCustomerQuoteInputParam {
725
725
  id?: string;
@@ -744,7 +744,7 @@ declare module 'chargebee' {
744
744
  state?: string;
745
745
  zip?: string;
746
746
  country?: string;
747
- validation_status?: ValidationStatus;
747
+ validation_status?: ValidationStatusEnum;
748
748
  }
749
749
  export interface ContractTermEditCreateSubForCustomerQuoteInputParam {
750
750
  action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
@@ -761,7 +761,7 @@ declare module 'chargebee' {
761
761
  setup_fee?: number;
762
762
  trial_end?: number;
763
763
  start_date?: number;
764
- offline_payment_method?: OfflinePaymentMethod;
764
+ offline_payment_method?: OfflinePaymentMethodEnum;
765
765
  contract_term_billing_cycle_on_renewal?: number;
766
766
  }
767
767
 
@@ -772,9 +772,9 @@ declare module 'chargebee' {
772
772
  quantity_in_decimal?: string;
773
773
  unit_price_in_decimal?: string;
774
774
  service_period_in_days?: number;
775
- on_event?: OnEvent;
775
+ on_event?: OnEventEnum;
776
776
  charge_once?: boolean;
777
- charge_on?: ChargeOn;
777
+ charge_on?: ChargeOnEnum;
778
778
  }
779
779
  export interface AddonsEditCreateSubForCustomerQuoteInputParam {
780
780
  id?: string;
@@ -799,7 +799,7 @@ declare module 'chargebee' {
799
799
  state?: string;
800
800
  zip?: string;
801
801
  country?: string;
802
- validation_status?: ValidationStatus;
802
+ validation_status?: ValidationStatusEnum;
803
803
  }
804
804
  export interface CustomerUpdateSubscriptionQuoteInputParam {
805
805
  vat_number?: string;
@@ -820,7 +820,7 @@ declare module 'chargebee' {
820
820
  state?: string;
821
821
  zip?: string;
822
822
  country?: string;
823
- validation_status?: ValidationStatus;
823
+ validation_status?: ValidationStatusEnum;
824
824
  }
825
825
  export interface ContractTermUpdateSubscriptionQuoteInputParam {
826
826
  action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
@@ -840,8 +840,8 @@ declare module 'chargebee' {
840
840
  * @deprecated Please refer API docs to use other attributes
841
841
  */
842
842
  coupon?: string;
843
- auto_collection?: AutoCollection;
844
- offline_payment_method?: OfflinePaymentMethod;
843
+ auto_collection?: AutoCollectionEnum;
844
+ offline_payment_method?: OfflinePaymentMethodEnum;
845
845
  contract_term_billing_cycle_on_renewal?: number;
846
846
  }
847
847
 
@@ -850,8 +850,8 @@ declare module 'chargebee' {
850
850
  quantity?: number;
851
851
  unit_price?: number;
852
852
  service_period_in_days?: number;
853
- charge_on?: ChargeOn;
854
- on_event?: OnEvent;
853
+ charge_on?: ChargeOnEnum;
854
+ on_event?: OnEventEnum;
855
855
  charge_once?: boolean;
856
856
  quantity_in_decimal?: string;
857
857
  unit_price_in_decimal?: string;
@@ -879,7 +879,7 @@ declare module 'chargebee' {
879
879
  state?: string;
880
880
  zip?: string;
881
881
  country?: string;
882
- validation_status?: ValidationStatus;
882
+ validation_status?: ValidationStatusEnum;
883
883
  }
884
884
  export interface CustomerEditUpdateSubscriptionQuoteInputParam {
885
885
  vat_number?: string;
@@ -900,7 +900,7 @@ declare module 'chargebee' {
900
900
  state?: string;
901
901
  zip?: string;
902
902
  country?: string;
903
- validation_status?: ValidationStatus;
903
+ validation_status?: ValidationStatusEnum;
904
904
  }
905
905
  export interface ContractTermEditUpdateSubscriptionQuoteInputParam {
906
906
  action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
@@ -919,8 +919,8 @@ declare module 'chargebee' {
919
919
  * @deprecated Please refer API docs to use other attributes
920
920
  */
921
921
  coupon?: string;
922
- auto_collection?: AutoCollection;
923
- offline_payment_method?: OfflinePaymentMethod;
922
+ auto_collection?: AutoCollectionEnum;
923
+ offline_payment_method?: OfflinePaymentMethodEnum;
924
924
  contract_term_billing_cycle_on_renewal?: number;
925
925
  }
926
926
 
@@ -929,8 +929,8 @@ declare module 'chargebee' {
929
929
  quantity?: number;
930
930
  unit_price?: number;
931
931
  service_period_in_days?: number;
932
- charge_on?: ChargeOn;
933
- on_event?: OnEvent;
932
+ charge_on?: ChargeOnEnum;
933
+ on_event?: OnEventEnum;
934
934
  charge_once?: boolean;
935
935
  quantity_in_decimal?: string;
936
936
  unit_price_in_decimal?: string;
@@ -958,14 +958,14 @@ declare module 'chargebee' {
958
958
  state?: string;
959
959
  zip?: string;
960
960
  country?: string;
961
- validation_status?: ValidationStatus;
961
+ validation_status?: ValidationStatusEnum;
962
962
  }
963
963
 
964
964
  export interface ChargesCreateForOnetimeChargesInputParam {
965
965
  amount?: number;
966
966
  amount_in_decimal?: string;
967
967
  description?: string;
968
- avalara_sale_type?: AvalaraSaleType;
968
+ avalara_sale_type?: AvalaraSaleTypeEnum;
969
969
  avalara_transaction_type?: number;
970
970
  avalara_service_type?: number;
971
971
  service_period?: number;
@@ -997,14 +997,14 @@ declare module 'chargebee' {
997
997
  state?: string;
998
998
  zip?: string;
999
999
  country?: string;
1000
- validation_status?: ValidationStatus;
1000
+ validation_status?: ValidationStatusEnum;
1001
1001
  }
1002
1002
 
1003
1003
  export interface ChargesEditOneTimeQuoteInputParam {
1004
1004
  amount?: number;
1005
1005
  amount_in_decimal?: string;
1006
1006
  description?: string;
1007
- avalara_sale_type?: AvalaraSaleType;
1007
+ avalara_sale_type?: AvalaraSaleTypeEnum;
1008
1008
  avalara_transaction_type?: number;
1009
1009
  avalara_service_type?: number;
1010
1010
  service_period?: number;
@@ -1036,7 +1036,7 @@ declare module 'chargebee' {
1036
1036
  state?: string;
1037
1037
  zip?: string;
1038
1038
  country?: string;
1039
- validation_status?: ValidationStatus;
1039
+ validation_status?: ValidationStatusEnum;
1040
1040
  }
1041
1041
  export interface ContractTermCreateSubItemsForCustomerQuoteInputParam {
1042
1042
  action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
@@ -1063,21 +1063,21 @@ declare module 'chargebee' {
1063
1063
  billing_cycles?: number;
1064
1064
  trial_end?: number;
1065
1065
  service_period_days?: number;
1066
- charge_on_event?: ChargeOnEvent;
1066
+ charge_on_event?: ChargeOnEventEnum;
1067
1067
  charge_once?: boolean;
1068
1068
  /**
1069
1069
  * @deprecated Please refer API docs to use other attributes
1070
1070
  */
1071
- item_type?: ItemType;
1072
- charge_on_option?: ChargeOnOption;
1071
+ item_type?: ItemTypeEnum;
1072
+ charge_on_option?: ChargeOnOptionEnum;
1073
1073
  }
1074
1074
  export interface DiscountsCreateSubItemsForCustomerQuoteInputParam {
1075
- apply_on: ApplyOn;
1076
- duration_type: DurationType;
1075
+ apply_on: ApplyOnEnum;
1076
+ duration_type: DurationTypeEnum;
1077
1077
  percentage?: number;
1078
1078
  amount?: number;
1079
1079
  period?: number;
1080
- period_unit?: PeriodUnit;
1080
+ period_unit?: PeriodUnitEnum;
1081
1081
  included_in_mrr?: boolean;
1082
1082
  item_price_id?: string;
1083
1083
  }
@@ -1104,7 +1104,7 @@ declare module 'chargebee' {
1104
1104
  state?: string;
1105
1105
  zip?: string;
1106
1106
  country?: string;
1107
- validation_status?: ValidationStatus;
1107
+ validation_status?: ValidationStatusEnum;
1108
1108
  }
1109
1109
  export interface ContractTermEditCreateSubCustomerQuoteForItemsInputParam {
1110
1110
  action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
@@ -1131,21 +1131,21 @@ declare module 'chargebee' {
1131
1131
  billing_cycles?: number;
1132
1132
  trial_end?: number;
1133
1133
  service_period_days?: number;
1134
- charge_on_event?: ChargeOnEvent;
1134
+ charge_on_event?: ChargeOnEventEnum;
1135
1135
  charge_once?: boolean;
1136
1136
  /**
1137
1137
  * @deprecated Please refer API docs to use other attributes
1138
1138
  */
1139
- item_type?: ItemType;
1140
- charge_on_option?: ChargeOnOption;
1139
+ item_type?: ItemTypeEnum;
1140
+ charge_on_option?: ChargeOnOptionEnum;
1141
1141
  }
1142
1142
  export interface DiscountsEditCreateSubCustomerQuoteForItemsInputParam {
1143
- apply_on: ApplyOn;
1144
- duration_type: DurationType;
1143
+ apply_on: ApplyOnEnum;
1144
+ duration_type: DurationTypeEnum;
1145
1145
  percentage?: number;
1146
1146
  amount?: number;
1147
1147
  period?: number;
1148
- period_unit?: PeriodUnit;
1148
+ period_unit?: PeriodUnitEnum;
1149
1149
  included_in_mrr?: boolean;
1150
1150
  item_price_id?: string;
1151
1151
  }
@@ -1172,7 +1172,7 @@ declare module 'chargebee' {
1172
1172
  state?: string;
1173
1173
  zip?: string;
1174
1174
  country?: string;
1175
- validation_status?: ValidationStatus;
1175
+ validation_status?: ValidationStatusEnum;
1176
1176
  }
1177
1177
  export interface CustomerUpdateSubscriptionQuoteForItemsInputParam {
1178
1178
  vat_number?: string;
@@ -1193,7 +1193,7 @@ declare module 'chargebee' {
1193
1193
  state?: string;
1194
1194
  zip?: string;
1195
1195
  country?: string;
1196
- validation_status?: ValidationStatus;
1196
+ validation_status?: ValidationStatusEnum;
1197
1197
  }
1198
1198
  export interface ContractTermUpdateSubscriptionQuoteForItemsInputParam {
1199
1199
  action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
@@ -1211,8 +1211,8 @@ declare module 'chargebee' {
1211
1211
  * @deprecated Please refer API docs to use other attributes
1212
1212
  */
1213
1213
  coupon?: string;
1214
- auto_collection?: AutoCollection;
1215
- offline_payment_method?: OfflinePaymentMethod;
1214
+ auto_collection?: AutoCollectionEnum;
1215
+ offline_payment_method?: OfflinePaymentMethodEnum;
1216
1216
  contract_term_billing_cycle_on_renewal?: number;
1217
1217
  }
1218
1218
 
@@ -1225,24 +1225,24 @@ declare module 'chargebee' {
1225
1225
  billing_cycles?: number;
1226
1226
  trial_end?: number;
1227
1227
  service_period_days?: number;
1228
- charge_on_event?: ChargeOnEvent;
1228
+ charge_on_event?: ChargeOnEventEnum;
1229
1229
  charge_once?: boolean;
1230
- charge_on_option?: ChargeOnOption;
1230
+ charge_on_option?: ChargeOnOptionEnum;
1231
1231
  /**
1232
1232
  * @deprecated Please refer API docs to use other attributes
1233
1233
  */
1234
- item_type?: ItemType;
1234
+ item_type?: ItemTypeEnum;
1235
1235
  }
1236
1236
  export interface DiscountsUpdateSubscriptionQuoteForItemsInputParam {
1237
- apply_on: ApplyOn;
1238
- duration_type: DurationType;
1237
+ apply_on: ApplyOnEnum;
1238
+ duration_type: DurationTypeEnum;
1239
1239
  percentage?: number;
1240
1240
  amount?: number;
1241
1241
  period?: number;
1242
- period_unit?: PeriodUnit;
1242
+ period_unit?: PeriodUnitEnum;
1243
1243
  included_in_mrr?: boolean;
1244
1244
  item_price_id?: string;
1245
- operation_type: OperationType;
1245
+ operation_type: OperationTypeEnum;
1246
1246
  id?: string;
1247
1247
  }
1248
1248
  export interface ItemTiersUpdateSubscriptionQuoteForItemsInputParam {
@@ -1268,7 +1268,7 @@ declare module 'chargebee' {
1268
1268
  state?: string;
1269
1269
  zip?: string;
1270
1270
  country?: string;
1271
- validation_status?: ValidationStatus;
1271
+ validation_status?: ValidationStatusEnum;
1272
1272
  }
1273
1273
  export interface CustomerEditUpdateSubscriptionQuoteForItemsInputParam {
1274
1274
  vat_number?: string;
@@ -1289,7 +1289,7 @@ declare module 'chargebee' {
1289
1289
  state?: string;
1290
1290
  zip?: string;
1291
1291
  country?: string;
1292
- validation_status?: ValidationStatus;
1292
+ validation_status?: ValidationStatusEnum;
1293
1293
  }
1294
1294
  export interface ContractTermEditUpdateSubscriptionQuoteForItemsInputParam {
1295
1295
  action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
@@ -1306,8 +1306,8 @@ declare module 'chargebee' {
1306
1306
  * @deprecated Please refer API docs to use other attributes
1307
1307
  */
1308
1308
  coupon?: string;
1309
- auto_collection?: AutoCollection;
1310
- offline_payment_method?: OfflinePaymentMethod;
1309
+ auto_collection?: AutoCollectionEnum;
1310
+ offline_payment_method?: OfflinePaymentMethodEnum;
1311
1311
  contract_term_billing_cycle_on_renewal?: number;
1312
1312
  }
1313
1313
 
@@ -1320,24 +1320,24 @@ declare module 'chargebee' {
1320
1320
  billing_cycles?: number;
1321
1321
  trial_end?: number;
1322
1322
  service_period_days?: number;
1323
- charge_on_event?: ChargeOnEvent;
1323
+ charge_on_event?: ChargeOnEventEnum;
1324
1324
  charge_once?: boolean;
1325
- charge_on_option?: ChargeOnOption;
1325
+ charge_on_option?: ChargeOnOptionEnum;
1326
1326
  /**
1327
1327
  * @deprecated Please refer API docs to use other attributes
1328
1328
  */
1329
- item_type?: ItemType;
1329
+ item_type?: ItemTypeEnum;
1330
1330
  }
1331
1331
  export interface DiscountsEditUpdateSubscriptionQuoteForItemsInputParam {
1332
- apply_on: ApplyOn;
1333
- duration_type: DurationType;
1332
+ apply_on: ApplyOnEnum;
1333
+ duration_type: DurationTypeEnum;
1334
1334
  percentage?: number;
1335
1335
  amount?: number;
1336
1336
  period?: number;
1337
- period_unit?: PeriodUnit;
1337
+ period_unit?: PeriodUnitEnum;
1338
1338
  included_in_mrr?: boolean;
1339
1339
  item_price_id?: string;
1340
- operation_type: OperationType;
1340
+ operation_type: OperationTypeEnum;
1341
1341
  id?: string;
1342
1342
  }
1343
1343
  export interface ItemTiersEditUpdateSubscriptionQuoteForItemsInputParam {
@@ -1363,14 +1363,14 @@ declare module 'chargebee' {
1363
1363
  state?: string;
1364
1364
  zip?: string;
1365
1365
  country?: string;
1366
- validation_status?: ValidationStatus;
1366
+ validation_status?: ValidationStatusEnum;
1367
1367
  }
1368
1368
 
1369
1369
  export interface ChargesCreateForChargeItemsAndChargesInputParam {
1370
1370
  amount?: number;
1371
1371
  amount_in_decimal?: string;
1372
1372
  description?: string;
1373
- avalara_sale_type?: AvalaraSaleType;
1373
+ avalara_sale_type?: AvalaraSaleTypeEnum;
1374
1374
  avalara_transaction_type?: number;
1375
1375
  avalara_service_type?: number;
1376
1376
  service_period?: number;
@@ -1378,7 +1378,7 @@ declare module 'chargebee' {
1378
1378
  export interface DiscountsCreateForChargeItemsAndChargesInputParam {
1379
1379
  percentage?: number;
1380
1380
  amount?: number;
1381
- apply_on: ApplyOn;
1381
+ apply_on: ApplyOnEnum;
1382
1382
  item_price_id?: string;
1383
1383
  }
1384
1384
  export interface ItemTiersCreateForChargeItemsAndChargesInputParam {
@@ -1417,14 +1417,14 @@ declare module 'chargebee' {
1417
1417
  state?: string;
1418
1418
  zip?: string;
1419
1419
  country?: string;
1420
- validation_status?: ValidationStatus;
1420
+ validation_status?: ValidationStatusEnum;
1421
1421
  }
1422
1422
 
1423
1423
  export interface ChargesEditForChargeItemsAndChargesInputParam {
1424
1424
  amount?: number;
1425
1425
  amount_in_decimal?: string;
1426
1426
  description?: string;
1427
- avalara_sale_type?: AvalaraSaleType;
1427
+ avalara_sale_type?: AvalaraSaleTypeEnum;
1428
1428
  avalara_transaction_type?: number;
1429
1429
  avalara_service_type?: number;
1430
1430
  service_period?: number;
@@ -1432,7 +1432,7 @@ declare module 'chargebee' {
1432
1432
  export interface DiscountsEditForChargeItemsAndChargesInputParam {
1433
1433
  percentage?: number;
1434
1434
  amount?: number;
1435
- apply_on: ApplyOn;
1435
+ apply_on: ApplyOnEnum;
1436
1436
  item_price_id?: string;
1437
1437
  }
1438
1438
  export interface ItemTiersEditForChargeItemsAndChargesInputParam {
@@ -1459,7 +1459,7 @@ declare module 'chargebee' {
1459
1459
  }
1460
1460
  export interface SubscriptionConvertInputParam {
1461
1461
  id?: string;
1462
- auto_collection?: AutoCollection;
1462
+ auto_collection?: AutoCollectionEnum;
1463
1463
  po_number?: string;
1464
1464
  auto_close_invoices?: boolean;
1465
1465
  }
@@ -14,7 +14,7 @@ declare module 'chargebee' {
14
14
  trial_end?: number;
15
15
  remaining_billing_cycles?: number;
16
16
  po_number?: string;
17
- auto_collection?: AutoCollection;
17
+ auto_collection?: AutoCollectionEnum;
18
18
  plan_quantity_in_decimal?: string;
19
19
  plan_unit_price_in_decimal?: string;
20
20
  changes_scheduled_at?: number;