@stripe/stripe-js 1.20.3 → 1.21.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/dist/pure.esm.js +1 -1
- package/dist/pure.js +1 -1
- package/dist/stripe.esm.js +1 -1
- package/dist/stripe.js +1 -1
- package/package.json +5 -5
- package/src/shared.ts +1 -2
- package/types/api/bank-accounts.d.ts +61 -0
- package/types/api/cards.d.ts +130 -0
- package/types/api/index.d.ts +9 -9
- package/types/api/payment-intents.d.ts +330 -0
- package/types/api/payment-methods.d.ts +349 -0
- package/types/api/setup-intents.d.ts +184 -0
- package/types/api/shared.d.ts +124 -126
- package/types/api/sources.d.ts +1045 -0
- package/types/api/tokens.d.ts +634 -0
- package/types/api/verification-sessions.d.ts +9 -0
- package/types/index.d.ts +14 -12
- package/types/stripe-js/checkout.d.ts +134 -136
- package/types/stripe-js/elements/affirm-message.d.ts +59 -61
- package/types/stripe-js/elements/afterpay-clearpay-message.d.ts +118 -120
- package/types/stripe-js/elements/au-bank-account.d.ts +123 -120
- package/types/stripe-js/elements/base.d.ts +263 -263
- package/types/stripe-js/elements/card-cvc.d.ts +107 -103
- package/types/stripe-js/elements/card-expiry.d.ts +107 -104
- package/types/stripe-js/elements/card-number.d.ts +128 -125
- package/types/stripe-js/elements/card.d.ts +157 -154
- package/types/stripe-js/elements/eps-bank.d.ts +125 -121
- package/types/stripe-js/elements/fpx-bank.d.ts +120 -116
- package/types/stripe-js/elements/iban.d.ts +134 -131
- package/types/stripe-js/elements/ideal-bank.d.ts +125 -121
- package/types/stripe-js/elements/index.d.ts +17 -0
- package/types/stripe-js/elements/link-authentication.d.ts +92 -94
- package/types/stripe-js/elements/p24-bank.d.ts +125 -121
- package/types/stripe-js/elements/payment-request-button.d.ts +127 -127
- package/types/stripe-js/elements/payment.d.ts +190 -180
- package/types/stripe-js/elements/shipping-address.d.ts +123 -125
- package/types/stripe-js/elements-group.d.ts +617 -0
- package/types/stripe-js/index.d.ts +7 -1069
- package/types/stripe-js/payment-intents.d.ts +951 -919
- package/types/stripe-js/payment-request.d.ts +503 -503
- package/types/stripe-js/setup-intents.d.ts +149 -135
- package/types/stripe-js/stripe.d.ts +1070 -0
- package/types/stripe-js/token-and-sources.d.ts +80 -80
- package/types/utils.d.ts +2 -0
- package/types/api/BankAccounts.d.ts +0 -63
- package/types/api/Cards.d.ts +0 -130
- package/types/api/PaymentIntents.d.ts +0 -329
- package/types/api/PaymentMethods.d.ts +0 -349
- package/types/api/SetupIntents.d.ts +0 -184
- package/types/api/Sources.d.ts +0 -1045
- package/types/api/Tokens.d.ts +0 -632
- package/types/api/VerificationSessions.d.ts +0 -11
- package/types/stripe-js/elements.d.ts +0 -604
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
declare module '@stripe/stripe-js' {
|
|
2
|
-
/**
|
|
3
|
-
* The PaymentIntent object.
|
|
4
|
-
*/
|
|
5
|
-
interface PaymentIntent {
|
|
6
|
-
/**
|
|
7
|
-
* Unique identifier for the object.
|
|
8
|
-
*/
|
|
9
|
-
id: string;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* String representing the object's type. Objects of the same type share the same value.
|
|
13
|
-
*/
|
|
14
|
-
object: 'payment_intent';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
|
18
|
-
*/
|
|
19
|
-
amount: number;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Populated when `status` is `canceled`, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.
|
|
23
|
-
*/
|
|
24
|
-
canceled_at: number | null;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Reason for cancellation of this PaymentIntent, either user-provided (`duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned`) or generated by Stripe internally (`failed_invoice`, `void_invoice`, or `automatic`).
|
|
28
|
-
*/
|
|
29
|
-
cancellation_reason: PaymentIntent.CancellationReason | null;
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Controls when the funds will be captured from the customer's account.
|
|
33
|
-
*/
|
|
34
|
-
capture_method: PaymentIntent.CaptureMethod;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key.
|
|
38
|
-
*
|
|
39
|
-
* The client secret can be used to complete a payment from your frontend. It should not be stored, logged, embedded in URLs, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
|
|
40
|
-
*
|
|
41
|
-
* Refer to our docs to [accept a payment](https://stripe.com/docs/payments/accept-a-payment) and learn about how `client_secret` should be handled.
|
|
42
|
-
*/
|
|
43
|
-
client_secret: string | null;
|
|
44
|
-
|
|
45
|
-
confirmation_method: PaymentIntent.ConfirmationMethod;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
49
|
-
*/
|
|
50
|
-
created: number;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
54
|
-
*/
|
|
55
|
-
currency: string;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
59
|
-
*/
|
|
60
|
-
description: string | null;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
|
|
64
|
-
*/
|
|
65
|
-
last_payment_error: PaymentIntent.LastPaymentError | null;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
69
|
-
*/
|
|
70
|
-
livemode: boolean;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.
|
|
74
|
-
*/
|
|
75
|
-
next_action: PaymentIntent.NextAction | null;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* ID of the payment method used in this PaymentIntent.
|
|
79
|
-
*/
|
|
80
|
-
payment_method: string | null;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* The list of payment method types (e.g. card) that this PaymentIntent is allowed to use.
|
|
84
|
-
*/
|
|
85
|
-
payment_method_types: Array<string>;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Email address that the receipt for the resulting payment will be sent to.
|
|
89
|
-
*/
|
|
90
|
-
receipt_email: string | null;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
94
|
-
*
|
|
95
|
-
* If present, the payment method used with this PaymentIntent can be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer, even after the transaction completes.
|
|
96
|
-
*
|
|
97
|
-
* For more, learn to [save card details after a payment](https://stripe.com/docs/payments/save-after-payment).
|
|
98
|
-
*
|
|
99
|
-
* Stripe uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules. For example, if your customer is impacted by [SCA](https://stripe.com/docs/strong-customer-authentication), using `off_session` will ensure that they are authenticated while processing this PaymentIntent. You will then be able to collect [off-session payments](https://stripe.com/docs/payments/cards/charging-saved-cards#off-session-payments-with-saved-cards) for this customer.
|
|
100
|
-
*/
|
|
101
|
-
setup_future_usage: PaymentIntent.SetupFutureUsage | null;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Shipping information for this PaymentIntent.
|
|
105
|
-
*/
|
|
106
|
-
shipping: PaymentIntent.Shipping | null;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. Read more about each PaymentIntent [status](https://stripe.com/docs/payments/intents#intent-statuses).
|
|
110
|
-
*/
|
|
111
|
-
status: PaymentIntent.Status;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
namespace PaymentIntent {
|
|
115
|
-
type CancellationReason =
|
|
116
|
-
| 'abandoned'
|
|
117
|
-
| 'automatic'
|
|
118
|
-
| 'duplicate'
|
|
119
|
-
| 'failed_invoice'
|
|
120
|
-
| 'fraudulent'
|
|
121
|
-
| 'requested_by_customer'
|
|
122
|
-
| 'void_invoice';
|
|
123
|
-
|
|
124
|
-
type CaptureMethod = 'automatic' | 'manual';
|
|
125
|
-
|
|
126
|
-
type ConfirmationMethod = 'automatic' | 'manual';
|
|
127
|
-
|
|
128
|
-
interface LastPaymentError {
|
|
129
|
-
/**
|
|
130
|
-
* For card errors, the ID of the failed charge.
|
|
131
|
-
*/
|
|
132
|
-
charge?: string;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* For some errors that could be handled programmatically, a short string indicating the [error code](https://stripe.com/docs/error-codes) reported.
|
|
136
|
-
*/
|
|
137
|
-
code?: string;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://stripe.com/docs/declines#issuer-declines) if they provide one.
|
|
141
|
-
*/
|
|
142
|
-
decline_code?: string;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* A URL to more information about the [error code](https://stripe.com/docs/error-codes) reported.
|
|
146
|
-
*/
|
|
147
|
-
doc_url?: string;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
|
|
151
|
-
*/
|
|
152
|
-
message?: string;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
|
|
156
|
-
*/
|
|
157
|
-
param?: string;
|
|
158
|
-
|
|
159
|
-
payment_method?: PaymentMethod;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* The type of error returned. One of `api_connection_error`, `api_error`, `authentication_error`, `card_error`, `idempotency_error`, `invalid_request_error`, or `rate_limit_error`
|
|
163
|
-
*/
|
|
164
|
-
type: LastPaymentError.Type;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
namespace LastPaymentError {
|
|
168
|
-
type Type =
|
|
169
|
-
| 'api_connection_error'
|
|
170
|
-
| 'api_error'
|
|
171
|
-
| 'authentication_error'
|
|
172
|
-
| 'card_error'
|
|
173
|
-
| 'idempotency_error'
|
|
174
|
-
| 'invalid_request_error'
|
|
175
|
-
| 'rate_limit_error';
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
interface NextAction {
|
|
179
|
-
redirect_to_url?: NextAction.RedirectToUrl;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Type of the next action to perform, one of `redirect_to_url`, `use_stripe_sdk` or `wechat_pay_display_qr_code`.
|
|
183
|
-
*/
|
|
184
|
-
type: string;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Wechat Pay display qrcode
|
|
188
|
-
*/
|
|
189
|
-
wechat_pay_display_qr_code?: NextAction.WechatPayDisplayQrCode;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
namespace NextAction {
|
|
193
|
-
interface RedirectToUrl {
|
|
194
|
-
/**
|
|
195
|
-
* If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
|
|
196
|
-
*/
|
|
197
|
-
return_url: string | null;
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* The URL you must redirect your customer to in order to authenticate the payment.
|
|
201
|
-
*/
|
|
202
|
-
url: string | null;
|
|
203
|
-
}
|
|
204
|
-
interface WechatPayDisplayQrCode {
|
|
205
|
-
/**
|
|
206
|
-
* Render and display `paymentIntent.next_action.wechat_pay_display_qr_code.data` as a QR code on your checkout page.
|
|
207
|
-
*/
|
|
208
|
-
data: string;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Use `paymentIntent.next_action.wechat_pay_display_qr_code.image_data_url` as an image source.
|
|
212
|
-
*/
|
|
213
|
-
image_data_url: string;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
type SetupFutureUsage = 'off_session' | 'on_session';
|
|
218
|
-
|
|
219
|
-
interface Shipping {
|
|
220
|
-
address?: Address;
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
|
|
224
|
-
*/
|
|
225
|
-
carrier?: string | null;
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Recipient name.
|
|
229
|
-
*/
|
|
230
|
-
name?: string | null;
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Recipient phone (including extension).
|
|
234
|
-
*/
|
|
235
|
-
phone?: string | null;
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
|
|
239
|
-
*/
|
|
240
|
-
tracking_number?: string | null;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
type Status =
|
|
244
|
-
| 'canceled'
|
|
245
|
-
| 'processing'
|
|
246
|
-
| 'requires_action'
|
|
247
|
-
| 'requires_capture'
|
|
248
|
-
| 'requires_confirmation'
|
|
249
|
-
| 'requires_payment_method'
|
|
250
|
-
| 'succeeded';
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
interface PaymentIntentConfirmParams {
|
|
254
|
-
/**
|
|
255
|
-
* This hash contains details about the Mandate to create
|
|
256
|
-
*/
|
|
257
|
-
mandate_data?: {[k: string]: any};
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* Email address that the receipt for the resulting payment will be sent to.
|
|
261
|
-
*/
|
|
262
|
-
receipt_email?: string | '';
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
|
|
266
|
-
* If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme.
|
|
267
|
-
* This parameter is only used for cards and other redirect-based payment methods.
|
|
268
|
-
*/
|
|
269
|
-
return_url?: string;
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* If the PaymentIntent has a `payment_method` and a `customer` or if you're attaching a payment method to the PaymentIntent in this request, you can pass `save_payment_method=true` to save the payment method to the customer. Defaults to `false`.
|
|
273
|
-
*
|
|
274
|
-
* If the payment method is already saved to a customer, this does nothing. If this type of payment method cannot be saved to a customer, the request will error.
|
|
275
|
-
*
|
|
276
|
-
* _Note that saving a payment method using this parameter does not guarantee that the payment method can be charged._ To ensure that only payment methods which can be charged are saved to a customer, you can [manually save](https://stripe.com/docs/api/customers/create#create_customer-source) the payment method in response to the [`payment_intent.succeeded` webhook](https://stripe.com/docs/api/events/types#event_types-payment_intent.succeeded).
|
|
277
|
-
*/
|
|
278
|
-
save_payment_method?: boolean;
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
282
|
-
*
|
|
283
|
-
* If present, the payment method used with this PaymentIntent can be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer, even after the transaction completes.
|
|
284
|
-
*
|
|
285
|
-
* Use `on_session` if you intend to only reuse the payment method when your customer is present in your checkout flow. Use `off_session` if your customer may or may not be in your checkout flow.
|
|
286
|
-
*
|
|
287
|
-
* Stripe uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules. For example, if your customer is impacted by [SCA](https://stripe.com/docs/strong-customer-authentication), using `off_session` will ensure that they are authenticated while processing this PaymentIntent. You will then be able to collect [off-session payments](https://stripe.com/docs/payments/cards/charging-saved-cards#off-session-payments-with-saved-cards) for this customer.
|
|
288
|
-
*
|
|
289
|
-
* If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`.
|
|
290
|
-
*/
|
|
291
|
-
setup_future_usage?: PaymentIntentConfirmParams.SetupFutureUsage | null;
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Shipping information for this PaymentIntent.
|
|
295
|
-
*/
|
|
296
|
-
shipping?: PaymentIntentConfirmParams.Shipping | null;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
namespace PaymentIntentConfirmParams {
|
|
300
|
-
type SetupFutureUsage = 'off_session' | 'on_session';
|
|
301
|
-
|
|
302
|
-
interface Shipping {
|
|
303
|
-
/**
|
|
304
|
-
* Shipping address.
|
|
305
|
-
*/
|
|
306
|
-
address: AddressParam;
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
|
|
310
|
-
*/
|
|
311
|
-
carrier?: string;
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* Recipient name.
|
|
315
|
-
*/
|
|
316
|
-
name: string;
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* Recipient phone (including extension).
|
|
320
|
-
*/
|
|
321
|
-
phone?: string;
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
|
|
325
|
-
*/
|
|
326
|
-
tracking_number?: string;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
@@ -1,349 +0,0 @@
|
|
|
1
|
-
declare module '@stripe/stripe-js' {
|
|
2
|
-
/**
|
|
3
|
-
* The PaymentMethod object.
|
|
4
|
-
*/
|
|
5
|
-
interface PaymentMethod {
|
|
6
|
-
/**
|
|
7
|
-
* Unique identifier for the object.
|
|
8
|
-
*/
|
|
9
|
-
id: string;
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* String representing the object's type. Objects of the same type share the same value.
|
|
13
|
-
*/
|
|
14
|
-
object: 'payment_method';
|
|
15
|
-
|
|
16
|
-
billing_details: PaymentMethod.BillingDetails;
|
|
17
|
-
|
|
18
|
-
card?: PaymentMethod.Card;
|
|
19
|
-
|
|
20
|
-
card_present?: PaymentMethod.CardPresent;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
24
|
-
*/
|
|
25
|
-
created: number;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
|
|
29
|
-
*/
|
|
30
|
-
customer: string | null;
|
|
31
|
-
|
|
32
|
-
eps?: PaymentMethod.Eps;
|
|
33
|
-
|
|
34
|
-
fpx?: PaymentMethod.Fpx;
|
|
35
|
-
|
|
36
|
-
grabpay?: PaymentMethod.GrabPay;
|
|
37
|
-
|
|
38
|
-
ideal?: PaymentMethod.Ideal;
|
|
39
|
-
|
|
40
|
-
p24?: PaymentMethod.P24;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
44
|
-
*/
|
|
45
|
-
livemode: boolean;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
49
|
-
*/
|
|
50
|
-
metadata: Metadata;
|
|
51
|
-
|
|
52
|
-
sepa_debit?: PaymentMethod.SepaDebit;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
|
56
|
-
*/
|
|
57
|
-
type: string;
|
|
58
|
-
|
|
59
|
-
affirm?: PaymentMethod.Affirm;
|
|
60
|
-
|
|
61
|
-
afterpay_clearpay?: PaymentMethod.AfterpayClearpay;
|
|
62
|
-
|
|
63
|
-
acss_debit?: PaymentMethod.AcssDebit;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
namespace PaymentMethod {
|
|
67
|
-
interface AuBecsDebit {
|
|
68
|
-
/**
|
|
69
|
-
* Bank State Branch
|
|
70
|
-
*/
|
|
71
|
-
bsb_number: string | null;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
75
|
-
*/
|
|
76
|
-
fingerprint: string | null;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Last four characters of the account number.
|
|
80
|
-
*/
|
|
81
|
-
last4: string | null;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
interface BillingDetails {
|
|
85
|
-
/**
|
|
86
|
-
* Billing address.
|
|
87
|
-
*/
|
|
88
|
-
address: Address | null;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Email address.
|
|
92
|
-
*/
|
|
93
|
-
email: string | null;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Full name.
|
|
97
|
-
*/
|
|
98
|
-
name: string | null;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Billing phone number (including extension).
|
|
102
|
-
*/
|
|
103
|
-
phone: string | null;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
interface Card {
|
|
107
|
-
/**
|
|
108
|
-
* Card brand. Can be `amex`, `diners`, `discover`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
109
|
-
*/
|
|
110
|
-
brand: string;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Checks on Card address and CVC if provided.
|
|
114
|
-
*/
|
|
115
|
-
checks: Card.Checks | null;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
119
|
-
*/
|
|
120
|
-
country: string | null;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Two-digit number representing the card's expiration month.
|
|
124
|
-
*/
|
|
125
|
-
exp_month: number;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Four-digit number representing the card's expiration year.
|
|
129
|
-
*/
|
|
130
|
-
exp_year: number;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number.
|
|
134
|
-
*/
|
|
135
|
-
fingerprint?: string | null;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
|
139
|
-
*/
|
|
140
|
-
funding: string;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* The last four digits of the card.
|
|
144
|
-
*/
|
|
145
|
-
last4: string;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Contains details on how this Card maybe be used for 3D Secure authentication.
|
|
149
|
-
*/
|
|
150
|
-
three_d_secure_usage: Card.ThreeDSecureUsage | null;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* If this Card is part of a card wallet, this contains the details of the card wallet.
|
|
154
|
-
*/
|
|
155
|
-
wallet: null | {[k: string]: any};
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
namespace Card {
|
|
159
|
-
interface Checks {
|
|
160
|
-
/**
|
|
161
|
-
* If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
162
|
-
*/
|
|
163
|
-
address_line1_check: string | null;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
167
|
-
*/
|
|
168
|
-
address_postal_code_check: string | null;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
172
|
-
*/
|
|
173
|
-
cvc_check: string | null;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
interface ThreeDSecureUsage {
|
|
177
|
-
/**
|
|
178
|
-
* Whether 3D Secure is supported on this card.
|
|
179
|
-
*/
|
|
180
|
-
supported: boolean;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
interface CardPresent {}
|
|
185
|
-
|
|
186
|
-
interface Eps {
|
|
187
|
-
/**
|
|
188
|
-
* The customer's bank.
|
|
189
|
-
*/
|
|
190
|
-
bank: string;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
interface Fpx {
|
|
194
|
-
/**
|
|
195
|
-
* The customer's bank.
|
|
196
|
-
*/
|
|
197
|
-
bank: string;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
interface GrabPay {}
|
|
201
|
-
|
|
202
|
-
interface Ideal {
|
|
203
|
-
/**
|
|
204
|
-
* The customer's bank, if provided.
|
|
205
|
-
*/
|
|
206
|
-
bank: string | null;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* The Bank Identifier Code of the customer's bank, if the bank was provided.
|
|
210
|
-
*/
|
|
211
|
-
bic: string | null;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
interface P24 {
|
|
215
|
-
/**
|
|
216
|
-
* The customer's bank.
|
|
217
|
-
*/
|
|
218
|
-
bank: string;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
interface SepaDebit {
|
|
222
|
-
/**
|
|
223
|
-
* Bank code of bank associated with the bank account.
|
|
224
|
-
*/
|
|
225
|
-
bank_code: string | null;
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Branch code of bank associated with the bank account.
|
|
229
|
-
*/
|
|
230
|
-
branch_code: string | null;
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* Two-letter ISO code representing the country the bank account is located in.
|
|
234
|
-
*/
|
|
235
|
-
country: string | null;
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
239
|
-
*/
|
|
240
|
-
fingerprint: string | null;
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* Last four characters of the IBAN.
|
|
244
|
-
*/
|
|
245
|
-
last4: string | null;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
interface Affirm {}
|
|
249
|
-
|
|
250
|
-
interface AfterpayClearpay {}
|
|
251
|
-
|
|
252
|
-
interface AcssDebit {
|
|
253
|
-
/**
|
|
254
|
-
* Customer’s bank account number.
|
|
255
|
-
*/
|
|
256
|
-
account_number: string;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Institution number of the customer’s bank.
|
|
260
|
-
*/
|
|
261
|
-
institution_number: string;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Transit number of the customer’s bank.
|
|
265
|
-
*/
|
|
266
|
-
transit_number: string;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
interface PaymentMethodCreateParams {
|
|
271
|
-
/**
|
|
272
|
-
* Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
|
273
|
-
*/
|
|
274
|
-
billing_details?: PaymentMethodCreateParams.BillingDetails;
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
278
|
-
*/
|
|
279
|
-
metadata?: MetadataParam;
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* The PaymentMethod to share.
|
|
283
|
-
*/
|
|
284
|
-
payment_method?: string;
|
|
285
|
-
|
|
286
|
-
/**
|
|
287
|
-
* The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type. Required unless `payment_method` is specified (see the [Cloning PaymentMethods](https://stripe.com/docs/payments/payment-methods/connect#cloning-payment-methods) guide)
|
|
288
|
-
*/
|
|
289
|
-
type?: string;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
namespace PaymentMethodCreateParams {
|
|
293
|
-
interface BillingDetails {
|
|
294
|
-
/**
|
|
295
|
-
* Billing address.
|
|
296
|
-
*/
|
|
297
|
-
address?: BillingDetails.Address;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Email address.
|
|
301
|
-
*/
|
|
302
|
-
email?: string;
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Full name.
|
|
306
|
-
*/
|
|
307
|
-
name?: string;
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Billing phone number (including extension).
|
|
311
|
-
*/
|
|
312
|
-
phone?: string;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
namespace BillingDetails {
|
|
316
|
-
interface Address {
|
|
317
|
-
/**
|
|
318
|
-
* City, district, suburb, town, or village.
|
|
319
|
-
*/
|
|
320
|
-
city?: string;
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
324
|
-
*/
|
|
325
|
-
country?: string;
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Address line 1 (e.g., street, PO Box, or company name).
|
|
329
|
-
*/
|
|
330
|
-
line1?: string;
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Address line 2 (e.g., apartment, suite, unit, or building).
|
|
334
|
-
*/
|
|
335
|
-
line2?: string;
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* ZIP or postal code.
|
|
339
|
-
*/
|
|
340
|
-
postal_code?: string;
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
* State, county, province, or region.
|
|
344
|
-
*/
|
|
345
|
-
state?: string;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
}
|