chargebee 2.40.0 → 3.0.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 +10 -1
- package/LICENSE +1 -1
- package/README.md +90 -172
- package/cjs/RequestWrapper.js +81 -0
- package/cjs/asyncApiSupport.js +39 -0
- package/cjs/chargebee.cjs.js +13 -0
- package/cjs/chargebee.cjs.worker.js +9 -0
- package/cjs/chargebeeError.js +17 -0
- package/cjs/coreCommon.js +72 -0
- package/cjs/createChargebee.js +92 -0
- package/cjs/environment.js +18 -0
- package/cjs/filter.js +1 -0
- package/cjs/net/ClientInterface.js +40 -0
- package/cjs/net/FetchClient.js +86 -0
- package/cjs/net/NodeClient.js +61 -0
- package/cjs/package.json +1 -0
- package/cjs/resources/api_endpoints.js +1086 -0
- package/cjs/util.js +218 -0
- package/esm/RequestWrapper.js +77 -0
- package/esm/asyncApiSupport.js +35 -0
- package/esm/chargebee.esm.js +9 -0
- package/esm/chargebee.esm.worker.js +5 -0
- package/esm/chargebeeError.js +13 -0
- package/esm/coreCommon.js +67 -0
- package/esm/createChargebee.js +88 -0
- package/esm/environment.js +15 -0
- package/esm/filter.js +1 -0
- package/esm/net/ClientInterface.js +35 -0
- package/esm/net/FetchClient.js +81 -0
- package/esm/net/NodeClient.js +56 -0
- package/esm/package.json +1 -0
- package/esm/resources/api_endpoints.js +1083 -0
- package/esm/util.js +202 -0
- package/package.json +69 -38
- package/types/core.d.ts +558 -89
- package/types/index.d.ts +91 -54
- package/types/resources/Address.d.ts +57 -272
- package/types/resources/AdvanceInvoiceSchedule.d.ts +21 -94
- package/types/resources/AttachedItem.d.ts +91 -329
- package/types/resources/Attribute.d.ts +5 -5
- package/types/resources/BusinessEntity.d.ts +49 -69
- package/types/resources/BusinessEntityTransfer.d.ts +11 -17
- package/types/resources/Card.d.ts +146 -424
- package/types/resources/Comment.d.ts +72 -189
- package/types/resources/Contact.d.ts +12 -64
- package/types/resources/ContractTerm.d.ts +15 -96
- package/types/resources/Coupon.d.ts +282 -758
- package/types/resources/CouponCode.d.ts +56 -52
- package/types/resources/CouponSet.d.ts +92 -234
- package/types/resources/CreditNote.d.ts +588 -1758
- package/types/resources/CreditNoteEstimate.d.ts +131 -157
- package/types/resources/Currency.d.ts +75 -62
- package/types/resources/Customer.d.ts +892 -835
- package/types/resources/CustomerEntitlement.d.ts +36 -0
- package/types/resources/DifferentialPrice.d.ts +116 -314
- package/types/resources/Discount.d.ts +20 -125
- package/types/resources/Download.d.ts +6 -22
- package/types/resources/Entitlement.d.ts +51 -160
- package/types/resources/EntitlementOverride.d.ts +58 -139
- package/types/resources/Estimate.d.ts +1178 -527
- package/types/resources/Event.d.ts +67 -178
- package/types/resources/Export.d.ts +563 -723
- package/types/resources/Feature.d.ts +117 -433
- package/types/resources/GatewayErrorDetail.d.ts +16 -72
- package/types/resources/Gift.d.ts +265 -432
- package/types/resources/Hierarchy.d.ts +8 -36
- package/types/resources/HostedPage.d.ts +1017 -1153
- package/types/resources/ImpactedItem.d.ts +13 -50
- package/types/resources/ImpactedItemPrice.d.ts +13 -15
- package/types/resources/ImpactedSubscription.d.ts +13 -45
- package/types/resources/InAppSubscription.d.ts +93 -389
- package/types/resources/Installment.d.ts +35 -110
- package/types/resources/InstallmentConfig.d.ts +54 -155
- package/types/resources/InstallmentDetail.d.ts +19 -27
- package/types/resources/Invoice.d.ts +1574 -3157
- package/types/resources/InvoiceEstimate.d.ts +131 -161
- package/types/resources/Item.d.ts +133 -611
- package/types/resources/ItemEntitlement.d.ts +78 -215
- package/types/resources/ItemFamily.d.ts +69 -178
- package/types/resources/ItemPrice.d.ts +291 -1203
- package/types/resources/Metadata.d.ts +3 -5
- package/types/resources/Order.d.ts +538 -1471
- package/types/resources/PaymentIntent.d.ts +163 -347
- package/types/resources/PaymentReferenceNumber.d.ts +7 -29
- package/types/resources/PaymentSource.d.ts +476 -1272
- package/types/resources/PaymentVoucher.d.ts +87 -306
- package/types/resources/PortalSession.d.ts +71 -207
- package/types/resources/PriceVariant.d.ts +91 -279
- package/types/resources/PricingPageSession.d.ts +92 -41
- package/types/resources/PromotionalCredit.d.ts +90 -346
- package/types/resources/Purchase.d.ts +185 -315
- package/types/resources/Quote.d.ts +1406 -887
- package/types/resources/QuoteLineGroup.d.ts +125 -452
- package/types/resources/QuotedCharge.d.ts +45 -274
- package/types/resources/QuotedSubscription.d.ts +100 -488
- package/types/resources/Ramp.d.ts +233 -724
- package/types/resources/ResourceMigration.d.ts +25 -80
- package/types/resources/SiteMigrationDetail.d.ts +34 -112
- package/types/resources/Subscription.d.ts +2390 -4335
- package/types/resources/SubscriptionEntitlement.d.ts +59 -160
- package/types/resources/SubscriptionEstimate.d.ts +51 -75
- package/types/resources/TaxWithheld.d.ts +15 -40
- package/types/resources/ThirdPartyPaymentMethod.d.ts +7 -29
- package/types/resources/TimeMachine.d.ts +43 -97
- package/types/resources/Token.d.ts +15 -85
- package/types/resources/Transaction.d.ts +278 -900
- package/types/resources/UnbilledCharge.d.ts +189 -164
- package/types/resources/Usage.d.ts +89 -279
- package/types/resources/VirtualBankAccount.d.ts +103 -255
- package/types/resources/filter.d.ts +52 -0
- package/.github/ISSUE_TEMPLATE/bug_report.yml +0 -81
- package/.github/ISSUE_TEMPLATE/config.yml +0 -6
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -34
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -8
- package/lib/chargebee.js +0 -512
- package/lib/resources/api_endpoints.js +0 -2912
- package/types/resources/NonSubscription.d.ts +0 -30
- package/types/resources/Session.d.ts +0 -41
|
@@ -1,1321 +1,525 @@
|
|
|
1
1
|
///<reference path='./../core.d.ts'/>
|
|
2
2
|
///<reference path='./../index.d.ts'/>
|
|
3
|
+
///<reference path='./filter.d.ts'/>
|
|
3
4
|
declare module 'chargebee' {
|
|
4
5
|
export interface PaymentSource {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* @description Identifier of the customer with whom this payment source is associated.
|
|
36
|
-
|
|
37
|
-
*/
|
|
38
|
-
|
|
39
|
-
customer_id:string;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @description Type of payment source \* direct_debit - Represents bank account for which the direct debit or ACH agreement/mandate is created. \* unionpay - Payments made via UnionPay. \* google_pay - Payments made via Google Pay. \* dotpay - Payments made via Dotpay. \* giropay - Payments made via giropay. \* alipay - Payments made via Alipay. \* sofort - Payments made via Sofort. \* wechat_pay - Payments made via WeChat Pay. \* netbanking_emandates - Netbanking (eMandates) Payments. \* bancontact - Payments made via Bancontact Card. \* card - Card based payment including credit cards and debit cards. Details about the card can be obtained from the card resource. \* amazon_payments - Payments made via Amazon Payments. \* generic - Payments made via Generic Payment Method. \* paypal_express_checkout - Payments made via PayPal Express Checkout. \* ideal - Payments made via iDEAL. \* upi - UPI Payments. \* apple_pay - Payments made via Apple Pay.
|
|
43
|
-
|
|
44
|
-
*/
|
|
45
|
-
|
|
46
|
-
type:Type;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @description The reference id. In the case of Amazon and PayPal this will be the 'billing agreement id'. For GoCardless direct debit this will be 'mandate id'. In the case of card payments this will be the identifier provided by the gateway/card vault for the specific payment method resource.
|
|
50
|
-
**Note:** This is not the one time temporary token provided by gateways like Stripe.
|
|
51
|
-
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
reference_id:string;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @description Current status of the payment source. \* valid - A payment source that is valid and active. \* expiring - A payment source that is expiring (like card's status based on its expiry date). \* invalid - The billing agreement cannot be used. It might become valid again either automatically or due to customer action. \* pending_verification - The payment source needs to be verified \* expired - A payment source that has expired
|
|
58
|
-
|
|
59
|
-
*/
|
|
60
|
-
|
|
61
|
-
status:'valid' | 'expiring' | 'expired' | 'invalid' | 'pending_verification';
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @description Name of the gateway this payment source is stored with. \* bluesnap - BlueSnap is a payment gateway. \* tco - 2Checkout 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. \* 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. \* global_payments - Global Payments is a payment service provider. \* not_applicable - Indicates that payment gateway is not applicable for this resource. \* checkout_com - Checkout.com is a payment gateway. \* adyen - Adyen is a payment gateway. \* braintree - Braintree is a payment gateway. \* nmi - NMI is a payment gateway. \* worldpay - WorldPay is a payment gateway \* moneris_us - Moneris USA is a payment gateway. \* pin - Pin is a payment gateway \* authorize_net - Authorize.net is a payment gateway \* stripe - Stripe 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. \* metrics_global - Metrics global is a leading payment service provider providing unified payment services in the US. \* amazon_payments - Amazon Payments is a payment service provider. \* 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 \* sage_pay - Sage Pay is a payment gateway. \* elavon - Elavon Virtual Merchant is a payment solution. \* paypal_pro - PayPal Pro Account is a payment gateway. \* orbital - Chase Paymentech(Orbital) is a payment gateway. \* paypal - PayPal Commerce is a payment gateway. \* beanstream - Bambora(formerly known as Beanstream) is a payment gateway. \* hdfc - HDFC Account 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. \* bank_of_america - Bank of America Gateway \* eway_rapid - eWAY Rapid is a payment gateway. \* gocardless - GoCardless is a payment service provider. \* mollie - Mollie is a payment gateway. \* paymill - PAYMILL is a payment gateway. \* balanced_payments - Balanced 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.
|
|
65
|
-
|
|
66
|
-
*/
|
|
67
|
-
|
|
68
|
-
gateway:Gateway;
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @description The gateway account to which this payment source is stored with.
|
|
72
|
-
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
|
-
gateway_account_id?:string;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @description The IP address of the customer. Used primarily for referral integration and EU VAT validation.
|
|
79
|
-
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
ip_address?:string;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* @description [two-letter(alpha2)](https://www.iso.org/iso-3166-country-codes.html) ISO country code.
|
|
86
|
-
|
|
87
|
-
*/
|
|
88
|
-
|
|
89
|
-
issuing_country?:string;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* @description Indicates that this resource has been deleted.
|
|
93
|
-
|
|
94
|
-
*/
|
|
95
|
-
|
|
96
|
-
deleted:boolean;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* @description The unique ID of the [business entity](/docs/api/advanced-features?prod_cat_ver=2#mbe) of this `payment_source`. This is always the same as the business entity of the [customer](/docs/api/payment_sources?prod_cat_ver=2#payment_source_customer_id).
|
|
100
|
-
|
|
101
|
-
*/
|
|
102
|
-
|
|
103
|
-
business_entity_id?:string;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @description Card details associated with this payment source.
|
|
107
|
-
|
|
108
|
-
*/
|
|
109
|
-
|
|
110
|
-
card?:PaymentSource.Card;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* @description Bank account details the direct debit or ACH or NetBanking agreement/mandate created with this payment source.
|
|
114
|
-
|
|
115
|
-
*/
|
|
116
|
-
|
|
117
|
-
bank_account?:PaymentSource.BankAccount;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @description Boleto payment source details of the customer
|
|
121
|
-
|
|
122
|
-
*/
|
|
123
|
-
|
|
124
|
-
boleto?:PaymentSource.CustVoucherSource;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @description Billing address for the payment source.
|
|
128
|
-
|
|
129
|
-
*/
|
|
130
|
-
|
|
131
|
-
billing_address?:PaymentSource.BillingAddress;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* @description Amazon payments details associated with this payment source.
|
|
135
|
-
|
|
136
|
-
*/
|
|
137
|
-
|
|
138
|
-
amazon_payment?:PaymentSource.AmazonPayment;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* @description Represents the payment method that allows you to make payments directly using a bank account.
|
|
142
|
-
|
|
143
|
-
*/
|
|
144
|
-
|
|
145
|
-
upi?:PaymentSource.Upi;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* @description PayPal Express Checkout details associated with this payment source.
|
|
149
|
-
|
|
150
|
-
*/
|
|
151
|
-
|
|
152
|
-
paypal?:PaymentSource.Paypal;
|
|
153
|
-
|
|
154
|
-
venmo?:PaymentSource.Venmo;
|
|
155
|
-
|
|
156
|
-
klarna_pay_now?:PaymentSource.KlarnaPayNow;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* @description Mandate details associated with the payment source.
|
|
160
|
-
|
|
161
|
-
*/
|
|
162
|
-
|
|
163
|
-
mandates?:PaymentSource.Mandate[];
|
|
6
|
+
id: string;
|
|
7
|
+
resource_version?: number;
|
|
8
|
+
updated_at?: number;
|
|
9
|
+
created_at: number;
|
|
10
|
+
customer_id: string;
|
|
11
|
+
type: Type;
|
|
12
|
+
reference_id: string;
|
|
13
|
+
status:
|
|
14
|
+
| 'valid'
|
|
15
|
+
| 'expiring'
|
|
16
|
+
| 'expired'
|
|
17
|
+
| 'invalid'
|
|
18
|
+
| 'pending_verification';
|
|
19
|
+
gateway: Gateway;
|
|
20
|
+
gateway_account_id?: string;
|
|
21
|
+
ip_address?: string;
|
|
22
|
+
issuing_country?: string;
|
|
23
|
+
card?: PaymentSource.Card;
|
|
24
|
+
bank_account?: PaymentSource.BankAccount;
|
|
25
|
+
boleto?: PaymentSource.CustVoucherSource;
|
|
26
|
+
billing_address?: PaymentSource.BillingAddress;
|
|
27
|
+
amazon_payment?: PaymentSource.AmazonPayment;
|
|
28
|
+
upi?: PaymentSource.Upi;
|
|
29
|
+
paypal?: PaymentSource.Paypal;
|
|
30
|
+
venmo?: PaymentSource.Venmo;
|
|
31
|
+
klarna_pay_now?: PaymentSource.KlarnaPayNow;
|
|
32
|
+
mandates?: PaymentSource.Mandate[];
|
|
33
|
+
deleted: boolean;
|
|
34
|
+
business_entity_id?: string;
|
|
164
35
|
}
|
|
165
|
-
export namespace PaymentSource {
|
|
166
|
-
export class PaymentSourceResource {
|
|
167
|
-
/**
|
|
168
|
-
* @description This API offers an alternative way to create a payment source using a single-use gateway temporary token, which is generally provided by your payment gateway. In the case of Stripe, this temporary token is generated according to the instruction detailed in [Stripe documentation](https://stripe.com/docs/api/tokens/create_card).
|
|
169
|
-
Storing card after successful 3DS completion is not supported in this API. Use [create using Payment Intent API](/docs/api/payment_sources#create_using_payment_intent) under Payment source to store the card after successful 3DS flow completion.
|
|
170
|
-
|
|
171
|
-
*/
|
|
172
|
-
|
|
173
|
-
create_using_temp_token(input:CreateUsingTempTokenInputParam):ChargebeeRequest<CreateUsingTempTokenResponse>;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* @description This API provides an alternative way to create a payment source using a permanent token, instead of having to add the full payment method details via API or the Chargebee UI. Permanent tokens are provided by payment gateways such as Stripe.
|
|
177
|
-
Storing card after successful 3DS completion is not supported in this API. Use [create using Payment Intent API](/docs/api/payment_sources#create_using_payment_intent) under Payment source to store the card after successful 3DS flow completion.
|
|
178
|
-
|
|
179
|
-
*/
|
|
180
|
-
|
|
181
|
-
create_using_permanent_token(input:CreateUsingPermanentTokenInputParam):ChargebeeRequest<CreateUsingPermanentTokenResponse>;
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* @description Storing card after successful 3DS completion is not supported in this API. Use [create using Payment Intent API](/docs/api/payment_sources#create_using_payment_intent) under Payment source to store the card after successful 3DS flow completion.
|
|
185
|
-
|
|
186
|
-
*/
|
|
187
|
-
|
|
188
|
-
create_using_token(input:CreateUsingTokenInputParam):ChargebeeRequest<CreateUsingTokenResponse>;
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* @description Used to attach the card to the customer after 3DS completion. [Learn more](/docs/api/3ds_card_payments) on the 3DS implementation via Chargebee APIs.
|
|
192
|
-
|
|
193
|
-
*/
|
|
194
|
-
|
|
195
|
-
create_using_payment_intent(input:CreateUsingPaymentIntentInputParam):ChargebeeRequest<CreateUsingPaymentIntentResponse>;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* @description Create a voucher payment method for the payment source.
|
|
199
|
-
|
|
200
|
-
*/
|
|
201
|
-
|
|
202
|
-
create_voucher_payment_source(input:CreateVoucherPaymentSourceInputParam):ChargebeeRequest<CreateVoucherPaymentSourceResponse>;
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* @description Storing card after successful 3DS completion is not supported in this API. Use [create using Payment Intent API](/docs/api/payment_sources#create_using_payment_intent) under Payment source to store the card after successful 3DS flow completion.
|
|
206
|
-
|
|
207
|
-
*/
|
|
208
|
-
|
|
209
|
-
create_card(input:CreateCardInputParam):ChargebeeRequest<CreateCardResponse>;
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* @description This API adds a Direct Debit payment source for a customer. The bank account details collected from your customer are passed as input to this API.
|
|
213
|
-
|
|
214
|
-
#### [Automated Clearing House (ACH) Network](https://www.chargebee.com/docs/direct-debit-payments.html#direct-debit-payments-in-the-united-states)
|
|
215
|
-
|
|
216
|
-
ACH is an electronic network for passing financial transactions in the US. Chargebee currently supports ACH via [Stripe](https://www.chargebee.com/docs/ach-payments-stripe.html) , [Authorize.Net](https://www.chargebee.com/docs/ach-payments-authorize_net.html), and [GoCardless](https://www.chargebee.com/docs/2.0/gocardless.html).
|
|
217
|
-
**Note:**
|
|
218
|
-
|
|
219
|
-
* For ACH via Stripe, it is mandatory to pass [user details](/docs/api/advanced-features#user_details) such as IP address(`chargebee-request-origin-ip`) and the device information(`chargebee-request-origin-device`).
|
|
220
|
-
|
|
221
|
-
##### Bank account verification
|
|
222
|
-
|
|
223
|
-
Once the bank account has been added, it needs to be verified.
|
|
224
|
-
|
|
225
|
-
* For Stripe, perform this verification using the [Verify bank account payment source API](/docs/api/payment_sources#verify_bank_account_payment_source).
|
|
226
|
-
* For [Authorize.net](https://www.authorize.net/), the verification is done by them in 2-3 days after the account is added. No intervention is needed from your side or your customer.
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
#### Single Euro Payment Area (SEPA)
|
|
231
|
-
|
|
232
|
-
SEPA is an initiative that integrates bank transfer payments denominated in euro. It is supported via [GoCardless](https://www.chargebee.com/docs/gocardless.html), [Stripe](https://www.chargebee.com/docs/sepa-stripe.html) and [Adyen](https://www.chargebee.com/docs/adyen-sepa.html).
|
|
233
|
-
**Note:**
|
|
234
|
-
|
|
235
|
-
* For SEPA via Stripe, it is mandatory to pass [user details](/docs/api/advanced-features#user_details) such as IP address and device information.
|
|
236
|
-
* For GoCardless, [local bank details](https://developer.gocardless.com/api-reference/#appendix-local-bank-details) can be passed instead of IBAN.
|
|
237
|
-
|
|
238
|
-
#### Bacs Payment Schemes Limited (BACS) and Bg Autogiro
|
|
239
|
-
|
|
240
|
-
Bacs is an organization that manages the Direct Debit and Direct Credit payment methods in the UK. Bg Autogiro is a Direct Debit scheme for krona denominated payments in Sweden. Both Bacs and Bg Autogiro are supported via [GoCardless](https://www.chargebee.com/docs/gocardless.html).
|
|
241
|
-
**Note:**
|
|
242
|
-
|
|
243
|
-
* For BACS via Stripe, it is mandatory to pass [user details](/docs/api/advanced-features#user_details) such as IP address(`chargebee-request-origin-ip`) and the device information(`chargebee-request-origin-device`).
|
|
244
|
-
|
|
245
|
-
#### Bulk Electronic Clearing System (BECS) and Pre-Authorized Debit (PAD)
|
|
246
|
-
|
|
247
|
-
BECS is an automated payment method for Direct Debit in Australia and New Zealand while PAD does the same for Canada. [GoCardless](https://www.chargebee.com/docs/gocardless.html) supports both.
|
|
248
|
-
|
|
249
|
-
For Direct Debit, the customer needs to accept a mandate that allows the merchant to debit their bank account. This agreement PDF can be obtained using the [Retrieve direct debit agreement PDF API](/docs/api/hosted_pages#retrieve_direct_debit_agreement_pdf).
|
|
250
|
-
|
|
251
|
-
If the customer has already reached the payment source limit allowed for the site, pass `replace_primary_payment_source` as `true`. Alternatively, [delete](/docs/api/payment_sources#delete_a_payment_source) one of the payment sources first and then add the bank account payment source for the customer.
|
|
252
|
-
**Note:**
|
|
253
|
-
|
|
254
|
-
* For BECS via Stripe, it is mandatory to pass [user details](/docs/api/advanced-features#user_details) such as IP address(`chargebee-request-origin-ip`) and the device information(`chargebee-request-origin-device`).
|
|
255
|
-
|
|
256
|
-
*/
|
|
257
|
-
|
|
258
|
-
create_bank_account(input:CreateBankAccountInputParam):ChargebeeRequest<CreateBankAccountResponse>;
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* @description Merchants look to update card details when:
|
|
262
|
-
|
|
263
|
-
* The billing address of a customer has changed. In such a case, modify the billing address in the Chargebee and the payment gateway.
|
|
264
|
-
* The expiration date of the card has been extended by the bank. (This usually happens when the date of card expiry is in near future).
|
|
265
|
-
|
|
266
|
-
Multiple parameters such as address, expiry date, month, and so on, can be updated through this API.
|
|
267
|
-
|
|
268
|
-
Meta data can also be added additionally(supported in Stripe only). Metadata is a JSON object. It is used to store additional information about customers.
|
|
269
|
-
|
|
270
|
-
In **Stripe** and **Braintree** payment gateways, changes in card details are auto-updated. This feature can also be used for other payment gateways in which auto-update is not enabled or is not supported by Chargebee.
|
|
271
|
-
**Note** : This endpoint supports Chargebee Test Gateway, [Stripe](https://www.chargebee.com/docs/2.0/stripe.html), [Braintree](https://www.chargebee.com/docs/2.0/braintree.html), [Authorize.net](https://www.chargebee.com/docs/2.0/authorize-index.html), [Worldpay US eCom](https://www.chargebee.com/docs/2.0/vantiv_worldpay.html), and [WorldPay Direct Integration](https://www.chargebee.com/docs/2.0/worldpay-direct.html). For all other gateways, your customers must re-enter the full [card details](/docs/api/payment_sources#update_a_card_payment_source_card_first_name) to update existing card details. For example, consider a customer not using the gateways mentioned above and wants to update the [card\[billing_addr1\]](/docs/api/payment_sources#update_a_card_payment_source_card_billing_addr1) parameter. In such a case, the customer must re-enter the value of all the parameters present in the [card](/docs/api/payment_sources#update_a_card_payment_source_card_first_name) object.
|
|
272
|
-
|
|
273
|
-
*/
|
|
274
|
-
|
|
275
|
-
update_card(cust_payment_source_id:string, input?:UpdateCardInputParam):ChargebeeRequest<UpdateCardResponse>;
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* @description This API is used to update the payment source details of a customer. Information related to bank account payment source such as email, first name, and last name can be updated.
|
|
279
|
-
|
|
280
|
-
* For GoCardless, Chargebee supports (ACH,BACS,SEPA,AUTOGIRO,BECS,BECS_NZ,PAD).
|
|
281
|
-
* For Stripe, Chargebee only supports SEPA.
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
*/
|
|
287
|
-
|
|
288
|
-
update_bank_account(cust_payment_source_id:string, input?:UpdateBankAccountInputParam):ChargebeeRequest<UpdateBankAccountResponse>;
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* @description This API can be used to verify bank accounts which have been added as payment source. This is applicable for **Stripe ACH with micro-deposit mode bank accounts** only. Stripe handles verification in two ways - via Plaid, and micro-deposit.
|
|
292
|
-
|
|
293
|
-
For verifying bank accounts via **micro-deposit**, Stripe deposits two small amounts to the bank account being added. These deposits will take 1-2 business days to appear on the customer's bank statement. The bank statement description for the two micro-deposits contains the amount and the values deposited. Your customer will need to relay the value of the two deposits to you, after which you can verify the bank account. Once the bank account has been verified, the payment source will be marked as "Valid".
|
|
294
|
-
|
|
295
|
-
*/
|
|
296
|
-
|
|
297
|
-
verify_bank_account(cust_payment_source_id:string, input:VerifyBankAccountInputParam):ChargebeeRequest<VerifyBankAccountResponse>;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* @description Retrieves the payment source identified by the unique identifier.
|
|
301
36
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
37
|
+
export namespace PaymentSource {
|
|
38
|
+
export class PaymentSourceResource {
|
|
39
|
+
createUsingTempToken(
|
|
40
|
+
input: CreateUsingTempTokenInputParam,
|
|
41
|
+
headers?: ChargebeeRequestHeader,
|
|
42
|
+
): Promise<ChargebeeResponse<CreateUsingTempTokenResponse>>;
|
|
43
|
+
|
|
44
|
+
createUsingPermanentToken(
|
|
45
|
+
input: CreateUsingPermanentTokenInputParam,
|
|
46
|
+
headers?: ChargebeeRequestHeader,
|
|
47
|
+
): Promise<ChargebeeResponse<CreateUsingPermanentTokenResponse>>;
|
|
48
|
+
|
|
49
|
+
createUsingToken(
|
|
50
|
+
input: CreateUsingTokenInputParam,
|
|
51
|
+
headers?: ChargebeeRequestHeader,
|
|
52
|
+
): Promise<ChargebeeResponse<CreateUsingTokenResponse>>;
|
|
53
|
+
|
|
54
|
+
createUsingPaymentIntent(
|
|
55
|
+
input: CreateUsingPaymentIntentInputParam,
|
|
56
|
+
headers?: ChargebeeRequestHeader,
|
|
57
|
+
): Promise<ChargebeeResponse<CreateUsingPaymentIntentResponse>>;
|
|
308
58
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* @description Switches the gateway in which this payment source information is stored.
|
|
59
|
+
createVoucherPaymentSource(
|
|
60
|
+
input: CreateVoucherPaymentSourceInputParam,
|
|
61
|
+
headers?: ChargebeeRequestHeader,
|
|
62
|
+
): Promise<ChargebeeResponse<CreateVoucherPaymentSourceResponse>>;
|
|
315
63
|
|
|
316
|
-
|
|
64
|
+
createCard(
|
|
65
|
+
input: CreateCardInputParam,
|
|
66
|
+
headers?: ChargebeeRequestHeader,
|
|
67
|
+
): Promise<ChargebeeResponse<CreateCardResponse>>;
|
|
317
68
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* @description Copies this payment source information to the gateway specified in the API.
|
|
69
|
+
createBankAccount(
|
|
70
|
+
input: CreateBankAccountInputParam,
|
|
71
|
+
headers?: ChargebeeRequestHeader,
|
|
72
|
+
): Promise<ChargebeeResponse<CreateBankAccountResponse>>;
|
|
324
73
|
|
|
325
|
-
|
|
74
|
+
updateCard(
|
|
75
|
+
cust_payment_source_id: string,
|
|
76
|
+
input?: UpdateCardInputParam,
|
|
77
|
+
headers?: ChargebeeRequestHeader,
|
|
78
|
+
): Promise<ChargebeeResponse<UpdateCardResponse>>;
|
|
326
79
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
* @description Deletes a payment source. Once the payment source is deleted, if
|
|
80
|
+
updateBankAccount(
|
|
81
|
+
cust_payment_source_id: string,
|
|
82
|
+
input?: UpdateBankAccountInputParam,
|
|
83
|
+
headers?: ChargebeeRequestHeader,
|
|
84
|
+
): Promise<ChargebeeResponse<UpdateBankAccountResponse>>;
|
|
333
85
|
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
86
|
+
verifyBankAccount(
|
|
87
|
+
cust_payment_source_id: string,
|
|
88
|
+
input: VerifyBankAccountInputParam,
|
|
89
|
+
headers?: ChargebeeRequestHeader,
|
|
90
|
+
): Promise<ChargebeeResponse<VerifyBankAccountResponse>>;
|
|
338
91
|
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
92
|
+
retrieve(
|
|
93
|
+
cust_payment_source_id: string,
|
|
94
|
+
headers?: ChargebeeRequestHeader,
|
|
95
|
+
): Promise<ChargebeeResponse<RetrieveResponse>>;
|
|
342
96
|
|
|
97
|
+
list(
|
|
98
|
+
input?: ListInputParam,
|
|
99
|
+
headers?: ChargebeeRequestHeader,
|
|
100
|
+
): Promise<ChargebeeResponse<ListResponse>>;
|
|
343
101
|
|
|
102
|
+
switchGatewayAccount(
|
|
103
|
+
cust_payment_source_id: string,
|
|
104
|
+
input: SwitchGatewayAccountInputParam,
|
|
105
|
+
headers?: ChargebeeRequestHeader,
|
|
106
|
+
): Promise<ChargebeeResponse<SwitchGatewayAccountResponse>>;
|
|
344
107
|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
108
|
+
exportPaymentSource(
|
|
109
|
+
cust_payment_source_id: string,
|
|
110
|
+
input: ExportPaymentSourceInputParam,
|
|
111
|
+
headers?: ChargebeeRequestHeader,
|
|
112
|
+
): Promise<ChargebeeResponse<ExportPaymentSourceResponse>>;
|
|
348
113
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* @description Deletes a payment method from Chargebee. Payment method in the payment gateway will not be affected.
|
|
114
|
+
delete(
|
|
115
|
+
cust_payment_source_id: string,
|
|
116
|
+
headers?: ChargebeeRequestHeader,
|
|
117
|
+
): Promise<ChargebeeResponse<DeleteResponse>>;
|
|
355
118
|
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
export interface CreateUsingTempTokenResponse {
|
|
361
|
-
customer:Customer;
|
|
362
|
-
|
|
363
|
-
payment_source:PaymentSource;
|
|
119
|
+
deleteLocal(
|
|
120
|
+
cust_payment_source_id: string,
|
|
121
|
+
headers?: ChargebeeRequestHeader,
|
|
122
|
+
): Promise<ChargebeeResponse<DeleteLocalResponse>>;
|
|
364
123
|
}
|
|
365
|
-
export interface CreateUsingTempTokenInputParam {
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* @description Identifier of the customer with whom this payment source is associated.
|
|
369
|
-
|
|
370
|
-
*/
|
|
371
|
-
|
|
372
|
-
customer_id:string;
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
* @description The gateway account to which the payment source is associated.
|
|
376
|
-
|
|
377
|
-
*/
|
|
378
|
-
|
|
379
|
-
gateway_account_id?:string;
|
|
380
|
-
|
|
381
|
-
/**
|
|
382
|
-
* @description Type of payment source. \* direct_debit - Represents bank account for which the direct debit or ACH agreement/mandate is created. \* dotpay - Payments made via Dotpay. \* bancontact - Payments made via Bancontact Card. \* unionpay - Payments made via UnionPay. \* paypal_express_checkout - Payments made via PayPal Express Checkout. \* alipay - Payments made via Alipay. \* card - Card based payment including credit cards and debit cards. Details about the card can be obtained from the card resource. \* sofort - Payments made via Sofort. \* generic - Payments made via Generic Payment Method. \* amazon_payments - Payments made via Amazon Payments. \* google_pay - Payments made via Google Pay. \* giropay - Payments made via giropay. \* wechat_pay - Payments made via WeChat Pay. \* ideal - Payments made via iDEAL. \* netbanking_emandates - Netbanking (eMandates) Payments. \* apple_pay - Payments made via Apple Pay. \* upi - UPI Payments.
|
|
383
|
-
|
|
384
|
-
*/
|
|
385
|
-
|
|
386
|
-
type:Type;
|
|
387
|
-
|
|
388
|
-
/**
|
|
389
|
-
* @description Single-use token created by payment gateways. In Stripe, a single-use token is created for Apple Pay Wallet, card details or direct debit. In Braintree, a nonce is created for Apple Pay Wallet, PayPal, or card details. In Authorize.net, a nonce is created for card details. In Adyen, an encrypted data is created from the card details.
|
|
390
|
-
|
|
391
|
-
*/
|
|
392
|
-
|
|
393
|
-
tmp_token:string;
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* @description 2-letter (alpha2) ISO country code. Indicates your customer's payment method country of issuance. Applicable for PayPal via Braintree.
|
|
397
|
-
|
|
398
|
-
*/
|
|
399
|
-
|
|
400
|
-
issuing_country?:string;
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
* @description Indicates whether the primary payment source should be replaced with this payment source. In case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.
|
|
404
|
-
|
|
405
|
-
*/
|
|
406
|
-
|
|
407
|
-
replace_primary_payment_source?:boolean;
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* @description * `checkout_com`: While adding a new payment method using [permanent token](./payment_sources?#create_using_permanent_token) or passing raw card details to Checkout.com, `document` ID and `country_of_residence` are required to support payments through [dLocal](https://docs.checkout.com/payment-methods/cards/dlocal).
|
|
411
|
-
* `payer`: User related information.
|
|
412
|
-
* `country_of_residence`: This is required since the billing country associated with the user's payment method may not be the same as their country of residence. Hence the user's country of residence needs to be specified. The country code should be a [two-character ISO code](https://docs.checkout.com/resources/codes/country-codes).
|
|
413
|
-
* `document`: Document ID is the user's [identification number](https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents) based on their country.
|
|
414
|
-
* `bluesnap`: While passing raw card details to BlueSnap, if `fraud_session_id` is added, [additional validation](https://developers.bluesnap.com/docs/fraud-prevention) is performed to avoid fraudulent transactions.
|
|
415
|
-
* `fraud`: Fraud identification related information.
|
|
416
|
-
* `fraud_session_id`: Your [BlueSnap fraud session ID](https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector) required to perform anti-fraud validation.
|
|
417
|
-
* `braintree`: While passing raw card details to Braintree, your `fraud_merchant_id` and the user's `device_session_id` can be added to perform [additional validation](https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data) and avoid fraudulent transactions.
|
|
418
|
-
* `fraud`: Fraud identification related information.
|
|
419
|
-
* `device_session_id`: Session ID associated with the user's device.
|
|
420
|
-
* `fraud_merchant_id`: Your [merchant ID](https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data) for fraud detection.
|
|
421
|
-
* `chargebee_payments`: While passing raw card details to Chargebee Payments, if `fraud_session_id` is added, additional validation is performed to avoid fraudulent transactions.
|
|
422
|
-
* `fraud`: Fraud identification related information.
|
|
423
|
-
* `fraud_session_id`: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.
|
|
424
|
-
* `bank_of_america`: While passing raw card details to Bank of America, your user's `device_session_id` can be added to perform additional validation and avoid fraudulent transactions.
|
|
425
|
-
* `fraud`: Fraud identification related information.
|
|
426
|
-
* `device_session_id`: Session ID associated with the user's device.
|
|
427
|
-
* `ecentric`: This parameter is used to verify and process payment method details in Ecentric. If the `merchant_id` parameter is included, Chargebee will vault it / perform a lookup and verification against this `merchant_id`, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.
|
|
428
|
-
* `merchant_id`: Merchant GUID where the card is vaulted or need to be vaulted.
|
|
429
|
-
* `ebanx`: While passing raw card details to EBANX, the user's `document` is required for some countries and `device_session_id` can be added to perform [additional validation](https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint) and avoid fraudulent transactions.
|
|
430
|
-
* `payer`: User related information.
|
|
431
|
-
* `document`: Document is the user's identification number based on their country.
|
|
432
|
-
* `fraud`: Fraud identification related information.
|
|
433
|
-
* `device_session_id`: Session ID associated with the user's device
|
|
434
124
|
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
additional_information?:object;
|
|
440
|
-
}
|
|
441
|
-
export interface CreateUsingPermanentTokenResponse {
|
|
442
|
-
customer:Customer;
|
|
443
|
-
|
|
444
|
-
payment_source:PaymentSource;
|
|
125
|
+
export interface CreateUsingTempTokenResponse {
|
|
126
|
+
customer: Customer;
|
|
127
|
+
payment_source: PaymentSource;
|
|
445
128
|
}
|
|
446
|
-
export interface CreateUsingPermanentTokenInputParam {
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* @description Identifier of the customer with whom this payment source is associated.
|
|
450
|
-
|
|
451
|
-
*/
|
|
452
|
-
|
|
453
|
-
customer_id:string;
|
|
454
|
-
|
|
455
|
-
/**
|
|
456
|
-
* @description The type of payment method. For more details refer [Update payment method for a customer](customers#update_payment_method_for_a_customer) API under Customer resource. \* direct_debit - Represents bank account for which the direct debit or ACH agreement/mandate is created. \* unionpay - Payments made via UnionPay. \* faster_payments - Payments made via Faster Payments \* google_pay - Payments made via Google Pay. \* sepa_instant_transfer - Payments made via Sepa Instant Transfer \* dotpay - Payments made via Dotpay. \* pay_to - Payments made via PayTo \* generic - Payments made via Generic Payment Method. \* giropay - Payments made via giropay. \* paypal_express_checkout - Payments made via PayPal Express Checkout. \* alipay - Payments made via Alipay. \* venmo - Payments made via Venmo \* sofort - Payments made via Sofort. \* wechat_pay - Payments made via WeChat Pay. \* ideal - Payments made via iDEAL. \* netbanking_emandates - Netbanking (eMandates) Payments. \* upi - UPI Payments. \* bancontact - Payments made via Bancontact Card. \* card - Card based payment including credit cards and debit cards. Details about the card can be obtained from the card resource. \* amazon_payments - Payments made via Amazon Payments. \* apple_pay - Payments made via Apple Pay.
|
|
457
|
-
|
|
458
|
-
*/
|
|
459
|
-
|
|
460
|
-
type:Type;
|
|
461
|
-
|
|
462
|
-
/**
|
|
463
|
-
* @description The gateway account to which the payment source is associated.
|
|
464
|
-
|
|
465
|
-
*/
|
|
466
|
-
|
|
467
|
-
gateway_account_id?:string;
|
|
468
|
-
|
|
469
|
-
/**
|
|
470
|
-
* @description The reference id. In the case of Amazon and PayPal, this will be the billing agreement ID. For GoCardless direct debit this will be `mandate_id`. In the case of a card, this will be the identifier provided by the gateway or card vault for the specific payment method resource.
|
|
471
|
-
**Note:**
|
|
472
|
-
|
|
473
|
-
* This is not the one-time temporary token provided by gateways like Stripe.
|
|
474
|
-
|
|
475
|
-
* `reference_id` is an alternative for `payment_method_token`, `customer_profile_token`, `network_transaction_id`, or `mandate_id`.
|
|
476
|
-
|
|
477
|
-
* `payment_method_token`, `customer_profile_token`, `network_transaction_id`, or `mandate_id` cannot be used with `reference_id`.
|
|
478
|
-
|
|
479
|
-
* `reference_id` is a combination of multiple tokens available at the gateway. Learn more about the combination of each gateway from this [document](https://apidocs.chargebee.com/docs/api/payment_parameters).
|
|
480
|
-
|
|
481
129
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* @description 2-letter (alpha2) ISO country code. Indicates your customer's payment method country of issuance. Applicable for PayPal via Braintree.
|
|
488
|
-
|
|
489
|
-
*/
|
|
490
|
-
|
|
491
|
-
issuing_country?:string;
|
|
492
|
-
|
|
493
|
-
/**
|
|
494
|
-
* @description Indicates whether the primary payment source should be replaced with this payment source. In case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.
|
|
495
|
-
|
|
496
|
-
*/
|
|
497
|
-
|
|
498
|
-
replace_primary_payment_source?:boolean;
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* @description An identifier provided by the gateway or card vault for the specific payment method resource.
|
|
502
|
-
**Note:**
|
|
503
|
-
|
|
504
|
-
`payment_method_token` is an alternative for reference_id and cannot be used with `reference_id`.
|
|
505
|
-
|
|
506
|
-
*/
|
|
507
|
-
|
|
508
|
-
payment_method_token?:string;
|
|
509
|
-
|
|
510
|
-
/**
|
|
511
|
-
* @description A unique identifier associated with a customer\`s profile within a payment gateway.
|
|
512
|
-
**Note:**
|
|
513
|
-
|
|
514
|
-
`customer_profile_token` is an alternative for reference_id and cannot be used with `reference_id`.
|
|
515
|
-
|
|
516
|
-
*/
|
|
517
|
-
|
|
518
|
-
customer_profile_token?:string;
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* @description An identifier of the payment or authorization transaction at the gateway initiated using this payment method.
|
|
522
|
-
**Note:**
|
|
523
|
-
|
|
524
|
-
`network_transaction_id` is an alternative for reference_id and cannot be used with `reference_id`.
|
|
525
|
-
|
|
526
|
-
*/
|
|
527
|
-
|
|
528
|
-
network_transaction_id?:string;
|
|
529
|
-
|
|
530
|
-
/**
|
|
531
|
-
* @description An identifier of mandates which is an authorization given by the payer (usually a customer or account holder) to allow a third party such as a merchant or service provider to initiate payments from their account.
|
|
532
|
-
**Note:**
|
|
533
|
-
|
|
534
|
-
`mandate_id` is an alternative for reference_id and cannot be used with `reference_id`.
|
|
535
|
-
|
|
536
|
-
*/
|
|
537
|
-
|
|
538
|
-
mandate_id?:string;
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* @description By default, the value is `false` and payment method details will be retrieved from the selected payment gateway using `reference_id` or `payment_method_token` / `customer_profile_token` / `network_transaction_id` / `mandate_id`. Learn more about the multiple token combinations of each gateway from this [document](https://apidocs.chargebee.com/docs/api/payment_parameters).
|
|
542
|
-
|
|
543
|
-
Enter the value as `true` for the payment gateways that do not allow to retrieve the payment method details. Once passed, it will create payment method at Chargebee with the provided attributes in `payment_method_token`, `customer_profile_token`, `network_transaction_id`, `mandate_id`, `card`, and `billing_address`.
|
|
544
|
-
**Note:**
|
|
545
|
-
|
|
546
|
-
Currently, the `skip_retrieval` value as `true` is only supported for the Vantiv payment gateway.
|
|
547
|
-
|
|
548
|
-
*/
|
|
549
|
-
|
|
550
|
-
skip_retrieval?:boolean;
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* @description * `checkout_com`: While adding a new payment method using [permanent token](./payment_sources?#create_using_permanent_token) or passing raw card details to Checkout.com, `document` ID and `country_of_residence` are required to support payments through [dLocal](https://docs.checkout.com/payment-methods/cards/dlocal).
|
|
554
|
-
* `payer`: User related information.
|
|
555
|
-
* `country_of_residence`: This is required since the billing country associated with the user's payment method may not be the same as their country of residence. Hence the user's country of residence needs to be specified. The country code should be a [two-character ISO code](https://docs.checkout.com/resources/codes/country-codes).
|
|
556
|
-
* `document`: Document ID is the user's [identification number](https://docs.dlocal.com/api-documentation/payins-api-reference/country-reference#documents) based on their country.
|
|
557
|
-
* `bluesnap`: While passing raw card details to BlueSnap, if `fraud_session_id` is added, [additional validation](https://developers.bluesnap.com/docs/fraud-prevention) is performed to avoid fraudulent transactions.
|
|
558
|
-
* `fraud`: Fraud identification related information.
|
|
559
|
-
* `fraud_session_id`: Your [BlueSnap fraud session ID](https://developers.bluesnap.com/docs/fraud-prevention#section-implementing-device-data-collector) required to perform anti-fraud validation.
|
|
560
|
-
* `braintree`: While passing raw card details to Braintree, your `fraud_merchant_id` and the user's `device_session_id` can be added to perform [additional validation](https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data) and avoid fraudulent transactions.
|
|
561
|
-
* `fraud`: Fraud identification related information.
|
|
562
|
-
* `device_session_id`: Session ID associated with the user's device.
|
|
563
|
-
* `fraud_merchant_id`: Your [merchant ID](https://developers.braintreepayments.com/guides/premium-fraud-management-tools/device-data-collection/javascript/v3#collecting-device-data) for fraud detection.
|
|
564
|
-
* `chargebee_payments`: While passing raw card details to Chargebee Payments, if `fraud_session_id` is added, additional validation is performed to avoid fraudulent transactions.
|
|
565
|
-
* `fraud`: Fraud identification related information.
|
|
566
|
-
* `fraud_session_id`: Your Chargebee Payments fraud session ID required to perform anti-fraud validation.
|
|
567
|
-
* `bank_of_america`: While passing raw card details to Bank of America, your user's `device_session_id` can be added to perform additional validation and avoid fraudulent transactions.
|
|
568
|
-
* `fraud`: Fraud identification related information.
|
|
569
|
-
* `device_session_id`: Session ID associated with the user's device.
|
|
570
|
-
* `ecentric`: This parameter is used to verify and process payment method details in Ecentric. If the `merchant_id` parameter is included, Chargebee will vault it / perform a lookup and verification against this `merchant_id`, overriding the one configured in Chargebee. If tokens and processing occur in the same Merchant GUID, you can just skip this part.
|
|
571
|
-
* `merchant_id`: Merchant GUID where the card is vaulted or need to be vaulted.
|
|
572
|
-
* `ebanx`: While passing raw card details to EBANX, the user's `document` is required for some countries and `device_session_id` can be added to perform [additional validation](https://developer.ebanx.com/docs/payments/guides/features/device-fingerprint#device-fingerprint) and avoid fraudulent transactions.
|
|
573
|
-
* `payer`: User related information.
|
|
574
|
-
* `document`: Document is the user's identification number based on their country.
|
|
575
|
-
* `fraud`: Fraud identification related information.
|
|
576
|
-
* `device_session_id`: Session ID associated with the user's device
|
|
577
|
-
|
|
578
|
-
.
|
|
579
|
-
|
|
580
|
-
*/
|
|
581
|
-
|
|
582
|
-
additional_information?:object;
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
* @description Parameters of tokenized card details
|
|
130
|
+
export interface CreateUsingPermanentTokenResponse {
|
|
131
|
+
customer: Customer;
|
|
132
|
+
payment_source: PaymentSource;
|
|
133
|
+
}
|
|
586
134
|
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
135
|
+
export interface CreateUsingTokenResponse {
|
|
136
|
+
customer: Customer;
|
|
137
|
+
payment_source: PaymentSource;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface CreateUsingPaymentIntentResponse {
|
|
141
|
+
customer: Customer;
|
|
142
|
+
payment_source: PaymentSource;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface CreateVoucherPaymentSourceResponse {
|
|
146
|
+
customer: Customer;
|
|
147
|
+
payment_source: PaymentSource;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface CreateCardResponse {
|
|
151
|
+
customer: Customer;
|
|
152
|
+
payment_source: PaymentSource;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export interface CreateBankAccountResponse {
|
|
156
|
+
customer: Customer;
|
|
157
|
+
payment_source: PaymentSource;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export interface UpdateCardResponse {
|
|
161
|
+
customer: Customer;
|
|
162
|
+
payment_source: PaymentSource;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export interface UpdateBankAccountResponse {
|
|
166
|
+
customer: Customer;
|
|
167
|
+
payment_source: PaymentSource;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export interface VerifyBankAccountResponse {
|
|
171
|
+
payment_source: PaymentSource;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export interface RetrieveResponse {
|
|
175
|
+
payment_source: PaymentSource;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export interface ListResponse {
|
|
179
|
+
list: { payment_source: PaymentSource }[];
|
|
180
|
+
next_offset?: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface SwitchGatewayAccountResponse {
|
|
184
|
+
customer: Customer;
|
|
185
|
+
payment_source: PaymentSource;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface ExportPaymentSourceResponse {
|
|
189
|
+
third_party_payment_method: ThirdPartyPaymentMethod;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export interface DeleteResponse {
|
|
193
|
+
customer: Customer;
|
|
194
|
+
payment_source: PaymentSource;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export interface DeleteLocalResponse {
|
|
198
|
+
customer: Customer;
|
|
199
|
+
payment_source: PaymentSource;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export interface Card {
|
|
203
|
+
first_name?: string;
|
|
204
|
+
last_name?: string;
|
|
205
|
+
iin: string;
|
|
206
|
+
last4: string;
|
|
207
|
+
brand:
|
|
208
|
+
| 'visa'
|
|
209
|
+
| 'mastercard'
|
|
210
|
+
| 'american_express'
|
|
211
|
+
| 'discover'
|
|
212
|
+
| 'jcb'
|
|
213
|
+
| 'diners_club'
|
|
214
|
+
| 'other'
|
|
215
|
+
| 'bancontact'
|
|
216
|
+
| 'cmr_falabella'
|
|
217
|
+
| 'tarjeta_naranja'
|
|
218
|
+
| 'nativa'
|
|
219
|
+
| 'cencosud'
|
|
220
|
+
| 'cabal'
|
|
221
|
+
| 'argencard'
|
|
222
|
+
| 'elo'
|
|
223
|
+
| 'hipercard'
|
|
224
|
+
| 'carnet'
|
|
225
|
+
| 'rupay'
|
|
226
|
+
| 'maestro'
|
|
227
|
+
| 'not_applicable';
|
|
228
|
+
funding_type:
|
|
229
|
+
| 'credit'
|
|
230
|
+
| 'debit'
|
|
231
|
+
| 'prepaid'
|
|
232
|
+
| 'not_known'
|
|
233
|
+
| 'not_applicable';
|
|
234
|
+
expiry_month: number;
|
|
235
|
+
expiry_year: number;
|
|
236
|
+
billing_addr1?: string;
|
|
237
|
+
billing_addr2?: string;
|
|
238
|
+
billing_city?: string;
|
|
239
|
+
billing_state_code?: string;
|
|
240
|
+
billing_state?: string;
|
|
241
|
+
billing_country?: string;
|
|
242
|
+
billing_zip?: string;
|
|
243
|
+
masked_number?: string;
|
|
244
|
+
}
|
|
245
|
+
export interface BankAccount {
|
|
246
|
+
last4: string;
|
|
247
|
+
name_on_account?: string;
|
|
248
|
+
first_name?: string;
|
|
249
|
+
last_name?: string;
|
|
250
|
+
direct_debit_scheme?: DirectDebitScheme;
|
|
251
|
+
bank_name?: string;
|
|
252
|
+
mandate_id?: string;
|
|
253
|
+
account_type?: AccountType;
|
|
254
|
+
echeck_type?: EcheckType;
|
|
255
|
+
account_holder_type?: AccountHolderType;
|
|
256
|
+
email?: string;
|
|
257
|
+
}
|
|
258
|
+
export interface CustVoucherSource {
|
|
259
|
+
last4: string;
|
|
260
|
+
first_name?: string;
|
|
261
|
+
last_name?: string;
|
|
262
|
+
email?: string;
|
|
263
|
+
}
|
|
264
|
+
export interface BillingAddress {
|
|
265
|
+
first_name?: string;
|
|
266
|
+
last_name?: string;
|
|
267
|
+
email?: string;
|
|
268
|
+
company?: string;
|
|
269
|
+
phone?: string;
|
|
270
|
+
line1?: string;
|
|
271
|
+
line2?: string;
|
|
272
|
+
line3?: string;
|
|
273
|
+
city?: string;
|
|
274
|
+
state_code?: string;
|
|
275
|
+
state?: string;
|
|
276
|
+
country?: string;
|
|
277
|
+
zip?: string;
|
|
278
|
+
validation_status?: ValidationStatus;
|
|
279
|
+
}
|
|
280
|
+
export interface AmazonPayment {
|
|
281
|
+
email?: string;
|
|
282
|
+
agreement_id?: string;
|
|
283
|
+
}
|
|
284
|
+
export interface Upi {
|
|
285
|
+
vpa?: string;
|
|
286
|
+
}
|
|
287
|
+
export interface Paypal {
|
|
288
|
+
email?: string;
|
|
289
|
+
agreement_id?: string;
|
|
290
|
+
}
|
|
291
|
+
export interface Venmo {
|
|
292
|
+
user_name?: string;
|
|
293
|
+
}
|
|
294
|
+
export interface KlarnaPayNow {
|
|
295
|
+
email?: string;
|
|
296
|
+
}
|
|
297
|
+
export interface Mandate {
|
|
298
|
+
id: string;
|
|
299
|
+
subscription_id: string;
|
|
300
|
+
created_at: number;
|
|
301
|
+
}
|
|
302
|
+
// REQUEST PARAMS
|
|
303
|
+
//---------------
|
|
593
304
|
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
305
|
+
export interface CreateUsingTempTokenInputParam {
|
|
306
|
+
customer_id: string;
|
|
307
|
+
gateway_account_id?: string;
|
|
308
|
+
type: Type;
|
|
309
|
+
tmp_token: string;
|
|
310
|
+
issuing_country?: string;
|
|
311
|
+
replace_primary_payment_source?: boolean;
|
|
312
|
+
additional_information?: any;
|
|
597
313
|
}
|
|
598
|
-
export interface
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
314
|
+
export interface CreateUsingPermanentTokenInputParam {
|
|
315
|
+
customer_id: string;
|
|
316
|
+
type: Type;
|
|
317
|
+
gateway_account_id?: string;
|
|
318
|
+
reference_id?: string;
|
|
319
|
+
issuing_country?: string;
|
|
320
|
+
replace_primary_payment_source?: boolean;
|
|
321
|
+
payment_method_token?: string;
|
|
322
|
+
customer_profile_token?: string;
|
|
323
|
+
network_transaction_id?: string;
|
|
324
|
+
mandate_id?: string;
|
|
325
|
+
skip_retrieval?: boolean;
|
|
326
|
+
additional_information?: any;
|
|
327
|
+
card?: CardCreateUsingPermanentTokenInputParam;
|
|
328
|
+
billing_address?: BillingAddressCreateUsingPermanentTokenInputParam;
|
|
602
329
|
}
|
|
603
330
|
export interface CreateUsingTokenInputParam {
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
*/
|
|
609
|
-
|
|
610
|
-
customer_id:string;
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* @description Indicates whether the primary payment source should be replaced with this payment source. In case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.
|
|
614
|
-
|
|
615
|
-
*/
|
|
616
|
-
|
|
617
|
-
replace_primary_payment_source?:boolean;
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
* @description Token generated by Chargebee JS representing payment method details.
|
|
621
|
-
|
|
622
|
-
*/
|
|
623
|
-
|
|
624
|
-
token_id:string;
|
|
625
|
-
}
|
|
626
|
-
export interface CreateUsingPaymentIntentResponse {
|
|
627
|
-
customer:Customer;
|
|
628
|
-
|
|
629
|
-
payment_source:PaymentSource;
|
|
331
|
+
customer_id: string;
|
|
332
|
+
replace_primary_payment_source?: boolean;
|
|
333
|
+
token_id: string;
|
|
630
334
|
}
|
|
631
335
|
export interface CreateUsingPaymentIntentInputParam {
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
*/
|
|
637
|
-
|
|
638
|
-
customer_id:string;
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* @description Indicates whether the primary payment source should be replaced with this payment source. In case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.
|
|
642
|
-
|
|
643
|
-
*/
|
|
644
|
-
|
|
645
|
-
replace_primary_payment_source?:boolean;
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
* @description Parameters for payment_intent
|
|
649
|
-
|
|
650
|
-
*/
|
|
651
|
-
|
|
652
|
-
payment_intent?:{additional_info?:object,additional_information?:object,gateway_account_id?:string,gw_token?:string,id?:string,payment_method_type?:'giropay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'boleto' | 'direct_debit' | 'faster_payments' | 'sofort' | 'upi' | 'venmo' | 'amazon_payments' | 'apple_pay' | 'bancontact' | 'paypal_express_checkout' | 'pay_to' | 'card',reference_id?:string};
|
|
653
|
-
}
|
|
654
|
-
export interface CreateVoucherPaymentSourceResponse {
|
|
655
|
-
customer:Customer;
|
|
656
|
-
|
|
657
|
-
payment_source:PaymentSource;
|
|
336
|
+
customer_id: string;
|
|
337
|
+
replace_primary_payment_source?: boolean;
|
|
338
|
+
payment_intent?: PaymentIntentCreateUsingPaymentIntentInputParam;
|
|
658
339
|
}
|
|
659
340
|
export interface CreateVoucherPaymentSourceInputParam {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
* @description Identifier of the customer with whom this payment source is associated.
|
|
663
|
-
|
|
664
|
-
*/
|
|
665
|
-
|
|
666
|
-
customer_id:string;
|
|
667
|
-
|
|
668
|
-
/**
|
|
669
|
-
* @description Parameters for voucher_payment_source
|
|
670
|
-
|
|
671
|
-
*/
|
|
672
|
-
|
|
673
|
-
voucher_payment_source:{billing_address?:object,gateway_account_id?:string,tax_id?:string,voucher_type:VoucherType};
|
|
674
|
-
}
|
|
675
|
-
export interface CreateCardResponse {
|
|
676
|
-
customer:Customer;
|
|
677
|
-
|
|
678
|
-
payment_source:PaymentSource;
|
|
341
|
+
customer_id: string;
|
|
342
|
+
voucher_payment_source?: VoucherPaymentSourceCreateVoucherPaymentSourceInputParam;
|
|
679
343
|
}
|
|
680
344
|
export interface CreateCardInputParam {
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
*/
|
|
686
|
-
|
|
687
|
-
customer_id:string;
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
* @description Indicates whether the primary payment source should be replaced with this payment source. In case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.
|
|
691
|
-
|
|
692
|
-
*/
|
|
693
|
-
|
|
694
|
-
replace_primary_payment_source?:boolean;
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* @description Parameters for card
|
|
698
|
-
|
|
699
|
-
*/
|
|
700
|
-
|
|
701
|
-
card:{additional_information?:object,billing_addr1?:string,billing_addr2?:string,billing_city?:string,billing_country?:string,billing_state?:string,billing_state_code?:string,billing_zip?:string,cvv?:string,expiry_month:number,expiry_year:number,first_name?:string,gateway_account_id?:string,last_name?:string,number:string};
|
|
702
|
-
}
|
|
703
|
-
export interface CreateBankAccountResponse {
|
|
704
|
-
customer:Customer;
|
|
705
|
-
|
|
706
|
-
payment_source:PaymentSource;
|
|
345
|
+
customer_id: string;
|
|
346
|
+
replace_primary_payment_source?: boolean;
|
|
347
|
+
card?: CardCreateCardInputParam;
|
|
707
348
|
}
|
|
708
349
|
export interface CreateBankAccountInputParam {
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
*/
|
|
714
|
-
|
|
715
|
-
customer_id:string;
|
|
716
|
-
|
|
717
|
-
/**
|
|
718
|
-
* @description 2-letter(alpha2) ISO country code. Required when local bank details are provided, and not IBAN.
|
|
719
|
-
|
|
720
|
-
*/
|
|
721
|
-
|
|
722
|
-
issuing_country?:string;
|
|
723
|
-
|
|
724
|
-
/**
|
|
725
|
-
* @description Indicates whether the primary payment source should be replaced with this payment source. In case of Create Subscription for Customer endpoint, the default value is True. Otherwise, the default value is False.
|
|
726
|
-
|
|
727
|
-
*/
|
|
728
|
-
|
|
729
|
-
replace_primary_payment_source?:boolean;
|
|
730
|
-
|
|
731
|
-
/**
|
|
732
|
-
* @description Parameters for bank_account
|
|
733
|
-
|
|
734
|
-
*/
|
|
735
|
-
|
|
736
|
-
bank_account?:{account_holder_type?:AccountHolderType,account_number?:string,account_type?:AccountType,bank_code?:string,bank_name?:string,billing_address?:object,company?:string,echeck_type?:EcheckType,email?:string,first_name?:string,gateway_account_id?:string,iban?:string,last_name?:string,phone?:string,routing_number?:string,swedish_identity_number?:string};
|
|
737
|
-
}
|
|
738
|
-
export interface UpdateCardResponse {
|
|
739
|
-
customer:Customer;
|
|
740
|
-
|
|
741
|
-
payment_source:PaymentSource;
|
|
350
|
+
customer_id: string;
|
|
351
|
+
issuing_country?: string;
|
|
352
|
+
replace_primary_payment_source?: boolean;
|
|
353
|
+
bank_account?: BankAccountCreateBankAccountInputParam;
|
|
742
354
|
}
|
|
743
355
|
export interface UpdateCardInputParam {
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
*/
|
|
749
|
-
|
|
750
|
-
gateway_meta_data?:object;
|
|
751
|
-
|
|
752
|
-
/**
|
|
753
|
-
* @description Reference transaction is used for future purchases. This is only applicable for Vantiv.
|
|
754
|
-
|
|
755
|
-
*/
|
|
756
|
-
|
|
757
|
-
reference_transaction?:string;
|
|
758
|
-
|
|
759
|
-
/**
|
|
760
|
-
* @description Parameters for card
|
|
761
|
-
|
|
762
|
-
*/
|
|
763
|
-
|
|
764
|
-
card?:{additional_information?:object,billing_addr1?:string,billing_addr2?:string,billing_city?:string,billing_country?:string,billing_state?:string,billing_state_code?:string,billing_zip?:string,expiry_month?:number,expiry_year?:number,first_name?:string,last_name?:string};
|
|
765
|
-
}
|
|
766
|
-
export interface UpdateBankAccountResponse {
|
|
767
|
-
customer:Customer;
|
|
768
|
-
|
|
769
|
-
payment_source:PaymentSource;
|
|
356
|
+
gateway_meta_data?: any;
|
|
357
|
+
reference_transaction?: string;
|
|
358
|
+
card?: CardUpdateCardInputParam;
|
|
770
359
|
}
|
|
771
360
|
export interface UpdateBankAccountInputParam {
|
|
772
|
-
|
|
773
|
-
/**
|
|
774
|
-
* @description Parameters for bank_account
|
|
775
|
-
|
|
776
|
-
*/
|
|
777
|
-
|
|
778
|
-
bank_account?:{email?:string,first_name?:string,last_name?:string};
|
|
779
|
-
}
|
|
780
|
-
export interface VerifyBankAccountResponse {
|
|
781
|
-
payment_source:PaymentSource;
|
|
361
|
+
bank_account?: BankAccountUpdateBankAccountInputParam;
|
|
782
362
|
}
|
|
783
363
|
export interface VerifyBankAccountInputParam {
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
* @description Value of the micro-deposits sent to the bank account.
|
|
787
|
-
|
|
788
|
-
*/
|
|
789
|
-
|
|
790
|
-
amount1:number;
|
|
791
|
-
|
|
792
|
-
/**
|
|
793
|
-
* @description Value of the micro-deposits sent to the bank account.
|
|
794
|
-
|
|
795
|
-
*/
|
|
796
|
-
|
|
797
|
-
amount2:number;
|
|
798
|
-
}
|
|
799
|
-
export interface RetrieveResponse {
|
|
800
|
-
payment_source:PaymentSource;
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
export interface ListResponse {
|
|
804
|
-
/**
|
|
805
|
-
* @description Lists all the payment sources
|
|
806
|
-
|
|
807
|
-
*/
|
|
808
|
-
|
|
809
|
-
list:{payment_source:PaymentSource}[];
|
|
810
|
-
|
|
811
|
-
/**
|
|
812
|
-
* @description Lists all the payment sources
|
|
813
|
-
|
|
814
|
-
*/
|
|
815
|
-
|
|
816
|
-
next_offset?:string;
|
|
364
|
+
amount1: number;
|
|
365
|
+
amount2: number;
|
|
817
366
|
}
|
|
818
367
|
export interface ListInputParam {
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
*/
|
|
831
|
-
|
|
832
|
-
offset?:string;
|
|
833
|
-
|
|
834
|
-
/**
|
|
835
|
-
* @description Lists all the payment sources
|
|
836
|
-
|
|
837
|
-
*/
|
|
838
|
-
|
|
839
|
-
subscription_id?:string;
|
|
840
|
-
|
|
841
|
-
/**
|
|
842
|
-
* @description Lists all the payment sources
|
|
843
|
-
|
|
844
|
-
*/
|
|
845
|
-
|
|
846
|
-
customer_id?:{in?:string,is?:string,is_not?:string,not_in?:string,starts_with?:string};
|
|
847
|
-
|
|
848
|
-
/**
|
|
849
|
-
* @description Lists all the payment sources
|
|
850
|
-
|
|
851
|
-
*/
|
|
852
|
-
|
|
853
|
-
type?:{in?:string,is?:'giropay' | 'alipay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'klarna_pay_now' | 'dotpay' | 'unionpay' | 'direct_debit' | 'faster_payments' | 'generic' | 'sofort' | 'amazon_payments' | 'upi' | 'venmo' | 'apple_pay' | 'bancontact' | 'automated_bank_transfer' | 'paypal_express_checkout' | 'wechat_pay' | 'pay_to' | 'card',is_not?:'giropay' | 'alipay' | 'ideal' | 'sepa_instant_transfer' | 'google_pay' | 'netbanking_emandates' | 'dotpay' | 'unionpay' | 'direct_debit' | 'faster_payments' | 'generic' | 'sofort' | 'amazon_payments' | 'upi' | 'venmo' | 'apple_pay' | 'bancontact' | 'automated_bank_transfer' | 'paypal_express_checkout' | 'wechat_pay' | 'pay_to' | 'card',not_in?:string};
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* @description Lists all the payment sources
|
|
857
|
-
|
|
858
|
-
*/
|
|
859
|
-
|
|
860
|
-
status?:{in?:string,is?:'valid' | 'expiring' | 'expired' | 'invalid' | 'pending_verification',is_not?:'valid' | 'expiring' | 'expired' | 'invalid' | 'pending_verification',not_in?:string};
|
|
861
|
-
|
|
862
|
-
/**
|
|
863
|
-
* @description Lists all the payment sources
|
|
864
|
-
|
|
865
|
-
*/
|
|
866
|
-
|
|
867
|
-
updated_at?:{after?:string,before?:string,between?:string,on?:string};
|
|
868
|
-
|
|
869
|
-
/**
|
|
870
|
-
* @description Lists all the payment sources
|
|
871
|
-
|
|
872
|
-
*/
|
|
873
|
-
|
|
874
|
-
created_at?:{after?:string,before?:string,between?:string,on?:string};
|
|
875
|
-
|
|
876
|
-
/**
|
|
877
|
-
* @description Lists all the payment sources
|
|
878
|
-
|
|
879
|
-
*/
|
|
880
|
-
|
|
881
|
-
sort_by?:{asc?:'updated_at' | 'created_at',desc?:'updated_at' | 'created_at'};
|
|
882
|
-
}
|
|
883
|
-
export interface SwitchGatewayAccountResponse {
|
|
884
|
-
customer:Customer;
|
|
885
|
-
|
|
886
|
-
payment_source:PaymentSource;
|
|
368
|
+
limit?: number;
|
|
369
|
+
offset?: string;
|
|
370
|
+
subscription_id?: string;
|
|
371
|
+
customer_id?: filter.String;
|
|
372
|
+
type?: filter.Enum;
|
|
373
|
+
status?: filter.Enum;
|
|
374
|
+
updated_at?: filter.Timestamp;
|
|
375
|
+
created_at?: filter.Timestamp;
|
|
376
|
+
'sort_by[asc]'?: string;
|
|
377
|
+
'sort_by[desc]'?: string;
|
|
887
378
|
}
|
|
888
379
|
export interface SwitchGatewayAccountInputParam {
|
|
889
|
-
|
|
890
|
-
/**
|
|
891
|
-
* @description The gateway account you want to switch to.
|
|
892
|
-
|
|
893
|
-
*/
|
|
894
|
-
|
|
895
|
-
gateway_account_id:string;
|
|
896
|
-
}
|
|
897
|
-
export interface ExportPaymentSourceResponse {
|
|
898
|
-
third_party_payment_method:ThirdPartyPaymentMethod;
|
|
380
|
+
gateway_account_id: string;
|
|
899
381
|
}
|
|
900
382
|
export interface ExportPaymentSourceInputParam {
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
export interface BankAccount {
|
|
1042
|
-
/**
|
|
1043
|
-
* @description Last four digits of the bank account number
|
|
1044
|
-
|
|
1045
|
-
*/
|
|
1046
|
-
|
|
1047
|
-
last4:string;
|
|
1048
|
-
|
|
1049
|
-
/**
|
|
1050
|
-
* @description Account holder's name as per bank account.
|
|
1051
|
-
|
|
1052
|
-
*/
|
|
1053
|
-
|
|
1054
|
-
name_on_account?:string;
|
|
1055
|
-
|
|
1056
|
-
/**
|
|
1057
|
-
* @description Account holder's first name as per bank account.
|
|
1058
|
-
|
|
1059
|
-
*/
|
|
1060
|
-
|
|
1061
|
-
first_name?:string;
|
|
1062
|
-
|
|
1063
|
-
/**
|
|
1064
|
-
* @description Account holder's last name as per bank account.
|
|
1065
|
-
|
|
1066
|
-
*/
|
|
1067
|
-
|
|
1068
|
-
last_name?:string;
|
|
1069
|
-
|
|
1070
|
-
/**
|
|
1071
|
-
* @description Bank account's scheme to which the mandate and associated payments are submitted. \* becs_nz - The Bulk Electronic Clearing System (BECS) is a Direct Debit scheme and followed in New-Zealand for Direct Debit system. \* bacs - Automated payments are at the very centre of the UK's financial system, providing an essential service for both consumers and organisations. Bacs is the company which runs Direct Debit in the UK. \* becs - The Bulk Electronic Clearing System (BECS) is a Direct Debit scheme and followed in Australia for Direct Debit system. \* pad - Pre-Authorized Debit (PAD) is the scheme used for collecting Direct Debit payments from customers in Canada. \* ach - US Bank Account \* not_applicable - not_applicable \* sepa_core - SEPA Direct Debit is a Europe-wide Direct Debit system that allows merchants to collect Euro-denominated payments. \* autogiro - Bg Autogiro is a Direct Debit scheme for collecting Krona-denominated payments from a bank account in Sweden.
|
|
1072
|
-
|
|
1073
|
-
*/
|
|
1074
|
-
|
|
1075
|
-
direct_debit_scheme?:DirectDebitScheme;
|
|
1076
|
-
|
|
1077
|
-
/**
|
|
1078
|
-
* @description Name of account holder's bank.
|
|
1079
|
-
|
|
1080
|
-
*/
|
|
1081
|
-
|
|
1082
|
-
bank_name?:string;
|
|
1083
|
-
|
|
1084
|
-
/**
|
|
1085
|
-
* @description Mandate Id. Applicable for SEPA, BACS, Autogiro, and BECS.
|
|
1086
|
-
|
|
1087
|
-
*/
|
|
1088
|
-
|
|
1089
|
-
mandate_id?:string;
|
|
1090
|
-
|
|
1091
|
-
/**
|
|
1092
|
-
* @description Represents the account type used to create a payment source. Available for [Authorize.net](https://www.authorize.net/) ACH and Razorpay NetBanking users only. If not passed, account type is taken as null. \* checking - Checking Account \* business_checking - Business Checking Account \* savings - Savings Account \* current - Current Account
|
|
1093
|
-
|
|
1094
|
-
*/
|
|
1095
|
-
|
|
1096
|
-
account_type?:AccountType;
|
|
1097
|
-
|
|
1098
|
-
/**
|
|
1099
|
-
* @description For Authorize.net ACH users only. Indicates the type of eCheck. \* ppd - Payment Authorization is prearranged between the customer and the merchant. \* web - Payment Authorization obtained from the customer via the internet. \* ccd - Payment Authorization agreement from the corporate customer is required. Applicable for business_checking account_type.
|
|
1100
|
-
|
|
1101
|
-
*/
|
|
1102
|
-
|
|
1103
|
-
echeck_type?:EcheckType;
|
|
1104
|
-
|
|
1105
|
-
/**
|
|
1106
|
-
* @description For Stripe ACH users only. Indicates the account holder type. \* company - Company Account. \* individual - Individual Account.
|
|
1107
|
-
|
|
1108
|
-
*/
|
|
1109
|
-
|
|
1110
|
-
account_holder_type?:AccountHolderType;
|
|
1111
|
-
|
|
1112
|
-
/**
|
|
1113
|
-
* @description Account holder's email address. If not passed, details from customer details will be considered. All Direct Debit compliant emails will be sent to this email address.
|
|
1114
|
-
|
|
1115
|
-
*/
|
|
1116
|
-
|
|
1117
|
-
email?:string;
|
|
1118
|
-
}
|
|
1119
|
-
export interface CustVoucherSource {
|
|
1120
|
-
/**
|
|
1121
|
-
* @description Last four digits of unique id for voucher payment source ex: tax_id
|
|
1122
|
-
|
|
1123
|
-
*/
|
|
1124
|
-
|
|
1125
|
-
last4:string;
|
|
1126
|
-
|
|
1127
|
-
/**
|
|
1128
|
-
* @description Customer first name as per voucher payment source.
|
|
1129
|
-
|
|
1130
|
-
*/
|
|
1131
|
-
|
|
1132
|
-
first_name?:string;
|
|
1133
|
-
|
|
1134
|
-
/**
|
|
1135
|
-
* @description Customer last name as per voucher payment source.
|
|
1136
|
-
|
|
1137
|
-
*/
|
|
1138
|
-
|
|
1139
|
-
last_name?:string;
|
|
1140
|
-
|
|
1141
|
-
/**
|
|
1142
|
-
* @description Email address associated Customer's voucher payment source.
|
|
1143
|
-
|
|
1144
|
-
*/
|
|
1145
|
-
|
|
1146
|
-
email?:string;
|
|
1147
|
-
}
|
|
1148
|
-
export interface BillingAddress {
|
|
1149
|
-
/**
|
|
1150
|
-
* @description The first name of the billing contact.
|
|
1151
|
-
|
|
1152
|
-
*/
|
|
1153
|
-
|
|
1154
|
-
first_name?:string;
|
|
1155
|
-
|
|
1156
|
-
/**
|
|
1157
|
-
* @description The last name of the billing contact.
|
|
1158
|
-
|
|
1159
|
-
*/
|
|
1160
|
-
|
|
1161
|
-
last_name?:string;
|
|
1162
|
-
|
|
1163
|
-
/**
|
|
1164
|
-
* @description The email address.
|
|
1165
|
-
|
|
1166
|
-
*/
|
|
1167
|
-
|
|
1168
|
-
email?:string;
|
|
1169
|
-
|
|
1170
|
-
/**
|
|
1171
|
-
* @description The company name.
|
|
1172
|
-
|
|
1173
|
-
*/
|
|
1174
|
-
|
|
1175
|
-
company?:string;
|
|
1176
|
-
|
|
1177
|
-
/**
|
|
1178
|
-
* @description The phone number.
|
|
1179
|
-
|
|
1180
|
-
*/
|
|
1181
|
-
|
|
1182
|
-
phone?:string;
|
|
1183
|
-
|
|
1184
|
-
/**
|
|
1185
|
-
* @description Address line 1
|
|
1186
|
-
|
|
1187
|
-
*/
|
|
1188
|
-
|
|
1189
|
-
line1?:string;
|
|
1190
|
-
|
|
1191
|
-
/**
|
|
1192
|
-
* @description Address line 2
|
|
1193
|
-
|
|
1194
|
-
*/
|
|
1195
|
-
|
|
1196
|
-
line2?:string;
|
|
1197
|
-
|
|
1198
|
-
/**
|
|
1199
|
-
* @description Address line 3
|
|
1200
|
-
|
|
1201
|
-
*/
|
|
1202
|
-
|
|
1203
|
-
line3?:string;
|
|
1204
|
-
|
|
1205
|
-
/**
|
|
1206
|
-
* @description The name of the city.
|
|
1207
|
-
|
|
1208
|
-
*/
|
|
1209
|
-
|
|
1210
|
-
city?:string;
|
|
1211
|
-
|
|
1212
|
-
/**
|
|
1213
|
-
* @description The [ISO 3166-2 state/province code](https://www.iso.org/obp/ui/#search) without the country prefix. Currently supported for USA, Canada and India. For instance, for Arizona (USA), set `state_code` as `AZ` (not `US-AZ`). For Tamil Nadu (India), set as `TN` (not `IN-TN`). For British Columbia (Canada), set as `BC` (not `CA-BC`).
|
|
1214
|
-
|
|
1215
|
-
*/
|
|
1216
|
-
|
|
1217
|
-
state_code?:string;
|
|
1218
|
-
|
|
1219
|
-
/**
|
|
1220
|
-
* @description State or Province
|
|
1221
|
-
|
|
1222
|
-
*/
|
|
1223
|
-
|
|
1224
|
-
state?:string;
|
|
1225
|
-
|
|
1226
|
-
/**
|
|
1227
|
-
* @description The billing address country of the customer. Must be one of [ISO 3166 alpha-2 country code](https://www.iso.org/iso-3166-country-codes.html).
|
|
1228
|
-
|
|
1229
|
-
**Note** : If you enter an invalid country code, the system will return an error.
|
|
1230
|
-
|
|
1231
|
-
**Brexit**
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
If you have enabled [EU VAT](https://www.chargebee.com/docs/eu-vat.html) in 2021 or later, or have [manually enable](https://www.chargebee.com/docs/brexit.html#what-needs-to-be-done-in-chargebee) the Brexit configuration, then `XI` (the code for **United Kingdom -- Northern Ireland**) is available as an option.
|
|
1235
|
-
|
|
1236
|
-
*/
|
|
1237
|
-
|
|
1238
|
-
country?:string;
|
|
1239
|
-
|
|
1240
|
-
/**
|
|
1241
|
-
* @description Zip or postal code. The number of characters is validated according to the rules [specified here](https://i18napis.appspot.com/address).
|
|
1242
|
-
|
|
1243
|
-
*/
|
|
1244
|
-
|
|
1245
|
-
zip?:string;
|
|
1246
|
-
|
|
1247
|
-
/**
|
|
1248
|
-
* @description The address verification status. \* valid - Address was validated successfully. \* partially_valid - The address is valid for taxability but has not been validated for shipping. \* invalid - Address is invalid. \* not_validated - Address is not yet validated.
|
|
1249
|
-
|
|
1250
|
-
*/
|
|
1251
|
-
|
|
1252
|
-
validation_status?:ValidationStatus;
|
|
1253
|
-
}
|
|
1254
|
-
export interface AmazonPayment {
|
|
1255
|
-
/**
|
|
1256
|
-
* @description Email address associated with Amazon payment account
|
|
1257
|
-
|
|
1258
|
-
*/
|
|
1259
|
-
|
|
1260
|
-
email?:string;
|
|
1261
|
-
|
|
1262
|
-
/**
|
|
1263
|
-
* @description Billing agreement id
|
|
1264
|
-
|
|
1265
|
-
*/
|
|
1266
|
-
|
|
1267
|
-
agreement_id?:string;
|
|
1268
|
-
}
|
|
1269
|
-
export interface Upi {
|
|
1270
|
-
/**
|
|
1271
|
-
* @description A unique identifier mapped with an individuals bank account to help UPI track the account.
|
|
1272
|
-
|
|
1273
|
-
*/
|
|
1274
|
-
|
|
1275
|
-
vpa?:string;
|
|
1276
|
-
}
|
|
1277
|
-
export interface Paypal {
|
|
1278
|
-
/**
|
|
1279
|
-
* @description Email address associated with PayPal Express Checkout
|
|
1280
|
-
|
|
1281
|
-
*/
|
|
1282
|
-
|
|
1283
|
-
email?:string;
|
|
1284
|
-
|
|
1285
|
-
/**
|
|
1286
|
-
* @description Billing agreement id
|
|
1287
|
-
|
|
1288
|
-
*/
|
|
1289
|
-
|
|
1290
|
-
agreement_id?:string;
|
|
1291
|
-
}
|
|
1292
|
-
export interface Venmo {
|
|
1293
|
-
user_name?:string;
|
|
1294
|
-
}
|
|
1295
|
-
export interface KlarnaPayNow {
|
|
1296
|
-
email?:string;
|
|
1297
|
-
}
|
|
1298
|
-
export interface Mandate {
|
|
1299
|
-
/**
|
|
1300
|
-
* @description A unique mandate identifier used for recurring payments.
|
|
1301
|
-
|
|
1302
|
-
*/
|
|
1303
|
-
|
|
1304
|
-
id:string;
|
|
1305
|
-
|
|
1306
|
-
/**
|
|
1307
|
-
* @description Chargebee's subscription id used to find the mapping between the payment source and the Subscription.
|
|
1308
|
-
|
|
1309
|
-
*/
|
|
1310
|
-
|
|
1311
|
-
subscription_id:string;
|
|
1312
|
-
|
|
1313
|
-
/**
|
|
1314
|
-
* @description Timestamp indicating when the mandate is created
|
|
1315
|
-
|
|
1316
|
-
*/
|
|
1317
|
-
|
|
1318
|
-
created_at:number;
|
|
383
|
+
gateway_account_id: string;
|
|
384
|
+
}
|
|
385
|
+
export interface BillingAddressCreateUsingPermanentTokenInputParam {
|
|
386
|
+
first_name?: string;
|
|
387
|
+
last_name?: string;
|
|
388
|
+
email?: string;
|
|
389
|
+
line1?: string;
|
|
390
|
+
line2?: string;
|
|
391
|
+
line3?: string;
|
|
392
|
+
city?: string;
|
|
393
|
+
state_code?: string;
|
|
394
|
+
state?: string;
|
|
395
|
+
zip?: string;
|
|
396
|
+
country?: string;
|
|
397
|
+
}
|
|
398
|
+
export interface CardCreateUsingPermanentTokenInputParam {
|
|
399
|
+
last4?: string;
|
|
400
|
+
iin?: string;
|
|
401
|
+
expiry_month?: number;
|
|
402
|
+
expiry_year?: number;
|
|
403
|
+
brand?:
|
|
404
|
+
| 'visa'
|
|
405
|
+
| 'mastercard'
|
|
406
|
+
| 'american_express'
|
|
407
|
+
| 'discover'
|
|
408
|
+
| 'jcb'
|
|
409
|
+
| 'diners_club'
|
|
410
|
+
| 'other'
|
|
411
|
+
| 'bancontact'
|
|
412
|
+
| 'cmr_falabella'
|
|
413
|
+
| 'tarjeta_naranja'
|
|
414
|
+
| 'nativa'
|
|
415
|
+
| 'cencosud'
|
|
416
|
+
| 'cabal'
|
|
417
|
+
| 'argencard'
|
|
418
|
+
| 'elo'
|
|
419
|
+
| 'hipercard'
|
|
420
|
+
| 'carnet'
|
|
421
|
+
| 'rupay'
|
|
422
|
+
| 'maestro';
|
|
423
|
+
funding_type?: 'credit' | 'debit' | 'prepaid' | 'not_known';
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export interface PaymentIntentCreateUsingPaymentIntentInputParam {
|
|
427
|
+
id?: string;
|
|
428
|
+
gateway_account_id?: string;
|
|
429
|
+
gw_token?: string;
|
|
430
|
+
payment_method_type?:
|
|
431
|
+
| 'card'
|
|
432
|
+
| 'ideal'
|
|
433
|
+
| 'sofort'
|
|
434
|
+
| 'bancontact'
|
|
435
|
+
| 'google_pay'
|
|
436
|
+
| 'dotpay'
|
|
437
|
+
| 'giropay'
|
|
438
|
+
| 'apple_pay'
|
|
439
|
+
| 'upi'
|
|
440
|
+
| 'netbanking_emandates'
|
|
441
|
+
| 'paypal_express_checkout'
|
|
442
|
+
| 'direct_debit'
|
|
443
|
+
| 'boleto'
|
|
444
|
+
| 'venmo'
|
|
445
|
+
| 'amazon_payments'
|
|
446
|
+
| 'pay_to'
|
|
447
|
+
| 'faster_payments'
|
|
448
|
+
| 'sepa_instant_transfer'
|
|
449
|
+
| 'klarna_pay_now'
|
|
450
|
+
| 'online_banking_poland';
|
|
451
|
+
reference_id?: string;
|
|
452
|
+
/**
|
|
453
|
+
* @deprecated Please refer API docs to use other attributes
|
|
454
|
+
*/
|
|
455
|
+
gw_payment_method_id?: string;
|
|
456
|
+
additional_info?: any;
|
|
457
|
+
additional_information?: any;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
export interface VoucherPaymentSourceCreateVoucherPaymentSourceInputParam {
|
|
461
|
+
voucher_type: VoucherType;
|
|
462
|
+
gateway_account_id?: string;
|
|
463
|
+
tax_id?: string;
|
|
464
|
+
billing_address?: any;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export interface CardCreateCardInputParam {
|
|
468
|
+
gateway_account_id?: string;
|
|
469
|
+
first_name?: string;
|
|
470
|
+
last_name?: string;
|
|
471
|
+
number: string;
|
|
472
|
+
expiry_month: number;
|
|
473
|
+
expiry_year: number;
|
|
474
|
+
cvv?: string;
|
|
475
|
+
billing_addr1?: string;
|
|
476
|
+
billing_addr2?: string;
|
|
477
|
+
billing_city?: string;
|
|
478
|
+
billing_state_code?: string;
|
|
479
|
+
billing_state?: string;
|
|
480
|
+
billing_zip?: string;
|
|
481
|
+
billing_country?: string;
|
|
482
|
+
additional_information?: any;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
export interface BankAccountCreateBankAccountInputParam {
|
|
486
|
+
gateway_account_id?: string;
|
|
487
|
+
iban?: string;
|
|
488
|
+
first_name?: string;
|
|
489
|
+
last_name?: string;
|
|
490
|
+
company?: string;
|
|
491
|
+
email?: string;
|
|
492
|
+
phone?: string;
|
|
493
|
+
bank_name?: string;
|
|
494
|
+
account_number?: string;
|
|
495
|
+
routing_number?: string;
|
|
496
|
+
bank_code?: string;
|
|
497
|
+
account_type?: AccountType;
|
|
498
|
+
account_holder_type?: AccountHolderType;
|
|
499
|
+
echeck_type?: EcheckType;
|
|
500
|
+
swedish_identity_number?: string;
|
|
501
|
+
billing_address?: any;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export interface CardUpdateCardInputParam {
|
|
505
|
+
first_name?: string;
|
|
506
|
+
last_name?: string;
|
|
507
|
+
expiry_month?: number;
|
|
508
|
+
expiry_year?: number;
|
|
509
|
+
billing_addr1?: string;
|
|
510
|
+
billing_addr2?: string;
|
|
511
|
+
billing_city?: string;
|
|
512
|
+
billing_zip?: string;
|
|
513
|
+
billing_state_code?: string;
|
|
514
|
+
billing_state?: string;
|
|
515
|
+
billing_country?: string;
|
|
516
|
+
additional_information?: any;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export interface BankAccountUpdateBankAccountInputParam {
|
|
520
|
+
first_name?: string;
|
|
521
|
+
last_name?: string;
|
|
522
|
+
email?: string;
|
|
1319
523
|
}
|
|
1320
524
|
}
|
|
1321
|
-
}
|
|
525
|
+
}
|