chargebee 3.0.0-beta.3 → 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 (52) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/resources/api_endpoints.js +1 -0
  4. package/cjs/util.js +1 -1
  5. package/esm/environment.js +1 -1
  6. package/esm/resources/api_endpoints.js +1 -0
  7. package/esm/util.js +1 -1
  8. package/package.json +2 -2
  9. package/types/core.d.ts +93 -80
  10. package/types/index.d.ts +1 -0
  11. package/types/resources/Address.d.ts +2 -2
  12. package/types/resources/AdvanceInvoiceSchedule.d.ts +1 -1
  13. package/types/resources/AttachedItem.d.ts +4 -4
  14. package/types/resources/Card.d.ts +5 -3
  15. package/types/resources/Comment.d.ts +2 -2
  16. package/types/resources/Coupon.d.ts +10 -10
  17. package/types/resources/CreditNote.d.ts +7 -7
  18. package/types/resources/CreditNoteEstimate.d.ts +1 -1
  19. package/types/resources/Customer.d.ts +46 -46
  20. package/types/resources/Discount.d.ts +3 -3
  21. package/types/resources/Entitlement.d.ts +1 -1
  22. package/types/resources/EntitlementOverride.d.ts +1 -1
  23. package/types/resources/Estimate.d.ts +116 -100
  24. package/types/resources/Event.d.ts +3 -3
  25. package/types/resources/Export.d.ts +4 -4
  26. package/types/resources/Gift.d.ts +2 -2
  27. package/types/resources/HostedPage.d.ts +64 -64
  28. package/types/resources/Invoice.d.ts +44 -44
  29. package/types/resources/InvoiceEstimate.d.ts +1 -1
  30. package/types/resources/Item.d.ts +5 -5
  31. package/types/resources/ItemEntitlement.d.ts +2 -2
  32. package/types/resources/ItemFamily.d.ts +1 -1
  33. package/types/resources/ItemPrice.d.ts +11 -8
  34. package/types/resources/Order.d.ts +6 -6
  35. package/types/resources/PaymentScheduleEstimate.d.ts +25 -0
  36. package/types/resources/PaymentScheduleScheme.d.ts +1 -0
  37. package/types/resources/PaymentSource.d.ts +18 -14
  38. package/types/resources/PaymentVoucher.d.ts +9 -9
  39. package/types/resources/PricingPageSession.d.ts +27 -2
  40. package/types/resources/PromotionalCredit.d.ts +4 -4
  41. package/types/resources/Purchase.d.ts +6 -6
  42. package/types/resources/Quote.d.ts +84 -83
  43. package/types/resources/QuotedSubscription.d.ts +4 -1
  44. package/types/resources/Ramp.d.ts +6 -6
  45. package/types/resources/Subscription.d.ts +147 -142
  46. package/types/resources/SubscriptionEstimate.d.ts +2 -2
  47. package/types/resources/ThirdPartyPaymentMethod.d.ts +2 -2
  48. package/types/resources/Token.d.ts +2 -2
  49. package/types/resources/Transaction.d.ts +3 -3
  50. package/types/resources/UnbilledCharge.d.ts +3 -3
  51. package/types/resources/Usage.d.ts +3 -3
  52. package/types/resources/VirtualBankAccount.d.ts +1 -1
@@ -16,7 +16,7 @@ declare module 'chargebee' {
16
16
  trial_end?: number;
17
17
  remaining_billing_cycles?: number;
18
18
  po_number?: string;
19
- auto_collection?: AutoCollection;
19
+ auto_collection?: AutoCollectionEnum;
20
20
  plan_quantity_in_decimal?: string;
21
21
  plan_unit_price_in_decimal?: string;
22
22
  customer_id: string;
@@ -31,7 +31,7 @@ declare module 'chargebee' {
31
31
  | 'cancelled'
32
32
  | 'transferred';
33
33
  trial_start?: number;
34
- trial_end_action?: TrialEndAction;
34
+ trial_end_action?: TrialEndActionEnum;
35
35
  current_term_start?: number;
36
36
  current_term_end?: number;
37
37
  next_billing_at?: number;
@@ -62,8 +62,8 @@ declare module 'chargebee' {
62
62
  plan_free_quantity_in_decimal?: string;
63
63
  plan_amount_in_decimal?: string;
64
64
  cancel_schedule_created_at?: number;
65
- offline_payment_method?: OfflinePaymentMethod;
66
- channel?: Channel;
65
+ offline_payment_method?: OfflinePaymentMethodEnum;
66
+ channel?: ChannelEnum;
67
67
  net_term_days?: number;
68
68
  active_id?: string;
69
69
  subscription_items?: Subscription.SubscriptionItem[];
@@ -91,7 +91,7 @@ declare module 'chargebee' {
91
91
  contract_term?: Subscription.ContractTerm;
92
92
  cancel_reason_code?: string;
93
93
  free_period?: number;
94
- free_period_unit?: FreePeriodUnit;
94
+ free_period_unit?: FreePeriodUnitEnum;
95
95
  create_pending_invoices?: boolean;
96
96
  auto_close_invoices?: boolean;
97
97
  discounts?: Subscription.Discount[];
@@ -575,6 +575,9 @@ declare module 'chargebee' {
575
575
  charge_once?: boolean;
576
576
  charge_on_option?: 'immediately' | 'on_event';
577
577
  proration_type?: 'full_term' | 'partial_term' | 'none';
578
+ usage_accumulation_reset_frequency?:
579
+ | 'never'
580
+ | 'subscription_billing_frequency';
578
581
  }
579
582
  export interface ItemTier {
580
583
  item_price_id: string;
@@ -641,7 +644,7 @@ declare module 'chargebee' {
641
644
  state?: string;
642
645
  country?: string;
643
646
  zip?: string;
644
- validation_status?: ValidationStatus;
647
+ validation_status?: ValidationStatusEnum;
645
648
  index: number;
646
649
  }
647
650
  export interface ReferralInfo {
@@ -650,13 +653,13 @@ declare module 'chargebee' {
650
653
  referrer_id?: string;
651
654
  external_reference_id?: string;
652
655
  reward_status?: 'pending' | 'paid' | 'invalid';
653
- referral_system?: ReferralSystem;
656
+ referral_system?: ReferralSystemEnum;
654
657
  account_id: string;
655
658
  campaign_id: string;
656
659
  external_campaign_id?: string;
657
- friend_offer_type?: FriendOfferType;
658
- referrer_reward_type?: ReferrerRewardType;
659
- notify_referral_system?: NotifyReferralSystem;
660
+ friend_offer_type?: FriendOfferTypeEnum;
661
+ referrer_reward_type?: ReferrerRewardTypeEnum;
662
+ notify_referral_system?: NotifyReferralSystemEnum;
660
663
  destination_url?: string;
661
664
  post_purchase_widget_enabled: boolean;
662
665
  }
@@ -712,10 +715,10 @@ declare module 'chargebee' {
712
715
  */;
713
716
 
714
717
  coupon?: string;
715
- auto_collection?: AutoCollection;
718
+ auto_collection?: AutoCollectionEnum;
716
719
  terms_to_charge?: number;
717
- billing_alignment_mode?: BillingAlignmentMode;
718
- offline_payment_method?: OfflinePaymentMethod;
720
+ billing_alignment_mode?: BillingAlignmentModeEnum;
721
+ offline_payment_method?: OfflinePaymentMethodEnum;
719
722
  po_number?: string;
720
723
  coupon_ids?: string[];
721
724
  token_id?: string;
@@ -729,11 +732,11 @@ declare module 'chargebee' {
729
732
  meta_data?: any;
730
733
  invoice_immediately?: boolean;
731
734
  free_period?: number;
732
- free_period_unit?: FreePeriodUnit;
735
+ free_period_unit?: FreePeriodUnitEnum;
733
736
  contract_term_billing_cycle_on_renewal?: number;
734
- trial_end_action?: TrialEndAction;
737
+ trial_end_action?: TrialEndActionEnum;
735
738
  client_profile_id?: string;
736
- payment_initiator?: PaymentInitiator;
739
+ payment_initiator?: PaymentInitiatorEnum;
737
740
  customer?: CustomerCreateInputParam;
738
741
  card?: CardCreateInputParam;
739
742
  bank_account?: BankAccountCreateInputParam;
@@ -766,10 +769,10 @@ declare module 'chargebee' {
766
769
  */;
767
770
 
768
771
  coupon?: string;
769
- auto_collection?: AutoCollection;
772
+ auto_collection?: AutoCollectionEnum;
770
773
  terms_to_charge?: number;
771
- billing_alignment_mode?: BillingAlignmentMode;
772
- offline_payment_method?: OfflinePaymentMethod;
774
+ billing_alignment_mode?: BillingAlignmentModeEnum;
775
+ offline_payment_method?: OfflinePaymentMethodEnum;
773
776
  po_number?: string;
774
777
  coupon_ids?: string[];
775
778
  payment_source_id?: string;
@@ -780,10 +783,10 @@ declare module 'chargebee' {
780
783
  invoice_immediately?: boolean;
781
784
  replace_primary_payment_source?: boolean;
782
785
  free_period?: number;
783
- free_period_unit?: FreePeriodUnit;
786
+ free_period_unit?: FreePeriodUnitEnum;
784
787
  contract_term_billing_cycle_on_renewal?: number;
785
- trial_end_action?: TrialEndAction;
786
- payment_initiator?: PaymentInitiator;
788
+ trial_end_action?: TrialEndActionEnum;
789
+ payment_initiator?: PaymentInitiatorEnum;
787
790
  shipping_address?: ShippingAddressCreateForCustomerInputParam;
788
791
  statement_descriptor?: StatementDescriptorCreateForCustomerInputParam;
789
792
  payment_intent?: PaymentIntentCreateForCustomerInputParam;
@@ -809,9 +812,9 @@ declare module 'chargebee' {
809
812
  */;
810
813
 
811
814
  coupon?: string;
812
- auto_collection?: AutoCollection;
815
+ auto_collection?: AutoCollectionEnum;
813
816
  terms_to_charge?: number;
814
- billing_alignment_mode?: BillingAlignmentMode;
817
+ billing_alignment_mode?: BillingAlignmentModeEnum;
815
818
  po_number?: string;
816
819
  coupon_ids?: string[];
817
820
  payment_source_id?: string;
@@ -822,13 +825,13 @@ declare module 'chargebee' {
822
825
  invoice_immediately?: boolean;
823
826
  replace_primary_payment_source?: boolean;
824
827
  free_period?: number;
825
- free_period_unit?: FreePeriodUnit;
828
+ free_period_unit?: FreePeriodUnitEnum;
826
829
  contract_term_billing_cycle_on_renewal?: number;
827
830
  create_pending_invoices?: boolean;
828
831
  auto_close_invoices?: boolean;
829
832
  first_invoice_pending?: boolean;
830
- trial_end_action?: TrialEndAction;
831
- payment_initiator?: PaymentInitiator;
833
+ trial_end_action?: TrialEndActionEnum;
834
+ payment_initiator?: PaymentInitiatorEnum;
832
835
  shipping_address?: ShippingAddressCreateWithItemsInputParam;
833
836
  statement_descriptor?: StatementDescriptorCreateWithItemsInputParam;
834
837
  payment_intent?: PaymentIntentCreateWithItemsInputParam;
@@ -904,9 +907,9 @@ declare module 'chargebee' {
904
907
  coupon?: string;
905
908
  terms_to_charge?: number;
906
909
  reactivate_from?: number;
907
- billing_alignment_mode?: BillingAlignmentMode;
908
- auto_collection?: AutoCollection;
909
- offline_payment_method?: OfflinePaymentMethod;
910
+ billing_alignment_mode?: BillingAlignmentModeEnum;
911
+ auto_collection?: AutoCollectionEnum;
912
+ offline_payment_method?: OfflinePaymentMethodEnum;
910
913
  po_number?: string;
911
914
  coupon_ids?: string[];
912
915
  replace_coupon_list?: boolean;
@@ -920,11 +923,11 @@ declare module 'chargebee' {
920
923
  invoice_immediately?: boolean;
921
924
  override_relationship?: boolean;
922
925
  changes_scheduled_at?: number;
923
- change_option?: ChangeOption;
926
+ change_option?: ChangeOptionEnum;
924
927
  contract_term_billing_cycle_on_renewal?: number;
925
928
  free_period?: number;
926
- free_period_unit?: FreePeriodUnit;
927
- trial_end_action?: TrialEndAction;
929
+ free_period_unit?: FreePeriodUnitEnum;
930
+ trial_end_action?: TrialEndActionEnum;
928
931
  card?: CardUpdateInputParam;
929
932
  payment_method?: PaymentMethodUpdateInputParam;
930
933
  payment_intent?: PaymentIntentUpdateInputParam;
@@ -956,9 +959,9 @@ declare module 'chargebee' {
956
959
  coupon?: string;
957
960
  terms_to_charge?: number;
958
961
  reactivate_from?: number;
959
- billing_alignment_mode?: BillingAlignmentMode;
960
- auto_collection?: AutoCollection;
961
- offline_payment_method?: OfflinePaymentMethod;
962
+ billing_alignment_mode?: BillingAlignmentModeEnum;
963
+ auto_collection?: AutoCollectionEnum;
964
+ offline_payment_method?: OfflinePaymentMethodEnum;
962
965
  po_number?: string;
963
966
  coupon_ids?: string[];
964
967
  replace_coupon_list?: boolean;
@@ -972,14 +975,14 @@ declare module 'chargebee' {
972
975
  invoice_immediately?: boolean;
973
976
  override_relationship?: boolean;
974
977
  changes_scheduled_at?: number;
975
- change_option?: ChangeOption;
978
+ change_option?: ChangeOptionEnum;
976
979
  contract_term_billing_cycle_on_renewal?: number;
977
980
  free_period?: number;
978
- free_period_unit?: FreePeriodUnit;
981
+ free_period_unit?: FreePeriodUnitEnum;
979
982
  create_pending_invoices?: boolean;
980
983
  auto_close_invoices?: boolean;
981
- trial_end_action?: TrialEndAction;
982
- payment_initiator?: PaymentInitiator;
984
+ trial_end_action?: TrialEndActionEnum;
985
+ payment_initiator?: PaymentInitiatorEnum;
983
986
  invoice_usages?: boolean;
984
987
  card?: CardUpdateForItemsInputParam;
985
988
  payment_method?: PaymentMethodUpdateForItemsInputParam;
@@ -1009,11 +1012,11 @@ declare module 'chargebee' {
1009
1012
  trial_period_days?: number;
1010
1013
  reactivate_from?: number;
1011
1014
  invoice_immediately?: boolean;
1012
- billing_alignment_mode?: BillingAlignmentMode;
1015
+ billing_alignment_mode?: BillingAlignmentModeEnum;
1013
1016
  terms_to_charge?: number;
1014
1017
  invoice_date?: number;
1015
1018
  contract_term_billing_cycle_on_renewal?: number;
1016
- payment_initiator?: PaymentInitiator;
1019
+ payment_initiator?: PaymentInitiatorEnum;
1017
1020
  contract_term?: ContractTermReactivateInputParam;
1018
1021
  statement_descriptor?: StatementDescriptorReactivateInputParam;
1019
1022
  payment_intent?: PaymentIntentReactivateInputParam;
@@ -1022,7 +1025,7 @@ declare module 'chargebee' {
1022
1025
  amount?: number;
1023
1026
  description: string;
1024
1027
  amount_in_decimal?: string;
1025
- avalara_sale_type?: AvalaraSaleType;
1028
+ avalara_sale_type?: AvalaraSaleTypeEnum;
1026
1029
  avalara_transaction_type?: number;
1027
1030
  avalara_service_type?: number;
1028
1031
  date_from?: number;
@@ -1040,13 +1043,13 @@ declare module 'chargebee' {
1040
1043
  export interface ChargeFutureRenewalsInputParam {
1041
1044
  terms_to_charge?: number;
1042
1045
  invoice_immediately?: boolean;
1043
- schedule_type?: ScheduleType;
1046
+ schedule_type?: ScheduleTypeEnum;
1044
1047
  fixed_interval_schedule?: FixedIntervalScheduleChargeFutureRenewalsInputParam;
1045
1048
  specific_dates_schedule?: SpecificDatesScheduleChargeFutureRenewalsInputParam[];
1046
1049
  }
1047
1050
  export interface EditAdvanceInvoiceScheduleInputParam {
1048
1051
  terms_to_charge?: number;
1049
- schedule_type?: ScheduleType;
1052
+ schedule_type?: ScheduleTypeEnum;
1050
1053
  fixed_interval_schedule?: FixedIntervalScheduleEditAdvanceInvoiceScheduleInputParam;
1051
1054
  specific_dates_schedule?: SpecificDatesScheduleEditAdvanceInvoiceScheduleInputParam[];
1052
1055
  }
@@ -1071,7 +1074,7 @@ declare module 'chargebee' {
1071
1074
  trial_end?: number;
1072
1075
  billing_cycles?: number;
1073
1076
  start_date?: number;
1074
- auto_collection?: AutoCollection;
1077
+ auto_collection?: AutoCollectionEnum;
1075
1078
  po_number?: string;
1076
1079
  coupon_ids?: string[];
1077
1080
  contract_term_billing_cycle_on_renewal?: number;
@@ -1119,7 +1122,7 @@ declare module 'chargebee' {
1119
1122
  trial_end?: number;
1120
1123
  billing_cycles?: number;
1121
1124
  start_date?: number;
1122
- auto_collection?: AutoCollection;
1125
+ auto_collection?: AutoCollectionEnum;
1123
1126
  po_number?: string;
1124
1127
  coupon_ids?: string[];
1125
1128
  payment_source_id?: string;
@@ -1171,7 +1174,7 @@ declare module 'chargebee' {
1171
1174
  setup_fee?: number;
1172
1175
  net_term_days?: number;
1173
1176
  start_date?: number;
1174
- auto_collection?: AutoCollection;
1177
+ auto_collection?: AutoCollectionEnum;
1175
1178
  po_number?: string;
1176
1179
  coupon_ids?: string[];
1177
1180
  payment_source_id?: string;
@@ -1210,48 +1213,48 @@ declare module 'chargebee' {
1210
1213
  }
1211
1214
  export interface OverrideBillingProfileInputParam {
1212
1215
  payment_source_id?: string;
1213
- auto_collection?: AutoCollection;
1216
+ auto_collection?: AutoCollectionEnum;
1214
1217
  }
1215
1218
  export interface PauseInputParam {
1216
- pause_option?: PauseOption;
1219
+ pause_option?: PauseOptionEnum;
1217
1220
  pause_date?: number;
1218
- unbilled_charges_handling?: UnbilledChargesHandling;
1219
- invoice_dunning_handling?: InvoiceDunningHandling;
1221
+ unbilled_charges_handling?: UnbilledChargesHandlingEnum;
1222
+ invoice_dunning_handling?: InvoiceDunningHandlingEnum;
1220
1223
  skip_billing_cycles?: number;
1221
1224
  resume_date?: number;
1222
1225
  }
1223
1226
  export interface CancelInputParam {
1224
- cancel_option?: CancelOption;
1227
+ cancel_option?: CancelOptionEnum;
1225
1228
  end_of_term?: boolean;
1226
1229
  cancel_at?: number;
1227
- credit_option_for_current_term_charges?: CreditOptionForCurrentTermCharges;
1228
- unbilled_charges_option?: UnbilledChargesOption;
1229
- account_receivables_handling?: AccountReceivablesHandling;
1230
- refundable_credits_handling?: RefundableCreditsHandling;
1231
- contract_term_cancel_option?: ContractTermCancelOption;
1230
+ credit_option_for_current_term_charges?: CreditOptionForCurrentTermChargesEnum;
1231
+ unbilled_charges_option?: UnbilledChargesOptionEnum;
1232
+ account_receivables_handling?: AccountReceivablesHandlingEnum;
1233
+ refundable_credits_handling?: RefundableCreditsHandlingEnum;
1234
+ contract_term_cancel_option?: ContractTermCancelOptionEnum;
1232
1235
  invoice_date?: number;
1233
1236
  cancel_reason_code?: string;
1234
1237
  event_based_addons?: EventBasedAddonsCancelInputParam[];
1235
1238
  }
1236
1239
  export interface CancelForItemsInputParam {
1237
- cancel_option?: CancelOption;
1240
+ cancel_option?: CancelOptionEnum;
1238
1241
  end_of_term?: boolean;
1239
1242
  cancel_at?: number;
1240
- credit_option_for_current_term_charges?: CreditOptionForCurrentTermCharges;
1241
- unbilled_charges_option?: UnbilledChargesOption;
1242
- account_receivables_handling?: AccountReceivablesHandling;
1243
- refundable_credits_handling?: RefundableCreditsHandling;
1244
- contract_term_cancel_option?: ContractTermCancelOption;
1243
+ credit_option_for_current_term_charges?: CreditOptionForCurrentTermChargesEnum;
1244
+ unbilled_charges_option?: UnbilledChargesOptionEnum;
1245
+ account_receivables_handling?: AccountReceivablesHandlingEnum;
1246
+ refundable_credits_handling?: RefundableCreditsHandlingEnum;
1247
+ contract_term_cancel_option?: ContractTermCancelOptionEnum;
1245
1248
  invoice_date?: number;
1246
1249
  cancel_reason_code?: string;
1247
1250
  subscription_items?: SubscriptionItemsCancelForItemsInputParam[];
1248
1251
  }
1249
1252
  export interface ResumeInputParam {
1250
- resume_option?: ResumeOption;
1253
+ resume_option?: ResumeOptionEnum;
1251
1254
  resume_date?: number;
1252
- charges_handling?: ChargesHandling;
1253
- unpaid_invoices_handling?: UnpaidInvoicesHandling;
1254
- payment_initiator?: PaymentInitiator;
1255
+ charges_handling?: ChargesHandlingEnum;
1256
+ unpaid_invoices_handling?: UnpaidInvoicesHandlingEnum;
1257
+ payment_initiator?: PaymentInitiatorEnum;
1255
1258
  payment_intent?: PaymentIntentResumeInputParam;
1256
1259
  }
1257
1260
  export interface MoveInputParam {
@@ -1272,7 +1275,7 @@ declare module 'chargebee' {
1272
1275
  state?: string;
1273
1276
  zip?: string;
1274
1277
  country?: string;
1275
- validation_status?: ValidationStatus;
1278
+ validation_status?: ValidationStatusEnum;
1276
1279
  }
1277
1280
  export interface StatementDescriptorCreateInputParam {
1278
1281
  descriptor?: string;
@@ -1285,13 +1288,13 @@ declare module 'chargebee' {
1285
1288
  company?: string;
1286
1289
  phone?: string;
1287
1290
  locale?: string;
1288
- taxability?: Taxability;
1289
- entity_code?: EntityCode;
1291
+ taxability?: TaxabilityEnum;
1292
+ entity_code?: EntityCodeEnum;
1290
1293
  exempt_number?: string;
1291
1294
  net_term_days?: number;
1292
- taxjar_exemption_category?: TaxjarExemptionCategory;
1293
- auto_collection?: AutoCollection;
1294
- offline_payment_method?: OfflinePaymentMethod;
1295
+ taxjar_exemption_category?: TaxjarExemptionCategoryEnum;
1296
+ auto_collection?: AutoCollectionEnum;
1297
+ offline_payment_method?: OfflinePaymentMethodEnum;
1295
1298
  allow_direct_debit?: boolean;
1296
1299
  consolidated_invoicing?: boolean;
1297
1300
  vat_number?: string;
@@ -1299,11 +1302,11 @@ declare module 'chargebee' {
1299
1302
  entity_identifier_scheme?: string;
1300
1303
  entity_identifier_standard?: string;
1301
1304
  is_einvoice_enabled?: boolean;
1302
- einvoicing_method?: EinvoicingMethod;
1305
+ einvoicing_method?: EinvoicingMethodEnum;
1303
1306
  registered_for_gst?: boolean;
1304
1307
  business_customer_without_vat_number?: boolean;
1305
1308
  exemption_details?: any;
1306
- customer_type?: CustomerType;
1309
+ customer_type?: CustomerTypeEnum;
1307
1310
  }
1308
1311
  export interface ShippingAddressCreateInputParam {
1309
1312
  first_name?: string;
@@ -1319,14 +1322,14 @@ declare module 'chargebee' {
1319
1322
  state?: string;
1320
1323
  zip?: string;
1321
1324
  country?: string;
1322
- validation_status?: ValidationStatus;
1325
+ validation_status?: ValidationStatusEnum;
1323
1326
  }
1324
1327
  export interface PaymentMethodCreateInputParam {
1325
- type?: Type;
1328
+ type?: TypeEnum;
1326
1329
  /**
1327
1330
  * @deprecated Please refer API docs to use other attributes
1328
1331
  */
1329
- gateway?: Gateway;
1332
+ gateway?: GatewayEnum;
1330
1333
  gateway_account_id?: string;
1331
1334
  reference_id?: string;
1332
1335
  tmp_token?: string;
@@ -1345,9 +1348,9 @@ declare module 'chargebee' {
1345
1348
  account_number?: string;
1346
1349
  routing_number?: string;
1347
1350
  bank_code?: string;
1348
- account_type?: AccountType;
1349
- account_holder_type?: AccountHolderType;
1350
- echeck_type?: EcheckType;
1351
+ account_type?: AccountTypeEnum;
1352
+ account_holder_type?: AccountHolderTypeEnum;
1353
+ echeck_type?: EcheckTypeEnum;
1351
1354
  issuing_country?: string;
1352
1355
  swedish_identity_number?: string;
1353
1356
  billing_address?: any;
@@ -1392,7 +1395,7 @@ declare module 'chargebee' {
1392
1395
  /**
1393
1396
  * @deprecated Please refer API docs to use other attributes
1394
1397
  */
1395
- gateway?: Gateway;
1398
+ gateway?: GatewayEnum;
1396
1399
  gateway_account_id?: string;
1397
1400
  /**
1398
1401
  * @deprecated Please refer API docs to use other attributes
@@ -1425,9 +1428,9 @@ declare module 'chargebee' {
1425
1428
  quantity_in_decimal?: string;
1426
1429
  unit_price_in_decimal?: string;
1427
1430
  service_period_in_days?: number;
1428
- on_event?: OnEvent;
1431
+ on_event?: OnEventEnum;
1429
1432
  charge_once?: boolean;
1430
- charge_on?: ChargeOn;
1433
+ charge_on?: ChargeOnEnum;
1431
1434
  }
1432
1435
  export interface CouponsCreateInputParam {
1433
1436
  /**
@@ -1476,7 +1479,7 @@ declare module 'chargebee' {
1476
1479
  state?: string;
1477
1480
  zip?: string;
1478
1481
  country?: string;
1479
- validation_status?: ValidationStatus;
1482
+ validation_status?: ValidationStatusEnum;
1480
1483
  }
1481
1484
  export interface ContractTermCreateForCustomerInputParam {
1482
1485
  action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
@@ -1522,9 +1525,9 @@ declare module 'chargebee' {
1522
1525
  quantity_in_decimal?: string;
1523
1526
  unit_price_in_decimal?: string;
1524
1527
  service_period_in_days?: number;
1525
- on_event?: OnEvent;
1528
+ on_event?: OnEventEnum;
1526
1529
  charge_once?: boolean;
1527
- charge_on?: ChargeOn;
1530
+ charge_on?: ChargeOnEnum;
1528
1531
  }
1529
1532
  export interface CouponsCreateForCustomerInputParam {
1530
1533
  /**
@@ -1562,7 +1565,7 @@ declare module 'chargebee' {
1562
1565
  state?: string;
1563
1566
  zip?: string;
1564
1567
  country?: string;
1565
- validation_status?: ValidationStatus;
1568
+ validation_status?: ValidationStatusEnum;
1566
1569
  }
1567
1570
  export interface ContractTermCreateWithItemsInputParam {
1568
1571
  action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
@@ -1614,21 +1617,22 @@ declare module 'chargebee' {
1614
1617
  billing_cycles?: number;
1615
1618
  trial_end?: number;
1616
1619
  service_period_days?: number;
1617
- charge_on_event?: ChargeOnEvent;
1620
+ charge_on_event?: ChargeOnEventEnum;
1618
1621
  charge_once?: boolean;
1619
1622
  /**
1620
1623
  * @deprecated Please refer API docs to use other attributes
1621
1624
  */
1622
- item_type?: ItemType;
1623
- charge_on_option?: ChargeOnOption;
1625
+ item_type?: ItemTypeEnum;
1626
+ charge_on_option?: ChargeOnOptionEnum;
1627
+ usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
1624
1628
  }
1625
1629
  export interface DiscountsCreateWithItemsInputParam {
1626
- apply_on: ApplyOn;
1627
- duration_type: DurationType;
1630
+ apply_on: ApplyOnEnum;
1631
+ duration_type: DurationTypeEnum;
1628
1632
  percentage?: number;
1629
1633
  amount?: number;
1630
1634
  period?: number;
1631
- period_unit?: PeriodUnit;
1635
+ period_unit?: PeriodUnitEnum;
1632
1636
  included_in_mrr?: boolean;
1633
1637
  item_price_id?: string;
1634
1638
  }
@@ -1665,14 +1669,14 @@ declare module 'chargebee' {
1665
1669
  state?: string;
1666
1670
  zip?: string;
1667
1671
  country?: string;
1668
- validation_status?: ValidationStatus;
1672
+ validation_status?: ValidationStatusEnum;
1669
1673
  }
1670
1674
  export interface CustomerUpdateInputParam {
1671
1675
  vat_number?: string;
1672
1676
  vat_number_prefix?: string;
1673
1677
  entity_identifier_scheme?: string;
1674
1678
  is_einvoice_enabled?: boolean;
1675
- einvoicing_method?: EinvoicingMethod;
1679
+ einvoicing_method?: EinvoicingMethodEnum;
1676
1680
  entity_identifier_standard?: string;
1677
1681
  business_customer_without_vat_number?: boolean;
1678
1682
  registered_for_gst?: boolean;
@@ -1694,14 +1698,14 @@ declare module 'chargebee' {
1694
1698
  state?: string;
1695
1699
  zip?: string;
1696
1700
  country?: string;
1697
- validation_status?: ValidationStatus;
1701
+ validation_status?: ValidationStatusEnum;
1698
1702
  }
1699
1703
  export interface PaymentMethodUpdateInputParam {
1700
- type?: Type;
1704
+ type?: TypeEnum;
1701
1705
  /**
1702
1706
  * @deprecated Please refer API docs to use other attributes
1703
1707
  */
1704
- gateway?: Gateway;
1708
+ gateway?: GatewayEnum;
1705
1709
  gateway_account_id?: string;
1706
1710
  reference_id?: string;
1707
1711
  tmp_token?: string;
@@ -1748,7 +1752,7 @@ declare module 'chargebee' {
1748
1752
  /**
1749
1753
  * @deprecated Please refer API docs to use other attributes
1750
1754
  */
1751
- gateway?: Gateway;
1755
+ gateway?: GatewayEnum;
1752
1756
  gateway_account_id?: string;
1753
1757
  /**
1754
1758
  * @deprecated Please refer API docs to use other attributes
@@ -1779,8 +1783,8 @@ declare module 'chargebee' {
1779
1783
  quantity?: number;
1780
1784
  unit_price?: number;
1781
1785
  service_period_in_days?: number;
1782
- charge_on?: ChargeOn;
1783
- on_event?: OnEvent;
1786
+ charge_on?: ChargeOnEnum;
1787
+ on_event?: OnEventEnum;
1784
1788
  charge_once?: boolean;
1785
1789
  quantity_in_decimal?: string;
1786
1790
  unit_price_in_decimal?: string;
@@ -1803,7 +1807,7 @@ declare module 'chargebee' {
1803
1807
  quantity_in_decimal?: string;
1804
1808
  unit_price_in_decimal?: string;
1805
1809
  trial_end?: number;
1806
- proration_type?: ProrationType;
1810
+ proration_type?: ProrationTypeEnum;
1807
1811
  }
1808
1812
  export interface BillingAddressUpdateForItemsInputParam {
1809
1813
  first_name?: string;
@@ -1819,14 +1823,14 @@ declare module 'chargebee' {
1819
1823
  state?: string;
1820
1824
  zip?: string;
1821
1825
  country?: string;
1822
- validation_status?: ValidationStatus;
1826
+ validation_status?: ValidationStatusEnum;
1823
1827
  }
1824
1828
  export interface CustomerUpdateForItemsInputParam {
1825
1829
  vat_number?: string;
1826
1830
  vat_number_prefix?: string;
1827
1831
  entity_identifier_scheme?: string;
1828
1832
  is_einvoice_enabled?: boolean;
1829
- einvoicing_method?: EinvoicingMethod;
1833
+ einvoicing_method?: EinvoicingMethodEnum;
1830
1834
  entity_identifier_standard?: string;
1831
1835
  business_customer_without_vat_number?: boolean;
1832
1836
  registered_for_gst?: boolean;
@@ -1848,14 +1852,14 @@ declare module 'chargebee' {
1848
1852
  state?: string;
1849
1853
  zip?: string;
1850
1854
  country?: string;
1851
- validation_status?: ValidationStatus;
1855
+ validation_status?: ValidationStatusEnum;
1852
1856
  }
1853
1857
  export interface PaymentMethodUpdateForItemsInputParam {
1854
- type?: Type;
1858
+ type?: TypeEnum;
1855
1859
  /**
1856
1860
  * @deprecated Please refer API docs to use other attributes
1857
1861
  */
1858
- gateway?: Gateway;
1862
+ gateway?: GatewayEnum;
1859
1863
  gateway_account_id?: string;
1860
1864
  reference_id?: string;
1861
1865
  tmp_token?: string;
@@ -1906,7 +1910,7 @@ declare module 'chargebee' {
1906
1910
  /**
1907
1911
  * @deprecated Please refer API docs to use other attributes
1908
1912
  */
1909
- gateway?: Gateway;
1913
+ gateway?: GatewayEnum;
1910
1914
  gateway_account_id?: string;
1911
1915
  /**
1912
1916
  * @deprecated Please refer API docs to use other attributes
@@ -1941,25 +1945,26 @@ declare module 'chargebee' {
1941
1945
  billing_cycles?: number;
1942
1946
  trial_end?: number;
1943
1947
  service_period_days?: number;
1944
- charge_on_event?: ChargeOnEvent;
1948
+ charge_on_event?: ChargeOnEventEnum;
1945
1949
  charge_once?: boolean;
1946
- charge_on_option?: ChargeOnOption;
1950
+ charge_on_option?: ChargeOnOptionEnum;
1947
1951
  /**
1948
1952
  * @deprecated Please refer API docs to use other attributes
1949
1953
  */
1950
- item_type?: ItemType;
1951
- proration_type?: ProrationType;
1954
+ item_type?: ItemTypeEnum;
1955
+ proration_type?: ProrationTypeEnum;
1956
+ usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
1952
1957
  }
1953
1958
  export interface DiscountsUpdateForItemsInputParam {
1954
- apply_on: ApplyOn;
1955
- duration_type: DurationType;
1959
+ apply_on: ApplyOnEnum;
1960
+ duration_type: DurationTypeEnum;
1956
1961
  percentage?: number;
1957
1962
  amount?: number;
1958
1963
  period?: number;
1959
- period_unit?: PeriodUnit;
1964
+ period_unit?: PeriodUnitEnum;
1960
1965
  included_in_mrr?: boolean;
1961
1966
  item_price_id?: string;
1962
- operation_type: OperationType;
1967
+ operation_type: OperationTypeEnum;
1963
1968
  id?: string;
1964
1969
  }
1965
1970
  export interface CouponsUpdateForItemsInputParam {
@@ -2024,7 +2029,7 @@ declare module 'chargebee' {
2024
2029
  export interface FixedIntervalScheduleChargeFutureRenewalsInputParam {
2025
2030
  number_of_occurrences?: number;
2026
2031
  days_before_renewal?: number;
2027
- end_schedule_on?: EndScheduleOn;
2032
+ end_schedule_on?: EndScheduleOnEnum;
2028
2033
  end_date?: number;
2029
2034
  }
2030
2035
 
@@ -2035,7 +2040,7 @@ declare module 'chargebee' {
2035
2040
  export interface FixedIntervalScheduleEditAdvanceInvoiceScheduleInputParam {
2036
2041
  number_of_occurrences?: number;
2037
2042
  days_before_renewal?: number;
2038
- end_schedule_on?: EndScheduleOn;
2043
+ end_schedule_on?: EndScheduleOnEnum;
2039
2044
  end_date?: number;
2040
2045
  }
2041
2046
 
@@ -2061,11 +2066,11 @@ declare module 'chargebee' {
2061
2066
  state?: string;
2062
2067
  zip?: string;
2063
2068
  country?: string;
2064
- validation_status?: ValidationStatus;
2069
+ validation_status?: ValidationStatusEnum;
2065
2070
  }
2066
2071
  export interface TransactionImportSubscriptionInputParam {
2067
2072
  amount?: number;
2068
- payment_method?: PaymentMethod;
2073
+ payment_method?: PaymentMethodEnum;
2069
2074
  reference_number?: string;
2070
2075
  date?: number;
2071
2076
  }
@@ -2077,13 +2082,13 @@ declare module 'chargebee' {
2077
2082
  company?: string;
2078
2083
  phone?: string;
2079
2084
  locale?: string;
2080
- taxability?: Taxability;
2081
- entity_code?: EntityCode;
2085
+ taxability?: TaxabilityEnum;
2086
+ entity_code?: EntityCodeEnum;
2082
2087
  exempt_number?: string;
2083
2088
  net_term_days?: number;
2084
- taxjar_exemption_category?: TaxjarExemptionCategory;
2085
- customer_type?: CustomerType;
2086
- auto_collection?: AutoCollection;
2089
+ taxjar_exemption_category?: TaxjarExemptionCategoryEnum;
2090
+ customer_type?: CustomerTypeEnum;
2091
+ auto_collection?: AutoCollectionEnum;
2087
2092
  allow_direct_debit?: boolean;
2088
2093
  vat_number?: string;
2089
2094
  vat_number_prefix?: string;
@@ -2102,14 +2107,14 @@ declare module 'chargebee' {
2102
2107
  state?: string;
2103
2108
  zip?: string;
2104
2109
  country?: string;
2105
- validation_status?: ValidationStatus;
2110
+ validation_status?: ValidationStatusEnum;
2106
2111
  }
2107
2112
  export interface PaymentMethodImportSubscriptionInputParam {
2108
- type?: Type;
2113
+ type?: TypeEnum;
2109
2114
  /**
2110
2115
  * @deprecated Please refer API docs to use other attributes
2111
2116
  */
2112
- gateway?: Gateway;
2117
+ gateway?: GatewayEnum;
2113
2118
  gateway_account_id?: string;
2114
2119
  reference_id?: string;
2115
2120
  issuing_country?: string;
@@ -2129,7 +2134,7 @@ declare module 'chargebee' {
2129
2134
  /**
2130
2135
  * @deprecated Please refer API docs to use other attributes
2131
2136
  */
2132
- gateway?: Gateway;
2137
+ gateway?: GatewayEnum;
2133
2138
  gateway_account_id?: string;
2134
2139
  /**
2135
2140
  * @deprecated Please refer API docs to use other attributes
@@ -2162,7 +2167,7 @@ declare module 'chargebee' {
2162
2167
  quantity_in_decimal?: string;
2163
2168
  unit_price_in_decimal?: string;
2164
2169
  service_period_in_days?: number;
2165
- on_event?: OnEvent;
2170
+ on_event?: OnEventEnum;
2166
2171
  charge_once?: boolean;
2167
2172
  }
2168
2173
  export interface CouponsImportSubscriptionInputParam {
@@ -2185,7 +2190,7 @@ declare module 'chargebee' {
2185
2190
  }
2186
2191
  export interface TransactionImportForCustomerInputParam {
2187
2192
  amount?: number;
2188
- payment_method?: PaymentMethod;
2193
+ payment_method?: PaymentMethodEnum;
2189
2194
  reference_number?: string;
2190
2195
  date?: number;
2191
2196
  }
@@ -2203,7 +2208,7 @@ declare module 'chargebee' {
2203
2208
  state?: string;
2204
2209
  zip?: string;
2205
2210
  country?: string;
2206
- validation_status?: ValidationStatus;
2211
+ validation_status?: ValidationStatusEnum;
2207
2212
  }
2208
2213
  export interface ContractTermImportForCustomerInputParam {
2209
2214
  id?: string;
@@ -2227,7 +2232,7 @@ declare module 'chargebee' {
2227
2232
  quantity_in_decimal?: string;
2228
2233
  unit_price_in_decimal?: string;
2229
2234
  service_period_in_days?: number;
2230
- on_event?: OnEvent;
2235
+ on_event?: OnEventEnum;
2231
2236
  charge_once?: boolean;
2232
2237
  }
2233
2238
  export interface CouponsImportForCustomerInputParam {
@@ -2308,7 +2313,7 @@ declare module 'chargebee' {
2308
2313
  }
2309
2314
  export interface TransactionImportForItemsInputParam {
2310
2315
  amount?: number;
2311
- payment_method?: PaymentMethod;
2316
+ payment_method?: PaymentMethodEnum;
2312
2317
  reference_number?: string;
2313
2318
  date?: number;
2314
2319
  }
@@ -2326,7 +2331,7 @@ declare module 'chargebee' {
2326
2331
  state?: string;
2327
2332
  zip?: string;
2328
2333
  country?: string;
2329
- validation_status?: ValidationStatus;
2334
+ validation_status?: ValidationStatusEnum;
2330
2335
  }
2331
2336
  export interface ContractTermImportForItemsInputParam {
2332
2337
  id?: string;
@@ -2348,20 +2353,20 @@ declare module 'chargebee' {
2348
2353
  billing_cycles?: number;
2349
2354
  trial_end?: number;
2350
2355
  service_period_days?: number;
2351
- charge_on_event?: ChargeOnEvent;
2356
+ charge_on_event?: ChargeOnEventEnum;
2352
2357
  charge_once?: boolean;
2353
2358
  /**
2354
2359
  * @deprecated Please refer API docs to use other attributes
2355
2360
  */
2356
- item_type?: ItemType;
2361
+ item_type?: ItemTypeEnum;
2357
2362
  }
2358
2363
  export interface DiscountsImportForItemsInputParam {
2359
- apply_on: ApplyOn;
2360
- duration_type: DurationType;
2364
+ apply_on: ApplyOnEnum;
2365
+ duration_type: DurationTypeEnum;
2361
2366
  percentage?: number;
2362
2367
  amount?: number;
2363
2368
  period?: number;
2364
- period_unit?: PeriodUnit;
2369
+ period_unit?: PeriodUnitEnum;
2365
2370
  included_in_mrr?: boolean;
2366
2371
  item_price_id?: string;
2367
2372
  }