chargebee 2.32.0 → 2.33.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 +22 -0
- package/lib/chargebee.js +1 -1
- package/lib/resources/api_endpoints.js +20 -15
- package/package.json +1 -1
- package/types/core.d.ts +1 -1
- package/types/index.d.ts +1 -0
- package/types/resources/CreditNote.d.ts +9 -9
- package/types/resources/CreditNoteEstimate.d.ts +27 -19
- package/types/resources/Entitlement.d.ts +102 -5
- package/types/resources/Estimate.d.ts +25 -15
- package/types/resources/Event.d.ts +2 -0
- package/types/resources/GatewayErrorDetail.d.ts +76 -0
- package/types/resources/ImpactedSubscription.d.ts +7 -7
- package/types/resources/Invoice.d.ts +2 -2
- package/types/resources/InvoiceEstimate.d.ts +3 -1
- package/types/resources/ItemEntitlement.d.ts +50 -12
- package/types/resources/ItemPrice.d.ts +21 -3
- package/types/resources/PaymentIntent.d.ts +13 -5
- package/types/resources/PaymentVoucher.d.ts +3 -3
- package/types/resources/PortalSession.d.ts +5 -5
- package/types/resources/Purchase.d.ts +7 -7
- package/types/resources/Quote.d.ts +1 -1
- package/types/resources/QuoteLineGroup.d.ts +1 -1
- package/types/resources/QuotedCharge.d.ts +12 -12
- package/types/resources/QuotedSubscription.d.ts +27 -20
- package/types/resources/Subscription.d.ts +7 -0
- package/types/resources/Transaction.d.ts +80 -2
- package/types/resources/Usage.d.ts +2 -2
|
@@ -96,7 +96,7 @@ declare module 'chargebee' {
|
|
|
96
96
|
|
|
97
97
|
*/
|
|
98
98
|
|
|
99
|
-
item_price_id
|
|
99
|
+
item_price_id:string;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* @description Item price quantity
|
|
@@ -139,14 +139,14 @@ declare module 'chargebee' {
|
|
|
139
139
|
|
|
140
140
|
*/
|
|
141
141
|
|
|
142
|
-
item_price_id
|
|
142
|
+
item_price_id:string;
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
145
|
* @description The lowest value in the quantity tier.
|
|
146
146
|
|
|
147
147
|
*/
|
|
148
148
|
|
|
149
|
-
starting_unit
|
|
149
|
+
starting_unit:number;
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* @description The highest value in the quantity tier.
|
|
@@ -160,7 +160,7 @@ declare module 'chargebee' {
|
|
|
160
160
|
|
|
161
161
|
*/
|
|
162
162
|
|
|
163
|
-
price
|
|
163
|
+
price:number;
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
166
|
* @description The decimal representation of the the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as `ending_unit_in_decimal` of the next lower tier. Returned only when the pricing_model is `tiered`, `volume` or `stairstep` and [multi-decimal pricing](https://apidocs.chargebee.com/docs/api#handling_currency_units) is enabled.
|
|
@@ -188,7 +188,7 @@ declare module 'chargebee' {
|
|
|
188
188
|
|
|
189
189
|
*/
|
|
190
190
|
|
|
191
|
-
index
|
|
191
|
+
index:number;
|
|
192
192
|
}
|
|
193
193
|
export interface Coupon {
|
|
194
194
|
/**
|
|
@@ -196,7 +196,7 @@ declare module 'chargebee' {
|
|
|
196
196
|
|
|
197
197
|
*/
|
|
198
198
|
|
|
199
|
-
coupon_id
|
|
199
|
+
coupon_id:string;
|
|
200
200
|
}
|
|
201
201
|
export interface Discount {
|
|
202
202
|
/**
|
|
@@ -204,7 +204,7 @@ declare module 'chargebee' {
|
|
|
204
204
|
|
|
205
205
|
*/
|
|
206
206
|
|
|
207
|
-
id
|
|
207
|
+
id:string;
|
|
208
208
|
|
|
209
209
|
/**
|
|
210
210
|
* @description The name of the discount as it should appear on customer-facing pages and documents such as [invoices](/docs/api/invoices?prod_cat_ver=2) and [hosted pages](/docs/api/hosted_pages?prod_cat_ver=2). This is auto-generated based on the `type`, `amount`, and `currency_code` of the discount. For example, it can be `10% off` or `10$ off`.
|
|
@@ -218,7 +218,7 @@ declare module 'chargebee' {
|
|
|
218
218
|
|
|
219
219
|
*/
|
|
220
220
|
|
|
221
|
-
type
|
|
221
|
+
type:'fixed_amount' | 'percentage';
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
224
|
* @description The percentage of the original amount that should be deducted from it. Only applicable when `discount.type` is percentage.
|
|
@@ -246,7 +246,7 @@ declare module 'chargebee' {
|
|
|
246
246
|
|
|
247
247
|
*/
|
|
248
248
|
|
|
249
|
-
apply_on
|
|
249
|
+
apply_on:'specific_item_price' | 'invoice_amount';
|
|
250
250
|
|
|
251
251
|
/**
|
|
252
252
|
* @description The [id of the item price](/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id) in the subscription to which the discount is to be applied. Relevant only when `apply_on` = `specific_item_price`.
|
|
@@ -260,7 +260,7 @@ declare module 'chargebee' {
|
|
|
260
260
|
|
|
261
261
|
*/
|
|
262
262
|
|
|
263
|
-
created_at
|
|
263
|
+
created_at:number;
|
|
264
264
|
|
|
265
265
|
/**
|
|
266
266
|
* @description Used to uniquely identify the coupon in your website/application and to integrate with Chargebee.
|
|
@@ -272,14 +272,14 @@ Make sure that you [encode](https://www.urlencoder.org/) the coupon ID in the pa
|
|
|
272
272
|
|
|
273
273
|
*/
|
|
274
274
|
|
|
275
|
-
coupon_id
|
|
275
|
+
coupon_id:string;
|
|
276
276
|
|
|
277
277
|
/**
|
|
278
278
|
* @description The index number of the subscription to which the item price is added. Provide a unique number between `0` and `4` (inclusive) for each subscription that is to be created.
|
|
279
279
|
|
|
280
280
|
*/
|
|
281
281
|
|
|
282
|
-
index
|
|
282
|
+
index:number;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
}
|
|
@@ -133,7 +133,7 @@ declare module 'chargebee' {
|
|
|
133
133
|
|
|
134
134
|
*/
|
|
135
135
|
|
|
136
|
-
coupon_id
|
|
136
|
+
coupon_id:string;
|
|
137
137
|
}
|
|
138
138
|
export interface Discount {
|
|
139
139
|
/**
|
|
@@ -141,7 +141,7 @@ declare module 'chargebee' {
|
|
|
141
141
|
|
|
142
142
|
*/
|
|
143
143
|
|
|
144
|
-
id
|
|
144
|
+
id:string;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* @description The name of the discount as it should appear on customer-facing pages and documents such as [invoices](/docs/api/invoices?prod_cat_ver=2) and [hosted pages](/docs/api/hosted_pages?prod_cat_ver=2). This is auto-generated based on the `type`, `amount`, and `currency_code` of the discount. For example, it can be `10% off` or `10$ off`.
|
|
@@ -155,7 +155,7 @@ declare module 'chargebee' {
|
|
|
155
155
|
|
|
156
156
|
*/
|
|
157
157
|
|
|
158
|
-
type
|
|
158
|
+
type:'fixed_amount' | 'percentage';
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
161
|
* @description The percentage of the original amount that should be deducted from it. Only applicable when `discount.type` is percentage.
|
|
@@ -183,7 +183,7 @@ declare module 'chargebee' {
|
|
|
183
183
|
|
|
184
184
|
*/
|
|
185
185
|
|
|
186
|
-
duration_type
|
|
186
|
+
duration_type:'limited_period' | 'one_time' | 'forever';
|
|
187
187
|
|
|
188
188
|
/**
|
|
189
189
|
* @description The duration of time for which the discount is attached to the subscription, in `period_units`. Applicable only when `duration_type` is `limited_period`.
|
|
@@ -204,14 +204,14 @@ declare module 'chargebee' {
|
|
|
204
204
|
|
|
205
205
|
*/
|
|
206
206
|
|
|
207
|
-
included_in_mrr
|
|
207
|
+
included_in_mrr:boolean;
|
|
208
208
|
|
|
209
209
|
/**
|
|
210
210
|
* @description The amount on the invoice to which the discount is applied. \* invoice_amount - The discount is applied to the invoice `sub_total`. \* specific_item_price - The discount is applied to the `invoice.line_item.amount` that corresponds to the item price specified by `item_price_id`.
|
|
211
211
|
|
|
212
212
|
*/
|
|
213
213
|
|
|
214
|
-
apply_on
|
|
214
|
+
apply_on:'specific_item_price' | 'invoice_amount';
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
217
|
* @description The [id of the item price](/docs/api/subscriptions?prod_cat_ver=2#subscription_subscription_items_item_price_id) in the subscription to which the discount is to be applied. Relevant only when `apply_on` = `specific_item_price`.
|
|
@@ -225,7 +225,7 @@ declare module 'chargebee' {
|
|
|
225
225
|
|
|
226
226
|
*/
|
|
227
227
|
|
|
228
|
-
created_at
|
|
228
|
+
created_at:number;
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
231
|
* @description Specifies till when the limited period discount is applicable. This attribute will be sent in the response only for `limited_period` duration type discount.
|
|
@@ -251,14 +251,14 @@ Make sure that you [encode](https://www.urlencoder.org/) the coupon ID in the pa
|
|
|
251
251
|
|
|
252
252
|
*/
|
|
253
253
|
|
|
254
|
-
coupon_id
|
|
254
|
+
coupon_id:string;
|
|
255
255
|
|
|
256
256
|
/**
|
|
257
257
|
* @description The index number of the subscription to which the item price is added. Provide a unique number between `0` and `4` (inclusive) for each subscription that is to be created.
|
|
258
258
|
|
|
259
259
|
*/
|
|
260
260
|
|
|
261
|
-
index
|
|
261
|
+
index:number;
|
|
262
262
|
}
|
|
263
263
|
export interface SubscriptionItem {
|
|
264
264
|
/**
|
|
@@ -266,14 +266,14 @@ Make sure that you [encode](https://www.urlencoder.org/) the coupon ID in the pa
|
|
|
266
266
|
|
|
267
267
|
*/
|
|
268
268
|
|
|
269
|
-
item_price_id
|
|
269
|
+
item_price_id:string;
|
|
270
270
|
|
|
271
271
|
/**
|
|
272
272
|
* @description The type of item. There must be one and only one item of type `plan` in this list. \* plan - Plan \* addon - Addon \* charge - Charge
|
|
273
273
|
|
|
274
274
|
*/
|
|
275
275
|
|
|
276
|
-
item_type
|
|
276
|
+
item_type:'charge' | 'addon' | 'plan';
|
|
277
277
|
|
|
278
278
|
/**
|
|
279
279
|
* @description The quantity of the item purchased
|
|
@@ -376,6 +376,13 @@ If [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle
|
|
|
376
376
|
*/
|
|
377
377
|
|
|
378
378
|
charge_on_option?:'on_event' | 'immediately';
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* @description null
|
|
382
|
+
|
|
383
|
+
*/
|
|
384
|
+
|
|
385
|
+
proration_type?:'partial_term' | 'full_term' | 'none';
|
|
379
386
|
}
|
|
380
387
|
export interface ItemTier {
|
|
381
388
|
/**
|
|
@@ -383,14 +390,14 @@ If [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle
|
|
|
383
390
|
|
|
384
391
|
*/
|
|
385
392
|
|
|
386
|
-
item_price_id
|
|
393
|
+
item_price_id:string;
|
|
387
394
|
|
|
388
395
|
/**
|
|
389
396
|
* @description The lowest value in the quantity tier.
|
|
390
397
|
|
|
391
398
|
*/
|
|
392
399
|
|
|
393
|
-
starting_unit
|
|
400
|
+
starting_unit:number;
|
|
394
401
|
|
|
395
402
|
/**
|
|
396
403
|
* @description The highest value in the quantity tier.
|
|
@@ -404,7 +411,7 @@ If [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle
|
|
|
404
411
|
|
|
405
412
|
*/
|
|
406
413
|
|
|
407
|
-
price
|
|
414
|
+
price:number;
|
|
408
415
|
|
|
409
416
|
/**
|
|
410
417
|
* @description The decimal representation of the the lowest value of quantity in this tier. This is zero for the lowest tier. For all other tiers, it is the same as `ending_unit_in_decimal` of the next lower tier. Returned only when the pricing_model is `tiered`, `volume` or `stairstep` and [multi-decimal pricing](https://apidocs.chargebee.com/docs/api#handling_currency_units) is enabled.
|
|
@@ -432,7 +439,7 @@ If [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle
|
|
|
432
439
|
|
|
433
440
|
*/
|
|
434
441
|
|
|
435
|
-
index
|
|
442
|
+
index:number;
|
|
436
443
|
}
|
|
437
444
|
export interface QuotedContractTerm {
|
|
438
445
|
/**
|
|
@@ -440,21 +447,21 @@ If [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle
|
|
|
440
447
|
|
|
441
448
|
*/
|
|
442
449
|
|
|
443
|
-
contract_start
|
|
450
|
+
contract_start:number;
|
|
444
451
|
|
|
445
452
|
/**
|
|
446
453
|
* @description The end date of the contract term
|
|
447
454
|
|
|
448
455
|
*/
|
|
449
456
|
|
|
450
|
-
contract_end
|
|
457
|
+
contract_end:number;
|
|
451
458
|
|
|
452
459
|
/**
|
|
453
460
|
* @description The number of billing cycles of the subscription that the contract term is for.
|
|
454
461
|
|
|
455
462
|
*/
|
|
456
463
|
|
|
457
|
-
billing_cycle
|
|
464
|
+
billing_cycle:number;
|
|
458
465
|
|
|
459
466
|
/**
|
|
460
467
|
* @description Action to be taken when the contract term completes. \* renew -
|
|
@@ -468,14 +475,14 @@ If [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle
|
|
|
468
475
|
|
|
469
476
|
*/
|
|
470
477
|
|
|
471
|
-
action_at_term_end
|
|
478
|
+
action_at_term_end:'cancel' | 'renew_once' | 'renew' | 'evergreen';
|
|
472
479
|
|
|
473
480
|
/**
|
|
474
481
|
* @description The sum of the [totals](invoices#invoice_total) of all the invoices raised as part of the contract term. For `active` contract terms, this is a predicted value. The value depends on the [type of currency](./#handling_currency_units). If the subscription was [imported](#import_a_subscription) with the contract term, then this value includes the value passed for `total_amount_raised`.
|
|
475
482
|
|
|
476
483
|
*/
|
|
477
484
|
|
|
478
|
-
total_contract_value
|
|
485
|
+
total_contract_value:number;
|
|
479
486
|
|
|
480
487
|
/**
|
|
481
488
|
* @description The number of days before [`contract_end`](contract_terms#contract_term_contract_end), during which the customer is barred from canceling the contract term. The customer is allowed to cancel the contract term via the Self-Serve Portal only before this period. This allows you to have sufficient time for processing the contract term closure
|
|
@@ -2794,6 +2794,13 @@ If [addon billing cycles](https://www.chargebee.com/docs/2.0/addons-billingcycle
|
|
|
2794
2794
|
*/
|
|
2795
2795
|
|
|
2796
2796
|
charge_on_option?:'on_event' | 'immediately';
|
|
2797
|
+
|
|
2798
|
+
/**
|
|
2799
|
+
* @description null
|
|
2800
|
+
|
|
2801
|
+
*/
|
|
2802
|
+
|
|
2803
|
+
proration_type?:'partial_term' | 'full_term' | 'none';
|
|
2797
2804
|
}
|
|
2798
2805
|
export interface ItemTier {
|
|
2799
2806
|
/**
|
|
@@ -38,7 +38,7 @@ declare module 'chargebee' {
|
|
|
38
38
|
payment_source_id?:string;
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
* @description The payment method of this transaction \* unionpay - Unionpay \* upi - upi \* check - Check \* custom - Custom \* amazon_payments - Amazon Payments \* boleto - boleto \* direct_debit - Direct Debit \* apple_pay - Apple Pay \* wechat_pay - WeChat Pay \* bancontact - Bancontact \* bank_transfer - Bank Transfer \* paypal_express_checkout - Paypal Express Checkout \* other - Payment Methods other than the above types \* ach_credit - ACH Credit \* sepa_credit - SEPA Credit \* card - Card \* ideal - IDEAL \* chargeback - Only applicable for a transaction of [type](transactions#transaction_type) = `refund`. This value is set by Chargebee when an automated [chargeback](https://www.chargebee.com/docs/chargeback.html#chargeback-process) occurs. You can also set this explicitly when [recording a refund](transactions#record_an_offline_refund). \* google_pay - Google Pay \* netbanking_emandates - netbanking_emandates \* dotpay - Dotpay \* alipay - Alipay \* sofort - Sofort \* giropay - giropay \* cash - Cash
|
|
41
|
+
* @description The payment method of this transaction \* unionpay - Unionpay \* upi - upi \* check - Check \* custom - Custom \* amazon_payments - Amazon Payments \* boleto - boleto \* direct_debit - Direct Debit \* sepa_instant_transfer - Sepa Instant Transfer \* apple_pay - Apple Pay \* wechat_pay - WeChat Pay \* bancontact - Bancontact \* faster_payments - Faster Payments \* venmo - Venmo \* bank_transfer - Bank Transfer \* paypal_express_checkout - Paypal Express Checkout \* other - Payment Methods other than the above types \* ach_credit - ACH Credit \* sepa_credit - SEPA Credit \* card - Card \* ideal - IDEAL \* chargeback - Only applicable for a transaction of [type](transactions#transaction_type) = `refund`. This value is set by Chargebee when an automated [chargeback](https://www.chargebee.com/docs/chargeback.html#chargeback-process) occurs. You can also set this explicitly when [recording a refund](transactions#record_an_offline_refund). \* google_pay - Google Pay \* netbanking_emandates - netbanking_emandates \* pay_to - PayTo \* dotpay - Dotpay \* alipay - Alipay \* sofort - Sofort \* giropay - giropay \* cash - Cash
|
|
42
42
|
|
|
43
43
|
*/
|
|
44
44
|
|
|
@@ -52,7 +52,7 @@ declare module 'chargebee' {
|
|
|
52
52
|
reference_number?:string;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* @description Gateway through which this transaction was done. Applicable only for 'Card' Payment Method \* bluesnap - BlueSnap is a payment gateway. \* tco - 2Checkout is a payment gateway. \* razorpay - Razorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc. \* checkout_com - Checkout.com is a payment gateway. \* adyen - Adyen is a payment gateway. \* braintree - Braintree is a payment gateway. \* moneris_us - Moneris USA is a payment gateway. \* pin - Pin is a payment gateway \* moneris - Moneris is a payment gateway. \* chargebee - Chargebee test gateway. \* cybersource - CyberSource is a payment gateway. \* ecentric - Ecentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities. \* first_data_global - First Data Global Gateway Virtual Terminal Account \* exact - Exact Payments is a payment gateway. \* eway - eWAY Account is a payment gateway. \* amazon_payments - Amazon Payments is a payment service provider. \* sage_pay - Sage Pay is a payment gateway. \* elavon - Elavon Virtual Merchant is a payment solution. \* orbital - Chase Paymentech(Orbital) is a payment gateway. \* beanstream - Bambora(formerly known as Beanstream) is a payment gateway. \* hdfc - HDFC Account is a payment gateway. \* bank_of_america - Bank of America Gateway \* gocardless - GoCardless is a payment service provider. \* paymill - PAYMILL is a payment gateway. \* balanced_payments - Balanced is a payment gateway \* bluepay - BluePay is a payment gateway. \* paypal_express_checkout - PayPal Express Checkout is a payment gateway. \* paypal_payflow_pro - PayPal Payflow Pro is a payment gateway. \* global_payments - Global Payments is a payment service provider. \* not_applicable - Indicates that payment gateway is not applicable for this resource. \* nmi - NMI is a payment gateway. \* worldpay - WorldPay is a payment gateway \* authorize_net - Authorize.net is a payment gateway \* stripe - Stripe is a payment gateway. \* metrics_global - Metrics global is a leading payment service provider providing unified payment services in the US. \* windcave - Windcave provides an end to end payment processing solution in ANZ and other leading global markets. \* quickbooks - Intuit QuickBooks Payments gateway \* wepay - WePay is a payment gateway. \* wirecard - WireCard Account is a payment service provider. \* chargebee_payments - Chargebee Payments gateway \* paypal_pro - PayPal Pro Account is a payment gateway. \* paypal - PayPal Commerce is a payment gateway. \* ingenico_direct - Worldline Online Payments is a payment gateway. \* ogone - Ingenico ePayments (formerly known as Ogone) is a payment gateway. \* migs - MasterCard Internet Gateway Service payment gateway. \* vantiv - Vantiv is a payment gateway. \* eway_rapid - eWAY Rapid is a payment gateway. \* mollie - Mollie is a payment gateway. \* ebanx - EBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.
|
|
55
|
+
* @description Gateway through which this transaction was done. Applicable only for 'Card' Payment Method \* bluesnap - BlueSnap is a payment gateway. \* tco - 2Checkout is a payment gateway. \* razorpay - Razorpay is a fast growing payment service provider in India working with all leading banks and support for major local payment methods including Netbanking, UPI etc. \* checkout_com - Checkout.com is a payment gateway. \* adyen - Adyen is a payment gateway. \* braintree - Braintree is a payment gateway. \* pay_com - Pay.com provides payment services focused on simplicity and hassle-free operations for businesses of all sizes. \* moneris_us - Moneris USA is a payment gateway. \* pin - Pin is a payment gateway \* moneris - Moneris is a payment gateway. \* chargebee - Chargebee test gateway. \* cybersource - CyberSource is a payment gateway. \* ecentric - Ecentric provides a seamless payment processing service in South Africa specializing on omnichannel capabilities. \* first_data_global - First Data Global Gateway Virtual Terminal Account \* exact - Exact Payments is a payment gateway. \* eway - eWAY Account is a payment gateway. \* amazon_payments - Amazon Payments is a payment service provider. \* sage_pay - Sage Pay is a payment gateway. \* elavon - Elavon Virtual Merchant is a payment solution. \* orbital - Chase Paymentech(Orbital) is a payment gateway. \* beanstream - Bambora(formerly known as Beanstream) is a payment gateway. \* hdfc - HDFC Account is a payment gateway. \* bank_of_america - Bank of America Gateway \* gocardless - GoCardless is a payment service provider. \* paymill - PAYMILL is a payment gateway. \* balanced_payments - Balanced is a payment gateway \* bluepay - BluePay is a payment gateway. \* paypal_express_checkout - PayPal Express Checkout is a payment gateway. \* paypal_payflow_pro - PayPal Payflow Pro is a payment gateway. \* global_payments - Global Payments is a payment service provider. \* not_applicable - Indicates that payment gateway is not applicable for this resource. \* nmi - NMI is a payment gateway. \* worldpay - WorldPay is a payment gateway \* authorize_net - Authorize.net is a payment gateway \* stripe - Stripe is a payment gateway. \* metrics_global - Metrics global is a leading payment service provider providing unified payment services in the US. \* windcave - Windcave provides an end to end payment processing solution in ANZ and other leading global markets. \* quickbooks - Intuit QuickBooks Payments gateway \* wepay - WePay is a payment gateway. \* wirecard - WireCard Account is a payment service provider. \* chargebee_payments - Chargebee Payments gateway \* paypal_pro - PayPal Pro Account is a payment gateway. \* paypal - PayPal Commerce is a payment gateway. \* ingenico_direct - Worldline Online Payments is a payment gateway. \* ogone - Ingenico ePayments (formerly known as Ogone) is a payment gateway. \* migs - MasterCard Internet Gateway Service payment gateway. \* vantiv - Vantiv is a payment gateway. \* eway_rapid - eWAY Rapid is a payment gateway. \* mollie - Mollie is a payment gateway. \* ebanx - EBANX is a payment gateway, enabling businesses to accept diverse local payment methods from various countries for increased market reach and conversion.
|
|
56
56
|
|
|
57
57
|
*/
|
|
58
58
|
|
|
@@ -307,6 +307,11 @@ declare module 'chargebee' {
|
|
|
307
307
|
|
|
308
308
|
linked_payments?:Transaction.LinkedPayment[];
|
|
309
309
|
|
|
310
|
+
/**
|
|
311
|
+
* @description Comprehensive information regarding the error experienced during an unsuccessful or declined transaction. Learn more about [gateway error references](gateway_error_references)
|
|
312
|
+
|
|
313
|
+
*/
|
|
314
|
+
|
|
310
315
|
error_detail?:Transaction.GatewayErrorDetail;
|
|
311
316
|
}
|
|
312
317
|
export namespace Transaction {
|
|
@@ -835,23 +840,96 @@ The [invoice](/docs/api/invoices?prod_cat_ver=1#invoice_status) is yet to b
|
|
|
835
840
|
date?:number;
|
|
836
841
|
}
|
|
837
842
|
export interface GatewayErrorDetail {
|
|
843
|
+
/**
|
|
844
|
+
* @description This is a unique identifier assigned by the payment gateway. It is used to track the request at the payment gateway
|
|
845
|
+
|
|
846
|
+
*/
|
|
847
|
+
|
|
838
848
|
request_id?:string;
|
|
839
849
|
|
|
850
|
+
/**
|
|
851
|
+
* @description This parameter categorizes the type of error that occurred for the request. It helps in understanding whether the error is due to API error, validation, processing, network issues, and more
|
|
852
|
+
|
|
853
|
+
*/
|
|
854
|
+
|
|
840
855
|
error_category?:string;
|
|
841
856
|
|
|
857
|
+
/**
|
|
858
|
+
* @description A gateway-specific code that corresponds to the particular error encountered for the request. This code can be used for identifying the error in a standardized manner across the gateway's services
|
|
859
|
+
|
|
860
|
+
*/
|
|
861
|
+
|
|
842
862
|
error_code?:string;
|
|
843
863
|
|
|
864
|
+
/**
|
|
865
|
+
* @description A message provided by the gateway that describes the nature of the error encountered
|
|
866
|
+
|
|
867
|
+
*/
|
|
868
|
+
|
|
844
869
|
error_message?:string;
|
|
845
870
|
|
|
871
|
+
/**
|
|
872
|
+
* @description When a transaction is declined, this code is provided by the gateway to specify the reason for the decline
|
|
873
|
+
|
|
874
|
+
*/
|
|
875
|
+
|
|
846
876
|
decline_code?:string;
|
|
847
877
|
|
|
878
|
+
/**
|
|
879
|
+
* @description This message gives a descriptive explanation of the reason for the transaction's decline
|
|
880
|
+
|
|
881
|
+
*/
|
|
882
|
+
|
|
848
883
|
decline_message?:string;
|
|
849
884
|
|
|
885
|
+
/**
|
|
886
|
+
* @description This code represents errors that originate from the payment network (such as Visa, MasterCard, and more). It is different from the gateway error code and is specific to the network's error-handling system
|
|
887
|
+
|
|
888
|
+
*/
|
|
889
|
+
|
|
850
890
|
network_error_code?:string;
|
|
851
891
|
|
|
892
|
+
/**
|
|
893
|
+
* @description This the network related error message from the gateway, this is a detailed message provided by the payment network explaining the nature of the network error encountered
|
|
894
|
+
|
|
895
|
+
*/
|
|
896
|
+
|
|
897
|
+
network_error_message?:string;
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* @description This parameter indicates which specific data field or attribute in the request caused the error
|
|
901
|
+
|
|
902
|
+
*/
|
|
903
|
+
|
|
852
904
|
error_field?:string;
|
|
853
905
|
|
|
906
|
+
/**
|
|
907
|
+
* @description After an error has occurred, the gateway or payment network may provide a recommendation code. This code suggests a course of action or remedy that you can follow to resolve the issue
|
|
908
|
+
|
|
909
|
+
*/
|
|
910
|
+
|
|
854
911
|
recommendation_code?:string;
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* @description This message is intended to provide guidance or suggestions on action or remedy that you can follow to resolve the issue
|
|
915
|
+
|
|
916
|
+
*/
|
|
917
|
+
|
|
918
|
+
recommendation_message?:string;
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* @description This code is provided by the payment processor (the entity that handles the transaction between the bank accounts and the payment networks) and indicates errors that occur at this stage of the payment process
|
|
922
|
+
|
|
923
|
+
*/
|
|
924
|
+
|
|
925
|
+
processor_error_code?:string;
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* @description This message describes the specific error that the payment processor encountered
|
|
929
|
+
|
|
930
|
+
*/
|
|
931
|
+
|
|
932
|
+
processor_error_message?:string;
|
|
855
933
|
}
|
|
856
934
|
}
|
|
857
935
|
}
|
|
@@ -124,7 +124,7 @@ The maximum number of usages that can be recorded for the entire lifetime of a s
|
|
|
124
124
|
|
|
125
125
|
*/
|
|
126
126
|
|
|
127
|
-
pdf(input
|
|
127
|
+
pdf(input:PdfInputParam):ChargebeeRequest<PdfResponse>;
|
|
128
128
|
}
|
|
129
129
|
export interface CreateResponse {
|
|
130
130
|
usage:Usage;
|
|
@@ -288,7 +288,7 @@ The maximum number of usages that can be recorded for the entire lifetime of a s
|
|
|
288
288
|
|
|
289
289
|
*/
|
|
290
290
|
|
|
291
|
-
invoice
|
|
291
|
+
invoice:{id:string};
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
}
|