chargebee 3.23.1 → 3.25.0-beta.1
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 +97 -0
- package/README.md +39 -0
- package/cjs/RequestWrapper.js +27 -0
- package/cjs/chargebee.cjs.js +3 -0
- package/cjs/chargebee.cjs.worker.js +2 -0
- package/cjs/chargebeeZodValidationError.js +18 -0
- package/cjs/createChargebee.js +5 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +80 -2
- package/cjs/schema/addon.schema.js +153 -0
- package/cjs/schema/address.schema.js +35 -0
- package/cjs/schema/alert.schema.js +38 -0
- package/cjs/schema/attached_item.schema.js +58 -0
- package/cjs/schema/business_entity.schema.js +46 -0
- package/cjs/schema/card.schema.js +165 -0
- package/cjs/schema/comment.schema.js +69 -0
- package/cjs/schema/coupon.schema.js +209 -0
- package/cjs/schema/coupon_code.schema.js +14 -0
- package/cjs/schema/coupon_set.schema.js +28 -0
- package/cjs/schema/credit_note.schema.js +288 -0
- package/cjs/schema/currency.schema.js +32 -0
- package/cjs/schema/customer.schema.js +986 -0
- package/cjs/schema/customer_entitlement.schema.js +14 -0
- package/cjs/schema/differential_price.schema.js +68 -0
- package/cjs/schema/entitlement.schema.js +27 -0
- package/cjs/schema/entitlement_override.schema.js +33 -0
- package/cjs/schema/estimate.schema.js +1525 -0
- package/cjs/schema/export.schema.js +1545 -0
- package/cjs/schema/feature.schema.js +37 -0
- package/cjs/schema/gift.schema.js +277 -0
- package/cjs/schema/hosted_page.schema.js +1649 -0
- package/cjs/schema/in_app_subscription.schema.js +68 -0
- package/cjs/schema/index.js +80 -0
- package/cjs/schema/invoice.schema.js +1467 -0
- package/cjs/schema/item.schema.js +91 -0
- package/cjs/schema/item_entitlement.schema.js +45 -0
- package/cjs/schema/item_family.schema.js +21 -0
- package/cjs/schema/item_price.schema.js +190 -0
- package/cjs/schema/non_subscription.schema.js +28 -0
- package/cjs/schema/offer_event.schema.js +13 -0
- package/cjs/schema/offer_fulfillment.schema.js +20 -0
- package/cjs/schema/omnichannel_one_time_order.schema.js +26 -0
- package/cjs/schema/omnichannel_subscription.schema.js +89 -0
- package/cjs/schema/omnichannel_subscription_item.schema.js +13 -0
- package/cjs/schema/order.schema.js +273 -0
- package/cjs/schema/payment_intent.schema.js +117 -0
- package/cjs/schema/payment_schedule_scheme.schema.js +20 -0
- package/cjs/schema/payment_source.schema.js +358 -0
- package/cjs/schema/payment_voucher.schema.js +57 -0
- package/cjs/schema/personalized_offer.schema.js +28 -0
- package/cjs/schema/plan.schema.js +225 -0
- package/cjs/schema/portal_session.schema.js +22 -0
- package/cjs/schema/price_variant.schema.js +36 -0
- package/cjs/schema/pricing_page_session.schema.js +135 -0
- package/cjs/schema/promotional_credit.schema.js +78 -0
- package/cjs/schema/purchase.schema.js +272 -0
- package/cjs/schema/quote.schema.js +1557 -0
- package/cjs/schema/ramp.schema.js +209 -0
- package/cjs/schema/recorded_purchase.schema.js +32 -0
- package/cjs/schema/resource_migration.schema.js +14 -0
- package/cjs/schema/site_migration_detail.schema.js +81 -0
- package/cjs/schema/subscription.schema.js +2993 -0
- package/cjs/schema/subscription_entitlement.schema.js +25 -0
- package/cjs/schema/time_machine.schema.js +17 -0
- package/cjs/schema/transaction.schema.js +70 -0
- package/cjs/schema/unbilled_charge.schema.js +113 -0
- package/cjs/schema/usage.schema.js +93 -0
- package/cjs/schema/usage_charge.schema.js +17 -0
- package/cjs/schema/usage_event.schema.js +28 -0
- package/cjs/schema/usage_file.schema.js +13 -0
- package/cjs/schema/usage_summary.schema.js +17 -0
- package/cjs/schema/virtual_bank_account.schema.js +43 -0
- package/cjs/schema/webhook_endpoint.schema.js +504 -0
- package/cjs/validationLoader.js +59 -0
- package/esm/RequestWrapper.js +27 -0
- package/esm/chargebee.esm.js +2 -0
- package/esm/chargebee.esm.worker.js +1 -0
- package/esm/chargebeeZodValidationError.js +14 -0
- package/esm/createChargebee.js +5 -0
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +80 -2
- package/esm/schema/addon.schema.js +150 -0
- package/esm/schema/address.schema.js +32 -0
- package/esm/schema/alert.schema.js +35 -0
- package/esm/schema/attached_item.schema.js +55 -0
- package/esm/schema/business_entity.schema.js +43 -0
- package/esm/schema/card.schema.js +162 -0
- package/esm/schema/comment.schema.js +66 -0
- package/esm/schema/coupon.schema.js +206 -0
- package/esm/schema/coupon_code.schema.js +11 -0
- package/esm/schema/coupon_set.schema.js +25 -0
- package/esm/schema/credit_note.schema.js +285 -0
- package/esm/schema/currency.schema.js +29 -0
- package/esm/schema/customer.schema.js +983 -0
- package/esm/schema/customer_entitlement.schema.js +11 -0
- package/esm/schema/differential_price.schema.js +65 -0
- package/esm/schema/entitlement.schema.js +24 -0
- package/esm/schema/entitlement_override.schema.js +30 -0
- package/esm/schema/estimate.schema.js +1522 -0
- package/esm/schema/export.schema.js +1542 -0
- package/esm/schema/feature.schema.js +34 -0
- package/esm/schema/gift.schema.js +274 -0
- package/esm/schema/hosted_page.schema.js +1646 -0
- package/esm/schema/in_app_subscription.schema.js +65 -0
- package/esm/schema/index.js +64 -0
- package/esm/schema/invoice.schema.js +1464 -0
- package/esm/schema/item.schema.js +88 -0
- package/esm/schema/item_entitlement.schema.js +42 -0
- package/esm/schema/item_family.schema.js +18 -0
- package/esm/schema/item_price.schema.js +187 -0
- package/esm/schema/non_subscription.schema.js +25 -0
- package/esm/schema/offer_event.schema.js +10 -0
- package/esm/schema/offer_fulfillment.schema.js +17 -0
- package/esm/schema/omnichannel_one_time_order.schema.js +23 -0
- package/esm/schema/omnichannel_subscription.schema.js +86 -0
- package/esm/schema/omnichannel_subscription_item.schema.js +10 -0
- package/esm/schema/order.schema.js +270 -0
- package/esm/schema/payment_intent.schema.js +114 -0
- package/esm/schema/payment_schedule_scheme.schema.js +17 -0
- package/esm/schema/payment_source.schema.js +355 -0
- package/esm/schema/payment_voucher.schema.js +54 -0
- package/esm/schema/personalized_offer.schema.js +25 -0
- package/esm/schema/plan.schema.js +222 -0
- package/esm/schema/portal_session.schema.js +19 -0
- package/esm/schema/price_variant.schema.js +33 -0
- package/esm/schema/pricing_page_session.schema.js +132 -0
- package/esm/schema/promotional_credit.schema.js +75 -0
- package/esm/schema/purchase.schema.js +269 -0
- package/esm/schema/quote.schema.js +1554 -0
- package/esm/schema/ramp.schema.js +206 -0
- package/esm/schema/recorded_purchase.schema.js +29 -0
- package/esm/schema/resource_migration.schema.js +11 -0
- package/esm/schema/site_migration_detail.schema.js +78 -0
- package/esm/schema/subscription.schema.js +2990 -0
- package/esm/schema/subscription_entitlement.schema.js +22 -0
- package/esm/schema/time_machine.schema.js +14 -0
- package/esm/schema/transaction.schema.js +67 -0
- package/esm/schema/unbilled_charge.schema.js +110 -0
- package/esm/schema/usage.schema.js +90 -0
- package/esm/schema/usage_charge.schema.js +14 -0
- package/esm/schema/usage_event.schema.js +25 -0
- package/esm/schema/usage_file.schema.js +10 -0
- package/esm/schema/usage_summary.schema.js +14 -0
- package/esm/schema/virtual_bank_account.schema.js +40 -0
- package/esm/schema/webhook_endpoint.schema.js +501 -0
- package/esm/validationLoader.js +56 -0
- package/package.json +5 -2
- package/types/core.d.ts +34 -8
- package/types/index.d.ts +20 -0
- package/types/resources/Alert.d.ts +110 -4
- package/types/resources/AlertStatus.d.ts +43 -2
- package/types/resources/Card.d.ts +1 -0
- package/types/resources/Content.d.ts +2 -0
- package/types/resources/Customer.d.ts +16 -2
- package/types/resources/Estimate.d.ts +16 -2
- package/types/resources/Event.d.ts +4 -2
- package/types/resources/FilterCondition.d.ts +10 -0
- package/types/resources/Gift.d.ts +16 -2
- package/types/resources/Invoice.d.ts +17 -2
- package/types/resources/PaymentIntent.d.ts +42 -6
- package/types/resources/PaymentSource.d.ts +11 -2
- package/types/resources/Purchase.d.ts +8 -1
- package/types/resources/Quote.d.ts +2 -0
- package/types/resources/QuoteEntitlement.d.ts +16 -0
- package/types/resources/Subscription.d.ts +56 -7
- package/types/resources/VirtualBankAccount.d.ts +2 -0
package/types/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
///<reference path='./resources/Event.d.ts' />
|
|
34
34
|
///<reference path='./resources/Export.d.ts' />
|
|
35
35
|
///<reference path='./resources/Feature.d.ts' />
|
|
36
|
+
///<reference path='./resources/FilterCondition.d.ts' />
|
|
36
37
|
///<reference path='./resources/GatewayErrorDetail.d.ts' />
|
|
37
38
|
///<reference path='./resources/Gift.d.ts' />
|
|
38
39
|
///<reference path='./resources/Hierarchy.d.ts' />
|
|
@@ -75,6 +76,7 @@
|
|
|
75
76
|
///<reference path='./resources/PromotionalCredit.d.ts' />
|
|
76
77
|
///<reference path='./resources/Purchase.d.ts' />
|
|
77
78
|
///<reference path='./resources/Quote.d.ts' />
|
|
79
|
+
///<reference path='./resources/QuoteEntitlement.d.ts' />
|
|
78
80
|
///<reference path='./resources/QuoteLineGroup.d.ts' />
|
|
79
81
|
///<reference path='./resources/QuotedCharge.d.ts' />
|
|
80
82
|
///<reference path='./resources/QuotedDeltaRamp.d.ts' />
|
|
@@ -163,6 +165,11 @@ declare module 'chargebee' {
|
|
|
163
165
|
* @httpClient optional http client implementation, default http client will be used if not provided
|
|
164
166
|
*/
|
|
165
167
|
httpClient?: HttpClientInterface;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @enableValidation When true, every request's parameters are validated against each endpoint's generated Zod schema before the HTTP request is sent. Violations throw `ChargebeeZodValidationError` with structured Zod issues. Calls with no params argument are validated as `{}`. Required resource ids in the URL path are still checked separately.
|
|
171
|
+
*/
|
|
172
|
+
enableValidation?: boolean;
|
|
166
173
|
};
|
|
167
174
|
|
|
168
175
|
export interface HttpClientInterface {
|
|
@@ -186,6 +193,8 @@ declare module 'chargebee' {
|
|
|
186
193
|
constructor(config: Config);
|
|
187
194
|
addon: Addon.AddonResource;
|
|
188
195
|
address: Address.AddressResource;
|
|
196
|
+
alert: Alert.AlertResource;
|
|
197
|
+
alertStatu: AlertStatus.AlertStatusResource;
|
|
189
198
|
attachedItem: AttachedItem.AttachedItemResource;
|
|
190
199
|
businessEntity: BusinessEntity.BusinessEntityResource;
|
|
191
200
|
card: Card.CardResource;
|
|
@@ -440,4 +449,15 @@ declare module 'chargebee' {
|
|
|
440
449
|
name: string;
|
|
441
450
|
readonly rawBody?: string;
|
|
442
451
|
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* Thrown when `enableValidation` is on and request parameters fail the action's Zod schema.
|
|
455
|
+
* Carries `actionName` and the original `ZodError` (issues, `flatten()`, etc.) for programmatic handling.
|
|
456
|
+
*/
|
|
457
|
+
export class ChargebeeZodValidationError extends Error {
|
|
458
|
+
constructor(actionName: string, zodError: import('zod').ZodError);
|
|
459
|
+
name: string;
|
|
460
|
+
readonly actionName: string;
|
|
461
|
+
readonly zodError: import('zod').ZodError;
|
|
462
|
+
}
|
|
443
463
|
}
|
|
@@ -1,19 +1,125 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
///<reference path='./../index.d.ts'/>
|
|
3
|
-
|
|
3
|
+
///<reference path='./filter.d.ts'/>
|
|
4
4
|
declare module 'chargebee' {
|
|
5
5
|
export interface Alert {
|
|
6
6
|
id: string;
|
|
7
|
-
type
|
|
7
|
+
type: TypeEnum;
|
|
8
8
|
name: string;
|
|
9
9
|
description?: string;
|
|
10
10
|
metered_feature_id: string;
|
|
11
11
|
subscription_id?: string;
|
|
12
12
|
status?: 'enabled' | 'disabled';
|
|
13
|
-
alarm_triggered_at?: number;
|
|
14
|
-
scope?: 'global' | 'subscription';
|
|
15
13
|
meta?: string;
|
|
16
14
|
created_at: number;
|
|
17
15
|
updated_at: number;
|
|
18
16
|
}
|
|
17
|
+
|
|
18
|
+
export namespace Alert {
|
|
19
|
+
export class AlertResource {
|
|
20
|
+
create(
|
|
21
|
+
input: CreateInputParam,
|
|
22
|
+
headers?: ChargebeeRequestHeader,
|
|
23
|
+
): Promise<ChargebeeResponse<CreateResponse>>;
|
|
24
|
+
|
|
25
|
+
retrieve(
|
|
26
|
+
alert_id: string,
|
|
27
|
+
headers?: ChargebeeRequestHeader,
|
|
28
|
+
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
29
|
+
|
|
30
|
+
list(
|
|
31
|
+
input?: ListInputParam,
|
|
32
|
+
headers?: ChargebeeRequestHeader,
|
|
33
|
+
): Promise<ChargebeeResponse<ListResponse>>;
|
|
34
|
+
|
|
35
|
+
update(
|
|
36
|
+
alert_id: string,
|
|
37
|
+
input?: UpdateInputParam,
|
|
38
|
+
headers?: ChargebeeRequestHeader,
|
|
39
|
+
): Promise<ChargebeeResponse<UpdateResponse>>;
|
|
40
|
+
|
|
41
|
+
delete(
|
|
42
|
+
alert_id: string,
|
|
43
|
+
headers?: ChargebeeRequestHeader,
|
|
44
|
+
): Promise<ChargebeeResponse<DeleteResponse>>;
|
|
45
|
+
|
|
46
|
+
applicationAlertsForSubscription(
|
|
47
|
+
subscription_id: string,
|
|
48
|
+
input?: ApplicationAlertsForSubscriptionInputParam,
|
|
49
|
+
headers?: ChargebeeRequestHeader,
|
|
50
|
+
): Promise<ChargebeeResponse<ApplicationAlertsForSubscriptionResponse>>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface CreateResponse {
|
|
54
|
+
alert: Alert;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface RetrieveResponse {
|
|
58
|
+
alert: Alert;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface ListResponse {
|
|
62
|
+
list: { alert: Alert }[];
|
|
63
|
+
next_offset?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface UpdateResponse {
|
|
67
|
+
alert: Alert;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface DeleteResponse {
|
|
71
|
+
alert: Alert;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface ApplicationAlertsForSubscriptionResponse {
|
|
75
|
+
list: { alert: Alert }[];
|
|
76
|
+
next_offset?: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// REQUEST PARAMS
|
|
80
|
+
//---------------
|
|
81
|
+
|
|
82
|
+
export interface CreateInputParam {
|
|
83
|
+
type: TypeEnum;
|
|
84
|
+
name: string;
|
|
85
|
+
description?: string;
|
|
86
|
+
metered_feature_id: string;
|
|
87
|
+
subscription_id?: string;
|
|
88
|
+
meta?: string;
|
|
89
|
+
threshold?: ThresholdCreateInputParam;
|
|
90
|
+
filter_conditions?: FilterConditionsCreateInputParam[];
|
|
91
|
+
}
|
|
92
|
+
export interface ListInputParam {
|
|
93
|
+
limit?: number;
|
|
94
|
+
offset?: string;
|
|
95
|
+
id?: filter.String;
|
|
96
|
+
type?: filter.Enum;
|
|
97
|
+
subscription_id?: filter.String;
|
|
98
|
+
status?: filter.Enum;
|
|
99
|
+
}
|
|
100
|
+
export interface UpdateInputParam {
|
|
101
|
+
status?: 'enabled' | 'disabled';
|
|
102
|
+
threshold?: ThresholdUpdateInputParam;
|
|
103
|
+
}
|
|
104
|
+
export interface ApplicationAlertsForSubscriptionInputParam {
|
|
105
|
+
limit?: number;
|
|
106
|
+
offset?: string;
|
|
107
|
+
status?: filter.Enum;
|
|
108
|
+
type?: filter.Enum;
|
|
109
|
+
}
|
|
110
|
+
export interface ThresholdCreateInputParam {
|
|
111
|
+
mode: ModeEnum;
|
|
112
|
+
value: number;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export interface FilterConditionsCreateInputParam {
|
|
116
|
+
field?: 'plan_price_id';
|
|
117
|
+
operator?: 'equals' | 'not_equals';
|
|
118
|
+
value?: string;
|
|
119
|
+
}
|
|
120
|
+
export interface ThresholdUpdateInputParam {
|
|
121
|
+
mode?: ModeEnum;
|
|
122
|
+
value?: number;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
19
125
|
}
|
|
@@ -1,11 +1,52 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
///<reference path='./../index.d.ts'/>
|
|
3
|
-
|
|
3
|
+
///<reference path='./filter.d.ts'/>
|
|
4
4
|
declare module 'chargebee' {
|
|
5
5
|
export interface AlertStatus {
|
|
6
6
|
alert_id: string;
|
|
7
7
|
subscription_id: string;
|
|
8
|
-
|
|
8
|
+
alarm_status: AlarmStatusEnum;
|
|
9
9
|
alarm_triggered_at?: number;
|
|
10
10
|
}
|
|
11
|
+
|
|
12
|
+
export namespace AlertStatus {
|
|
13
|
+
export class AlertStatusResource {
|
|
14
|
+
alertStatusesForSubscription(
|
|
15
|
+
subscription_id: string,
|
|
16
|
+
input?: AlertStatusesForSubscriptionInputParam,
|
|
17
|
+
headers?: ChargebeeRequestHeader,
|
|
18
|
+
): Promise<ChargebeeResponse<AlertStatusesForSubscriptionResponse>>;
|
|
19
|
+
|
|
20
|
+
alertStatusesForAlert(
|
|
21
|
+
alert_id: string,
|
|
22
|
+
input?: AlertStatusesForAlertInputParam,
|
|
23
|
+
headers?: ChargebeeRequestHeader,
|
|
24
|
+
): Promise<ChargebeeResponse<AlertStatusesForAlertResponse>>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface AlertStatusesForSubscriptionResponse {
|
|
28
|
+
list: { alert_status: AlertStatus }[];
|
|
29
|
+
next_offset?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface AlertStatusesForAlertResponse {
|
|
33
|
+
list: { alert_status: AlertStatus }[];
|
|
34
|
+
next_offset?: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// REQUEST PARAMS
|
|
38
|
+
//---------------
|
|
39
|
+
|
|
40
|
+
export interface AlertStatusesForSubscriptionInputParam {
|
|
41
|
+
limit?: number;
|
|
42
|
+
offset?: string;
|
|
43
|
+
alarm_status?: filter.Enum;
|
|
44
|
+
alert_id?: filter.String;
|
|
45
|
+
}
|
|
46
|
+
export interface AlertStatusesForAlertInputParam {
|
|
47
|
+
limit?: number;
|
|
48
|
+
offset?: string;
|
|
49
|
+
alarm_status?: filter.Enum;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
11
52
|
}
|
|
@@ -38,6 +38,7 @@ declare module 'chargebee' {
|
|
|
38
38
|
event: Event;
|
|
39
39
|
export: Export;
|
|
40
40
|
feature: Feature;
|
|
41
|
+
filter_condition: FilterCondition;
|
|
41
42
|
gateway_error_detail: GatewayErrorDetail;
|
|
42
43
|
gift: Gift;
|
|
43
44
|
hierarchy: Hierarchy;
|
|
@@ -80,6 +81,7 @@ declare module 'chargebee' {
|
|
|
80
81
|
promotional_credit: PromotionalCredit;
|
|
81
82
|
purchase: Purchase;
|
|
82
83
|
quote: Quote;
|
|
84
|
+
quote_entitlement: QuoteEntitlement;
|
|
83
85
|
quote_line_group: QuoteLineGroup;
|
|
84
86
|
quoted_charge: QuotedCharge;
|
|
85
87
|
quoted_delta_ramp: QuotedDeltaRamp;
|
|
@@ -762,7 +762,14 @@ declare module 'chargebee' {
|
|
|
762
762
|
| 'cash_app_pay'
|
|
763
763
|
| 'wechat_pay'
|
|
764
764
|
| 'alipay'
|
|
765
|
-
| 'pix'
|
|
765
|
+
| 'pix'
|
|
766
|
+
| 'twint'
|
|
767
|
+
| 'go_pay'
|
|
768
|
+
| 'grab_pay'
|
|
769
|
+
| 'pay_co'
|
|
770
|
+
| 'after_pay'
|
|
771
|
+
| 'swish'
|
|
772
|
+
| 'payme';
|
|
766
773
|
reference_id?: string;
|
|
767
774
|
/**
|
|
768
775
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -947,7 +954,14 @@ declare module 'chargebee' {
|
|
|
947
954
|
| 'cash_app_pay'
|
|
948
955
|
| 'wechat_pay'
|
|
949
956
|
| 'alipay'
|
|
950
|
-
| 'pix'
|
|
957
|
+
| 'pix'
|
|
958
|
+
| 'twint'
|
|
959
|
+
| 'go_pay'
|
|
960
|
+
| 'grab_pay'
|
|
961
|
+
| 'pay_co'
|
|
962
|
+
| 'after_pay'
|
|
963
|
+
| 'swish'
|
|
964
|
+
| 'payme';
|
|
951
965
|
/**
|
|
952
966
|
* @deprecated Please refer API docs to use other attributes
|
|
953
967
|
*/
|
|
@@ -1058,7 +1058,14 @@ declare module 'chargebee' {
|
|
|
1058
1058
|
| 'cash_app_pay'
|
|
1059
1059
|
| 'wechat_pay'
|
|
1060
1060
|
| 'alipay'
|
|
1061
|
-
| 'pix'
|
|
1061
|
+
| 'pix'
|
|
1062
|
+
| 'twint'
|
|
1063
|
+
| 'go_pay'
|
|
1064
|
+
| 'grab_pay'
|
|
1065
|
+
| 'pay_co'
|
|
1066
|
+
| 'after_pay'
|
|
1067
|
+
| 'swish'
|
|
1068
|
+
| 'payme';
|
|
1062
1069
|
reference_id?: string;
|
|
1063
1070
|
/**
|
|
1064
1071
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1148,7 +1155,14 @@ declare module 'chargebee' {
|
|
|
1148
1155
|
| 'cash_app_pay'
|
|
1149
1156
|
| 'wechat_pay'
|
|
1150
1157
|
| 'alipay'
|
|
1151
|
-
| 'pix'
|
|
1158
|
+
| 'pix'
|
|
1159
|
+
| 'twint'
|
|
1160
|
+
| 'go_pay'
|
|
1161
|
+
| 'grab_pay'
|
|
1162
|
+
| 'pay_co'
|
|
1163
|
+
| 'after_pay'
|
|
1164
|
+
| 'swish'
|
|
1165
|
+
| 'payme';
|
|
1152
1166
|
reference_id?: string;
|
|
1153
1167
|
/**
|
|
1154
1168
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -15,7 +15,8 @@ declare module 'chargebee' {
|
|
|
15
15
|
| 'failed'
|
|
16
16
|
| 'skipped'
|
|
17
17
|
| 'not_applicable'
|
|
18
|
-
| 'disabled'
|
|
18
|
+
| 'disabled'
|
|
19
|
+
| 'rate_limited';
|
|
19
20
|
webhook_failure_reason?: string;
|
|
20
21
|
webhooks?: Event.Webhook[];
|
|
21
22
|
event_type?: EventTypeEnum;
|
|
@@ -272,7 +273,8 @@ declare module 'chargebee' {
|
|
|
272
273
|
| 'failed'
|
|
273
274
|
| 'skipped'
|
|
274
275
|
| 'not_applicable'
|
|
275
|
-
| 'disabled'
|
|
276
|
+
| 'disabled'
|
|
277
|
+
| 'rate_limited';
|
|
276
278
|
}
|
|
277
279
|
// REQUEST PARAMS
|
|
278
280
|
//---------------
|
|
@@ -215,7 +215,14 @@ declare module 'chargebee' {
|
|
|
215
215
|
| 'cash_app_pay'
|
|
216
216
|
| 'wechat_pay'
|
|
217
217
|
| 'alipay'
|
|
218
|
-
| 'pix'
|
|
218
|
+
| 'pix'
|
|
219
|
+
| 'twint'
|
|
220
|
+
| 'go_pay'
|
|
221
|
+
| 'grab_pay'
|
|
222
|
+
| 'pay_co'
|
|
223
|
+
| 'after_pay'
|
|
224
|
+
| 'swish'
|
|
225
|
+
| 'payme';
|
|
219
226
|
reference_id?: string;
|
|
220
227
|
/**
|
|
221
228
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -299,7 +306,14 @@ declare module 'chargebee' {
|
|
|
299
306
|
| 'cash_app_pay'
|
|
300
307
|
| 'wechat_pay'
|
|
301
308
|
| 'alipay'
|
|
302
|
-
| 'pix'
|
|
309
|
+
| 'pix'
|
|
310
|
+
| 'twint'
|
|
311
|
+
| 'go_pay'
|
|
312
|
+
| 'grab_pay'
|
|
313
|
+
| 'pay_co'
|
|
314
|
+
| 'after_pay'
|
|
315
|
+
| 'swish'
|
|
316
|
+
| 'payme';
|
|
303
317
|
reference_id?: string;
|
|
304
318
|
/**
|
|
305
319
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1074,6 +1074,7 @@ declare module 'chargebee' {
|
|
|
1074
1074
|
channel?: filter.Enum;
|
|
1075
1075
|
voided_at?: filter.Timestamp;
|
|
1076
1076
|
void_reason_code?: filter.String;
|
|
1077
|
+
exclude?: filter.String;
|
|
1077
1078
|
'sort_by[asc]'?: string;
|
|
1078
1079
|
'sort_by[desc]'?: string;
|
|
1079
1080
|
}
|
|
@@ -1282,7 +1283,14 @@ declare module 'chargebee' {
|
|
|
1282
1283
|
| 'cash_app_pay'
|
|
1283
1284
|
| 'wechat_pay'
|
|
1284
1285
|
| 'alipay'
|
|
1285
|
-
| 'pix'
|
|
1286
|
+
| 'pix'
|
|
1287
|
+
| 'twint'
|
|
1288
|
+
| 'go_pay'
|
|
1289
|
+
| 'grab_pay'
|
|
1290
|
+
| 'pay_co'
|
|
1291
|
+
| 'after_pay'
|
|
1292
|
+
| 'swish'
|
|
1293
|
+
| 'payme';
|
|
1286
1294
|
reference_id?: string;
|
|
1287
1295
|
/**
|
|
1288
1296
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1441,7 +1449,14 @@ declare module 'chargebee' {
|
|
|
1441
1449
|
| 'cash_app_pay'
|
|
1442
1450
|
| 'wechat_pay'
|
|
1443
1451
|
| 'alipay'
|
|
1444
|
-
| 'pix'
|
|
1452
|
+
| 'pix'
|
|
1453
|
+
| 'twint'
|
|
1454
|
+
| 'go_pay'
|
|
1455
|
+
| 'grab_pay'
|
|
1456
|
+
| 'pay_co'
|
|
1457
|
+
| 'after_pay'
|
|
1458
|
+
| 'swish'
|
|
1459
|
+
| 'payme';
|
|
1445
1460
|
reference_id?: string;
|
|
1446
1461
|
/**
|
|
1447
1462
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -7,7 +7,7 @@ declare module 'chargebee' {
|
|
|
7
7
|
status: 'inited' | 'in_progress' | 'authorized' | 'consumed' | 'expired';
|
|
8
8
|
currency_code?: string;
|
|
9
9
|
amount: number;
|
|
10
|
-
gateway_account_id
|
|
10
|
+
gateway_account_id?: string;
|
|
11
11
|
expires_at: number;
|
|
12
12
|
reference_id?: string;
|
|
13
13
|
payment_method_type?:
|
|
@@ -43,7 +43,14 @@ declare module 'chargebee' {
|
|
|
43
43
|
| 'cash_app_pay'
|
|
44
44
|
| 'wechat_pay'
|
|
45
45
|
| 'alipay'
|
|
46
|
-
| 'pix'
|
|
46
|
+
| 'pix'
|
|
47
|
+
| 'twint'
|
|
48
|
+
| 'go_pay'
|
|
49
|
+
| 'grab_pay'
|
|
50
|
+
| 'pay_co'
|
|
51
|
+
| 'after_pay'
|
|
52
|
+
| 'swish'
|
|
53
|
+
| 'payme';
|
|
47
54
|
success_url?: string;
|
|
48
55
|
failure_url?: string;
|
|
49
56
|
created_at: number;
|
|
@@ -131,7 +138,14 @@ declare module 'chargebee' {
|
|
|
131
138
|
| 'cash_app_pay'
|
|
132
139
|
| 'wechat_pay'
|
|
133
140
|
| 'alipay'
|
|
134
|
-
| 'pix'
|
|
141
|
+
| 'pix'
|
|
142
|
+
| 'twint'
|
|
143
|
+
| 'go_pay'
|
|
144
|
+
| 'grab_pay'
|
|
145
|
+
| 'pay_co'
|
|
146
|
+
| 'after_pay'
|
|
147
|
+
| 'swish'
|
|
148
|
+
| 'payme';
|
|
135
149
|
id_at_gateway?: string;
|
|
136
150
|
error_code?: string;
|
|
137
151
|
error_text?: string;
|
|
@@ -183,7 +197,14 @@ declare module 'chargebee' {
|
|
|
183
197
|
| 'cash_app_pay'
|
|
184
198
|
| 'wechat_pay'
|
|
185
199
|
| 'alipay'
|
|
186
|
-
| 'pix'
|
|
200
|
+
| 'pix'
|
|
201
|
+
| 'twint'
|
|
202
|
+
| 'go_pay'
|
|
203
|
+
| 'grab_pay'
|
|
204
|
+
| 'pay_co'
|
|
205
|
+
| 'after_pay'
|
|
206
|
+
| 'swish'
|
|
207
|
+
| 'payme';
|
|
187
208
|
id_at_gateway?: string;
|
|
188
209
|
error_code?: string;
|
|
189
210
|
error_text?: string;
|
|
@@ -202,6 +223,7 @@ declare module 'chargebee' {
|
|
|
202
223
|
currency_code: string;
|
|
203
224
|
gateway_account_id?: string;
|
|
204
225
|
reference_id?: string;
|
|
226
|
+
defer_payment_method_type?: boolean;
|
|
205
227
|
payment_method_type?:
|
|
206
228
|
| 'card'
|
|
207
229
|
| 'ideal'
|
|
@@ -235,7 +257,14 @@ declare module 'chargebee' {
|
|
|
235
257
|
| 'cash_app_pay'
|
|
236
258
|
| 'wechat_pay'
|
|
237
259
|
| 'alipay'
|
|
238
|
-
| 'pix'
|
|
260
|
+
| 'pix'
|
|
261
|
+
| 'twint'
|
|
262
|
+
| 'go_pay'
|
|
263
|
+
| 'grab_pay'
|
|
264
|
+
| 'pay_co'
|
|
265
|
+
| 'after_pay'
|
|
266
|
+
| 'swish'
|
|
267
|
+
| 'payme';
|
|
239
268
|
success_url?: string;
|
|
240
269
|
failure_url?: string;
|
|
241
270
|
}
|
|
@@ -276,7 +305,14 @@ declare module 'chargebee' {
|
|
|
276
305
|
| 'cash_app_pay'
|
|
277
306
|
| 'wechat_pay'
|
|
278
307
|
| 'alipay'
|
|
279
|
-
| 'pix'
|
|
308
|
+
| 'pix'
|
|
309
|
+
| 'twint'
|
|
310
|
+
| 'go_pay'
|
|
311
|
+
| 'grab_pay'
|
|
312
|
+
| 'pay_co'
|
|
313
|
+
| 'after_pay'
|
|
314
|
+
| 'swish'
|
|
315
|
+
| 'payme';
|
|
280
316
|
success_url?: string;
|
|
281
317
|
failure_url?: string;
|
|
282
318
|
}
|
|
@@ -226,6 +226,7 @@ declare module 'chargebee' {
|
|
|
226
226
|
| 'maestro'
|
|
227
227
|
| 'dankort'
|
|
228
228
|
| 'cartes_bancaires'
|
|
229
|
+
| 'mada'
|
|
229
230
|
| 'not_applicable';
|
|
230
231
|
funding_type:
|
|
231
232
|
| 'credit'
|
|
@@ -424,7 +425,8 @@ declare module 'chargebee' {
|
|
|
424
425
|
| 'rupay'
|
|
425
426
|
| 'maestro'
|
|
426
427
|
| 'dankort'
|
|
427
|
-
| 'cartes_bancaires'
|
|
428
|
+
| 'cartes_bancaires'
|
|
429
|
+
| 'mada';
|
|
428
430
|
funding_type?: 'credit' | 'debit' | 'prepaid' | 'not_known';
|
|
429
431
|
}
|
|
430
432
|
|
|
@@ -465,7 +467,14 @@ declare module 'chargebee' {
|
|
|
465
467
|
| 'cash_app_pay'
|
|
466
468
|
| 'wechat_pay'
|
|
467
469
|
| 'alipay'
|
|
468
|
-
| 'pix'
|
|
470
|
+
| 'pix'
|
|
471
|
+
| 'twint'
|
|
472
|
+
| 'go_pay'
|
|
473
|
+
| 'grab_pay'
|
|
474
|
+
| 'pay_co'
|
|
475
|
+
| 'after_pay'
|
|
476
|
+
| 'swish'
|
|
477
|
+
| 'payme';
|
|
469
478
|
reference_id?: string;
|
|
470
479
|
/**
|
|
471
480
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -110,7 +110,14 @@ declare module 'chargebee' {
|
|
|
110
110
|
| 'cash_app_pay'
|
|
111
111
|
| 'wechat_pay'
|
|
112
112
|
| 'alipay'
|
|
113
|
-
| 'pix'
|
|
113
|
+
| 'pix'
|
|
114
|
+
| 'twint'
|
|
115
|
+
| 'go_pay'
|
|
116
|
+
| 'grab_pay'
|
|
117
|
+
| 'pay_co'
|
|
118
|
+
| 'after_pay'
|
|
119
|
+
| 'swish'
|
|
120
|
+
| 'payme';
|
|
114
121
|
reference_id?: string;
|
|
115
122
|
/**
|
|
116
123
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -743,6 +743,7 @@ declare module 'chargebee' {
|
|
|
743
743
|
currency_code?: string;
|
|
744
744
|
coupon?: string;
|
|
745
745
|
coupon_ids?: string[];
|
|
746
|
+
net_term_days?: number;
|
|
746
747
|
billing_address?: BillingAddressCreateForChargeItemsAndChargesInputParam;
|
|
747
748
|
shipping_address?: ShippingAddressCreateForChargeItemsAndChargesInputParam;
|
|
748
749
|
item_prices?: ItemPricesCreateForChargeItemsAndChargesInputParam[];
|
|
@@ -758,6 +759,7 @@ declare module 'chargebee' {
|
|
|
758
759
|
currency_code?: string;
|
|
759
760
|
coupon?: string;
|
|
760
761
|
coupon_ids?: string[];
|
|
762
|
+
net_term_days?: number;
|
|
761
763
|
billing_address?: BillingAddressEditForChargeItemsAndChargesInputParam;
|
|
762
764
|
shipping_address?: ShippingAddressEditForChargeItemsAndChargesInputParam;
|
|
763
765
|
item_prices?: ItemPricesEditForChargeItemsAndChargesInputParam[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface QuoteEntitlement {
|
|
6
|
+
entity_id: string;
|
|
7
|
+
entity_type: 'plan_price' | 'addon_price' | 'charge_price' | 'charge';
|
|
8
|
+
feature_id: string;
|
|
9
|
+
value: string;
|
|
10
|
+
is_enabled: boolean;
|
|
11
|
+
start_date?: number;
|
|
12
|
+
end_date?: number;
|
|
13
|
+
created_at: number;
|
|
14
|
+
modified_at: number;
|
|
15
|
+
}
|
|
16
|
+
}
|