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
@@ -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[];
@@ -644,7 +644,7 @@ declare module 'chargebee' {
644
644
  state?: string;
645
645
  country?: string;
646
646
  zip?: string;
647
- validation_status?: ValidationStatus;
647
+ validation_status?: ValidationStatusEnum;
648
648
  index: number;
649
649
  }
650
650
  export interface ReferralInfo {
@@ -653,13 +653,13 @@ declare module 'chargebee' {
653
653
  referrer_id?: string;
654
654
  external_reference_id?: string;
655
655
  reward_status?: 'pending' | 'paid' | 'invalid';
656
- referral_system?: ReferralSystem;
656
+ referral_system?: ReferralSystemEnum;
657
657
  account_id: string;
658
658
  campaign_id: string;
659
659
  external_campaign_id?: string;
660
- friend_offer_type?: FriendOfferType;
661
- referrer_reward_type?: ReferrerRewardType;
662
- notify_referral_system?: NotifyReferralSystem;
660
+ friend_offer_type?: FriendOfferTypeEnum;
661
+ referrer_reward_type?: ReferrerRewardTypeEnum;
662
+ notify_referral_system?: NotifyReferralSystemEnum;
663
663
  destination_url?: string;
664
664
  post_purchase_widget_enabled: boolean;
665
665
  }
@@ -715,10 +715,10 @@ declare module 'chargebee' {
715
715
  */;
716
716
 
717
717
  coupon?: string;
718
- auto_collection?: AutoCollection;
718
+ auto_collection?: AutoCollectionEnum;
719
719
  terms_to_charge?: number;
720
- billing_alignment_mode?: BillingAlignmentMode;
721
- offline_payment_method?: OfflinePaymentMethod;
720
+ billing_alignment_mode?: BillingAlignmentModeEnum;
721
+ offline_payment_method?: OfflinePaymentMethodEnum;
722
722
  po_number?: string;
723
723
  coupon_ids?: string[];
724
724
  token_id?: string;
@@ -732,11 +732,11 @@ declare module 'chargebee' {
732
732
  meta_data?: any;
733
733
  invoice_immediately?: boolean;
734
734
  free_period?: number;
735
- free_period_unit?: FreePeriodUnit;
735
+ free_period_unit?: FreePeriodUnitEnum;
736
736
  contract_term_billing_cycle_on_renewal?: number;
737
- trial_end_action?: TrialEndAction;
737
+ trial_end_action?: TrialEndActionEnum;
738
738
  client_profile_id?: string;
739
- payment_initiator?: PaymentInitiator;
739
+ payment_initiator?: PaymentInitiatorEnum;
740
740
  customer?: CustomerCreateInputParam;
741
741
  card?: CardCreateInputParam;
742
742
  bank_account?: BankAccountCreateInputParam;
@@ -769,10 +769,10 @@ declare module 'chargebee' {
769
769
  */;
770
770
 
771
771
  coupon?: string;
772
- auto_collection?: AutoCollection;
772
+ auto_collection?: AutoCollectionEnum;
773
773
  terms_to_charge?: number;
774
- billing_alignment_mode?: BillingAlignmentMode;
775
- offline_payment_method?: OfflinePaymentMethod;
774
+ billing_alignment_mode?: BillingAlignmentModeEnum;
775
+ offline_payment_method?: OfflinePaymentMethodEnum;
776
776
  po_number?: string;
777
777
  coupon_ids?: string[];
778
778
  payment_source_id?: string;
@@ -783,10 +783,10 @@ declare module 'chargebee' {
783
783
  invoice_immediately?: boolean;
784
784
  replace_primary_payment_source?: boolean;
785
785
  free_period?: number;
786
- free_period_unit?: FreePeriodUnit;
786
+ free_period_unit?: FreePeriodUnitEnum;
787
787
  contract_term_billing_cycle_on_renewal?: number;
788
- trial_end_action?: TrialEndAction;
789
- payment_initiator?: PaymentInitiator;
788
+ trial_end_action?: TrialEndActionEnum;
789
+ payment_initiator?: PaymentInitiatorEnum;
790
790
  shipping_address?: ShippingAddressCreateForCustomerInputParam;
791
791
  statement_descriptor?: StatementDescriptorCreateForCustomerInputParam;
792
792
  payment_intent?: PaymentIntentCreateForCustomerInputParam;
@@ -812,9 +812,9 @@ declare module 'chargebee' {
812
812
  */;
813
813
 
814
814
  coupon?: string;
815
- auto_collection?: AutoCollection;
815
+ auto_collection?: AutoCollectionEnum;
816
816
  terms_to_charge?: number;
817
- billing_alignment_mode?: BillingAlignmentMode;
817
+ billing_alignment_mode?: BillingAlignmentModeEnum;
818
818
  po_number?: string;
819
819
  coupon_ids?: string[];
820
820
  payment_source_id?: string;
@@ -825,13 +825,13 @@ declare module 'chargebee' {
825
825
  invoice_immediately?: boolean;
826
826
  replace_primary_payment_source?: boolean;
827
827
  free_period?: number;
828
- free_period_unit?: FreePeriodUnit;
828
+ free_period_unit?: FreePeriodUnitEnum;
829
829
  contract_term_billing_cycle_on_renewal?: number;
830
830
  create_pending_invoices?: boolean;
831
831
  auto_close_invoices?: boolean;
832
832
  first_invoice_pending?: boolean;
833
- trial_end_action?: TrialEndAction;
834
- payment_initiator?: PaymentInitiator;
833
+ trial_end_action?: TrialEndActionEnum;
834
+ payment_initiator?: PaymentInitiatorEnum;
835
835
  shipping_address?: ShippingAddressCreateWithItemsInputParam;
836
836
  statement_descriptor?: StatementDescriptorCreateWithItemsInputParam;
837
837
  payment_intent?: PaymentIntentCreateWithItemsInputParam;
@@ -907,9 +907,9 @@ declare module 'chargebee' {
907
907
  coupon?: string;
908
908
  terms_to_charge?: number;
909
909
  reactivate_from?: number;
910
- billing_alignment_mode?: BillingAlignmentMode;
911
- auto_collection?: AutoCollection;
912
- offline_payment_method?: OfflinePaymentMethod;
910
+ billing_alignment_mode?: BillingAlignmentModeEnum;
911
+ auto_collection?: AutoCollectionEnum;
912
+ offline_payment_method?: OfflinePaymentMethodEnum;
913
913
  po_number?: string;
914
914
  coupon_ids?: string[];
915
915
  replace_coupon_list?: boolean;
@@ -923,11 +923,11 @@ declare module 'chargebee' {
923
923
  invoice_immediately?: boolean;
924
924
  override_relationship?: boolean;
925
925
  changes_scheduled_at?: number;
926
- change_option?: ChangeOption;
926
+ change_option?: ChangeOptionEnum;
927
927
  contract_term_billing_cycle_on_renewal?: number;
928
928
  free_period?: number;
929
- free_period_unit?: FreePeriodUnit;
930
- trial_end_action?: TrialEndAction;
929
+ free_period_unit?: FreePeriodUnitEnum;
930
+ trial_end_action?: TrialEndActionEnum;
931
931
  card?: CardUpdateInputParam;
932
932
  payment_method?: PaymentMethodUpdateInputParam;
933
933
  payment_intent?: PaymentIntentUpdateInputParam;
@@ -959,9 +959,9 @@ declare module 'chargebee' {
959
959
  coupon?: string;
960
960
  terms_to_charge?: number;
961
961
  reactivate_from?: number;
962
- billing_alignment_mode?: BillingAlignmentMode;
963
- auto_collection?: AutoCollection;
964
- offline_payment_method?: OfflinePaymentMethod;
962
+ billing_alignment_mode?: BillingAlignmentModeEnum;
963
+ auto_collection?: AutoCollectionEnum;
964
+ offline_payment_method?: OfflinePaymentMethodEnum;
965
965
  po_number?: string;
966
966
  coupon_ids?: string[];
967
967
  replace_coupon_list?: boolean;
@@ -975,14 +975,14 @@ declare module 'chargebee' {
975
975
  invoice_immediately?: boolean;
976
976
  override_relationship?: boolean;
977
977
  changes_scheduled_at?: number;
978
- change_option?: ChangeOption;
978
+ change_option?: ChangeOptionEnum;
979
979
  contract_term_billing_cycle_on_renewal?: number;
980
980
  free_period?: number;
981
- free_period_unit?: FreePeriodUnit;
981
+ free_period_unit?: FreePeriodUnitEnum;
982
982
  create_pending_invoices?: boolean;
983
983
  auto_close_invoices?: boolean;
984
- trial_end_action?: TrialEndAction;
985
- payment_initiator?: PaymentInitiator;
984
+ trial_end_action?: TrialEndActionEnum;
985
+ payment_initiator?: PaymentInitiatorEnum;
986
986
  invoice_usages?: boolean;
987
987
  card?: CardUpdateForItemsInputParam;
988
988
  payment_method?: PaymentMethodUpdateForItemsInputParam;
@@ -1012,11 +1012,11 @@ declare module 'chargebee' {
1012
1012
  trial_period_days?: number;
1013
1013
  reactivate_from?: number;
1014
1014
  invoice_immediately?: boolean;
1015
- billing_alignment_mode?: BillingAlignmentMode;
1015
+ billing_alignment_mode?: BillingAlignmentModeEnum;
1016
1016
  terms_to_charge?: number;
1017
1017
  invoice_date?: number;
1018
1018
  contract_term_billing_cycle_on_renewal?: number;
1019
- payment_initiator?: PaymentInitiator;
1019
+ payment_initiator?: PaymentInitiatorEnum;
1020
1020
  contract_term?: ContractTermReactivateInputParam;
1021
1021
  statement_descriptor?: StatementDescriptorReactivateInputParam;
1022
1022
  payment_intent?: PaymentIntentReactivateInputParam;
@@ -1025,7 +1025,7 @@ declare module 'chargebee' {
1025
1025
  amount?: number;
1026
1026
  description: string;
1027
1027
  amount_in_decimal?: string;
1028
- avalara_sale_type?: AvalaraSaleType;
1028
+ avalara_sale_type?: AvalaraSaleTypeEnum;
1029
1029
  avalara_transaction_type?: number;
1030
1030
  avalara_service_type?: number;
1031
1031
  date_from?: number;
@@ -1043,13 +1043,13 @@ declare module 'chargebee' {
1043
1043
  export interface ChargeFutureRenewalsInputParam {
1044
1044
  terms_to_charge?: number;
1045
1045
  invoice_immediately?: boolean;
1046
- schedule_type?: ScheduleType;
1046
+ schedule_type?: ScheduleTypeEnum;
1047
1047
  fixed_interval_schedule?: FixedIntervalScheduleChargeFutureRenewalsInputParam;
1048
1048
  specific_dates_schedule?: SpecificDatesScheduleChargeFutureRenewalsInputParam[];
1049
1049
  }
1050
1050
  export interface EditAdvanceInvoiceScheduleInputParam {
1051
1051
  terms_to_charge?: number;
1052
- schedule_type?: ScheduleType;
1052
+ schedule_type?: ScheduleTypeEnum;
1053
1053
  fixed_interval_schedule?: FixedIntervalScheduleEditAdvanceInvoiceScheduleInputParam;
1054
1054
  specific_dates_schedule?: SpecificDatesScheduleEditAdvanceInvoiceScheduleInputParam[];
1055
1055
  }
@@ -1074,7 +1074,7 @@ declare module 'chargebee' {
1074
1074
  trial_end?: number;
1075
1075
  billing_cycles?: number;
1076
1076
  start_date?: number;
1077
- auto_collection?: AutoCollection;
1077
+ auto_collection?: AutoCollectionEnum;
1078
1078
  po_number?: string;
1079
1079
  coupon_ids?: string[];
1080
1080
  contract_term_billing_cycle_on_renewal?: number;
@@ -1122,7 +1122,7 @@ declare module 'chargebee' {
1122
1122
  trial_end?: number;
1123
1123
  billing_cycles?: number;
1124
1124
  start_date?: number;
1125
- auto_collection?: AutoCollection;
1125
+ auto_collection?: AutoCollectionEnum;
1126
1126
  po_number?: string;
1127
1127
  coupon_ids?: string[];
1128
1128
  payment_source_id?: string;
@@ -1174,7 +1174,7 @@ declare module 'chargebee' {
1174
1174
  setup_fee?: number;
1175
1175
  net_term_days?: number;
1176
1176
  start_date?: number;
1177
- auto_collection?: AutoCollection;
1177
+ auto_collection?: AutoCollectionEnum;
1178
1178
  po_number?: string;
1179
1179
  coupon_ids?: string[];
1180
1180
  payment_source_id?: string;
@@ -1213,48 +1213,48 @@ declare module 'chargebee' {
1213
1213
  }
1214
1214
  export interface OverrideBillingProfileInputParam {
1215
1215
  payment_source_id?: string;
1216
- auto_collection?: AutoCollection;
1216
+ auto_collection?: AutoCollectionEnum;
1217
1217
  }
1218
1218
  export interface PauseInputParam {
1219
- pause_option?: PauseOption;
1219
+ pause_option?: PauseOptionEnum;
1220
1220
  pause_date?: number;
1221
- unbilled_charges_handling?: UnbilledChargesHandling;
1222
- invoice_dunning_handling?: InvoiceDunningHandling;
1221
+ unbilled_charges_handling?: UnbilledChargesHandlingEnum;
1222
+ invoice_dunning_handling?: InvoiceDunningHandlingEnum;
1223
1223
  skip_billing_cycles?: number;
1224
1224
  resume_date?: number;
1225
1225
  }
1226
1226
  export interface CancelInputParam {
1227
- cancel_option?: CancelOption;
1227
+ cancel_option?: CancelOptionEnum;
1228
1228
  end_of_term?: boolean;
1229
1229
  cancel_at?: number;
1230
- credit_option_for_current_term_charges?: CreditOptionForCurrentTermCharges;
1231
- unbilled_charges_option?: UnbilledChargesOption;
1232
- account_receivables_handling?: AccountReceivablesHandling;
1233
- refundable_credits_handling?: RefundableCreditsHandling;
1234
- 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;
1235
1235
  invoice_date?: number;
1236
1236
  cancel_reason_code?: string;
1237
1237
  event_based_addons?: EventBasedAddonsCancelInputParam[];
1238
1238
  }
1239
1239
  export interface CancelForItemsInputParam {
1240
- cancel_option?: CancelOption;
1240
+ cancel_option?: CancelOptionEnum;
1241
1241
  end_of_term?: boolean;
1242
1242
  cancel_at?: number;
1243
- credit_option_for_current_term_charges?: CreditOptionForCurrentTermCharges;
1244
- unbilled_charges_option?: UnbilledChargesOption;
1245
- account_receivables_handling?: AccountReceivablesHandling;
1246
- refundable_credits_handling?: RefundableCreditsHandling;
1247
- 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;
1248
1248
  invoice_date?: number;
1249
1249
  cancel_reason_code?: string;
1250
1250
  subscription_items?: SubscriptionItemsCancelForItemsInputParam[];
1251
1251
  }
1252
1252
  export interface ResumeInputParam {
1253
- resume_option?: ResumeOption;
1253
+ resume_option?: ResumeOptionEnum;
1254
1254
  resume_date?: number;
1255
- charges_handling?: ChargesHandling;
1256
- unpaid_invoices_handling?: UnpaidInvoicesHandling;
1257
- payment_initiator?: PaymentInitiator;
1255
+ charges_handling?: ChargesHandlingEnum;
1256
+ unpaid_invoices_handling?: UnpaidInvoicesHandlingEnum;
1257
+ payment_initiator?: PaymentInitiatorEnum;
1258
1258
  payment_intent?: PaymentIntentResumeInputParam;
1259
1259
  }
1260
1260
  export interface MoveInputParam {
@@ -1275,7 +1275,7 @@ declare module 'chargebee' {
1275
1275
  state?: string;
1276
1276
  zip?: string;
1277
1277
  country?: string;
1278
- validation_status?: ValidationStatus;
1278
+ validation_status?: ValidationStatusEnum;
1279
1279
  }
1280
1280
  export interface StatementDescriptorCreateInputParam {
1281
1281
  descriptor?: string;
@@ -1288,13 +1288,13 @@ declare module 'chargebee' {
1288
1288
  company?: string;
1289
1289
  phone?: string;
1290
1290
  locale?: string;
1291
- taxability?: Taxability;
1292
- entity_code?: EntityCode;
1291
+ taxability?: TaxabilityEnum;
1292
+ entity_code?: EntityCodeEnum;
1293
1293
  exempt_number?: string;
1294
1294
  net_term_days?: number;
1295
- taxjar_exemption_category?: TaxjarExemptionCategory;
1296
- auto_collection?: AutoCollection;
1297
- offline_payment_method?: OfflinePaymentMethod;
1295
+ taxjar_exemption_category?: TaxjarExemptionCategoryEnum;
1296
+ auto_collection?: AutoCollectionEnum;
1297
+ offline_payment_method?: OfflinePaymentMethodEnum;
1298
1298
  allow_direct_debit?: boolean;
1299
1299
  consolidated_invoicing?: boolean;
1300
1300
  vat_number?: string;
@@ -1302,11 +1302,11 @@ declare module 'chargebee' {
1302
1302
  entity_identifier_scheme?: string;
1303
1303
  entity_identifier_standard?: string;
1304
1304
  is_einvoice_enabled?: boolean;
1305
- einvoicing_method?: EinvoicingMethod;
1305
+ einvoicing_method?: EinvoicingMethodEnum;
1306
1306
  registered_for_gst?: boolean;
1307
1307
  business_customer_without_vat_number?: boolean;
1308
1308
  exemption_details?: any;
1309
- customer_type?: CustomerType;
1309
+ customer_type?: CustomerTypeEnum;
1310
1310
  }
1311
1311
  export interface ShippingAddressCreateInputParam {
1312
1312
  first_name?: string;
@@ -1322,14 +1322,14 @@ declare module 'chargebee' {
1322
1322
  state?: string;
1323
1323
  zip?: string;
1324
1324
  country?: string;
1325
- validation_status?: ValidationStatus;
1325
+ validation_status?: ValidationStatusEnum;
1326
1326
  }
1327
1327
  export interface PaymentMethodCreateInputParam {
1328
- type?: Type;
1328
+ type?: TypeEnum;
1329
1329
  /**
1330
1330
  * @deprecated Please refer API docs to use other attributes
1331
1331
  */
1332
- gateway?: Gateway;
1332
+ gateway?: GatewayEnum;
1333
1333
  gateway_account_id?: string;
1334
1334
  reference_id?: string;
1335
1335
  tmp_token?: string;
@@ -1348,9 +1348,9 @@ declare module 'chargebee' {
1348
1348
  account_number?: string;
1349
1349
  routing_number?: string;
1350
1350
  bank_code?: string;
1351
- account_type?: AccountType;
1352
- account_holder_type?: AccountHolderType;
1353
- echeck_type?: EcheckType;
1351
+ account_type?: AccountTypeEnum;
1352
+ account_holder_type?: AccountHolderTypeEnum;
1353
+ echeck_type?: EcheckTypeEnum;
1354
1354
  issuing_country?: string;
1355
1355
  swedish_identity_number?: string;
1356
1356
  billing_address?: any;
@@ -1395,7 +1395,7 @@ declare module 'chargebee' {
1395
1395
  /**
1396
1396
  * @deprecated Please refer API docs to use other attributes
1397
1397
  */
1398
- gateway?: Gateway;
1398
+ gateway?: GatewayEnum;
1399
1399
  gateway_account_id?: string;
1400
1400
  /**
1401
1401
  * @deprecated Please refer API docs to use other attributes
@@ -1428,9 +1428,9 @@ declare module 'chargebee' {
1428
1428
  quantity_in_decimal?: string;
1429
1429
  unit_price_in_decimal?: string;
1430
1430
  service_period_in_days?: number;
1431
- on_event?: OnEvent;
1431
+ on_event?: OnEventEnum;
1432
1432
  charge_once?: boolean;
1433
- charge_on?: ChargeOn;
1433
+ charge_on?: ChargeOnEnum;
1434
1434
  }
1435
1435
  export interface CouponsCreateInputParam {
1436
1436
  /**
@@ -1479,7 +1479,7 @@ declare module 'chargebee' {
1479
1479
  state?: string;
1480
1480
  zip?: string;
1481
1481
  country?: string;
1482
- validation_status?: ValidationStatus;
1482
+ validation_status?: ValidationStatusEnum;
1483
1483
  }
1484
1484
  export interface ContractTermCreateForCustomerInputParam {
1485
1485
  action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
@@ -1525,9 +1525,9 @@ declare module 'chargebee' {
1525
1525
  quantity_in_decimal?: string;
1526
1526
  unit_price_in_decimal?: string;
1527
1527
  service_period_in_days?: number;
1528
- on_event?: OnEvent;
1528
+ on_event?: OnEventEnum;
1529
1529
  charge_once?: boolean;
1530
- charge_on?: ChargeOn;
1530
+ charge_on?: ChargeOnEnum;
1531
1531
  }
1532
1532
  export interface CouponsCreateForCustomerInputParam {
1533
1533
  /**
@@ -1565,7 +1565,7 @@ declare module 'chargebee' {
1565
1565
  state?: string;
1566
1566
  zip?: string;
1567
1567
  country?: string;
1568
- validation_status?: ValidationStatus;
1568
+ validation_status?: ValidationStatusEnum;
1569
1569
  }
1570
1570
  export interface ContractTermCreateWithItemsInputParam {
1571
1571
  action_at_term_end?: 'renew' | 'evergreen' | 'cancel';
@@ -1617,22 +1617,22 @@ declare module 'chargebee' {
1617
1617
  billing_cycles?: number;
1618
1618
  trial_end?: number;
1619
1619
  service_period_days?: number;
1620
- charge_on_event?: ChargeOnEvent;
1620
+ charge_on_event?: ChargeOnEventEnum;
1621
1621
  charge_once?: boolean;
1622
1622
  /**
1623
1623
  * @deprecated Please refer API docs to use other attributes
1624
1624
  */
1625
- item_type?: ItemType;
1626
- charge_on_option?: ChargeOnOption;
1627
- usage_accumulation_reset_frequency?: UsageAccumulationResetFrequency;
1625
+ item_type?: ItemTypeEnum;
1626
+ charge_on_option?: ChargeOnOptionEnum;
1627
+ usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
1628
1628
  }
1629
1629
  export interface DiscountsCreateWithItemsInputParam {
1630
- apply_on: ApplyOn;
1631
- duration_type: DurationType;
1630
+ apply_on: ApplyOnEnum;
1631
+ duration_type: DurationTypeEnum;
1632
1632
  percentage?: number;
1633
1633
  amount?: number;
1634
1634
  period?: number;
1635
- period_unit?: PeriodUnit;
1635
+ period_unit?: PeriodUnitEnum;
1636
1636
  included_in_mrr?: boolean;
1637
1637
  item_price_id?: string;
1638
1638
  }
@@ -1669,14 +1669,14 @@ declare module 'chargebee' {
1669
1669
  state?: string;
1670
1670
  zip?: string;
1671
1671
  country?: string;
1672
- validation_status?: ValidationStatus;
1672
+ validation_status?: ValidationStatusEnum;
1673
1673
  }
1674
1674
  export interface CustomerUpdateInputParam {
1675
1675
  vat_number?: string;
1676
1676
  vat_number_prefix?: string;
1677
1677
  entity_identifier_scheme?: string;
1678
1678
  is_einvoice_enabled?: boolean;
1679
- einvoicing_method?: EinvoicingMethod;
1679
+ einvoicing_method?: EinvoicingMethodEnum;
1680
1680
  entity_identifier_standard?: string;
1681
1681
  business_customer_without_vat_number?: boolean;
1682
1682
  registered_for_gst?: boolean;
@@ -1698,14 +1698,14 @@ declare module 'chargebee' {
1698
1698
  state?: string;
1699
1699
  zip?: string;
1700
1700
  country?: string;
1701
- validation_status?: ValidationStatus;
1701
+ validation_status?: ValidationStatusEnum;
1702
1702
  }
1703
1703
  export interface PaymentMethodUpdateInputParam {
1704
- type?: Type;
1704
+ type?: TypeEnum;
1705
1705
  /**
1706
1706
  * @deprecated Please refer API docs to use other attributes
1707
1707
  */
1708
- gateway?: Gateway;
1708
+ gateway?: GatewayEnum;
1709
1709
  gateway_account_id?: string;
1710
1710
  reference_id?: string;
1711
1711
  tmp_token?: string;
@@ -1752,7 +1752,7 @@ declare module 'chargebee' {
1752
1752
  /**
1753
1753
  * @deprecated Please refer API docs to use other attributes
1754
1754
  */
1755
- gateway?: Gateway;
1755
+ gateway?: GatewayEnum;
1756
1756
  gateway_account_id?: string;
1757
1757
  /**
1758
1758
  * @deprecated Please refer API docs to use other attributes
@@ -1783,8 +1783,8 @@ declare module 'chargebee' {
1783
1783
  quantity?: number;
1784
1784
  unit_price?: number;
1785
1785
  service_period_in_days?: number;
1786
- charge_on?: ChargeOn;
1787
- on_event?: OnEvent;
1786
+ charge_on?: ChargeOnEnum;
1787
+ on_event?: OnEventEnum;
1788
1788
  charge_once?: boolean;
1789
1789
  quantity_in_decimal?: string;
1790
1790
  unit_price_in_decimal?: string;
@@ -1807,7 +1807,7 @@ declare module 'chargebee' {
1807
1807
  quantity_in_decimal?: string;
1808
1808
  unit_price_in_decimal?: string;
1809
1809
  trial_end?: number;
1810
- proration_type?: ProrationType;
1810
+ proration_type?: ProrationTypeEnum;
1811
1811
  }
1812
1812
  export interface BillingAddressUpdateForItemsInputParam {
1813
1813
  first_name?: string;
@@ -1823,14 +1823,14 @@ declare module 'chargebee' {
1823
1823
  state?: string;
1824
1824
  zip?: string;
1825
1825
  country?: string;
1826
- validation_status?: ValidationStatus;
1826
+ validation_status?: ValidationStatusEnum;
1827
1827
  }
1828
1828
  export interface CustomerUpdateForItemsInputParam {
1829
1829
  vat_number?: string;
1830
1830
  vat_number_prefix?: string;
1831
1831
  entity_identifier_scheme?: string;
1832
1832
  is_einvoice_enabled?: boolean;
1833
- einvoicing_method?: EinvoicingMethod;
1833
+ einvoicing_method?: EinvoicingMethodEnum;
1834
1834
  entity_identifier_standard?: string;
1835
1835
  business_customer_without_vat_number?: boolean;
1836
1836
  registered_for_gst?: boolean;
@@ -1852,14 +1852,14 @@ declare module 'chargebee' {
1852
1852
  state?: string;
1853
1853
  zip?: string;
1854
1854
  country?: string;
1855
- validation_status?: ValidationStatus;
1855
+ validation_status?: ValidationStatusEnum;
1856
1856
  }
1857
1857
  export interface PaymentMethodUpdateForItemsInputParam {
1858
- type?: Type;
1858
+ type?: TypeEnum;
1859
1859
  /**
1860
1860
  * @deprecated Please refer API docs to use other attributes
1861
1861
  */
1862
- gateway?: Gateway;
1862
+ gateway?: GatewayEnum;
1863
1863
  gateway_account_id?: string;
1864
1864
  reference_id?: string;
1865
1865
  tmp_token?: string;
@@ -1910,7 +1910,7 @@ declare module 'chargebee' {
1910
1910
  /**
1911
1911
  * @deprecated Please refer API docs to use other attributes
1912
1912
  */
1913
- gateway?: Gateway;
1913
+ gateway?: GatewayEnum;
1914
1914
  gateway_account_id?: string;
1915
1915
  /**
1916
1916
  * @deprecated Please refer API docs to use other attributes
@@ -1945,26 +1945,26 @@ declare module 'chargebee' {
1945
1945
  billing_cycles?: number;
1946
1946
  trial_end?: number;
1947
1947
  service_period_days?: number;
1948
- charge_on_event?: ChargeOnEvent;
1948
+ charge_on_event?: ChargeOnEventEnum;
1949
1949
  charge_once?: boolean;
1950
- charge_on_option?: ChargeOnOption;
1950
+ charge_on_option?: ChargeOnOptionEnum;
1951
1951
  /**
1952
1952
  * @deprecated Please refer API docs to use other attributes
1953
1953
  */
1954
- item_type?: ItemType;
1955
- proration_type?: ProrationType;
1956
- usage_accumulation_reset_frequency?: UsageAccumulationResetFrequency;
1954
+ item_type?: ItemTypeEnum;
1955
+ proration_type?: ProrationTypeEnum;
1956
+ usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
1957
1957
  }
1958
1958
  export interface DiscountsUpdateForItemsInputParam {
1959
- apply_on: ApplyOn;
1960
- duration_type: DurationType;
1959
+ apply_on: ApplyOnEnum;
1960
+ duration_type: DurationTypeEnum;
1961
1961
  percentage?: number;
1962
1962
  amount?: number;
1963
1963
  period?: number;
1964
- period_unit?: PeriodUnit;
1964
+ period_unit?: PeriodUnitEnum;
1965
1965
  included_in_mrr?: boolean;
1966
1966
  item_price_id?: string;
1967
- operation_type: OperationType;
1967
+ operation_type: OperationTypeEnum;
1968
1968
  id?: string;
1969
1969
  }
1970
1970
  export interface CouponsUpdateForItemsInputParam {
@@ -2029,7 +2029,7 @@ declare module 'chargebee' {
2029
2029
  export interface FixedIntervalScheduleChargeFutureRenewalsInputParam {
2030
2030
  number_of_occurrences?: number;
2031
2031
  days_before_renewal?: number;
2032
- end_schedule_on?: EndScheduleOn;
2032
+ end_schedule_on?: EndScheduleOnEnum;
2033
2033
  end_date?: number;
2034
2034
  }
2035
2035
 
@@ -2040,7 +2040,7 @@ declare module 'chargebee' {
2040
2040
  export interface FixedIntervalScheduleEditAdvanceInvoiceScheduleInputParam {
2041
2041
  number_of_occurrences?: number;
2042
2042
  days_before_renewal?: number;
2043
- end_schedule_on?: EndScheduleOn;
2043
+ end_schedule_on?: EndScheduleOnEnum;
2044
2044
  end_date?: number;
2045
2045
  }
2046
2046
 
@@ -2066,11 +2066,11 @@ declare module 'chargebee' {
2066
2066
  state?: string;
2067
2067
  zip?: string;
2068
2068
  country?: string;
2069
- validation_status?: ValidationStatus;
2069
+ validation_status?: ValidationStatusEnum;
2070
2070
  }
2071
2071
  export interface TransactionImportSubscriptionInputParam {
2072
2072
  amount?: number;
2073
- payment_method?: PaymentMethod;
2073
+ payment_method?: PaymentMethodEnum;
2074
2074
  reference_number?: string;
2075
2075
  date?: number;
2076
2076
  }
@@ -2082,13 +2082,13 @@ declare module 'chargebee' {
2082
2082
  company?: string;
2083
2083
  phone?: string;
2084
2084
  locale?: string;
2085
- taxability?: Taxability;
2086
- entity_code?: EntityCode;
2085
+ taxability?: TaxabilityEnum;
2086
+ entity_code?: EntityCodeEnum;
2087
2087
  exempt_number?: string;
2088
2088
  net_term_days?: number;
2089
- taxjar_exemption_category?: TaxjarExemptionCategory;
2090
- customer_type?: CustomerType;
2091
- auto_collection?: AutoCollection;
2089
+ taxjar_exemption_category?: TaxjarExemptionCategoryEnum;
2090
+ customer_type?: CustomerTypeEnum;
2091
+ auto_collection?: AutoCollectionEnum;
2092
2092
  allow_direct_debit?: boolean;
2093
2093
  vat_number?: string;
2094
2094
  vat_number_prefix?: string;
@@ -2107,14 +2107,14 @@ declare module 'chargebee' {
2107
2107
  state?: string;
2108
2108
  zip?: string;
2109
2109
  country?: string;
2110
- validation_status?: ValidationStatus;
2110
+ validation_status?: ValidationStatusEnum;
2111
2111
  }
2112
2112
  export interface PaymentMethodImportSubscriptionInputParam {
2113
- type?: Type;
2113
+ type?: TypeEnum;
2114
2114
  /**
2115
2115
  * @deprecated Please refer API docs to use other attributes
2116
2116
  */
2117
- gateway?: Gateway;
2117
+ gateway?: GatewayEnum;
2118
2118
  gateway_account_id?: string;
2119
2119
  reference_id?: string;
2120
2120
  issuing_country?: string;
@@ -2134,7 +2134,7 @@ declare module 'chargebee' {
2134
2134
  /**
2135
2135
  * @deprecated Please refer API docs to use other attributes
2136
2136
  */
2137
- gateway?: Gateway;
2137
+ gateway?: GatewayEnum;
2138
2138
  gateway_account_id?: string;
2139
2139
  /**
2140
2140
  * @deprecated Please refer API docs to use other attributes
@@ -2167,7 +2167,7 @@ declare module 'chargebee' {
2167
2167
  quantity_in_decimal?: string;
2168
2168
  unit_price_in_decimal?: string;
2169
2169
  service_period_in_days?: number;
2170
- on_event?: OnEvent;
2170
+ on_event?: OnEventEnum;
2171
2171
  charge_once?: boolean;
2172
2172
  }
2173
2173
  export interface CouponsImportSubscriptionInputParam {
@@ -2190,7 +2190,7 @@ declare module 'chargebee' {
2190
2190
  }
2191
2191
  export interface TransactionImportForCustomerInputParam {
2192
2192
  amount?: number;
2193
- payment_method?: PaymentMethod;
2193
+ payment_method?: PaymentMethodEnum;
2194
2194
  reference_number?: string;
2195
2195
  date?: number;
2196
2196
  }
@@ -2208,7 +2208,7 @@ declare module 'chargebee' {
2208
2208
  state?: string;
2209
2209
  zip?: string;
2210
2210
  country?: string;
2211
- validation_status?: ValidationStatus;
2211
+ validation_status?: ValidationStatusEnum;
2212
2212
  }
2213
2213
  export interface ContractTermImportForCustomerInputParam {
2214
2214
  id?: string;
@@ -2232,7 +2232,7 @@ declare module 'chargebee' {
2232
2232
  quantity_in_decimal?: string;
2233
2233
  unit_price_in_decimal?: string;
2234
2234
  service_period_in_days?: number;
2235
- on_event?: OnEvent;
2235
+ on_event?: OnEventEnum;
2236
2236
  charge_once?: boolean;
2237
2237
  }
2238
2238
  export interface CouponsImportForCustomerInputParam {
@@ -2313,7 +2313,7 @@ declare module 'chargebee' {
2313
2313
  }
2314
2314
  export interface TransactionImportForItemsInputParam {
2315
2315
  amount?: number;
2316
- payment_method?: PaymentMethod;
2316
+ payment_method?: PaymentMethodEnum;
2317
2317
  reference_number?: string;
2318
2318
  date?: number;
2319
2319
  }
@@ -2331,7 +2331,7 @@ declare module 'chargebee' {
2331
2331
  state?: string;
2332
2332
  zip?: string;
2333
2333
  country?: string;
2334
- validation_status?: ValidationStatus;
2334
+ validation_status?: ValidationStatusEnum;
2335
2335
  }
2336
2336
  export interface ContractTermImportForItemsInputParam {
2337
2337
  id?: string;
@@ -2353,20 +2353,20 @@ declare module 'chargebee' {
2353
2353
  billing_cycles?: number;
2354
2354
  trial_end?: number;
2355
2355
  service_period_days?: number;
2356
- charge_on_event?: ChargeOnEvent;
2356
+ charge_on_event?: ChargeOnEventEnum;
2357
2357
  charge_once?: boolean;
2358
2358
  /**
2359
2359
  * @deprecated Please refer API docs to use other attributes
2360
2360
  */
2361
- item_type?: ItemType;
2361
+ item_type?: ItemTypeEnum;
2362
2362
  }
2363
2363
  export interface DiscountsImportForItemsInputParam {
2364
- apply_on: ApplyOn;
2365
- duration_type: DurationType;
2364
+ apply_on: ApplyOnEnum;
2365
+ duration_type: DurationTypeEnum;
2366
2366
  percentage?: number;
2367
2367
  amount?: number;
2368
2368
  period?: number;
2369
- period_unit?: PeriodUnit;
2369
+ period_unit?: PeriodUnitEnum;
2370
2370
  included_in_mrr?: boolean;
2371
2371
  item_price_id?: string;
2372
2372
  }