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
|
@@ -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:
|
|
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:
|
|
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
|
-
|
|
40
|
+
paymentVouchersForInvoice(
|
|
41
41
|
invoice_id: string,
|
|
42
42
|
input?: PaymentVouchersForInvoiceInputParam,
|
|
43
43
|
headers?: ChargebeeRequestHeader,
|
|
44
|
-
): Promise<ChargebeeResponse<
|
|
44
|
+
): Promise<ChargebeeResponse<PaymentVouchersForInvoiceResponse>>;
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
paymentVouchersForCustomer(
|
|
47
47
|
customer_id: string,
|
|
48
48
|
input?: PaymentVouchersForCustomerInputParam,
|
|
49
49
|
headers?: ChargebeeRequestHeader,
|
|
50
|
-
): Promise<ChargebeeResponse<
|
|
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
|
|
61
|
+
export interface PaymentVouchersForInvoiceResponse {
|
|
62
62
|
list: { payment_voucher: PaymentVoucher }[];
|
|
63
63
|
next_offset?: string;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
export interface
|
|
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:
|
|
100
|
+
voucher_type: VoucherTypeEnum;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
export interface InvoiceAllocationsCreateInputParam {
|
|
@@ -41,11 +41,13 @@ declare module 'chargebee' {
|
|
|
41
41
|
customer?: CustomerCreateForNewSubscriptionInputParam;
|
|
42
42
|
billing_address?: BillingAddressCreateForNewSubscriptionInputParam;
|
|
43
43
|
shipping_address?: ShippingAddressCreateForNewSubscriptionInputParam;
|
|
44
|
+
discounts?: DiscountsCreateForNewSubscriptionInputParam[];
|
|
44
45
|
}
|
|
45
46
|
export interface CreateForExistingSubscriptionInputParam {
|
|
46
47
|
redirect_url?: string;
|
|
47
48
|
pricing_page?: PricingPageCreateForExistingSubscriptionInputParam;
|
|
48
49
|
subscription?: SubscriptionCreateForExistingSubscriptionInputParam;
|
|
50
|
+
discounts?: DiscountsCreateForExistingSubscriptionInputParam[];
|
|
49
51
|
}
|
|
50
52
|
export interface BillingAddressCreateForNewSubscriptionInputParam {
|
|
51
53
|
first_name?: string;
|
|
@@ -61,7 +63,7 @@ declare module 'chargebee' {
|
|
|
61
63
|
state?: string;
|
|
62
64
|
zip?: string;
|
|
63
65
|
country?: string;
|
|
64
|
-
validation_status?:
|
|
66
|
+
validation_status?: ValidationStatusEnum;
|
|
65
67
|
}
|
|
66
68
|
export interface PricingPageCreateForNewSubscriptionInputParam {
|
|
67
69
|
id: string;
|
|
@@ -89,17 +91,40 @@ declare module 'chargebee' {
|
|
|
89
91
|
state?: string;
|
|
90
92
|
zip?: string;
|
|
91
93
|
country?: string;
|
|
92
|
-
validation_status?:
|
|
94
|
+
validation_status?: ValidationStatusEnum;
|
|
93
95
|
}
|
|
94
96
|
export interface SubscriptionCreateForNewSubscriptionInputParam {
|
|
95
97
|
id?: string;
|
|
96
98
|
}
|
|
97
99
|
|
|
100
|
+
export interface DiscountsCreateForNewSubscriptionInputParam {
|
|
101
|
+
apply_on: ApplyOnEnum;
|
|
102
|
+
duration_type: DurationTypeEnum;
|
|
103
|
+
percentage?: number;
|
|
104
|
+
amount?: number;
|
|
105
|
+
period?: number;
|
|
106
|
+
period_unit?: PeriodUnitEnum;
|
|
107
|
+
included_in_mrr?: boolean;
|
|
108
|
+
item_price_id?: string;
|
|
109
|
+
label?: string;
|
|
110
|
+
}
|
|
98
111
|
export interface PricingPageCreateForExistingSubscriptionInputParam {
|
|
99
112
|
id: string;
|
|
100
113
|
}
|
|
101
114
|
export interface SubscriptionCreateForExistingSubscriptionInputParam {
|
|
102
115
|
id: string;
|
|
103
116
|
}
|
|
117
|
+
|
|
118
|
+
export interface DiscountsCreateForExistingSubscriptionInputParam {
|
|
119
|
+
apply_on: ApplyOnEnum;
|
|
120
|
+
duration_type: DurationTypeEnum;
|
|
121
|
+
percentage?: number;
|
|
122
|
+
amount?: number;
|
|
123
|
+
period?: number;
|
|
124
|
+
period_unit?: PeriodUnitEnum;
|
|
125
|
+
included_in_mrr?: boolean;
|
|
126
|
+
item_price_id?: string;
|
|
127
|
+
label?: string;
|
|
128
|
+
}
|
|
104
129
|
}
|
|
105
130
|
}
|
|
@@ -10,7 +10,7 @@ declare module 'chargebee' {
|
|
|
10
10
|
amount: number;
|
|
11
11
|
currency_code: string;
|
|
12
12
|
description: string;
|
|
13
|
-
credit_type:
|
|
13
|
+
credit_type: CreditTypeEnum;
|
|
14
14
|
reference?: string;
|
|
15
15
|
closing_balance: number;
|
|
16
16
|
done_by?: string;
|
|
@@ -78,7 +78,7 @@ declare module 'chargebee' {
|
|
|
78
78
|
amount_in_decimal?: string;
|
|
79
79
|
currency_code?: string;
|
|
80
80
|
description: string;
|
|
81
|
-
credit_type?:
|
|
81
|
+
credit_type?: CreditTypeEnum;
|
|
82
82
|
reference?: string;
|
|
83
83
|
}
|
|
84
84
|
export interface DeductInputParam {
|
|
@@ -87,7 +87,7 @@ declare module 'chargebee' {
|
|
|
87
87
|
amount_in_decimal?: string;
|
|
88
88
|
currency_code?: string;
|
|
89
89
|
description: string;
|
|
90
|
-
credit_type?:
|
|
90
|
+
credit_type?: CreditTypeEnum;
|
|
91
91
|
reference?: string;
|
|
92
92
|
}
|
|
93
93
|
export interface SetInputParam {
|
|
@@ -96,7 +96,7 @@ declare module 'chargebee' {
|
|
|
96
96
|
amount_in_decimal?: string;
|
|
97
97
|
currency_code?: string;
|
|
98
98
|
description: string;
|
|
99
|
-
credit_type?:
|
|
99
|
+
credit_type?: CreditTypeEnum;
|
|
100
100
|
reference?: string;
|
|
101
101
|
}
|
|
102
102
|
export interface ListInputParam {
|
|
@@ -123,7 +123,7 @@ declare module 'chargebee' {
|
|
|
123
123
|
state_code?: string;
|
|
124
124
|
country?: string;
|
|
125
125
|
zip?: string;
|
|
126
|
-
validation_status?:
|
|
126
|
+
validation_status?: ValidationStatusEnum;
|
|
127
127
|
}
|
|
128
128
|
export interface BillingAddressEstimateInputParam {
|
|
129
129
|
line1?: string;
|
|
@@ -133,17 +133,17 @@ declare module 'chargebee' {
|
|
|
133
133
|
state_code?: string;
|
|
134
134
|
zip?: string;
|
|
135
135
|
country?: string;
|
|
136
|
-
validation_status?:
|
|
136
|
+
validation_status?: ValidationStatusEnum;
|
|
137
137
|
}
|
|
138
138
|
export interface CustomerEstimateInputParam {
|
|
139
139
|
vat_number?: string;
|
|
140
140
|
vat_number_prefix?: string;
|
|
141
141
|
registered_for_gst?: boolean;
|
|
142
|
-
taxability?:
|
|
143
|
-
entity_code?:
|
|
142
|
+
taxability?: TaxabilityEnum;
|
|
143
|
+
entity_code?: EntityCodeEnum;
|
|
144
144
|
exempt_number?: string;
|
|
145
145
|
exemption_details?: any;
|
|
146
|
-
customer_type?:
|
|
146
|
+
customer_type?: CustomerTypeEnum;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
export interface SubscriptionInfoEstimateInputParam {
|
|
@@ -196,7 +196,7 @@ declare module 'chargebee' {
|
|
|
196
196
|
state_code?: string;
|
|
197
197
|
country?: string;
|
|
198
198
|
zip?: string;
|
|
199
|
-
validation_status?:
|
|
199
|
+
validation_status?: ValidationStatusEnum;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
}
|