chargebee 3.32.0 → 3.34.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 +196 -0
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +323 -2
- package/cjs/resources/webhook/eventType.js +14 -0
- 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/credit_note.schema.js +10 -4
- 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/estimate.schema.js +38 -9
- package/cjs/schema/event.schema.js +56 -0
- package/cjs/schema/export.schema.js +68 -12
- package/cjs/schema/feature.schema.js +2 -2
- package/cjs/schema/gift.schema.js +27 -1
- package/cjs/schema/hosted_page.schema.js +26 -6
- package/cjs/schema/index.js +6 -0
- package/cjs/schema/invoice.schema.js +74 -10
- package/cjs/schema/ledger_operation.schema.js +4 -0
- package/cjs/schema/meter.schema.js +1 -1
- package/cjs/schema/metered_feature.schema.js +1 -1
- 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 +103 -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 +14 -1
- package/cjs/schema/quote.schema.js +2 -2
- package/cjs/schema/ramp.schema.js +8 -0
- package/cjs/schema/subscription.schema.js +179 -16
- package/cjs/schema/transaction.schema.js +60 -2
- package/cjs/schema/webhook_endpoint.schema.js +28 -0
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +323 -2
- package/esm/resources/webhook/eventType.js +14 -0
- 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/credit_note.schema.js +10 -4
- 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/estimate.schema.js +38 -9
- package/esm/schema/event.schema.js +56 -0
- package/esm/schema/export.schema.js +68 -12
- package/esm/schema/feature.schema.js +2 -2
- package/esm/schema/gift.schema.js +27 -1
- package/esm/schema/hosted_page.schema.js +26 -6
- package/esm/schema/index.js +6 -0
- package/esm/schema/invoice.schema.js +74 -10
- package/esm/schema/ledger_operation.schema.js +4 -0
- package/esm/schema/meter.schema.js +1 -1
- package/esm/schema/metered_feature.schema.js +1 -1
- package/esm/schema/omnichannel_subscription.schema.js +1 -1
- 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 +103 -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 +14 -1
- package/esm/schema/quote.schema.js +2 -2
- package/esm/schema/ramp.schema.js +8 -0
- package/esm/schema/subscription.schema.js +179 -16
- package/esm/schema/subscription_entitlement.schema.js +2 -2
- package/esm/schema/transaction.schema.js +60 -2
- package/esm/schema/webhook_endpoint.schema.js +28 -0
- package/package.json +1 -1
- package/types/core.d.ts +86 -8
- package/types/index.d.ts +15 -0
- package/types/resources/AppliedBusinessRule.d.ts +15 -0
- package/types/resources/AppliedRule.d.ts +14 -0
- package/types/resources/ApplyRule.d.ts +28 -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/Content.d.ts +9 -0
- package/types/resources/Coupon.d.ts +2 -2
- package/types/resources/CreditNote.d.ts +12 -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/Einvoice.d.ts +64 -1
- package/types/resources/EmailLog.d.ts +45 -0
- package/types/resources/Estimate.d.ts +34 -5
- package/types/resources/Event.d.ts +15 -0
- package/types/resources/Gift.d.ts +29 -3
- package/types/resources/GrantBlock.d.ts +26 -7
- package/types/resources/HostedPage.d.ts +14 -3
- package/types/resources/Invoice.d.ts +42 -4
- package/types/resources/LedgerEntry.d.ts +4 -4
- package/types/resources/LedgerOperation.d.ts +15 -8
- package/types/resources/OmnichannelSubscriptionItem.d.ts +5 -1
- package/types/resources/PaymentIntent.d.ts +72 -5
- package/types/resources/PaymentSchedule.d.ts +38 -1
- package/types/resources/PaymentScheduleEstimate.d.ts +1 -0
- package/types/resources/PaymentScheduleScheme.d.ts +17 -1
- package/types/resources/PaymentSource.d.ts +31 -2
- package/types/resources/PricingPageSession.d.ts +1 -0
- package/types/resources/PromotionalGrant.d.ts +2 -0
- package/types/resources/Purchase.d.ts +14 -1
- package/types/resources/Quote.d.ts +2 -2
- package/types/resources/QuotedSubscription.d.ts +3 -2
- package/types/resources/Ramp.d.ts +12 -0
- package/types/resources/Subscription.d.ts +116 -17
- package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -0
- package/types/resources/Transaction.d.ts +5 -0
- package/types/resources/WebhookEvent.d.ts +70 -0
|
@@ -25,7 +25,7 @@ declare module 'chargebee' {
|
|
|
25
25
|
| 'acknowledged';
|
|
26
26
|
failure_reason?: 'card_error' | 'server_error';
|
|
27
27
|
pass_thru_content?: string;
|
|
28
|
-
embed
|
|
28
|
+
embed?: boolean;
|
|
29
29
|
created_at?: number;
|
|
30
30
|
expires_at?: number;
|
|
31
31
|
layout?: LayoutEnum;
|
|
@@ -34,6 +34,7 @@ declare module 'chargebee' {
|
|
|
34
34
|
resource_version?: number;
|
|
35
35
|
checkout_info?: any;
|
|
36
36
|
business_entity_id?: string;
|
|
37
|
+
brand_id?: string;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
export namespace HostedPage {
|
|
@@ -293,6 +294,7 @@ declare module 'chargebee' {
|
|
|
293
294
|
}
|
|
294
295
|
export interface CheckoutOneTimeForItemsInputParam {
|
|
295
296
|
business_entity_id?: string;
|
|
297
|
+
brand_id?: string;
|
|
296
298
|
layout?: LayoutEnum;
|
|
297
299
|
invoice_note?: string /**
|
|
298
300
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -318,6 +320,7 @@ declare module 'chargebee' {
|
|
|
318
320
|
export interface CheckoutNewForItemsInputParam {
|
|
319
321
|
layout?: LayoutEnum;
|
|
320
322
|
business_entity_id?: string;
|
|
323
|
+
brand_id?: string;
|
|
321
324
|
billing_cycles?: number;
|
|
322
325
|
mandatory_items_to_remove?: string[];
|
|
323
326
|
terms_to_charge?: number;
|
|
@@ -365,6 +368,7 @@ declare module 'chargebee' {
|
|
|
365
368
|
}
|
|
366
369
|
export interface CheckoutExistingForItemsInputParam {
|
|
367
370
|
layout?: LayoutEnum;
|
|
371
|
+
brand_id?: string;
|
|
368
372
|
mandatory_items_to_remove?: string[];
|
|
369
373
|
replace_items_list?: boolean;
|
|
370
374
|
invoice_date?: number;
|
|
@@ -412,11 +416,13 @@ declare module 'chargebee' {
|
|
|
412
416
|
}
|
|
413
417
|
export interface ManagePaymentSourcesInputParam {
|
|
414
418
|
business_entity_id?: string;
|
|
419
|
+
brand_id?: string;
|
|
415
420
|
redirect_url?: string;
|
|
416
421
|
customer?: CustomerManagePaymentSourcesInputParam;
|
|
417
422
|
card?: CardManagePaymentSourcesInputParam;
|
|
418
423
|
}
|
|
419
424
|
export interface CollectNowInputParam {
|
|
425
|
+
brand_id?: string;
|
|
420
426
|
redirect_url?: string;
|
|
421
427
|
currency_code?: string;
|
|
422
428
|
payment_method_save_policy?: PaymentMethodSavePolicyEnum;
|
|
@@ -424,11 +430,13 @@ declare module 'chargebee' {
|
|
|
424
430
|
card?: CardCollectNowInputParam;
|
|
425
431
|
}
|
|
426
432
|
export interface AcceptQuoteInputParam {
|
|
433
|
+
brand_id?: string;
|
|
427
434
|
redirect_url?: string;
|
|
428
435
|
layout?: LayoutEnum;
|
|
429
436
|
quote?: QuoteAcceptQuoteInputParam;
|
|
430
437
|
}
|
|
431
438
|
export interface ExtendSubscriptionInputParam {
|
|
439
|
+
brand_id?: string;
|
|
432
440
|
expiry?: number;
|
|
433
441
|
billing_cycle?: number;
|
|
434
442
|
subscription?: SubscriptionExtendSubscriptionInputParam;
|
|
@@ -443,6 +451,7 @@ declare module 'chargebee' {
|
|
|
443
451
|
export interface CheckoutGiftForItemsInputParam {
|
|
444
452
|
layout?: LayoutEnum;
|
|
445
453
|
business_entity_id?: string;
|
|
454
|
+
brand_id?: string;
|
|
446
455
|
redirect_url?: string;
|
|
447
456
|
coupon_ids?: string[];
|
|
448
457
|
gifter?: GifterCheckoutGiftForItemsInputParam;
|
|
@@ -450,6 +459,7 @@ declare module 'chargebee' {
|
|
|
450
459
|
item_tiers?: ItemTiersCheckoutGiftForItemsInputParam[];
|
|
451
460
|
}
|
|
452
461
|
export interface ClaimGiftInputParam {
|
|
462
|
+
brand_id?: string;
|
|
453
463
|
redirect_url?: string;
|
|
454
464
|
gift?: GiftClaimGiftInputParam;
|
|
455
465
|
customer?: CustomerClaimGiftInputParam;
|
|
@@ -466,6 +476,7 @@ declare module 'chargebee' {
|
|
|
466
476
|
updated_at?: filter.Timestamp;
|
|
467
477
|
}
|
|
468
478
|
export interface PreCancelInputParam {
|
|
479
|
+
brand_id?: string;
|
|
469
480
|
pass_thru_content?: string;
|
|
470
481
|
cancel_url?: string;
|
|
471
482
|
redirect_url?: string;
|
|
@@ -532,7 +543,7 @@ declare module 'chargebee' {
|
|
|
532
543
|
}
|
|
533
544
|
export interface SubscriptionCheckoutNewInputParam {
|
|
534
545
|
id?: string;
|
|
535
|
-
plan_id
|
|
546
|
+
plan_id?: string;
|
|
536
547
|
plan_quantity?: number;
|
|
537
548
|
plan_quantity_in_decimal?: string;
|
|
538
549
|
plan_unit_price?: number;
|
|
@@ -1097,7 +1108,7 @@ declare module 'chargebee' {
|
|
|
1097
1108
|
customer_id?: string;
|
|
1098
1109
|
}
|
|
1099
1110
|
export interface SubscriptionCheckoutGiftInputParam {
|
|
1100
|
-
plan_id
|
|
1111
|
+
plan_id?: string;
|
|
1101
1112
|
plan_quantity?: number;
|
|
1102
1113
|
plan_quantity_in_decimal?: string;
|
|
1103
1114
|
/**
|
|
@@ -80,6 +80,7 @@ declare module 'chargebee' {
|
|
|
80
80
|
vat_number_prefix?: string;
|
|
81
81
|
channel?: ChannelEnum;
|
|
82
82
|
business_entity_id?: string;
|
|
83
|
+
brand_id?: string;
|
|
83
84
|
site_details_at_creation?: Invoice.SiteDetailsAtCreation;
|
|
84
85
|
}
|
|
85
86
|
|
|
@@ -297,6 +298,11 @@ declare module 'chargebee' {
|
|
|
297
298
|
headers?: ChargebeeRequestHeader,
|
|
298
299
|
): Promise<ChargebeeResponse<VoidBeforeCaptureResponse>>;
|
|
299
300
|
|
|
301
|
+
sendEmail(
|
|
302
|
+
invoice_id: string,
|
|
303
|
+
headers?: ChargebeeRequestHeader,
|
|
304
|
+
): Promise<ChargebeeResponse<SendEmailResponse>>;
|
|
305
|
+
|
|
300
306
|
delete(
|
|
301
307
|
invoice_id: string,
|
|
302
308
|
input?: DeleteInputParam,
|
|
@@ -487,6 +493,10 @@ declare module 'chargebee' {
|
|
|
487
493
|
credit_note?: CreditNote;
|
|
488
494
|
}
|
|
489
495
|
|
|
496
|
+
export interface SendEmailResponse {
|
|
497
|
+
email_logs: EmailLog[];
|
|
498
|
+
}
|
|
499
|
+
|
|
490
500
|
export interface DeleteResponse {
|
|
491
501
|
invoice: Invoice;
|
|
492
502
|
}
|
|
@@ -1333,7 +1343,20 @@ declare module 'chargebee' {
|
|
|
1333
1343
|
| 'dana'
|
|
1334
1344
|
| 'touch_n_go'
|
|
1335
1345
|
| 'tamara'
|
|
1336
|
-
| 'qpay'
|
|
1346
|
+
| 'qpay'
|
|
1347
|
+
| 'ovo'
|
|
1348
|
+
| 'momo'
|
|
1349
|
+
| 'mercado_pago'
|
|
1350
|
+
| 'nequi'
|
|
1351
|
+
| 'nupay'
|
|
1352
|
+
| 'picpay'
|
|
1353
|
+
| 'thai_qr'
|
|
1354
|
+
| 'blik'
|
|
1355
|
+
| 'fpx'
|
|
1356
|
+
| 'wero'
|
|
1357
|
+
| 'p24'
|
|
1358
|
+
| 'affirm_pay'
|
|
1359
|
+
| 'rakuten_pay';
|
|
1337
1360
|
reference_id?: string;
|
|
1338
1361
|
/**
|
|
1339
1362
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1357,7 +1380,7 @@ declare module 'chargebee' {
|
|
|
1357
1380
|
expiry_month?: number;
|
|
1358
1381
|
expiry_year?: number;
|
|
1359
1382
|
cvv?: string;
|
|
1360
|
-
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa';
|
|
1383
|
+
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa' | 'dankort';
|
|
1361
1384
|
billing_addr1?: string;
|
|
1362
1385
|
billing_addr2?: string;
|
|
1363
1386
|
billing_city?: string;
|
|
@@ -1511,7 +1534,20 @@ declare module 'chargebee' {
|
|
|
1511
1534
|
| 'dana'
|
|
1512
1535
|
| 'touch_n_go'
|
|
1513
1536
|
| 'tamara'
|
|
1514
|
-
| 'qpay'
|
|
1537
|
+
| 'qpay'
|
|
1538
|
+
| 'ovo'
|
|
1539
|
+
| 'momo'
|
|
1540
|
+
| 'mercado_pago'
|
|
1541
|
+
| 'nequi'
|
|
1542
|
+
| 'nupay'
|
|
1543
|
+
| 'picpay'
|
|
1544
|
+
| 'thai_qr'
|
|
1545
|
+
| 'blik'
|
|
1546
|
+
| 'fpx'
|
|
1547
|
+
| 'wero'
|
|
1548
|
+
| 'p24'
|
|
1549
|
+
| 'affirm_pay'
|
|
1550
|
+
| 'rakuten_pay';
|
|
1515
1551
|
reference_id?: string;
|
|
1516
1552
|
/**
|
|
1517
1553
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -1535,7 +1571,7 @@ declare module 'chargebee' {
|
|
|
1535
1571
|
expiry_month?: number;
|
|
1536
1572
|
expiry_year?: number;
|
|
1537
1573
|
cvv?: string;
|
|
1538
|
-
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa';
|
|
1574
|
+
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa' | 'dankort';
|
|
1539
1575
|
billing_addr1?: string;
|
|
1540
1576
|
billing_addr2?: string;
|
|
1541
1577
|
billing_city?: string;
|
|
@@ -1790,6 +1826,8 @@ declare module 'chargebee' {
|
|
|
1790
1826
|
tax9_amount?: number;
|
|
1791
1827
|
tax10_name?: string;
|
|
1792
1828
|
tax10_amount?: number;
|
|
1829
|
+
is_partial_tax_applied?: boolean;
|
|
1830
|
+
taxable_amount?: number;
|
|
1793
1831
|
proration_mode?:
|
|
1794
1832
|
| 'reset'
|
|
1795
1833
|
| 'delta'
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
declare module 'chargebee' {
|
|
5
5
|
export interface LedgerEntry {
|
|
6
6
|
id: string;
|
|
7
|
-
subscription_id
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
subscription_id: string;
|
|
8
|
+
unit_id: string;
|
|
9
|
+
unit_type: 'credit_unit';
|
|
10
|
+
account_type: 'provisioned' | 'overdraft';
|
|
11
11
|
amount: string;
|
|
12
12
|
grant_block_start_balance: string;
|
|
13
13
|
grant_block_end_balance: string;
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
declare module 'chargebee' {
|
|
5
5
|
export interface LedgerOperation {
|
|
6
6
|
id: string;
|
|
7
|
-
subscription_id
|
|
8
|
-
unit_id
|
|
9
|
-
unit_type
|
|
7
|
+
subscription_id: string;
|
|
8
|
+
unit_id: string;
|
|
9
|
+
unit_type: 'credit_unit';
|
|
10
10
|
type:
|
|
11
11
|
| 'allocation'
|
|
12
12
|
| 'capture'
|
|
@@ -16,7 +16,8 @@ declare module 'chargebee' {
|
|
|
16
16
|
| 'expiry'
|
|
17
17
|
| 'void'
|
|
18
18
|
| 'rollover'
|
|
19
|
-
| 'adjustment'
|
|
19
|
+
| 'adjustment'
|
|
20
|
+
| 'overdraft_settlement';
|
|
20
21
|
amount: string;
|
|
21
22
|
provisioned_start_balance: string;
|
|
22
23
|
provisioned_end_balance: string;
|
|
@@ -78,28 +79,32 @@ declare module 'chargebee' {
|
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
export interface CaptureResponse {
|
|
81
|
-
ledger_operation
|
|
82
|
+
ledger_operation?: LedgerOperation;
|
|
83
|
+
ledger_operations: LedgerOperation[];
|
|
82
84
|
ledger_account_balance: LedgerAccountBalance;
|
|
83
85
|
grant_blocks: GrantBlock[];
|
|
84
86
|
ledger_entries: LedgerEntry[];
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
export interface AuthorizeResponse {
|
|
88
|
-
ledger_operation
|
|
90
|
+
ledger_operation?: LedgerOperation;
|
|
91
|
+
ledger_operations: LedgerOperation[];
|
|
89
92
|
ledger_account_balance: LedgerAccountBalance;
|
|
90
93
|
grant_blocks: GrantBlock[];
|
|
91
94
|
ledger_entries: LedgerEntry[];
|
|
92
95
|
}
|
|
93
96
|
|
|
94
97
|
export interface CaptureAuthorizationResponse {
|
|
95
|
-
ledger_operation
|
|
98
|
+
ledger_operation?: LedgerOperation;
|
|
99
|
+
ledger_operations: LedgerOperation[];
|
|
96
100
|
ledger_account_balance: LedgerAccountBalance;
|
|
97
101
|
grant_blocks: GrantBlock[];
|
|
98
102
|
ledger_entries: LedgerEntry[];
|
|
99
103
|
}
|
|
100
104
|
|
|
101
105
|
export interface ReleaseAuthorizationResponse {
|
|
102
|
-
ledger_operation
|
|
106
|
+
ledger_operation?: LedgerOperation;
|
|
107
|
+
ledger_operations: LedgerOperation[];
|
|
103
108
|
ledger_account_balance: LedgerAccountBalance;
|
|
104
109
|
grant_blocks: GrantBlock[];
|
|
105
110
|
ledger_entries: LedgerEntry[];
|
|
@@ -158,7 +163,9 @@ declare module 'chargebee' {
|
|
|
158
163
|
export interface AllocateInputParam {
|
|
159
164
|
subscription_id: string;
|
|
160
165
|
unit_id: string;
|
|
166
|
+
id?: string;
|
|
161
167
|
amount: string;
|
|
168
|
+
effective_from?: number;
|
|
162
169
|
expires_at: number;
|
|
163
170
|
metadata?: any;
|
|
164
171
|
}
|
|
@@ -17,7 +17,11 @@ declare module 'chargebee' {
|
|
|
17
17
|
current_term_start?: number;
|
|
18
18
|
current_term_end?: number;
|
|
19
19
|
expired_at?: number;
|
|
20
|
-
expiration_reason?:
|
|
20
|
+
expiration_reason?:
|
|
21
|
+
| 'billing_error'
|
|
22
|
+
| 'product_not_available'
|
|
23
|
+
| 'other'
|
|
24
|
+
| 'subscription_not_found_in_source';
|
|
21
25
|
cancelled_at?: number;
|
|
22
26
|
cancellation_reason?:
|
|
23
27
|
| 'customer_cancelled'
|
|
@@ -62,7 +62,20 @@ declare module 'chargebee' {
|
|
|
62
62
|
| 'dana'
|
|
63
63
|
| 'touch_n_go'
|
|
64
64
|
| 'tamara'
|
|
65
|
-
| 'qpay'
|
|
65
|
+
| 'qpay'
|
|
66
|
+
| 'ovo'
|
|
67
|
+
| 'momo'
|
|
68
|
+
| 'mercado_pago'
|
|
69
|
+
| 'nequi'
|
|
70
|
+
| 'nupay'
|
|
71
|
+
| 'picpay'
|
|
72
|
+
| 'thai_qr'
|
|
73
|
+
| 'blik'
|
|
74
|
+
| 'fpx'
|
|
75
|
+
| 'wero'
|
|
76
|
+
| 'p24'
|
|
77
|
+
| 'affirm_pay'
|
|
78
|
+
| 'rakuten_pay';
|
|
66
79
|
success_url?: string;
|
|
67
80
|
failure_url?: string;
|
|
68
81
|
created_at: number;
|
|
@@ -76,6 +89,7 @@ declare module 'chargebee' {
|
|
|
76
89
|
payment_attempts?: PaymentIntent.PaymentAttempt[];
|
|
77
90
|
payment_intent_metadata?: PaymentIntent.PaymentIntentMetadata;
|
|
78
91
|
business_entity_id?: string;
|
|
92
|
+
brand_id?: string;
|
|
79
93
|
}
|
|
80
94
|
|
|
81
95
|
export namespace PaymentIntent {
|
|
@@ -171,7 +185,20 @@ declare module 'chargebee' {
|
|
|
171
185
|
| 'dana'
|
|
172
186
|
| 'touch_n_go'
|
|
173
187
|
| 'tamara'
|
|
174
|
-
| 'qpay'
|
|
188
|
+
| 'qpay'
|
|
189
|
+
| 'ovo'
|
|
190
|
+
| 'momo'
|
|
191
|
+
| 'mercado_pago'
|
|
192
|
+
| 'nequi'
|
|
193
|
+
| 'nupay'
|
|
194
|
+
| 'picpay'
|
|
195
|
+
| 'thai_qr'
|
|
196
|
+
| 'blik'
|
|
197
|
+
| 'fpx'
|
|
198
|
+
| 'wero'
|
|
199
|
+
| 'p24'
|
|
200
|
+
| 'affirm_pay'
|
|
201
|
+
| 'rakuten_pay';
|
|
175
202
|
id_at_gateway?: string;
|
|
176
203
|
error_code?: string;
|
|
177
204
|
error_text?: string;
|
|
@@ -244,7 +271,20 @@ declare module 'chargebee' {
|
|
|
244
271
|
| 'dana'
|
|
245
272
|
| 'touch_n_go'
|
|
246
273
|
| 'tamara'
|
|
247
|
-
| 'qpay'
|
|
274
|
+
| 'qpay'
|
|
275
|
+
| 'ovo'
|
|
276
|
+
| 'momo'
|
|
277
|
+
| 'mercado_pago'
|
|
278
|
+
| 'nequi'
|
|
279
|
+
| 'nupay'
|
|
280
|
+
| 'picpay'
|
|
281
|
+
| 'thai_qr'
|
|
282
|
+
| 'blik'
|
|
283
|
+
| 'fpx'
|
|
284
|
+
| 'wero'
|
|
285
|
+
| 'p24'
|
|
286
|
+
| 'affirm_pay'
|
|
287
|
+
| 'rakuten_pay';
|
|
248
288
|
id_at_gateway?: string;
|
|
249
289
|
error_code?: string;
|
|
250
290
|
error_text?: string;
|
|
@@ -272,6 +312,7 @@ declare module 'chargebee' {
|
|
|
272
312
|
|
|
273
313
|
export interface CreateInputParam {
|
|
274
314
|
business_entity_id?: string;
|
|
315
|
+
brand_id?: string;
|
|
275
316
|
customer_id?: string;
|
|
276
317
|
amount: number;
|
|
277
318
|
currency_code: string;
|
|
@@ -330,7 +371,20 @@ declare module 'chargebee' {
|
|
|
330
371
|
| 'dana'
|
|
331
372
|
| 'touch_n_go'
|
|
332
373
|
| 'tamara'
|
|
333
|
-
| 'qpay'
|
|
374
|
+
| 'qpay'
|
|
375
|
+
| 'ovo'
|
|
376
|
+
| 'momo'
|
|
377
|
+
| 'mercado_pago'
|
|
378
|
+
| 'nequi'
|
|
379
|
+
| 'nupay'
|
|
380
|
+
| 'picpay'
|
|
381
|
+
| 'thai_qr'
|
|
382
|
+
| 'blik'
|
|
383
|
+
| 'fpx'
|
|
384
|
+
| 'wero'
|
|
385
|
+
| 'p24'
|
|
386
|
+
| 'affirm_pay'
|
|
387
|
+
| 'rakuten_pay';
|
|
334
388
|
success_url?: string;
|
|
335
389
|
failure_url?: string;
|
|
336
390
|
payment_method_options?: any;
|
|
@@ -391,7 +445,20 @@ declare module 'chargebee' {
|
|
|
391
445
|
| 'dana'
|
|
392
446
|
| 'touch_n_go'
|
|
393
447
|
| 'tamara'
|
|
394
|
-
| 'qpay'
|
|
448
|
+
| 'qpay'
|
|
449
|
+
| 'ovo'
|
|
450
|
+
| 'momo'
|
|
451
|
+
| 'mercado_pago'
|
|
452
|
+
| 'nequi'
|
|
453
|
+
| 'nupay'
|
|
454
|
+
| 'picpay'
|
|
455
|
+
| 'thai_qr'
|
|
456
|
+
| 'blik'
|
|
457
|
+
| 'fpx'
|
|
458
|
+
| 'wero'
|
|
459
|
+
| 'p24'
|
|
460
|
+
| 'affirm_pay'
|
|
461
|
+
| 'rakuten_pay';
|
|
395
462
|
success_url?: string;
|
|
396
463
|
failure_url?: string;
|
|
397
464
|
payment_method_options?: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
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 PaymentSchedule {
|
|
6
6
|
id: string;
|
|
@@ -13,16 +13,53 @@ declare module 'chargebee' {
|
|
|
13
13
|
updated_at?: number;
|
|
14
14
|
currency_code?: string;
|
|
15
15
|
schedule_entries?: PaymentSchedule.ScheduleEntry[];
|
|
16
|
+
reference_transactions?: PaymentSchedule.ReferenceTransaction[];
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
export namespace PaymentSchedule {
|
|
20
|
+
export class PaymentScheduleResource {
|
|
21
|
+
list(
|
|
22
|
+
input?: ListInputParam,
|
|
23
|
+
headers?: ChargebeeRequestHeader,
|
|
24
|
+
): Promise<ChargebeeResponse<ListResponse>>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface ListResponse {
|
|
28
|
+
list: { payment_schedule: PaymentSchedule }[];
|
|
29
|
+
next_offset?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
19
32
|
export interface ScheduleEntry {
|
|
20
33
|
id: string;
|
|
21
34
|
date: number;
|
|
22
35
|
amount: number;
|
|
36
|
+
scheduled_amount: number;
|
|
23
37
|
status: 'posted' | 'payment_due' | 'paid';
|
|
24
38
|
}
|
|
39
|
+
export interface ReferenceTransaction {
|
|
40
|
+
schedule_entry_id: string;
|
|
41
|
+
applied_amount?: number;
|
|
42
|
+
txn_id: string;
|
|
43
|
+
txn_status?:
|
|
44
|
+
| 'in_progress'
|
|
45
|
+
| 'success'
|
|
46
|
+
| 'voided'
|
|
47
|
+
| 'failure'
|
|
48
|
+
| 'timeout'
|
|
49
|
+
| 'needs_attention'
|
|
50
|
+
| 'late_failure';
|
|
51
|
+
txn_date?: number;
|
|
52
|
+
txn_amount?: number;
|
|
53
|
+
}
|
|
25
54
|
// REQUEST PARAMS
|
|
26
55
|
//---------------
|
|
56
|
+
|
|
57
|
+
export interface ListInputParam {
|
|
58
|
+
limit?: number;
|
|
59
|
+
offset?: string;
|
|
60
|
+
invoice_id?: filter.String;
|
|
61
|
+
id?: filter.String;
|
|
62
|
+
updated_at?: filter.Timestamp;
|
|
63
|
+
}
|
|
27
64
|
}
|
|
28
65
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
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 PaymentScheduleScheme {
|
|
6
6
|
id: string;
|
|
@@ -27,6 +27,11 @@ declare module 'chargebee' {
|
|
|
27
27
|
headers?: ChargebeeRequestHeader,
|
|
28
28
|
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
29
29
|
|
|
30
|
+
list(
|
|
31
|
+
input?: ListInputParam,
|
|
32
|
+
headers?: ChargebeeRequestHeader,
|
|
33
|
+
): Promise<ChargebeeResponse<ListResponse>>;
|
|
34
|
+
|
|
30
35
|
delete(
|
|
31
36
|
payment_schedule_scheme_id: string,
|
|
32
37
|
headers?: ChargebeeRequestHeader,
|
|
@@ -41,6 +46,11 @@ declare module 'chargebee' {
|
|
|
41
46
|
payment_schedule_scheme: PaymentScheduleScheme;
|
|
42
47
|
}
|
|
43
48
|
|
|
49
|
+
export interface ListResponse {
|
|
50
|
+
list: { payment_schedule_scheme: PaymentScheduleScheme }[];
|
|
51
|
+
next_offset?: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
44
54
|
export interface DeleteResponse {
|
|
45
55
|
payment_schedule_scheme: PaymentScheduleScheme;
|
|
46
56
|
}
|
|
@@ -59,6 +69,12 @@ declare module 'chargebee' {
|
|
|
59
69
|
name: string;
|
|
60
70
|
flexible_schedules?: FlexibleSchedulesCreateInputParam[];
|
|
61
71
|
}
|
|
72
|
+
export interface ListInputParam {
|
|
73
|
+
limit?: number;
|
|
74
|
+
offset?: string;
|
|
75
|
+
id?: filter.String;
|
|
76
|
+
updated_at?: filter.Timestamp;
|
|
77
|
+
}
|
|
62
78
|
export interface FlexibleSchedulesCreateInputParam {
|
|
63
79
|
period?: number;
|
|
64
80
|
amount_percentage?: number;
|
|
@@ -31,8 +31,10 @@ declare module 'chargebee' {
|
|
|
31
31
|
klarna_pay_now?: PaymentSource.KlarnaPayNow;
|
|
32
32
|
mandates?: PaymentSource.Mandate[];
|
|
33
33
|
vault_token?: any;
|
|
34
|
+
network_transaction_reference?: PaymentSource.NetworkTransactionReference;
|
|
34
35
|
deleted: boolean;
|
|
35
36
|
business_entity_id?: string;
|
|
37
|
+
brand_id?: string;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
40
|
export namespace PaymentSource {
|
|
@@ -314,6 +316,9 @@ declare module 'chargebee' {
|
|
|
314
316
|
subscription_id: string;
|
|
315
317
|
created_at: number;
|
|
316
318
|
}
|
|
319
|
+
export interface NetworkTransactionReference {
|
|
320
|
+
original_network_transaction_id?: string;
|
|
321
|
+
}
|
|
317
322
|
// REQUEST PARAMS
|
|
318
323
|
//---------------
|
|
319
324
|
|
|
@@ -323,11 +328,13 @@ declare module 'chargebee' {
|
|
|
323
328
|
type: TypeEnum;
|
|
324
329
|
tmp_token: string;
|
|
325
330
|
issuing_country?: string;
|
|
331
|
+
brand_id?: string;
|
|
326
332
|
replace_primary_payment_source?: boolean;
|
|
327
333
|
additional_information?: any;
|
|
328
334
|
}
|
|
329
335
|
export interface CreateUsingPermanentTokenInputParam {
|
|
330
336
|
customer_id: string;
|
|
337
|
+
brand_id?: string;
|
|
331
338
|
type: TypeEnum;
|
|
332
339
|
gateway_account_id?: string;
|
|
333
340
|
reference_id?: string;
|
|
@@ -344,25 +351,30 @@ declare module 'chargebee' {
|
|
|
344
351
|
}
|
|
345
352
|
export interface CreateUsingTokenInputParam {
|
|
346
353
|
customer_id: string;
|
|
354
|
+
brand_id?: string;
|
|
347
355
|
replace_primary_payment_source?: boolean;
|
|
348
356
|
token_id: string;
|
|
349
357
|
}
|
|
350
358
|
export interface CreateUsingPaymentIntentInputParam {
|
|
351
359
|
customer_id: string;
|
|
360
|
+
brand_id?: string;
|
|
352
361
|
replace_primary_payment_source?: boolean;
|
|
353
362
|
payment_intent?: PaymentIntentCreateUsingPaymentIntentInputParam;
|
|
354
363
|
}
|
|
355
364
|
export interface CreateVoucherPaymentSourceInputParam {
|
|
356
365
|
customer_id: string;
|
|
366
|
+
brand_id?: string;
|
|
357
367
|
voucher_payment_source?: VoucherPaymentSourceCreateVoucherPaymentSourceInputParam;
|
|
358
368
|
}
|
|
359
369
|
export interface CreateCardInputParam {
|
|
360
370
|
customer_id: string;
|
|
371
|
+
brand_id?: string;
|
|
361
372
|
replace_primary_payment_source?: boolean;
|
|
362
373
|
card?: CardCreateCardInputParam;
|
|
363
374
|
}
|
|
364
375
|
export interface CreateBankAccountInputParam {
|
|
365
376
|
customer_id: string;
|
|
377
|
+
brand_id?: string;
|
|
366
378
|
issuing_country?: string;
|
|
367
379
|
replace_primary_payment_source?: boolean;
|
|
368
380
|
bank_account?: BankAccountCreateBankAccountInputParam;
|
|
@@ -371,6 +383,7 @@ declare module 'chargebee' {
|
|
|
371
383
|
gateway_meta_data?: any;
|
|
372
384
|
reference_transaction?: string;
|
|
373
385
|
card?: CardUpdateCardInputParam;
|
|
386
|
+
network_transaction_reference?: NetworkTransactionReferenceUpdateCardInputParam;
|
|
374
387
|
}
|
|
375
388
|
export interface UpdateBankAccountInputParam {
|
|
376
389
|
bank_account?: BankAccountUpdateBankAccountInputParam;
|
|
@@ -503,7 +516,20 @@ declare module 'chargebee' {
|
|
|
503
516
|
| 'dana'
|
|
504
517
|
| 'touch_n_go'
|
|
505
518
|
| 'tamara'
|
|
506
|
-
| 'qpay'
|
|
519
|
+
| 'qpay'
|
|
520
|
+
| 'ovo'
|
|
521
|
+
| 'momo'
|
|
522
|
+
| 'mercado_pago'
|
|
523
|
+
| 'nequi'
|
|
524
|
+
| 'nupay'
|
|
525
|
+
| 'picpay'
|
|
526
|
+
| 'thai_qr'
|
|
527
|
+
| 'blik'
|
|
528
|
+
| 'fpx'
|
|
529
|
+
| 'wero'
|
|
530
|
+
| 'p24'
|
|
531
|
+
| 'affirm_pay'
|
|
532
|
+
| 'rakuten_pay';
|
|
507
533
|
reference_id?: string;
|
|
508
534
|
/**
|
|
509
535
|
* @deprecated Please refer API docs to use other attributes
|
|
@@ -528,7 +554,7 @@ declare module 'chargebee' {
|
|
|
528
554
|
expiry_month: number;
|
|
529
555
|
expiry_year: number;
|
|
530
556
|
cvv?: string;
|
|
531
|
-
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa';
|
|
557
|
+
preferred_scheme?: 'cartes_bancaires' | 'mastercard' | 'visa' | 'dankort';
|
|
532
558
|
billing_addr1?: string;
|
|
533
559
|
billing_addr2?: string;
|
|
534
560
|
billing_city?: string;
|
|
@@ -558,6 +584,9 @@ declare module 'chargebee' {
|
|
|
558
584
|
billing_address?: any;
|
|
559
585
|
}
|
|
560
586
|
|
|
587
|
+
export interface NetworkTransactionReferenceUpdateCardInputParam {
|
|
588
|
+
original_network_transaction_id?: string;
|
|
589
|
+
}
|
|
561
590
|
export interface CardUpdateCardInputParam {
|
|
562
591
|
first_name?: string;
|
|
563
592
|
last_name?: string;
|
|
@@ -36,6 +36,7 @@ declare module 'chargebee' {
|
|
|
36
36
|
export interface CreateForNewSubscriptionInputParam {
|
|
37
37
|
redirect_url?: string;
|
|
38
38
|
business_entity_id?: string;
|
|
39
|
+
brand_id?: string;
|
|
39
40
|
auto_select_local_currency?: boolean;
|
|
40
41
|
custom?: any;
|
|
41
42
|
pricing_page?: PricingPageCreateForNewSubscriptionInputParam;
|