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
  | 'voided'
17
17
  | 'pending';
18
18
  vat_number?: string;
19
- price_type: PriceType;
19
+ price_type: PriceTypeEnum;
20
20
  date?: number;
21
21
  due_date?: number;
22
22
  net_term_days?: number;
@@ -71,7 +71,7 @@ declare module 'chargebee' {
71
71
  deleted: boolean;
72
72
  tax_category?: string;
73
73
  vat_number_prefix?: string;
74
- channel?: Channel;
74
+ channel?: ChannelEnum;
75
75
  business_entity_id?: string;
76
76
  site_details_at_creation?: Invoice.SiteDetailsAtCreation;
77
77
  tax_origin?: Invoice.TaxOrigin;
@@ -715,7 +715,7 @@ declare module 'chargebee' {
715
715
  state?: string;
716
716
  country?: string;
717
717
  zip?: string;
718
- validation_status?: ValidationStatus;
718
+ validation_status?: ValidationStatusEnum;
719
719
  index: number;
720
720
  }
721
721
  export interface StatementDescriptor {
@@ -736,7 +736,7 @@ declare module 'chargebee' {
736
736
  state?: string;
737
737
  country?: string;
738
738
  zip?: string;
739
- validation_status?: ValidationStatus;
739
+ validation_status?: ValidationStatusEnum;
740
740
  }
741
741
  export interface Einvoice {
742
742
  id: string;
@@ -776,11 +776,11 @@ declare module 'chargebee' {
776
776
  coupon_ids?: string[];
777
777
  authorization_transaction_id?: string;
778
778
  payment_source_id?: string;
779
- auto_collection?: AutoCollection;
779
+ auto_collection?: AutoCollectionEnum;
780
780
  token_id?: string;
781
781
  replace_primary_payment_source?: boolean;
782
782
  retain_payment_source?: boolean;
783
- payment_initiator?: PaymentInitiator;
783
+ payment_initiator?: PaymentInitiatorEnum;
784
784
  shipping_address?: ShippingAddressCreateInputParam;
785
785
  statement_descriptor?: StatementDescriptorCreateInputParam;
786
786
  card?: CardCreateInputParam;
@@ -806,12 +806,12 @@ declare module 'chargebee' {
806
806
  coupon_ids?: string[];
807
807
  authorization_transaction_id?: string;
808
808
  payment_source_id?: string;
809
- auto_collection?: AutoCollection;
809
+ auto_collection?: AutoCollectionEnum;
810
810
  invoice_date?: number;
811
811
  token_id?: string;
812
812
  replace_primary_payment_source?: boolean;
813
813
  retain_payment_source?: boolean;
814
- payment_initiator?: PaymentInitiator;
814
+ payment_initiator?: PaymentInitiatorEnum;
815
815
  shipping_address?: ShippingAddressCreateForChargeItemsAndChargesInputParam;
816
816
  statement_descriptor?: StatementDescriptorCreateForChargeItemsAndChargesInputParam;
817
817
  card?: CardCreateForChargeItemsAndChargesInputParam;
@@ -839,13 +839,13 @@ declare module 'chargebee' {
839
839
  */;
840
840
 
841
841
  coupon?: string;
842
- avalara_sale_type?: AvalaraSaleType;
842
+ avalara_sale_type?: AvalaraSaleTypeEnum;
843
843
  avalara_transaction_type?: number;
844
844
  avalara_service_type?: number;
845
845
  po_number?: string;
846
846
  invoice_date?: number;
847
847
  payment_source_id?: string;
848
- payment_initiator?: PaymentInitiator;
848
+ payment_initiator?: PaymentInitiatorEnum;
849
849
  tax_providers_fields?: TaxProvidersFieldsChargeInputParam[];
850
850
  }
851
851
  export interface ChargeAddonInputParam {
@@ -866,7 +866,7 @@ declare module 'chargebee' {
866
866
  po_number?: string;
867
867
  invoice_date?: number;
868
868
  payment_source_id?: string;
869
- payment_initiator?: PaymentInitiator;
869
+ payment_initiator?: PaymentInitiatorEnum;
870
870
  }
871
871
  export interface CreateForChargeItemInputParam {
872
872
  customer_id?: string;
@@ -874,7 +874,7 @@ declare module 'chargebee' {
874
874
  po_number?: string;
875
875
  coupon?: string;
876
876
  payment_source_id?: string;
877
- payment_initiator?: PaymentInitiator;
877
+ payment_initiator?: PaymentInitiatorEnum;
878
878
  invoice_date?: number;
879
879
  item_price?: ItemPriceCreateForChargeItemInputParam;
880
880
  item_tiers?: ItemTiersCreateForChargeItemInputParam[];
@@ -888,8 +888,8 @@ declare module 'chargebee' {
888
888
  customer_id?: string;
889
889
  subscription_id?: string;
890
890
  po_number?: string;
891
- price_type?: PriceType;
892
- tax_override_reason?: TaxOverrideReason;
891
+ price_type?: PriceTypeEnum;
892
+ tax_override_reason?: TaxOverrideReasonEnum;
893
893
  vat_number?: string;
894
894
  vat_number_prefix?: string;
895
895
  date: number;
@@ -973,7 +973,7 @@ declare module 'chargebee' {
973
973
  offset?: string;
974
974
  }
975
975
  export interface PdfInputParam {
976
- disposition_type?: DispositionType;
976
+ disposition_type?: DispositionTypeEnum;
977
977
  }
978
978
  export interface ListPaymentReferenceNumbersInputParam {
979
979
  limit?: number;
@@ -984,7 +984,7 @@ declare module 'chargebee' {
984
984
  export interface AddChargeInputParam {
985
985
  amount: number;
986
986
  description: string;
987
- avalara_sale_type?: AvalaraSaleType;
987
+ avalara_sale_type?: AvalaraSaleTypeEnum;
988
988
  avalara_transaction_type?: number;
989
989
  avalara_service_type?: number;
990
990
  avalara_tax_code?: string;
@@ -1022,7 +1022,7 @@ declare module 'chargebee' {
1022
1022
  authorization_transaction_id?: string;
1023
1023
  payment_source_id?: string;
1024
1024
  comment?: string;
1025
- payment_initiator?: PaymentInitiator;
1025
+ payment_initiator?: PaymentInitiatorEnum;
1026
1026
  }
1027
1027
  export interface RecordPaymentInputParam {
1028
1028
  comment?: string;
@@ -1092,14 +1092,14 @@ declare module 'chargebee' {
1092
1092
  state?: string;
1093
1093
  zip?: string;
1094
1094
  country?: string;
1095
- validation_status?: ValidationStatus;
1095
+ validation_status?: ValidationStatusEnum;
1096
1096
  }
1097
1097
  export interface PaymentMethodCreateInputParam {
1098
- type?: Type;
1098
+ type?: TypeEnum;
1099
1099
  /**
1100
1100
  * @deprecated Please refer API docs to use other attributes
1101
1101
  */
1102
- gateway?: Gateway;
1102
+ gateway?: GatewayEnum;
1103
1103
  gateway_account_id?: string;
1104
1104
  reference_id?: string;
1105
1105
  tmp_token?: string;
@@ -1118,9 +1118,9 @@ declare module 'chargebee' {
1118
1118
  account_number?: string;
1119
1119
  routing_number?: string;
1120
1120
  bank_code?: string;
1121
- account_type?: AccountType;
1122
- account_holder_type?: AccountHolderType;
1123
- echeck_type?: EcheckType;
1121
+ account_type?: AccountTypeEnum;
1122
+ account_holder_type?: AccountHolderTypeEnum;
1123
+ echeck_type?: EcheckTypeEnum;
1124
1124
  issuing_country?: string;
1125
1125
  swedish_identity_number?: string;
1126
1126
  billing_address?: any;
@@ -1161,7 +1161,7 @@ declare module 'chargebee' {
1161
1161
  /**
1162
1162
  * @deprecated Please refer API docs to use other attributes
1163
1163
  */
1164
- gateway?: Gateway;
1164
+ gateway?: GatewayEnum;
1165
1165
  gateway_account_id?: string;
1166
1166
  /**
1167
1167
  * @deprecated Please refer API docs to use other attributes
@@ -1196,7 +1196,7 @@ declare module 'chargebee' {
1196
1196
  avalara_tax_code?: string;
1197
1197
  hsn_code?: string;
1198
1198
  taxjar_product_code?: string;
1199
- avalara_sale_type?: AvalaraSaleType;
1199
+ avalara_sale_type?: AvalaraSaleTypeEnum;
1200
1200
  avalara_transaction_type?: number;
1201
1201
  avalara_service_type?: number;
1202
1202
  date_from?: number;
@@ -1217,7 +1217,7 @@ declare module 'chargebee' {
1217
1217
  field_value?: string;
1218
1218
  }
1219
1219
  export interface NotesToRemoveCreateInputParam {
1220
- entity_type?: EntityType;
1220
+ entity_type?: EntityTypeEnum;
1221
1221
  entity_id?: string;
1222
1222
  }
1223
1223
  export interface StatementDescriptorCreateForChargeItemsAndChargesInputParam {
@@ -1237,14 +1237,14 @@ declare module 'chargebee' {
1237
1237
  state?: string;
1238
1238
  zip?: string;
1239
1239
  country?: string;
1240
- validation_status?: ValidationStatus;
1240
+ validation_status?: ValidationStatusEnum;
1241
1241
  }
1242
1242
  export interface PaymentMethodCreateForChargeItemsAndChargesInputParam {
1243
- type?: Type;
1243
+ type?: TypeEnum;
1244
1244
  /**
1245
1245
  * @deprecated Please refer API docs to use other attributes
1246
1246
  */
1247
- gateway?: Gateway;
1247
+ gateway?: GatewayEnum;
1248
1248
  gateway_account_id?: string;
1249
1249
  reference_id?: string;
1250
1250
  tmp_token?: string;
@@ -1263,9 +1263,9 @@ declare module 'chargebee' {
1263
1263
  account_number?: string;
1264
1264
  routing_number?: string;
1265
1265
  bank_code?: string;
1266
- account_type?: AccountType;
1267
- account_holder_type?: AccountHolderType;
1268
- echeck_type?: EcheckType;
1266
+ account_type?: AccountTypeEnum;
1267
+ account_holder_type?: AccountHolderTypeEnum;
1268
+ echeck_type?: EcheckTypeEnum;
1269
1269
  issuing_country?: string;
1270
1270
  swedish_identity_number?: string;
1271
1271
  billing_address?: any;
@@ -1306,7 +1306,7 @@ declare module 'chargebee' {
1306
1306
  /**
1307
1307
  * @deprecated Please refer API docs to use other attributes
1308
1308
  */
1309
- gateway?: Gateway;
1309
+ gateway?: GatewayEnum;
1310
1310
  gateway_account_id?: string;
1311
1311
  /**
1312
1312
  * @deprecated Please refer API docs to use other attributes
@@ -1341,7 +1341,7 @@ declare module 'chargebee' {
1341
1341
  avalara_tax_code?: string;
1342
1342
  hsn_code?: string;
1343
1343
  taxjar_product_code?: string;
1344
- avalara_sale_type?: AvalaraSaleType;
1344
+ avalara_sale_type?: AvalaraSaleTypeEnum;
1345
1345
  avalara_transaction_type?: number;
1346
1346
  avalara_service_type?: number;
1347
1347
  date_from?: number;
@@ -1350,7 +1350,7 @@ declare module 'chargebee' {
1350
1350
  export interface DiscountsCreateForChargeItemsAndChargesInputParam {
1351
1351
  percentage?: number;
1352
1352
  amount?: number;
1353
- apply_on: ApplyOn;
1353
+ apply_on: ApplyOnEnum;
1354
1354
  item_price_id?: string;
1355
1355
  }
1356
1356
  export interface ItemTiersCreateForChargeItemsAndChargesInputParam {
@@ -1377,7 +1377,7 @@ declare module 'chargebee' {
1377
1377
  field_value?: string;
1378
1378
  }
1379
1379
  export interface NotesToRemoveCreateForChargeItemsAndChargesInputParam {
1380
- entity_type?: EntityType;
1380
+ entity_type?: EntityTypeEnum;
1381
1381
  entity_id?: string;
1382
1382
  }
1383
1383
  export interface TaxProvidersFieldsChargeInputParam {
@@ -1417,7 +1417,7 @@ 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
  export interface ShippingAddressImportInvoiceInputParam {
1423
1423
  first_name?: string;
@@ -1433,7 +1433,7 @@ declare module 'chargebee' {
1433
1433
  state?: string;
1434
1434
  zip?: string;
1435
1435
  country?: string;
1436
- validation_status?: ValidationStatus;
1436
+ validation_status?: ValidationStatusEnum;
1437
1437
  }
1438
1438
  export interface CreditNoteImportInvoiceInputParam {
1439
1439
  id?: string;
@@ -1466,7 +1466,7 @@ declare module 'chargebee' {
1466
1466
  }
1467
1467
  export interface PaymentsImportInvoiceInputParam {
1468
1468
  amount: number;
1469
- payment_method: PaymentMethod;
1469
+ payment_method: PaymentMethodEnum;
1470
1470
  date?: number;
1471
1471
  reference_number?: string;
1472
1472
  }
@@ -1588,12 +1588,12 @@ declare module 'chargebee' {
1588
1588
  price_in_decimal?: string;
1589
1589
  }
1590
1590
  export interface NotesToRemoveCloseInputParam {
1591
- entity_type?: EntityType;
1591
+ entity_type?: EntityTypeEnum;
1592
1592
  entity_id?: string;
1593
1593
  }
1594
1594
  export interface TransactionRecordPaymentInputParam {
1595
1595
  amount?: number;
1596
- payment_method: PaymentMethod;
1596
+ payment_method: PaymentMethodEnum;
1597
1597
  reference_number?: string;
1598
1598
  custom_payment_method_id?: string;
1599
1599
  id_at_gateway?: string;
@@ -1627,7 +1627,7 @@ declare module 'chargebee' {
1627
1627
 
1628
1628
  export interface TransactionRecordRefundInputParam {
1629
1629
  amount?: number;
1630
- payment_method: PaymentMethod;
1630
+ payment_method: PaymentMethodEnum;
1631
1631
  reference_number?: string;
1632
1632
  custom_payment_method_id?: string;
1633
1633
  date: number;
@@ -1666,7 +1666,7 @@ declare module 'chargebee' {
1666
1666
  state?: string;
1667
1667
  zip?: string;
1668
1668
  country?: string;
1669
- validation_status?: ValidationStatus;
1669
+ validation_status?: ValidationStatusEnum;
1670
1670
  }
1671
1671
  export interface StatementDescriptorUpdateDetailsInputParam {
1672
1672
  descriptor?: string;
@@ -1685,7 +1685,7 @@ declare module 'chargebee' {
1685
1685
  state?: string;
1686
1686
  zip?: string;
1687
1687
  country?: string;
1688
- validation_status?: ValidationStatus;
1688
+ validation_status?: ValidationStatusEnum;
1689
1689
  }
1690
1690
  }
1691
1691
  }
@@ -4,7 +4,7 @@
4
4
  declare module 'chargebee' {
5
5
  export interface InvoiceEstimate {
6
6
  recurring: boolean;
7
- price_type: PriceType;
7
+ price_type: PriceTypeEnum;
8
8
  currency_code: string;
9
9
  sub_total: number;
10
10
  total?: number;
@@ -25,7 +25,7 @@ declare module 'chargebee' {
25
25
  metered: boolean;
26
26
  usage_calculation?: 'sum_of_usages' | 'last_usage' | 'max_usage';
27
27
  archived_at?: number;
28
- channel?: Channel;
28
+ channel?: ChannelEnum;
29
29
  applicable_items?: Item.ApplicableItem[];
30
30
  bundle_items?: Item.BundleItem[];
31
31
  bundle_configuration?: Item.BundleConfiguration;
@@ -173,7 +173,7 @@ declare module 'chargebee' {
173
173
 
174
174
  export interface BundleItemsToAddCreateInputParam {
175
175
  item_id?: string;
176
- item_type?: ItemType;
176
+ item_type?: ItemTypeEnum;
177
177
  quantity?: number;
178
178
  price_allocation?: number;
179
179
  }
@@ -183,19 +183,19 @@ declare module 'chargebee' {
183
183
 
184
184
  export interface BundleItemsToAddUpdateInputParam {
185
185
  item_id?: string;
186
- item_type?: ItemType;
186
+ item_type?: ItemTypeEnum;
187
187
  quantity?: number;
188
188
  price_allocation?: number;
189
189
  }
190
190
  export interface BundleItemsToUpdateUpdateInputParam {
191
191
  item_id?: string;
192
- item_type?: ItemType;
192
+ item_type?: ItemTypeEnum;
193
193
  quantity?: number;
194
194
  price_allocation?: number;
195
195
  }
196
196
  export interface BundleItemsToRemoveUpdateInputParam {
197
197
  item_id?: string;
198
- item_type?: ItemType;
198
+ item_type?: ItemTypeEnum;
199
199
  }
200
200
  export interface BundleConfigurationItemListInputParam {
201
201
  type?: filter.Enum;
@@ -83,11 +83,11 @@ declare module 'chargebee' {
83
83
  include_drafts?: boolean;
84
84
  }
85
85
  export interface AddItemEntitlementsInputParam {
86
- action: Action;
86
+ action: ActionEnum;
87
87
  item_entitlements?: ItemEntitlementsAddItemEntitlementsInputParam[];
88
88
  }
89
89
  export interface UpsertOrRemoveItemEntitlementsForItemInputParam {
90
- action: Action;
90
+ action: ActionEnum;
91
91
  item_entitlements?: ItemEntitlementsUpsertOrRemoveItemEntitlementsForItemInputParam[];
92
92
  }
93
93
  export interface ItemEntitlementsAddItemEntitlementsInputParam {
@@ -10,7 +10,7 @@ declare module 'chargebee' {
10
10
  status?: 'active' | 'deleted';
11
11
  resource_version?: number;
12
12
  updated_at?: number;
13
- channel?: Channel;
13
+ channel?: ChannelEnum;
14
14
  }
15
15
 
16
16
  export namespace ItemFamily {
@@ -13,7 +13,7 @@ declare module 'chargebee' {
13
13
  external_name?: string;
14
14
  price_variant_id?: string;
15
15
  proration_type?: 'site_default' | 'partial_term' | 'full_term';
16
- pricing_model: PricingModel;
16
+ pricing_model: PricingModelEnum;
17
17
  price?: number;
18
18
  price_in_decimal?: string;
19
19
  period?: number;
@@ -30,11 +30,11 @@ declare module 'chargebee' {
30
30
  billing_cycles?: number;
31
31
  free_quantity: number;
32
32
  free_quantity_in_decimal?: string;
33
- channel?: Channel;
33
+ channel?: ChannelEnum;
34
34
  resource_version?: number;
35
35
  updated_at?: number;
36
36
  created_at: number;
37
- usage_accumulation_reset_frequency?: UsageAccumulationResetFrequency;
37
+ usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
38
38
  archived_at?: number;
39
39
  invoice_notes?: string;
40
40
  tiers?: ItemPrice.Tier[];
@@ -43,7 +43,7 @@ declare module 'chargebee' {
43
43
  tax_providers_fields?: ItemPrice.TaxProvidersField[];
44
44
  accounting_detail?: ItemPrice.AccountingDetail;
45
45
  metadata?: any;
46
- item_type?: ItemType;
46
+ item_type?: ItemTypeEnum;
47
47
  archivable?: boolean;
48
48
  parent_item_id?: string;
49
49
  show_description_in_invoices?: boolean;
@@ -132,7 +132,7 @@ declare module 'chargebee' {
132
132
  }
133
133
  export interface TaxDetail {
134
134
  tax_profile_id?: string;
135
- avalara_sale_type?: AvalaraSaleType;
135
+ avalara_sale_type?: AvalaraSaleTypeEnum;
136
136
  avalara_transaction_type?: number;
137
137
  avalara_service_type?: number;
138
138
  avalara_tax_code?: string;
@@ -171,8 +171,8 @@ declare module 'chargebee' {
171
171
  metadata?: any;
172
172
  show_description_in_invoices?: boolean;
173
173
  show_description_in_quotes?: boolean;
174
- usage_accumulation_reset_frequency?: UsageAccumulationResetFrequency;
175
- pricing_model?: PricingModel;
174
+ usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
175
+ pricing_model?: PricingModelEnum;
176
176
  price?: number;
177
177
  price_in_decimal?: string;
178
178
  period_unit?: 'day' | 'week' | 'month' | 'year';
@@ -199,14 +199,14 @@ declare module 'chargebee' {
199
199
  price_variant_id?: string;
200
200
  status?: 'active' | 'archived';
201
201
  external_name?: string;
202
- usage_accumulation_reset_frequency?: UsageAccumulationResetFrequency;
202
+ usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
203
203
  currency_code?: string;
204
204
  invoice_notes?: string;
205
205
  is_taxable?: boolean;
206
206
  free_quantity?: number;
207
207
  free_quantity_in_decimal?: string;
208
208
  metadata?: any;
209
- pricing_model?: PricingModel;
209
+ pricing_model?: PricingModelEnum;
210
210
  price?: number;
211
211
  price_in_decimal?: string;
212
212
  period_unit?: 'day' | 'week' | 'month' | 'year';
@@ -266,7 +266,7 @@ declare module 'chargebee' {
266
266
  tax_profile_id?: string;
267
267
  avalara_tax_code?: string;
268
268
  hsn_code?: string;
269
- avalara_sale_type?: AvalaraSaleType;
269
+ avalara_sale_type?: AvalaraSaleTypeEnum;
270
270
  avalara_transaction_type?: number;
271
271
  avalara_service_type?: number;
272
272
  taxjar_product_code?: string;
@@ -297,7 +297,7 @@ declare module 'chargebee' {
297
297
  tax_profile_id?: string;
298
298
  avalara_tax_code?: string;
299
299
  hsn_code?: string;
300
- avalara_sale_type?: AvalaraSaleType;
300
+ avalara_sale_type?: AvalaraSaleTypeEnum;
301
301
  avalara_transaction_type?: number;
302
302
  avalara_service_type?: number;
303
303
  taxjar_product_code?: string;
@@ -38,7 +38,7 @@ declare module 'chargebee' {
38
38
  | 'order_resent';
39
39
  payment_status?: 'not_paid' | 'paid';
40
40
  order_type?: 'manual' | 'system_generated';
41
- price_type: PriceType;
41
+ price_type: PriceTypeEnum;
42
42
  reference_id?: string;
43
43
  fulfillment_status?: string;
44
44
  order_date?: number;
@@ -257,7 +257,7 @@ declare module 'chargebee' {
257
257
  state?: string;
258
258
  country?: string;
259
259
  zip?: string;
260
- validation_status?: ValidationStatus;
260
+ validation_status?: ValidationStatusEnum;
261
261
  index: number;
262
262
  }
263
263
  export interface BillingAddress {
@@ -274,7 +274,7 @@ declare module 'chargebee' {
274
274
  state?: string;
275
275
  country?: string;
276
276
  zip?: string;
277
- validation_status?: ValidationStatus;
277
+ validation_status?: ValidationStatusEnum;
278
278
  }
279
279
  export interface LineItemTax {
280
280
  line_item_id?: string;
@@ -508,7 +508,7 @@ declare module 'chargebee' {
508
508
  state?: string;
509
509
  zip?: string;
510
510
  country?: string;
511
- validation_status?: ValidationStatus;
511
+ validation_status?: ValidationStatusEnum;
512
512
  }
513
513
 
514
514
  export interface OrderLineItemsUpdateInputParam {
@@ -538,7 +538,7 @@ declare module 'chargebee' {
538
538
  state?: string;
539
539
  zip?: string;
540
540
  country?: string;
541
- validation_status?: ValidationStatus;
541
+ validation_status?: ValidationStatusEnum;
542
542
  }
543
543
  export interface ShippingAddressImportOrderInputParam {
544
544
  first_name?: string;
@@ -554,7 +554,7 @@ declare module 'chargebee' {
554
554
  state?: string;
555
555
  zip?: string;
556
556
  country?: string;
557
- validation_status?: ValidationStatus;
557
+ validation_status?: ValidationStatusEnum;
558
558
  }
559
559
 
560
560
  export interface CreditNoteCancelInputParam {
@@ -8,7 +8,7 @@ declare module 'chargebee' {
8
8
  updated_at?: number;
9
9
  created_at: number;
10
10
  customer_id: string;
11
- type: Type;
11
+ type: TypeEnum;
12
12
  reference_id: string;
13
13
  status:
14
14
  | 'valid'
@@ -16,7 +16,7 @@ declare module 'chargebee' {
16
16
  | 'expired'
17
17
  | 'invalid'
18
18
  | 'pending_verification';
19
- gateway: Gateway;
19
+ gateway: GatewayEnum;
20
20
  gateway_account_id?: string;
21
21
  ip_address?: string;
22
22
  issuing_country?: string;
@@ -249,12 +249,12 @@ declare module 'chargebee' {
249
249
  name_on_account?: string;
250
250
  first_name?: string;
251
251
  last_name?: string;
252
- direct_debit_scheme?: DirectDebitScheme;
252
+ direct_debit_scheme?: DirectDebitSchemeEnum;
253
253
  bank_name?: string;
254
254
  mandate_id?: string;
255
- account_type?: AccountType;
256
- echeck_type?: EcheckType;
257
- account_holder_type?: AccountHolderType;
255
+ account_type?: AccountTypeEnum;
256
+ echeck_type?: EcheckTypeEnum;
257
+ account_holder_type?: AccountHolderTypeEnum;
258
258
  email?: string;
259
259
  }
260
260
  export interface CustVoucherSource {
@@ -277,7 +277,7 @@ declare module 'chargebee' {
277
277
  state?: string;
278
278
  country?: string;
279
279
  zip?: string;
280
- validation_status?: ValidationStatus;
280
+ validation_status?: ValidationStatusEnum;
281
281
  }
282
282
  export interface AmazonPayment {
283
283
  email?: string;
@@ -307,7 +307,7 @@ declare module 'chargebee' {
307
307
  export interface CreateUsingTempTokenInputParam {
308
308
  customer_id: string;
309
309
  gateway_account_id?: string;
310
- type: Type;
310
+ type: TypeEnum;
311
311
  tmp_token: string;
312
312
  issuing_country?: string;
313
313
  replace_primary_payment_source?: boolean;
@@ -315,7 +315,7 @@ declare module 'chargebee' {
315
315
  }
316
316
  export interface CreateUsingPermanentTokenInputParam {
317
317
  customer_id: string;
318
- type: Type;
318
+ type: TypeEnum;
319
319
  gateway_account_id?: string;
320
320
  reference_id?: string;
321
321
  issuing_country?: string;
@@ -462,7 +462,7 @@ declare module 'chargebee' {
462
462
  }
463
463
 
464
464
  export interface VoucherPaymentSourceCreateVoucherPaymentSourceInputParam {
465
- voucher_type: VoucherType;
465
+ voucher_type: VoucherTypeEnum;
466
466
  gateway_account_id?: string;
467
467
  tax_id?: string;
468
468
  billing_address?: any;
@@ -498,9 +498,9 @@ declare module 'chargebee' {
498
498
  account_number?: string;
499
499
  routing_number?: string;
500
500
  bank_code?: string;
501
- account_type?: AccountType;
502
- account_holder_type?: AccountHolderType;
503
- echeck_type?: EcheckType;
501
+ account_type?: AccountTypeEnum;
502
+ account_holder_type?: AccountHolderTypeEnum;
503
+ echeck_type?: EcheckTypeEnum;
504
504
  swedish_identity_number?: string;
505
505
  billing_address?: any;
506
506
  }
@@ -5,7 +5,7 @@ declare module 'chargebee' {
5
5
  export interface PaymentVoucher {
6
6
  id: string;
7
7
  id_at_gateway?: string;
8
- payment_voucher_type: PaymentVoucherType;
8
+ payment_voucher_type: PaymentVoucherTypeEnum;
9
9
  expires_at?: number;
10
10
  status?: 'active' | 'consumed' | 'expired' | 'failure';
11
11
  subscription_id?: string;
@@ -13,7 +13,7 @@ declare module 'chargebee' {
13
13
  amount?: number;
14
14
  gateway_account_id?: string;
15
15
  payment_source_id?: string;
16
- gateway: Gateway;
16
+ gateway: GatewayEnum;
17
17
  payload?: string;
18
18
  error_code?: string;
19
19
  error_text?: string;
@@ -37,17 +37,17 @@ declare module 'chargebee' {
37
37
  headers?: ChargebeeRequestHeader,
38
38
  ): Promise<ChargebeeResponse<RetrieveResponse>>;
39
39
 
40
- payment_vouchersForInvoice(
40
+ paymentVouchersForInvoice(
41
41
  invoice_id: string,
42
42
  input?: PaymentVouchersForInvoiceInputParam,
43
43
  headers?: ChargebeeRequestHeader,
44
- ): Promise<ChargebeeResponse<Payment_vouchersForInvoiceResponse>>;
44
+ ): Promise<ChargebeeResponse<PaymentVouchersForInvoiceResponse>>;
45
45
 
46
- payment_vouchersForCustomer(
46
+ paymentVouchersForCustomer(
47
47
  customer_id: string,
48
48
  input?: PaymentVouchersForCustomerInputParam,
49
49
  headers?: ChargebeeRequestHeader,
50
- ): Promise<ChargebeeResponse<Payment_vouchersForCustomerResponse>>;
50
+ ): Promise<ChargebeeResponse<PaymentVouchersForCustomerResponse>>;
51
51
  }
52
52
 
53
53
  export interface CreateResponse {
@@ -58,12 +58,12 @@ declare module 'chargebee' {
58
58
  payment_voucher: PaymentVoucher;
59
59
  }
60
60
 
61
- export interface Payment_vouchersForInvoiceResponse {
61
+ export interface PaymentVouchersForInvoiceResponse {
62
62
  list: { payment_voucher: PaymentVoucher }[];
63
63
  next_offset?: string;
64
64
  }
65
65
 
66
- export interface Payment_vouchersForCustomerResponse {
66
+ export interface PaymentVouchersForCustomerResponse {
67
67
  list: { payment_voucher: PaymentVoucher }[];
68
68
  next_offset?: string;
69
69
  }
@@ -97,7 +97,7 @@ declare module 'chargebee' {
97
97
  'sort_by[desc]'?: string;
98
98
  }
99
99
  export interface VoucherPaymentSourceCreateInputParam {
100
- voucher_type: VoucherType;
100
+ voucher_type: VoucherTypeEnum;
101
101
  }
102
102
 
103
103
  export interface InvoiceAllocationsCreateInputParam {