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
package/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ### v3.0.0-beta.5 (2024-11-05)
2
+
3
+ #### Naming Convention Fix:
4
+ * New suffix Enum has been added to global type.
5
+ * payment_vouchersForInvoice has been renamed to paymentVouchersForInvoice.
6
+ * payment_vouchersForCustomer has been renamed to paymentVouchersForCustomer.
7
+ * Payment_vouchersForInvoiceResponse has been renamed to PaymentVouchersForInvoiceResponse.
8
+ * Payment_vouchersForCustomerResponse has been renmed to PaymentVouchersForCustomerResponse.
9
+
1
10
  ### v3.0.0-beta.4 (2024-10-18)
2
11
 
3
12
  #### New Resource:
@@ -11,7 +11,7 @@ exports.Environment = {
11
11
  hostSuffix: '.chargebee.com',
12
12
  apiPath: '/api/v2',
13
13
  timeout: DEFAULT_TIME_OUT,
14
- clientVersion: 'v3.0.0-beta.4',
14
+ clientVersion: 'v3.0.0-beta.5',
15
15
  port: DEFAULT_PORT,
16
16
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
17
17
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
package/cjs/util.js CHANGED
@@ -194,7 +194,7 @@ function encodeParams(paramObj, serialized, scope, index) {
194
194
  }
195
195
  }
196
196
  }
197
- else if (key === 'meta_data' || key === "metadata") {
197
+ else if (key === 'meta_data' || key === 'metadata') {
198
198
  let attrVal = '';
199
199
  if (value !== null) {
200
200
  attrVal = encodeURIComponent(Object.prototype.toString.call(value) === '[object String]'
@@ -8,7 +8,7 @@ export const Environment = {
8
8
  hostSuffix: '.chargebee.com',
9
9
  apiPath: '/api/v2',
10
10
  timeout: DEFAULT_TIME_OUT,
11
- clientVersion: 'v3.0.0-beta.4',
11
+ clientVersion: 'v3.0.0-beta.5',
12
12
  port: DEFAULT_PORT,
13
13
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
14
14
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
package/esm/util.js CHANGED
@@ -178,7 +178,7 @@ export function encodeParams(paramObj, serialized, scope, index) {
178
178
  }
179
179
  }
180
180
  }
181
- else if (key === 'meta_data' || key === "metadata") {
181
+ else if (key === 'meta_data' || key === 'metadata') {
182
182
  let attrVal = '';
183
183
  if (value !== null) {
184
184
  attrVal = encodeURIComponent(Object.prototype.toString.call(value) === '[object String]'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chargebee",
3
- "version": "3.0.0-beta.4",
3
+ "version": "3.0.0-beta.5",
4
4
  "description": "A library for integrating with Chargebee.",
5
5
  "scripts": {
6
6
  "prepack": "npm install && npm run build",
package/types/core.d.ts CHANGED
@@ -19,49 +19,53 @@ declare module 'chargebee' {
19
19
  'chargebee-request-origin-user-encoded'?: string;
20
20
  'chargebee-request-origin-device'?: string;
21
21
  };
22
- type AccountHolderType = 'individual' | 'company';
23
- type AccountReceivablesHandling =
22
+ type AccountHolderTypeEnum = 'individual' | 'company';
23
+ type AccountReceivablesHandlingEnum =
24
24
  | 'no_action'
25
25
  | 'schedule_payment_collection'
26
26
  | 'write_off';
27
- type AccountType = 'checking' | 'savings' | 'business_checking' | 'current';
28
- type Action = 'upsert' | 'remove';
29
- type ApiVersion = 'v1' | 'v2';
30
- type ApplyOn = 'invoice_amount' | 'specific_item_price';
31
- type AutoCollection = 'on' | 'off';
32
- type AvalaraSaleType = 'wholesale' | 'retail' | 'consumed' | 'vendor_use';
33
- type BillingAlignmentMode = 'immediate' | 'delayed';
34
- type BillingDateMode = 'using_defaults' | 'manually_set';
35
- type BillingDayOfWeekMode = 'using_defaults' | 'manually_set';
36
- type CancelOption =
27
+ type AccountTypeEnum =
28
+ | 'checking'
29
+ | 'savings'
30
+ | 'business_checking'
31
+ | 'current';
32
+ type ActionEnum = 'upsert' | 'remove';
33
+ type ApiVersionEnum = 'v1' | 'v2';
34
+ type ApplyOnEnum = 'invoice_amount' | 'specific_item_price';
35
+ type AutoCollectionEnum = 'on' | 'off';
36
+ type AvalaraSaleTypeEnum = 'wholesale' | 'retail' | 'consumed' | 'vendor_use';
37
+ type BillingAlignmentModeEnum = 'immediate' | 'delayed';
38
+ type BillingDateModeEnum = 'using_defaults' | 'manually_set';
39
+ type BillingDayOfWeekModeEnum = 'using_defaults' | 'manually_set';
40
+ type CancelOptionEnum =
37
41
  | 'immediately'
38
42
  | 'end_of_term'
39
43
  | 'specific_date'
40
44
  | 'end_of_billing_term';
41
- type ChangeOption = 'immediately' | 'end_of_term' | 'specific_date';
42
- type Channel = 'web' | 'app_store' | 'play_store';
43
- type ChargeModel = 'full_charge' | 'prorate';
44
- type ChargeOnEvent =
45
+ type ChangeOptionEnum = 'immediately' | 'end_of_term' | 'specific_date';
46
+ type ChannelEnum = 'web' | 'app_store' | 'play_store';
47
+ type ChargeModelEnum = 'full_charge' | 'prorate';
48
+ type ChargeOnEventEnum =
45
49
  | 'subscription_creation'
46
50
  | 'subscription_trial_start'
47
51
  | 'plan_activation'
48
52
  | 'subscription_activation'
49
53
  | 'contract_termination'
50
54
  | 'on_demand';
51
- type ChargeOnOption = 'immediately' | 'on_event';
52
- type ChargesHandling = 'invoice_immediately' | 'add_to_unbilled_charges';
53
- type ContractTermCancelOption =
55
+ type ChargeOnOptionEnum = 'immediately' | 'on_event';
56
+ type ChargesHandlingEnum = 'invoice_immediately' | 'add_to_unbilled_charges';
57
+ type ContractTermCancelOptionEnum =
54
58
  | 'terminate_immediately'
55
59
  | 'end_of_contract_term';
56
- type CreditOptionForCurrentTermCharges = 'none' | 'prorate' | 'full';
57
- type CreditType = 'loyalty_credits' | 'referral_rewards' | 'general';
58
- type CustomerType =
60
+ type CreditOptionForCurrentTermChargesEnum = 'none' | 'prorate' | 'full';
61
+ type CreditTypeEnum = 'loyalty_credits' | 'referral_rewards' | 'general';
62
+ type CustomerTypeEnum =
59
63
  | 'residential'
60
64
  | 'business'
61
65
  | 'senior_citizen'
62
66
  | 'industrial';
63
- type DedupeOption = 'skip' | 'update_existing';
64
- type DirectDebitScheme =
67
+ type DedupeOptionEnum = 'skip' | 'update_existing';
68
+ type DirectDebitSchemeEnum =
65
69
  | 'ach'
66
70
  | 'bacs'
67
71
  | 'sepa_core'
@@ -70,16 +74,16 @@ declare module 'chargebee' {
70
74
  | 'becs_nz'
71
75
  | 'pad'
72
76
  | 'not_applicable';
73
- type DispositionType = 'attachment' | 'inline';
74
- type DunningType = 'auto_collect' | 'offline' | 'direct_debit';
75
- type DurationType = 'one_time' | 'forever' | 'limited_period';
76
- type EcheckType = 'web' | 'ppd' | 'ccd';
77
- type EinvoicingMethod = 'automatic' | 'manual' | 'site_default';
78
- type EndScheduleOn =
77
+ type DispositionTypeEnum = 'attachment' | 'inline';
78
+ type DunningTypeEnum = 'auto_collect' | 'offline' | 'direct_debit';
79
+ type DurationTypeEnum = 'one_time' | 'forever' | 'limited_period';
80
+ type EcheckTypeEnum = 'web' | 'ppd' | 'ccd';
81
+ type EinvoicingMethodEnum = 'automatic' | 'manual' | 'site_default';
82
+ type EndScheduleOnEnum =
79
83
  | 'after_number_of_intervals'
80
84
  | 'specific_date'
81
85
  | 'subscription_end';
82
- type EntityCode =
86
+ type EntityCodeEnum =
83
87
  | 'a'
84
88
  | 'b'
85
89
  | 'c'
@@ -99,7 +103,7 @@ declare module 'chargebee' {
99
103
  | 'r'
100
104
  | 'med1'
101
105
  | 'med2';
102
- type EntityType =
106
+ type EntityTypeEnum =
103
107
  | 'customer'
104
108
  | 'subscription'
105
109
  | 'coupon'
@@ -129,8 +133,8 @@ declare module 'chargebee' {
129
133
  | 'item_entitlement'
130
134
  | 'business_entity'
131
135
  | 'price_variant';
132
- type EventName = 'cancellation_page_loaded';
133
- type EventType =
136
+ type EventNameEnum = 'cancellation_page_loaded';
137
+ type EventTypeEnum =
134
138
  | 'coupon_created'
135
139
  | 'coupon_updated'
136
140
  | 'coupon_deleted'
@@ -312,10 +316,10 @@ declare module 'chargebee' {
312
316
  | 'addon_created'
313
317
  | 'addon_updated'
314
318
  | 'addon_deleted';
315
- type ExportType = 'data' | 'import_friendly_data';
316
- type FreePeriodUnit = 'day' | 'week' | 'month' | 'year';
317
- type FriendOfferType = 'none' | 'coupon' | 'coupon_code';
318
- type Gateway =
319
+ type ExportTypeEnum = 'data' | 'import_friendly_data';
320
+ type FreePeriodUnitEnum = 'day' | 'week' | 'month' | 'year';
321
+ type FriendOfferTypeEnum = 'none' | 'coupon' | 'coupon_code';
322
+ type GatewayEnum =
319
323
  | 'chargebee'
320
324
  | 'chargebee_payments'
321
325
  | 'stripe'
@@ -368,15 +372,18 @@ declare module 'chargebee' {
368
372
  | 'nuvei'
369
373
  | 'gocardless'
370
374
  | 'not_applicable';
371
- type HierarchyOperationType =
375
+ type HierarchyOperationTypeEnum =
372
376
  | 'complete_hierarchy'
373
377
  | 'subordinates'
374
378
  | 'path_to_root';
375
- type InvoiceDunningHandling = 'continue' | 'stop';
376
- type ItemType = 'plan' | 'addon' | 'charge';
377
- type Layout = 'in_app' | 'full_page';
378
- type NotifyReferralSystem = 'none' | 'first_paid_conversion' | 'all_invoices';
379
- type OfflinePaymentMethod =
379
+ type InvoiceDunningHandlingEnum = 'continue' | 'stop';
380
+ type ItemTypeEnum = 'plan' | 'addon' | 'charge';
381
+ type LayoutEnum = 'in_app' | 'full_page';
382
+ type NotifyReferralSystemEnum =
383
+ | 'none'
384
+ | 'first_paid_conversion'
385
+ | 'all_invoices';
386
+ type OfflinePaymentMethodEnum =
380
387
  | 'no_preference'
381
388
  | 'cash'
382
389
  | 'check'
@@ -390,21 +397,21 @@ declare module 'chargebee' {
390
397
  | 'jp_automated_bank_transfer'
391
398
  | 'mx_automated_bank_transfer'
392
399
  | 'custom';
393
- type OnEvent =
400
+ type OnEventEnum =
394
401
  | 'subscription_creation'
395
402
  | 'subscription_trial_start'
396
403
  | 'plan_activation'
397
404
  | 'subscription_activation'
398
405
  | 'contract_termination';
399
- type Operation = 'create' | 'update' | 'delete';
400
- type OperationType = 'add' | 'remove';
401
- type PauseOption =
406
+ type OperationEnum = 'create' | 'update' | 'delete';
407
+ type OperationTypeEnum = 'add' | 'remove';
408
+ type PauseOptionEnum =
402
409
  | 'immediately'
403
410
  | 'end_of_term'
404
411
  | 'specific_date'
405
412
  | 'billing_cycles';
406
- type PaymentInitiator = 'customer' | 'merchant';
407
- type PaymentMethod =
413
+ type PaymentInitiatorEnum = 'customer' | 'merchant';
414
+ type PaymentMethodEnum =
408
415
  | 'cash'
409
416
  | 'check'
410
417
  | 'bank_transfer'
@@ -437,7 +444,7 @@ declare module 'chargebee' {
437
444
  | 'automated_bank_transfer'
438
445
  | 'klarna_pay_now'
439
446
  | 'online_banking_poland';
440
- type PaymentMethodType =
447
+ type PaymentMethodTypeEnum =
441
448
  | 'card'
442
449
  | 'paypal_express_checkout'
443
450
  | 'amazon_payments'
@@ -462,28 +469,31 @@ declare module 'chargebee' {
462
469
  | 'automated_bank_transfer'
463
470
  | 'klarna_pay_now'
464
471
  | 'online_banking_poland';
465
- type PaymentVoucherType = 'boleto';
466
- type PeriodUnit = 'day' | 'week' | 'month' | 'year';
467
- type PriceType = 'tax_exclusive' | 'tax_inclusive';
468
- type PricingModel =
472
+ type PaymentVoucherTypeEnum = 'boleto';
473
+ type PeriodUnitEnum = 'day' | 'week' | 'month' | 'year';
474
+ type PriceTypeEnum = 'tax_exclusive' | 'tax_inclusive';
475
+ type PricingModelEnum =
469
476
  | 'flat_fee'
470
477
  | 'per_unit'
471
478
  | 'tiered'
472
479
  | 'volume'
473
480
  | 'stairstep';
474
- type ProrationType = 'full_term' | 'partial_term' | 'none';
475
- type ReferralSystem = 'referral_candy' | 'referral_saasquatch' | 'friendbuy';
476
- type ReferrerRewardType =
481
+ type ProrationTypeEnum = 'full_term' | 'partial_term' | 'none';
482
+ type ReferralSystemEnum =
483
+ | 'referral_candy'
484
+ | 'referral_saasquatch'
485
+ | 'friendbuy';
486
+ type ReferrerRewardTypeEnum =
477
487
  | 'none'
478
488
  | 'referral_direct_reward'
479
489
  | 'custom_promotional_credit'
480
490
  | 'custom_revenue_percent_based';
481
- type RefundableCreditsHandling = 'no_action' | 'schedule_refund';
482
- type ReportBy = 'customer' | 'invoice' | 'product' | 'subscription';
483
- type ResumeOption = 'immediately' | 'specific_date';
484
- type Role = 'primary' | 'backup' | 'none';
485
- type ScheduleType = 'immediate' | 'specific_dates' | 'fixed_intervals';
486
- type Source =
491
+ type RefundableCreditsHandlingEnum = 'no_action' | 'schedule_refund';
492
+ type ReportByEnum = 'customer' | 'invoice' | 'product' | 'subscription';
493
+ type ResumeOptionEnum = 'immediately' | 'specific_date';
494
+ type RoleEnum = 'primary' | 'backup' | 'none';
495
+ type ScheduleTypeEnum = 'immediate' | 'specific_dates' | 'fixed_intervals';
496
+ type SourceEnum =
487
497
  | 'admin_console'
488
498
  | 'api'
489
499
  | 'bulk_operation'
@@ -495,7 +505,7 @@ declare module 'chargebee' {
495
505
  | 'js_api'
496
506
  | 'migration'
497
507
  | 'external_service';
498
- type TaxExemptReason =
508
+ type TaxExemptReasonEnum =
499
509
  | 'tax_not_configured'
500
510
  | 'region_non_taxable'
501
511
  | 'export'
@@ -506,7 +516,7 @@ declare module 'chargebee' {
506
516
  | 'high_value_physical_goods'
507
517
  | 'zero_value_item'
508
518
  | 'tax_not_configured_external_provider';
509
- type TaxJurisType =
519
+ type TaxJurisTypeEnum =
510
520
  | 'country'
511
521
  | 'federal'
512
522
  | 'state'
@@ -515,15 +525,15 @@ declare module 'chargebee' {
515
525
  | 'special'
516
526
  | 'unincorporated'
517
527
  | 'other';
518
- type TaxOverrideReason = 'id_exempt' | 'customer_exempt' | 'export';
519
- type Taxability = 'taxable' | 'exempt';
520
- type TaxjarExemptionCategory = 'wholesale' | 'government' | 'other';
521
- type TrialEndAction =
528
+ type TaxOverrideReasonEnum = 'id_exempt' | 'customer_exempt' | 'export';
529
+ type TaxabilityEnum = 'taxable' | 'exempt';
530
+ type TaxjarExemptionCategoryEnum = 'wholesale' | 'government' | 'other';
531
+ type TrialEndActionEnum =
522
532
  | 'site_default'
523
533
  | 'plan_default'
524
534
  | 'activate_subscription'
525
535
  | 'cancel_subscription';
526
- type Type =
536
+ type TypeEnum =
527
537
  | 'card'
528
538
  | 'paypal_express_checkout'
529
539
  | 'amazon_payments'
@@ -548,17 +558,17 @@ declare module 'chargebee' {
548
558
  | 'automated_bank_transfer'
549
559
  | 'klarna_pay_now'
550
560
  | 'online_banking_poland';
551
- type UnbilledChargesHandling = 'no_action' | 'invoice';
552
- type UnbilledChargesOption = 'invoice' | 'delete';
553
- type UnpaidInvoicesHandling = 'no_action' | 'schedule_payment_collection';
554
- type UsageAccumulationResetFrequency =
561
+ type UnbilledChargesHandlingEnum = 'no_action' | 'invoice';
562
+ type UnbilledChargesOptionEnum = 'invoice' | 'delete';
563
+ type UnpaidInvoicesHandlingEnum = 'no_action' | 'schedule_payment_collection';
564
+ type UsageAccumulationResetFrequencyEnum =
555
565
  | 'never'
556
566
  | 'subscription_billing_frequency';
557
- type ValidationStatus =
567
+ type ValidationStatusEnum =
558
568
  | 'not_validated'
559
569
  | 'valid'
560
570
  | 'partially_valid'
561
571
  | 'invalid';
562
- type VoucherType = 'boleto';
563
- type ChargeOn = 'immediately' | 'on_event';
572
+ type VoucherTypeEnum = 'boleto';
573
+ type ChargeOnEnum = 'immediately' | 'on_event';
564
574
  }
@@ -17,7 +17,7 @@ declare module 'chargebee' {
17
17
  state?: string;
18
18
  country?: string;
19
19
  zip?: string;
20
- validation_status?: ValidationStatus;
20
+ validation_status?: ValidationStatusEnum;
21
21
  subscription_id: string;
22
22
  }
23
23
 
@@ -65,7 +65,7 @@ declare module 'chargebee' {
65
65
  state?: string;
66
66
  zip?: string;
67
67
  country?: string;
68
- validation_status?: ValidationStatus;
68
+ validation_status?: ValidationStatusEnum;
69
69
  }
70
70
  }
71
71
  }
@@ -11,7 +11,7 @@ declare module 'chargebee' {
11
11
 
12
12
  export namespace AdvanceInvoiceSchedule {
13
13
  export interface FixedIntervalSchedule {
14
- end_schedule_on?: EndScheduleOn;
14
+ end_schedule_on?: EndScheduleOnEnum;
15
15
  number_of_occurrences?: number;
16
16
  days_before_renewal?: number;
17
17
  end_date?: number;
@@ -11,12 +11,12 @@ declare module 'chargebee' {
11
11
  quantity?: number;
12
12
  quantity_in_decimal?: string;
13
13
  billing_cycles?: number;
14
- charge_on_event: ChargeOnEvent;
14
+ charge_on_event: ChargeOnEventEnum;
15
15
  charge_once: boolean;
16
16
  created_at: number;
17
17
  resource_version?: number;
18
18
  updated_at?: number;
19
- channel?: Channel;
19
+ channel?: ChannelEnum;
20
20
  }
21
21
 
22
22
  export namespace AttachedItem {
@@ -82,7 +82,7 @@ declare module 'chargebee' {
82
82
  billing_cycles?: number;
83
83
  quantity?: number;
84
84
  quantity_in_decimal?: string;
85
- charge_on_event?: ChargeOnEvent;
85
+ charge_on_event?: ChargeOnEventEnum;
86
86
  charge_once?: boolean;
87
87
  }
88
88
  export interface UpdateInputParam {
@@ -91,7 +91,7 @@ declare module 'chargebee' {
91
91
  billing_cycles?: number;
92
92
  quantity?: number;
93
93
  quantity_in_decimal?: string;
94
- charge_on_event?: ChargeOnEvent;
94
+ charge_on_event?: ChargeOnEventEnum;
95
95
  charge_once?: boolean;
96
96
  }
97
97
  export interface RetrieveInputParam {
@@ -5,7 +5,7 @@ declare module 'chargebee' {
5
5
  export interface Card {
6
6
  payment_source_id: string;
7
7
  status: 'valid' | 'expiring' | 'expired';
8
- gateway: Gateway;
8
+ gateway: GatewayEnum;
9
9
  gateway_account_id?: string;
10
10
  ref_tx_id?: string;
11
11
  first_name?: string;
@@ -128,7 +128,7 @@ declare module 'chargebee' {
128
128
  * @deprecated Please refer API docs to use other attributes
129
129
  */
130
130
 
131
- gateway?: Gateway;
131
+ gateway?: GatewayEnum;
132
132
  gateway_account_id?: string;
133
133
  tmp_token?: string;
134
134
  first_name?: string;
@@ -155,7 +155,7 @@ declare module 'chargebee' {
155
155
  * @deprecated Please refer API docs to use other attributes
156
156
  */
157
157
 
158
- gateway?: Gateway;
158
+ gateway?: GatewayEnum;
159
159
  gateway_account_id: string;
160
160
  }
161
161
  export interface CopyCardForCustomerInputParam {
@@ -4,7 +4,7 @@
4
4
  declare module 'chargebee' {
5
5
  export interface Comment {
6
6
  id: string;
7
- entity_type: EntityType;
7
+ entity_type: EntityTypeEnum;
8
8
  added_by?: string;
9
9
  notes: string;
10
10
  created_at: number;
@@ -56,7 +56,7 @@ declare module 'chargebee' {
56
56
  //---------------
57
57
 
58
58
  export interface CreateInputParam {
59
- entity_type: EntityType;
59
+ entity_type: EntityTypeEnum;
60
60
  entity_id: string;
61
61
  notes: string;
62
62
  added_by?: string;
@@ -31,7 +31,7 @@ declare module 'chargebee' {
31
31
  updated_at?: number;
32
32
  included_in_mrr?: boolean;
33
33
  period?: number;
34
- period_unit?: PeriodUnit;
34
+ period_unit?: PeriodUnitEnum;
35
35
  plan_ids?: string[];
36
36
  addon_ids?: string[];
37
37
  item_constraints?: Coupon.ItemConstraint[];
@@ -169,7 +169,7 @@ declare module 'chargebee' {
169
169
  meta_data?: any;
170
170
  included_in_mrr?: boolean;
171
171
  period?: number;
172
- period_unit?: PeriodUnit;
172
+ period_unit?: PeriodUnitEnum;
173
173
  plan_constraint?: 'none' | 'all' | 'specific';
174
174
  addon_constraint?: 'none' | 'all' | 'specific';
175
175
  plan_ids?: string[];
@@ -197,7 +197,7 @@ declare module 'chargebee' {
197
197
  meta_data?: any;
198
198
  included_in_mrr?: boolean;
199
199
  period?: number;
200
- period_unit?: PeriodUnit;
200
+ period_unit?: PeriodUnitEnum;
201
201
  status?: 'active' | 'archived';
202
202
  item_constraints?: ItemConstraintsCreateForItemsInputParam[];
203
203
  item_constraint_criteria?: ItemConstraintCriteriaCreateForItemsInputParam[];
@@ -224,7 +224,7 @@ declare module 'chargebee' {
224
224
  meta_data?: any;
225
225
  included_in_mrr?: boolean;
226
226
  period?: number;
227
- period_unit?: PeriodUnit;
227
+ period_unit?: PeriodUnitEnum;
228
228
  item_constraints?: ItemConstraintsUpdateForItemsInputParam[];
229
229
  item_constraint_criteria?: ItemConstraintCriteriaUpdateForItemsInputParam[];
230
230
  coupon_constraints?: CouponConstraintsUpdateForItemsInputParam[];
@@ -266,7 +266,7 @@ declare module 'chargebee' {
266
266
  meta_data?: any;
267
267
  included_in_mrr?: boolean;
268
268
  period?: number;
269
- period_unit?: PeriodUnit;
269
+ period_unit?: PeriodUnitEnum;
270
270
  plan_constraint?: 'none' | 'all' | 'specific';
271
271
  addon_constraint?: 'none' | 'all' | 'specific';
272
272
  plan_ids?: string[];
@@ -24,7 +24,7 @@ declare module 'chargebee' {
24
24
  status: 'adjusted' | 'refunded' | 'refund_due' | 'voided';
25
25
  vat_number?: string;
26
26
  date?: number;
27
- price_type: PriceType;
27
+ price_type: PriceTypeEnum;
28
28
  currency_code: string;
29
29
  total?: number;
30
30
  amount_allocated?: number;
@@ -35,7 +35,7 @@ declare module 'chargebee' {
35
35
  generated_at?: number;
36
36
  resource_version?: number;
37
37
  updated_at?: number;
38
- channel?: Channel;
38
+ channel?: ChannelEnum;
39
39
  einvoice?: CreditNote.Einvoice;
40
40
  sub_total: number;
41
41
  sub_total_in_local_currency?: number;
@@ -373,7 +373,7 @@ declare module 'chargebee' {
373
373
  state?: string;
374
374
  country?: string;
375
375
  zip?: string;
376
- validation_status?: ValidationStatus;
376
+ validation_status?: ValidationStatusEnum;
377
377
  index: number;
378
378
  }
379
379
  export interface BillingAddress {
@@ -390,7 +390,7 @@ declare module 'chargebee' {
390
390
  state?: string;
391
391
  country?: string;
392
392
  zip?: string;
393
- validation_status?: ValidationStatus;
393
+ validation_status?: ValidationStatusEnum;
394
394
  }
395
395
  export interface SiteDetailsAtCreation {
396
396
  timezone?: string;
@@ -423,7 +423,7 @@ declare module 'chargebee' {
423
423
  line_items?: LineItemsCreateInputParam[];
424
424
  }
425
425
  export interface PdfInputParam {
426
- disposition_type?: DispositionType;
426
+ disposition_type?: DispositionTypeEnum;
427
427
  }
428
428
  export interface RefundInputParam {
429
429
  refund_amount?: number;
@@ -516,7 +516,7 @@ declare module 'chargebee' {
516
516
  }
517
517
  export interface TransactionRecordRefundInputParam {
518
518
  amount?: number;
519
- payment_method: PaymentMethod;
519
+ payment_method: PaymentMethodEnum;
520
520
  reference_number?: string;
521
521
  custom_payment_method_id?: string;
522
522
  date: number;
@@ -548,7 +548,7 @@ declare module 'chargebee' {
548
548
  }
549
549
  export interface LinkedRefundsImportCreditNoteInputParam {
550
550
  amount: number;
551
- payment_method: PaymentMethod;
551
+ payment_method: PaymentMethodEnum;
552
552
  date: number;
553
553
  reference_number?: string;
554
554
  }
@@ -5,7 +5,7 @@ declare module 'chargebee' {
5
5
  export interface CreditNoteEstimate {
6
6
  reference_invoice_id: string;
7
7
  type: 'adjustment' | 'refundable';
8
- price_type: PriceType;
8
+ price_type: PriceTypeEnum;
9
9
  currency_code: string;
10
10
  sub_total: number;
11
11
  total: number;