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
@@ -13,7 +13,7 @@ declare module 'chargebee' {
13
13
  | 'paused'
14
14
  | 'cancelled'
15
15
  | 'transferred';
16
- trial_end_action?: TrialEndAction;
16
+ trial_end_action?: TrialEndActionEnum;
17
17
  next_billing_at?: number;
18
18
  pause_date?: number;
19
19
  resume_date?: number;
@@ -36,7 +36,7 @@ declare module 'chargebee' {
36
36
  state?: string;
37
37
  country?: string;
38
38
  zip?: string;
39
- validation_status?: ValidationStatus;
39
+ validation_status?: ValidationStatusEnum;
40
40
  index: number;
41
41
  }
42
42
  export interface ContractTerm {
@@ -3,8 +3,8 @@
3
3
 
4
4
  declare module 'chargebee' {
5
5
  export interface ThirdPartyPaymentMethod {
6
- type: Type;
7
- gateway: Gateway;
6
+ type: TypeEnum;
7
+ gateway: GatewayEnum;
8
8
  gateway_account_id?: string;
9
9
  reference_id: string;
10
10
  }
@@ -4,9 +4,9 @@
4
4
  declare module 'chargebee' {
5
5
  export interface Token {
6
6
  id: string;
7
- gateway: Gateway;
7
+ gateway: GatewayEnum;
8
8
  gateway_account_id: string;
9
- payment_method_type: PaymentMethodType;
9
+ payment_method_type: PaymentMethodTypeEnum;
10
10
  status: 'new' | 'expired' | 'consumed';
11
11
  id_at_vault: string;
12
12
  vault: 'spreedly' | 'gateway';
@@ -8,9 +8,9 @@ declare module 'chargebee' {
8
8
  subscription_id?: string;
9
9
  gateway_account_id?: string;
10
10
  payment_source_id?: string;
11
- payment_method: PaymentMethod;
11
+ payment_method: PaymentMethodEnum;
12
12
  reference_number?: string;
13
- gateway: Gateway;
13
+ gateway: GatewayEnum;
14
14
  type: 'authorization' | 'payment' | 'refund' | 'payment_reversal';
15
15
  date?: number;
16
16
  settled_at?: number;
@@ -257,7 +257,7 @@ declare module 'chargebee' {
257
257
  }
258
258
  export interface RecordRefundInputParam {
259
259
  amount?: number;
260
- payment_method: PaymentMethod;
260
+ payment_method: PaymentMethodEnum;
261
261
  date: number;
262
262
  reference_number?: string;
263
263
  custom_payment_method_id?: string;
@@ -9,7 +9,7 @@ declare module 'chargebee' {
9
9
  date_from?: number;
10
10
  date_to?: number;
11
11
  unit_amount?: number;
12
- pricing_model?: PricingModel;
12
+ pricing_model?: PricingModelEnum;
13
13
  quantity?: number;
14
14
  amount?: number;
15
15
  currency_code: string;
@@ -147,7 +147,7 @@ declare module 'chargebee' {
147
147
  avalara_tax_code?: string;
148
148
  hsn_code?: string;
149
149
  taxjar_product_code?: string;
150
- avalara_sale_type?: AvalaraSaleType;
150
+ avalara_sale_type?: AvalaraSaleTypeEnum;
151
151
  avalara_transaction_type?: number;
152
152
  avalara_service_type?: number;
153
153
  date_from?: number;
@@ -176,7 +176,7 @@ declare module 'chargebee' {
176
176
  avalara_tax_code?: string;
177
177
  hsn_code?: string;
178
178
  taxjar_product_code?: string;
179
- avalara_sale_type?: AvalaraSaleType;
179
+ avalara_sale_type?: AvalaraSaleTypeEnum;
180
180
  avalara_transaction_type?: number;
181
181
  avalara_service_type?: number;
182
182
  date_from?: number;
@@ -10,7 +10,7 @@ declare module 'chargebee' {
10
10
  invoice_id?: string;
11
11
  line_item_id?: string;
12
12
  quantity: string;
13
- source?: Source;
13
+ source?: SourceEnum;
14
14
  note?: string;
15
15
  resource_version?: number;
16
16
  updated_at?: number;
@@ -80,7 +80,7 @@ declare module 'chargebee' {
80
80
  * @deprecated Please refer API docs to use other attributes
81
81
  */;
82
82
 
83
- dedupe_option?: DedupeOption;
83
+ dedupe_option?: DedupeOptionEnum;
84
84
  note?: string;
85
85
  }
86
86
  export interface RetrieveInputParam {
@@ -103,7 +103,7 @@ declare module 'chargebee' {
103
103
  'sort_by[desc]'?: string;
104
104
  }
105
105
  export interface PdfInputParam {
106
- disposition_type?: DispositionType;
106
+ disposition_type?: DispositionTypeEnum;
107
107
  invoice?: InvoicePdfInputParam;
108
108
  }
109
109
  export interface InvoicePdfInputParam {
@@ -18,7 +18,7 @@ declare module 'chargebee' {
18
18
  account_number: string;
19
19
  routing_number?: string;
20
20
  swift_code: string;
21
- gateway: Gateway;
21
+ gateway: GatewayEnum;
22
22
  gateway_account_id: string;
23
23
  resource_version?: number;
24
24
  updated_at?: number;