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.
- package/CHANGELOG.md +37 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +1 -0
- package/cjs/util.js +1 -1
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +1 -0
- package/esm/util.js +1 -1
- package/package.json +2 -2
- package/types/core.d.ts +93 -80
- package/types/index.d.ts +1 -0
- package/types/resources/Address.d.ts +2 -2
- package/types/resources/AdvanceInvoiceSchedule.d.ts +1 -1
- package/types/resources/AttachedItem.d.ts +4 -4
- package/types/resources/Card.d.ts +5 -3
- package/types/resources/Comment.d.ts +2 -2
- package/types/resources/Coupon.d.ts +10 -10
- package/types/resources/CreditNote.d.ts +7 -7
- package/types/resources/CreditNoteEstimate.d.ts +1 -1
- package/types/resources/Customer.d.ts +46 -46
- package/types/resources/Discount.d.ts +3 -3
- package/types/resources/Entitlement.d.ts +1 -1
- package/types/resources/EntitlementOverride.d.ts +1 -1
- package/types/resources/Estimate.d.ts +116 -100
- package/types/resources/Event.d.ts +3 -3
- package/types/resources/Export.d.ts +4 -4
- package/types/resources/Gift.d.ts +2 -2
- package/types/resources/HostedPage.d.ts +64 -64
- package/types/resources/Invoice.d.ts +44 -44
- package/types/resources/InvoiceEstimate.d.ts +1 -1
- package/types/resources/Item.d.ts +5 -5
- package/types/resources/ItemEntitlement.d.ts +2 -2
- package/types/resources/ItemFamily.d.ts +1 -1
- package/types/resources/ItemPrice.d.ts +11 -8
- package/types/resources/Order.d.ts +6 -6
- package/types/resources/PaymentScheduleEstimate.d.ts +25 -0
- package/types/resources/PaymentScheduleScheme.d.ts +1 -0
- package/types/resources/PaymentSource.d.ts +18 -14
- package/types/resources/PaymentVoucher.d.ts +9 -9
- package/types/resources/PricingPageSession.d.ts +27 -2
- package/types/resources/PromotionalCredit.d.ts +4 -4
- package/types/resources/Purchase.d.ts +6 -6
- package/types/resources/Quote.d.ts +84 -83
- package/types/resources/QuotedSubscription.d.ts +4 -1
- package/types/resources/Ramp.d.ts +6 -6
- package/types/resources/Subscription.d.ts +147 -142
- package/types/resources/SubscriptionEstimate.d.ts +2 -2
- package/types/resources/ThirdPartyPaymentMethod.d.ts +2 -2
- package/types/resources/Token.d.ts +2 -2
- package/types/resources/Transaction.d.ts +3 -3
- package/types/resources/UnbilledCharge.d.ts +3 -3
- package/types/resources/Usage.d.ts +3 -3
- 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?:
|
|
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?:
|
|
39
|
+
validation_status?: ValidationStatusEnum;
|
|
40
40
|
index: number;
|
|
41
41
|
}
|
|
42
42
|
export interface ContractTerm {
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
declare module 'chargebee' {
|
|
5
5
|
export interface Token {
|
|
6
6
|
id: string;
|
|
7
|
-
gateway:
|
|
7
|
+
gateway: GatewayEnum;
|
|
8
8
|
gateway_account_id: string;
|
|
9
|
-
payment_method_type:
|
|
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:
|
|
11
|
+
payment_method: PaymentMethodEnum;
|
|
12
12
|
reference_number?: string;
|
|
13
|
-
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:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
106
|
+
disposition_type?: DispositionTypeEnum;
|
|
107
107
|
invoice?: InvoicePdfInputParam;
|
|
108
108
|
}
|
|
109
109
|
export interface InvoicePdfInputParam {
|