chargebee 3.33.0 → 3.35.0
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 +362 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +496 -3
- package/cjs/resources/webhook/eventType.js +36 -0
- package/cjs/schema/business_entity.schema.js +28 -2
- package/cjs/schema/business_rule.schema.js +54 -0
- package/cjs/schema/business_ruleset.schema.js +68 -0
- package/cjs/schema/card.schema.js +3 -1
- package/cjs/schema/collections_payment_promise.schema.js +43 -0
- package/cjs/schema/comment.schema.js +2 -0
- package/cjs/schema/coupon.schema.js +1 -1
- package/cjs/schema/credit_note.schema.js +11 -4
- package/cjs/schema/credit_unit.schema.js +2 -2
- package/cjs/schema/customer.schema.js +81 -10
- package/cjs/schema/dispute.schema.js +104 -0
- package/cjs/schema/einvoice.schema.js +37 -0
- package/cjs/schema/email_log.schema.js +28 -0
- package/cjs/schema/entitlement.schema.js +4 -4
- package/cjs/schema/estimate.schema.js +39 -10
- package/cjs/schema/event.schema.js +156 -0
- package/cjs/schema/export.schema.js +75 -19
- package/cjs/schema/feature.schema.js +2 -2
- package/cjs/schema/gift.schema.js +26 -0
- package/cjs/schema/hosted_page.schema.js +26 -6
- package/cjs/schema/index.js +9 -0
- package/cjs/schema/invoice.schema.js +98 -14
- package/cjs/schema/item.schema.js +1 -1
- package/cjs/schema/item_family.schema.js +1 -1
- package/cjs/schema/item_price.schema.js +1 -1
- package/cjs/schema/ledger_account_balance.schema.js +11 -2
- package/cjs/schema/ledger_operation.schema.js +6 -2
- package/cjs/schema/meter.schema.js +1 -1
- package/cjs/schema/metered_feature.schema.js +1 -1
- package/cjs/schema/omnichannel_one_time_order.schema.js +12 -4
- package/cjs/schema/omnichannel_subscription.schema.js +16 -8
- package/cjs/schema/payment_intent.schema.js +27 -0
- package/cjs/schema/payment_schedule.schema.js +36 -0
- package/cjs/schema/payment_schedule_scheme.schema.js +23 -2
- package/cjs/schema/payment_source.schema.js +118 -1
- package/cjs/schema/price_ramp.schema.js +88 -0
- package/cjs/schema/price_variant.schema.js +1 -1
- package/cjs/schema/pricing_page_session.schema.js +1 -0
- package/cjs/schema/promotional_grant.schema.js +2 -0
- package/cjs/schema/purchase.schema.js +20 -1
- package/cjs/schema/quote.schema.js +6 -6
- package/cjs/schema/ramp.schema.js +18 -6
- package/cjs/schema/retry_segment.schema.js +12 -0
- package/cjs/schema/subscription.schema.js +179 -16
- package/cjs/schema/transaction.schema.js +60 -2
- package/cjs/schema/usage.schema.js +5 -0
- package/cjs/schema/usage_summary.schema.js +1 -0
- package/cjs/schema/webhook_endpoint.schema.js +72 -0
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +496 -3
- package/esm/resources/webhook/eventType.js +36 -0
- package/esm/schema/business_entity.schema.js +27 -1
- package/esm/schema/business_rule.schema.js +51 -0
- package/esm/schema/business_ruleset.schema.js +65 -0
- package/esm/schema/card.schema.js +3 -1
- package/esm/schema/collections_payment_promise.schema.js +40 -0
- package/esm/schema/comment.schema.js +2 -0
- package/esm/schema/coupon.schema.js +1 -1
- package/esm/schema/credit_note.schema.js +11 -4
- package/esm/schema/credit_unit.schema.js +2 -2
- package/esm/schema/customer.schema.js +81 -10
- package/esm/schema/dispute.schema.js +101 -0
- package/esm/schema/einvoice.schema.js +34 -0
- package/esm/schema/email_log.schema.js +25 -0
- package/esm/schema/entitlement.schema.js +4 -4
- package/esm/schema/estimate.schema.js +39 -10
- package/esm/schema/event.schema.js +156 -0
- package/esm/schema/export.schema.js +75 -19
- package/esm/schema/feature.schema.js +2 -2
- package/esm/schema/gift.schema.js +26 -0
- package/esm/schema/hosted_page.schema.js +26 -6
- package/esm/schema/index.js +9 -0
- package/esm/schema/invoice.schema.js +97 -13
- package/esm/schema/item.schema.js +1 -1
- package/esm/schema/item_family.schema.js +1 -1
- package/esm/schema/item_price.schema.js +1 -1
- package/esm/schema/ledger_account_balance.schema.js +10 -1
- package/esm/schema/ledger_operation.schema.js +6 -2
- package/esm/schema/meter.schema.js +1 -1
- package/esm/schema/metered_feature.schema.js +1 -1
- package/esm/schema/omnichannel_one_time_order.schema.js +12 -4
- package/esm/schema/omnichannel_subscription.schema.js +16 -8
- package/esm/schema/payment_intent.schema.js +27 -0
- package/esm/schema/payment_schedule.schema.js +33 -0
- package/esm/schema/payment_schedule_scheme.schema.js +22 -1
- package/esm/schema/payment_source.schema.js +118 -1
- package/esm/schema/price_ramp.schema.js +85 -0
- package/esm/schema/price_variant.schema.js +1 -1
- package/esm/schema/pricing_page_session.schema.js +1 -0
- package/esm/schema/promotional_grant.schema.js +2 -0
- package/esm/schema/purchase.schema.js +20 -1
- package/esm/schema/quote.schema.js +6 -6
- package/esm/schema/ramp.schema.js +18 -6
- package/esm/schema/retry_segment.schema.js +9 -0
- package/esm/schema/subscription.schema.js +179 -16
- package/esm/schema/transaction.schema.js +60 -2
- package/esm/schema/usage.schema.js +5 -0
- package/esm/schema/usage_summary.schema.js +1 -0
- package/esm/schema/webhook_endpoint.schema.js +72 -0
- package/package.json +1 -1
- package/types/core.d.ts +135 -72
- package/types/index.d.ts +36 -0
- package/types/resources/AppliedRule.d.ts +14 -0
- package/types/resources/ApplyRule.d.ts +28 -0
- package/types/resources/BusinessEntity.d.ts +52 -0
- package/types/resources/BusinessRule.d.ts +161 -0
- package/types/resources/BusinessRuleset.d.ts +165 -0
- package/types/resources/BusinessRulesetRule.d.ts +9 -0
- package/types/resources/Card.d.ts +1 -1
- package/types/resources/Citation.d.ts +13 -0
- package/types/resources/CollectionsDispute.d.ts +24 -0
- package/types/resources/CollectionsPaymentPromise.d.ts +93 -0
- package/types/resources/CollectionsReminderSequence.d.ts +35 -0
- package/types/resources/Comment.d.ts +2 -1
- package/types/resources/Content.d.ts +26 -0
- package/types/resources/CreditNote.d.ts +13 -0
- package/types/resources/CustomData.d.ts +14 -0
- package/types/resources/CustomDataSchema.d.ts +15 -0
- package/types/resources/Customer.d.ts +42 -5
- package/types/resources/Dispute.d.ts +65 -0
- package/types/resources/DraftEstimate.d.ts +13 -0
- package/types/resources/DraftRequest.d.ts +45 -0
- package/types/resources/Einvoice.d.ts +64 -1
- package/types/resources/EmailAttachment.d.ts +16 -0
- package/types/resources/EmailConversation.d.ts +18 -0
- package/types/resources/EmailLog.d.ts +46 -0
- package/types/resources/EmailMessage.d.ts +40 -0
- package/types/resources/Estimate.d.ts +31 -2
- package/types/resources/Event.d.ts +37 -0
- package/types/resources/Execution.d.ts +12 -0
- package/types/resources/GatewayPaymentMethodToken.d.ts +2 -2
- package/types/resources/Gift.d.ts +28 -2
- package/types/resources/GrantBlock.d.ts +26 -7
- package/types/resources/GroupByAttribute.d.ts +15 -0
- package/types/resources/GroupByRecommendation.d.ts +10 -0
- package/types/resources/HostedPage.d.ts +11 -0
- package/types/resources/Invoice.d.ts +57 -4
- package/types/resources/ItemPrice.d.ts +1 -0
- package/types/resources/LedgerAccountBalance.d.ts +19 -0
- package/types/resources/LedgerEntry.d.ts +4 -4
- package/types/resources/LedgerOperation.d.ts +15 -8
- package/types/resources/Meter.d.ts +1 -0
- package/types/resources/MeteredFeature.d.ts +1 -0
- package/types/resources/OmnichannelOneTimeOrder.d.ts +5 -1
- package/types/resources/OmnichannelSubscription.d.ts +6 -1
- package/types/resources/OmnichannelSubscriptionItem.d.ts +9 -2
- package/types/resources/PaymentIntent.d.ts +72 -5
- package/types/resources/PaymentSchedule.d.ts +39 -2
- package/types/resources/PaymentScheduleEstimate.d.ts +2 -1
- package/types/resources/PaymentScheduleScheme.d.ts +17 -1
- package/types/resources/PaymentSource.d.ts +50 -2
- package/types/resources/PreferenceVariant.d.ts +10 -0
- package/types/resources/PriceRamp.d.ts +113 -0
- package/types/resources/PricingPageSession.d.ts +1 -0
- package/types/resources/PrivateNote.d.ts +18 -0
- package/types/resources/PromotionalGrant.d.ts +2 -0
- package/types/resources/Purchase.d.ts +20 -1
- package/types/resources/QuotedSubscription.d.ts +1 -0
- package/types/resources/Ramp.d.ts +18 -0
- package/types/resources/RampInterval.d.ts +12 -0
- package/types/resources/RecordedPurchase.d.ts +5 -1
- package/types/resources/RetrySegment.d.ts +36 -0
- package/types/resources/Subscription.d.ts +110 -11
- package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -0
- package/types/resources/Transaction.d.ts +9 -0
- package/types/resources/Usage.d.ts +6 -0
- package/types/resources/UsageSummary.d.ts +2 -0
- package/types/resources/WebhookEvent.d.ts +214 -0
|
@@ -129,7 +129,20 @@ declare module 'chargebee' {
|
|
|
129
129
|
| 'dana'
|
|
130
130
|
| 'touch_n_go'
|
|
131
131
|
| 'tamara'
|
|
132
|
-
| 'qpay'
|
|
132
|
+
| 'qpay'
|
|
133
|
+
| 'ovo'
|
|
134
|
+
| 'momo'
|
|
135
|
+
| 'mercado_pago'
|
|
136
|
+
| 'nequi'
|
|
137
|
+
| 'nupay'
|
|
138
|
+
| 'picpay'
|
|
139
|
+
| 'thai_qr'
|
|
140
|
+
| 'blik'
|
|
141
|
+
| 'fpx'
|
|
142
|
+
| 'wero'
|
|
143
|
+
| 'p24'
|
|
144
|
+
| 'affirm_pay'
|
|
145
|
+
| 'rakuten_pay';
|
|
133
146
|
reference_id?: string;
|
|
134
147
|
/**
|
|
135
148
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -143,6 +156,8 @@ declare module 'chargebee' {
|
|
|
143
156
|
subscription_id?: string;
|
|
144
157
|
billing_cycles?: number;
|
|
145
158
|
contract_term_billing_cycle_on_renewal?: number;
|
|
159
|
+
trial_end?: number;
|
|
160
|
+
start_date?: number;
|
|
146
161
|
meta_data?: any;
|
|
147
162
|
}
|
|
148
163
|
export interface PurchaseItemsCreateInputParam {
|
|
@@ -152,6 +167,7 @@ declare module 'chargebee' {
|
|
|
152
167
|
unit_amount?: number;
|
|
153
168
|
unit_amount_in_decimal?: string;
|
|
154
169
|
quantity_in_decimal?: string;
|
|
170
|
+
trial_end?: number;
|
|
155
171
|
}
|
|
156
172
|
export interface DiscountsCreateInputParam {
|
|
157
173
|
index?: number;
|
|
@@ -218,6 +234,8 @@ declare module 'chargebee' {
|
|
|
218
234
|
subscription_id?: string;
|
|
219
235
|
billing_cycles?: number;
|
|
220
236
|
contract_term_billing_cycle_on_renewal?: number;
|
|
237
|
+
trial_end?: number;
|
|
238
|
+
start_date?: number;
|
|
221
239
|
}
|
|
222
240
|
export interface PurchaseItemsEstimateInputParam {
|
|
223
241
|
index: number;
|
|
@@ -226,6 +244,7 @@ declare module 'chargebee' {
|
|
|
226
244
|
unit_amount?: number;
|
|
227
245
|
unit_amount_in_decimal?: string;
|
|
228
246
|
quantity_in_decimal?: string;
|
|
247
|
+
trial_end?: number;
|
|
229
248
|
}
|
|
230
249
|
export interface DiscountsEstimateInputParam {
|
|
231
250
|
index?: number;
|
|
@@ -20,6 +20,7 @@ declare module 'chargebee' {
|
|
|
20
20
|
coupons_to_remove?: string[];
|
|
21
21
|
discounts_to_remove?: string[];
|
|
22
22
|
contract_term?: Ramp.ContractTerm;
|
|
23
|
+
billing_configuration?: Ramp.BillingConfiguration;
|
|
23
24
|
deleted: boolean;
|
|
24
25
|
status_transition_reason?: Ramp.StatusTransitionReason;
|
|
25
26
|
}
|
|
@@ -91,6 +92,7 @@ declare module 'chargebee' {
|
|
|
91
92
|
metered_quantity?: string;
|
|
92
93
|
charge_once?: boolean;
|
|
93
94
|
charge_on_option?: 'immediately' | 'on_event';
|
|
95
|
+
description?: string;
|
|
94
96
|
charge_on_event?:
|
|
95
97
|
| 'subscription_trial_start'
|
|
96
98
|
| 'plan_activation'
|
|
@@ -113,6 +115,7 @@ declare module 'chargebee' {
|
|
|
113
115
|
metered_quantity?: string;
|
|
114
116
|
charge_once?: boolean;
|
|
115
117
|
charge_on_option?: 'immediately' | 'on_event';
|
|
118
|
+
description?: string;
|
|
116
119
|
charge_on_event?:
|
|
117
120
|
| 'subscription_trial_start'
|
|
118
121
|
| 'plan_activation'
|
|
@@ -155,6 +158,9 @@ declare module 'chargebee' {
|
|
|
155
158
|
renewal_billing_cycles?: number;
|
|
156
159
|
action_at_term_end: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
|
|
157
160
|
}
|
|
161
|
+
export interface BillingConfiguration {
|
|
162
|
+
po_number?: string;
|
|
163
|
+
}
|
|
158
164
|
export interface StatusTransitionReason {
|
|
159
165
|
code?: string;
|
|
160
166
|
message?: string;
|
|
@@ -168,6 +174,7 @@ declare module 'chargebee' {
|
|
|
168
174
|
coupons_to_remove?: string[];
|
|
169
175
|
discounts_to_remove?: string[];
|
|
170
176
|
items_to_remove?: string[];
|
|
177
|
+
billing_configuration?: BillingConfigurationCreateForSubscriptionInputParam;
|
|
171
178
|
contract_term?: ContractTermCreateForSubscriptionInputParam;
|
|
172
179
|
items_to_add?: ItemsToAddCreateForSubscriptionInputParam[];
|
|
173
180
|
items_to_update?: ItemsToUpdateCreateForSubscriptionInputParam[];
|
|
@@ -181,6 +188,7 @@ declare module 'chargebee' {
|
|
|
181
188
|
coupons_to_remove?: string[];
|
|
182
189
|
discounts_to_remove?: string[];
|
|
183
190
|
items_to_remove?: string[];
|
|
191
|
+
billing_configuration?: BillingConfigurationUpdateInputParam;
|
|
184
192
|
contract_term?: ContractTermUpdateInputParam;
|
|
185
193
|
items_to_add?: ItemsToAddUpdateInputParam[];
|
|
186
194
|
items_to_update?: ItemsToUpdateUpdateInputParam[];
|
|
@@ -199,6 +207,9 @@ declare module 'chargebee' {
|
|
|
199
207
|
'sort_by[asc]'?: string;
|
|
200
208
|
'sort_by[desc]'?: string;
|
|
201
209
|
}
|
|
210
|
+
export interface BillingConfigurationCreateForSubscriptionInputParam {
|
|
211
|
+
po_number?: string;
|
|
212
|
+
}
|
|
202
213
|
export interface ContractTermCreateForSubscriptionInputParam {
|
|
203
214
|
action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
|
|
204
215
|
cancellation_cutoff_period?: number;
|
|
@@ -216,6 +227,7 @@ declare module 'chargebee' {
|
|
|
216
227
|
charge_on_event?: ChargeOnEventEnum;
|
|
217
228
|
charge_once?: boolean;
|
|
218
229
|
charge_on_option?: ChargeOnOptionEnum;
|
|
230
|
+
description?: string;
|
|
219
231
|
}
|
|
220
232
|
export interface CouponsToAddCreateForSubscriptionInputParam {
|
|
221
233
|
coupon_id?: string;
|
|
@@ -243,6 +255,7 @@ declare module 'chargebee' {
|
|
|
243
255
|
charge_on_event?: ChargeOnEventEnum;
|
|
244
256
|
charge_once?: boolean;
|
|
245
257
|
charge_on_option?: ChargeOnOptionEnum;
|
|
258
|
+
description?: string;
|
|
246
259
|
}
|
|
247
260
|
export interface DiscountsToAddCreateForSubscriptionInputParam {
|
|
248
261
|
apply_on: ApplyOnEnum;
|
|
@@ -255,6 +268,9 @@ declare module 'chargebee' {
|
|
|
255
268
|
included_in_mrr?: boolean;
|
|
256
269
|
item_price_id?: string;
|
|
257
270
|
}
|
|
271
|
+
export interface BillingConfigurationUpdateInputParam {
|
|
272
|
+
po_number?: string;
|
|
273
|
+
}
|
|
258
274
|
export interface ContractTermUpdateInputParam {
|
|
259
275
|
action_at_term_end?: 'renew' | 'evergreen' | 'cancel' | 'renew_once';
|
|
260
276
|
cancellation_cutoff_period?: number;
|
|
@@ -272,6 +288,7 @@ declare module 'chargebee' {
|
|
|
272
288
|
charge_on_event?: ChargeOnEventEnum;
|
|
273
289
|
charge_once?: boolean;
|
|
274
290
|
charge_on_option?: ChargeOnOptionEnum;
|
|
291
|
+
description?: string;
|
|
275
292
|
}
|
|
276
293
|
export interface CouponsToAddUpdateInputParam {
|
|
277
294
|
coupon_id?: string;
|
|
@@ -299,6 +316,7 @@ declare module 'chargebee' {
|
|
|
299
316
|
charge_on_event?: ChargeOnEventEnum;
|
|
300
317
|
charge_once?: boolean;
|
|
301
318
|
charge_on_option?: ChargeOnOptionEnum;
|
|
319
|
+
description?: string;
|
|
302
320
|
}
|
|
303
321
|
export interface DiscountsToAddUpdateInputParam {
|
|
304
322
|
apply_on: ApplyOnEnum;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface RampInterval {
|
|
6
|
+
starting_billing_cycle: number;
|
|
7
|
+
ending_billing_cycle?: number;
|
|
8
|
+
apply_catalog_price?: boolean;
|
|
9
|
+
price?: number;
|
|
10
|
+
price_in_decimal?: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -6,7 +6,11 @@ declare module 'chargebee' {
|
|
|
6
6
|
id: string;
|
|
7
7
|
customer_id: string;
|
|
8
8
|
app_id: string;
|
|
9
|
-
source:
|
|
9
|
+
source:
|
|
10
|
+
| 'apple_app_store'
|
|
11
|
+
| 'google_play_store'
|
|
12
|
+
| 'roku'
|
|
13
|
+
| 'amazon_app_store';
|
|
10
14
|
status: 'in_process' | 'completed' | 'failed' | 'ignored';
|
|
11
15
|
omnichannel_transaction_id?: string;
|
|
12
16
|
created_at: number;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
///<reference path='./../core.d.ts'/>
|
|
2
|
+
///<reference path='./../index.d.ts'/>
|
|
3
|
+
|
|
4
|
+
declare module 'chargebee' {
|
|
5
|
+
export interface RetrySegment {
|
|
6
|
+
id: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
invoice_id?: string;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
priority?: number;
|
|
11
|
+
condition_logic?: 'and' | 'or';
|
|
12
|
+
criteria?: any;
|
|
13
|
+
retry_settings?: any;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export namespace RetrySegment {
|
|
17
|
+
export class RetrySegmentResource {
|
|
18
|
+
retrieve(
|
|
19
|
+
retry_segment_id: string,
|
|
20
|
+
input?: RetrieveInputParam,
|
|
21
|
+
headers?: ChargebeeRequestHeader,
|
|
22
|
+
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface RetrieveResponse {
|
|
26
|
+
retry_segment: RetrySegment;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// REQUEST PARAMS
|
|
30
|
+
//---------------
|
|
31
|
+
|
|
32
|
+
export interface RetrieveInputParam {
|
|
33
|
+
invoice_id?: string;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -97,6 +97,7 @@ declare module 'chargebee' {
|
|
|
97
97
|
discounts?: Subscription.Discount[];
|
|
98
98
|
business_entity_id?: string;
|
|
99
99
|
decommissioned: boolean;
|
|
100
|
+
brand_id?: string;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
export namespace Subscription {
|
|
@@ -586,6 +587,7 @@ declare module 'chargebee' {
|
|
|
586
587
|
usage_accumulation_reset_frequency?:
|
|
587
588
|
| 'never'
|
|
588
589
|
| 'subscription_billing_frequency';
|
|
590
|
+
description?: string;
|
|
589
591
|
}
|
|
590
592
|
export interface ItemTier {
|
|
591
593
|
item_price_id: string;
|
|
@@ -715,6 +717,7 @@ declare module 'chargebee' {
|
|
|
715
717
|
|
|
716
718
|
export interface CreateInputParam {
|
|
717
719
|
id?: string;
|
|
720
|
+
brand_id?: string;
|
|
718
721
|
plan_id?: string;
|
|
719
722
|
plan_quantity?: number;
|
|
720
723
|
plan_quantity_in_decimal?: string;
|
|
@@ -769,6 +772,7 @@ declare module 'chargebee' {
|
|
|
769
772
|
}
|
|
770
773
|
export interface CreateForCustomerInputParam {
|
|
771
774
|
id?: string;
|
|
775
|
+
brand_id?: string;
|
|
772
776
|
plan_id?: string;
|
|
773
777
|
plan_quantity?: number;
|
|
774
778
|
plan_quantity_in_decimal?: string;
|
|
@@ -813,6 +817,7 @@ declare module 'chargebee' {
|
|
|
813
817
|
export interface CreateWithItemsInputParam {
|
|
814
818
|
id?: string;
|
|
815
819
|
business_entity_id?: string;
|
|
820
|
+
brand_id?: string;
|
|
816
821
|
trial_end?: number;
|
|
817
822
|
billing_cycles?: number /**
|
|
818
823
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1440,7 +1445,20 @@ declare module 'chargebee' {
|
|
|
1440
1445
|
| 'dana'
|
|
1441
1446
|
| 'touch_n_go'
|
|
1442
1447
|
| 'tamara'
|
|
1443
|
-
| 'qpay'
|
|
1448
|
+
| 'qpay'
|
|
1449
|
+
| 'ovo'
|
|
1450
|
+
| 'momo'
|
|
1451
|
+
| 'mercado_pago'
|
|
1452
|
+
| 'nequi'
|
|
1453
|
+
| 'nupay'
|
|
1454
|
+
| 'picpay'
|
|
1455
|
+
| 'thai_qr'
|
|
1456
|
+
| 'blik'
|
|
1457
|
+
| 'fpx'
|
|
1458
|
+
| 'wero'
|
|
1459
|
+
| 'p24'
|
|
1460
|
+
| 'affirm_pay'
|
|
1461
|
+
| 'rakuten_pay';
|
|
1444
1462
|
reference_id?: string;
|
|
1445
1463
|
/**
|
|
1446
1464
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1464,7 +1482,7 @@ declare module 'chargebee' {
|
|
|
1464
1482
|
expiry_month?: number;
|
|
1465
1483
|
expiry_year?: number;
|
|
1466
1484
|
cvv?: string;
|
|
1467
|
-
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa';
|
|
1485
|
+
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa' | 'dankort';
|
|
1468
1486
|
billing_addr1?: string;
|
|
1469
1487
|
billing_addr2?: string;
|
|
1470
1488
|
billing_city?: string;
|
|
@@ -1599,7 +1617,20 @@ declare module 'chargebee' {
|
|
|
1599
1617
|
| 'dana'
|
|
1600
1618
|
| 'touch_n_go'
|
|
1601
1619
|
| 'tamara'
|
|
1602
|
-
| 'qpay'
|
|
1620
|
+
| 'qpay'
|
|
1621
|
+
| 'ovo'
|
|
1622
|
+
| 'momo'
|
|
1623
|
+
| 'mercado_pago'
|
|
1624
|
+
| 'nequi'
|
|
1625
|
+
| 'nupay'
|
|
1626
|
+
| 'picpay'
|
|
1627
|
+
| 'thai_qr'
|
|
1628
|
+
| 'blik'
|
|
1629
|
+
| 'fpx'
|
|
1630
|
+
| 'wero'
|
|
1631
|
+
| 'p24'
|
|
1632
|
+
| 'affirm_pay'
|
|
1633
|
+
| 'rakuten_pay';
|
|
1603
1634
|
reference_id?: string;
|
|
1604
1635
|
/**
|
|
1605
1636
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1725,7 +1756,20 @@ declare module 'chargebee' {
|
|
|
1725
1756
|
| 'dana'
|
|
1726
1757
|
| 'touch_n_go'
|
|
1727
1758
|
| 'tamara'
|
|
1728
|
-
| 'qpay'
|
|
1759
|
+
| 'qpay'
|
|
1760
|
+
| 'ovo'
|
|
1761
|
+
| 'momo'
|
|
1762
|
+
| 'mercado_pago'
|
|
1763
|
+
| 'nequi'
|
|
1764
|
+
| 'nupay'
|
|
1765
|
+
| 'picpay'
|
|
1766
|
+
| 'thai_qr'
|
|
1767
|
+
| 'blik'
|
|
1768
|
+
| 'fpx'
|
|
1769
|
+
| 'wero'
|
|
1770
|
+
| 'p24'
|
|
1771
|
+
| 'affirm_pay'
|
|
1772
|
+
| 'rakuten_pay';
|
|
1729
1773
|
reference_id?: string;
|
|
1730
1774
|
/**
|
|
1731
1775
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1749,6 +1793,7 @@ declare module 'chargebee' {
|
|
|
1749
1793
|
* @deprecated Please refer API docs to use other attributes
|
|
1750
1794
|
*/
|
|
1751
1795
|
item_type?: ItemTypeEnum;
|
|
1796
|
+
description?: string;
|
|
1752
1797
|
charge_on_option?: ChargeOnOptionEnum;
|
|
1753
1798
|
usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
|
|
1754
1799
|
}
|
|
@@ -1906,7 +1951,20 @@ declare module 'chargebee' {
|
|
|
1906
1951
|
| 'dana'
|
|
1907
1952
|
| 'touch_n_go'
|
|
1908
1953
|
| 'tamara'
|
|
1909
|
-
| 'qpay'
|
|
1954
|
+
| 'qpay'
|
|
1955
|
+
| 'ovo'
|
|
1956
|
+
| 'momo'
|
|
1957
|
+
| 'mercado_pago'
|
|
1958
|
+
| 'nequi'
|
|
1959
|
+
| 'nupay'
|
|
1960
|
+
| 'picpay'
|
|
1961
|
+
| 'thai_qr'
|
|
1962
|
+
| 'blik'
|
|
1963
|
+
| 'fpx'
|
|
1964
|
+
| 'wero'
|
|
1965
|
+
| 'p24'
|
|
1966
|
+
| 'affirm_pay'
|
|
1967
|
+
| 'rakuten_pay';
|
|
1910
1968
|
reference_id?: string;
|
|
1911
1969
|
/**
|
|
1912
1970
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1930,7 +1988,7 @@ declare module 'chargebee' {
|
|
|
1930
1988
|
expiry_month?: number;
|
|
1931
1989
|
expiry_year?: number;
|
|
1932
1990
|
cvv?: string;
|
|
1933
|
-
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa';
|
|
1991
|
+
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa' | 'dankort';
|
|
1934
1992
|
billing_addr1?: string;
|
|
1935
1993
|
billing_addr2?: string;
|
|
1936
1994
|
billing_city?: string;
|
|
@@ -2101,7 +2159,20 @@ declare module 'chargebee' {
|
|
|
2101
2159
|
| 'dana'
|
|
2102
2160
|
| 'touch_n_go'
|
|
2103
2161
|
| 'tamara'
|
|
2104
|
-
| 'qpay'
|
|
2162
|
+
| 'qpay'
|
|
2163
|
+
| 'ovo'
|
|
2164
|
+
| 'momo'
|
|
2165
|
+
| 'mercado_pago'
|
|
2166
|
+
| 'nequi'
|
|
2167
|
+
| 'nupay'
|
|
2168
|
+
| 'picpay'
|
|
2169
|
+
| 'thai_qr'
|
|
2170
|
+
| 'blik'
|
|
2171
|
+
| 'fpx'
|
|
2172
|
+
| 'wero'
|
|
2173
|
+
| 'p24'
|
|
2174
|
+
| 'affirm_pay'
|
|
2175
|
+
| 'rakuten_pay';
|
|
2105
2176
|
reference_id?: string;
|
|
2106
2177
|
/**
|
|
2107
2178
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -2125,7 +2196,7 @@ declare module 'chargebee' {
|
|
|
2125
2196
|
expiry_month?: number;
|
|
2126
2197
|
expiry_year?: number;
|
|
2127
2198
|
cvv?: string;
|
|
2128
|
-
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa';
|
|
2199
|
+
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa' | 'dankort';
|
|
2129
2200
|
billing_addr1?: string;
|
|
2130
2201
|
billing_addr2?: string;
|
|
2131
2202
|
billing_city?: string;
|
|
@@ -2156,6 +2227,7 @@ declare module 'chargebee' {
|
|
|
2156
2227
|
* @deprecated Please refer API docs to use other attributes
|
|
2157
2228
|
*/
|
|
2158
2229
|
item_type?: ItemTypeEnum;
|
|
2230
|
+
description?: string;
|
|
2159
2231
|
proration_type?: ProrationTypeEnum;
|
|
2160
2232
|
usage_accumulation_reset_frequency?: UsageAccumulationResetFrequencyEnum;
|
|
2161
2233
|
}
|
|
@@ -2252,7 +2324,20 @@ declare module 'chargebee' {
|
|
|
2252
2324
|
| 'dana'
|
|
2253
2325
|
| 'touch_n_go'
|
|
2254
2326
|
| 'tamara'
|
|
2255
|
-
| 'qpay'
|
|
2327
|
+
| 'qpay'
|
|
2328
|
+
| 'ovo'
|
|
2329
|
+
| 'momo'
|
|
2330
|
+
| 'mercado_pago'
|
|
2331
|
+
| 'nequi'
|
|
2332
|
+
| 'nupay'
|
|
2333
|
+
| 'picpay'
|
|
2334
|
+
| 'thai_qr'
|
|
2335
|
+
| 'blik'
|
|
2336
|
+
| 'fpx'
|
|
2337
|
+
| 'wero'
|
|
2338
|
+
| 'p24'
|
|
2339
|
+
| 'affirm_pay'
|
|
2340
|
+
| 'rakuten_pay';
|
|
2256
2341
|
reference_id?: string;
|
|
2257
2342
|
/**
|
|
2258
2343
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -2385,7 +2470,7 @@ declare module 'chargebee' {
|
|
|
2385
2470
|
expiry_month?: number;
|
|
2386
2471
|
expiry_year?: number;
|
|
2387
2472
|
cvv?: string;
|
|
2388
|
-
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa';
|
|
2473
|
+
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa' | 'dankort';
|
|
2389
2474
|
billing_addr1?: string;
|
|
2390
2475
|
billing_addr2?: string;
|
|
2391
2476
|
billing_city?: string;
|
|
@@ -2602,6 +2687,7 @@ declare module 'chargebee' {
|
|
|
2602
2687
|
* @deprecated Please refer API docs to use other attributes
|
|
2603
2688
|
*/
|
|
2604
2689
|
item_type?: ItemTypeEnum;
|
|
2690
|
+
description?: string;
|
|
2605
2691
|
}
|
|
2606
2692
|
export interface DiscountsImportForItemsInputParam {
|
|
2607
2693
|
apply_on?: ApplyOnEnum;
|
|
@@ -2709,7 +2795,20 @@ declare module 'chargebee' {
|
|
|
2709
2795
|
| 'dana'
|
|
2710
2796
|
| 'touch_n_go'
|
|
2711
2797
|
| 'tamara'
|
|
2712
|
-
| 'qpay'
|
|
2798
|
+
| 'qpay'
|
|
2799
|
+
| 'ovo'
|
|
2800
|
+
| 'momo'
|
|
2801
|
+
| 'mercado_pago'
|
|
2802
|
+
| 'nequi'
|
|
2803
|
+
| 'nupay'
|
|
2804
|
+
| 'picpay'
|
|
2805
|
+
| 'thai_qr'
|
|
2806
|
+
| 'blik'
|
|
2807
|
+
| 'fpx'
|
|
2808
|
+
| 'wero'
|
|
2809
|
+
| 'p24'
|
|
2810
|
+
| 'affirm_pay'
|
|
2811
|
+
| 'rakuten_pay';
|
|
2713
2812
|
reference_id?: string;
|
|
2714
2813
|
/**
|
|
2715
2814
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -57,8 +57,10 @@ declare module 'chargebee' {
|
|
|
57
57
|
merchant_reference_id?: string;
|
|
58
58
|
business_entity_id?: string;
|
|
59
59
|
payment_method_details?: string;
|
|
60
|
+
gateway_metadata?: Transaction.GatewayMetadata;
|
|
60
61
|
error_detail?: Transaction.GatewayErrorDetail;
|
|
61
62
|
custom_payment_method_name?: string;
|
|
63
|
+
network_transaction_details?: Transaction.NetworkTransactionDetail;
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
export namespace Transaction {
|
|
@@ -245,6 +247,9 @@ declare module 'chargebee' {
|
|
|
245
247
|
amount?: number;
|
|
246
248
|
date?: number;
|
|
247
249
|
}
|
|
250
|
+
export interface GatewayMetadata {
|
|
251
|
+
acquirer_reference_id?: string;
|
|
252
|
+
}
|
|
248
253
|
export interface GatewayErrorDetail {
|
|
249
254
|
request_id?: string;
|
|
250
255
|
error_category?: string;
|
|
@@ -262,6 +267,10 @@ declare module 'chargebee' {
|
|
|
262
267
|
error_cause_id?: string;
|
|
263
268
|
processor_advice_code?: string;
|
|
264
269
|
}
|
|
270
|
+
export interface NetworkTransactionDetail {
|
|
271
|
+
network_transaction_id?: string;
|
|
272
|
+
original_network_transaction_id?: string;
|
|
273
|
+
}
|
|
265
274
|
// REQUEST PARAMS
|
|
266
275
|
//---------------
|
|
267
276
|
|
|
@@ -105,9 +105,15 @@ declare module 'chargebee' {
|
|
|
105
105
|
export interface PdfInputParam {
|
|
106
106
|
disposition_type?: DispositionTypeEnum;
|
|
107
107
|
invoice?: InvoicePdfInputParam;
|
|
108
|
+
group_by?: GroupByPdfInputParam[];
|
|
108
109
|
}
|
|
109
110
|
export interface InvoicePdfInputParam {
|
|
110
111
|
id: string;
|
|
111
112
|
}
|
|
113
|
+
|
|
114
|
+
export interface GroupByPdfInputParam {
|
|
115
|
+
feature_id?: string;
|
|
116
|
+
attributes?: any;
|
|
117
|
+
}
|
|
112
118
|
}
|
|
113
119
|
}
|
|
@@ -8,6 +8,7 @@ declare module 'chargebee' {
|
|
|
8
8
|
aggregated_value: string;
|
|
9
9
|
aggregated_from: number;
|
|
10
10
|
aggregated_to: number;
|
|
11
|
+
attributes?: any;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export namespace UsageSummary {
|
|
@@ -36,6 +37,7 @@ declare module 'chargebee' {
|
|
|
36
37
|
window_size?: 'month' | 'week' | 'day' | 'hour' | 'minute';
|
|
37
38
|
timeframe_start?: number;
|
|
38
39
|
timeframe_end?: number;
|
|
40
|
+
group_by?: string[];
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
}
|