stripe 15.8.0 → 15.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/VERSION +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Accounts.d.ts +4 -2
- package/types/AccountsResource.d.ts +2 -2
- package/types/BankAccounts.d.ts +4 -2
- package/types/Capabilities.d.ts +4 -2
- package/types/Charges.d.ts +1 -1
- package/types/Checkout/Sessions.d.ts +15 -0
- package/types/Checkout/SessionsResource.d.ts +16 -1
- package/types/ConfirmationTokens.d.ts +220 -0
- package/types/EventTypes.d.ts +68 -0
- package/types/Events.d.ts +4 -0
- package/types/InvoicesResource.d.ts +3 -3
- package/types/Issuing/Cards.d.ts +1 -1
- package/types/Issuing/PhysicalBundles.d.ts +1 -1
- package/types/PaymentIntentsResource.d.ts +87 -81
- package/types/PaymentMethods.d.ts +220 -0
- package/types/Persons.d.ts +4 -2
- package/types/WebhookEndpointsResource.d.ts +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 15.9.0 - 2024-05-30
|
|
4
|
+
* [#2095](https://github.com/stripe/stripe-node/pull/2095) Update generated code
|
|
5
|
+
* Add support for new value `verification_requires_additional_proof_of_registration` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code`
|
|
6
|
+
* Add support for `default_value` on `Checkout.Session.custom_fields[].dropdown`, `Checkout.Session.custom_fields[].numeric`, `Checkout.Session.custom_fields[].text`, `Checkout.SessionCreateParams.custom_fields[].dropdown`, `Checkout.SessionCreateParams.custom_fields[].numeric`, and `Checkout.SessionCreateParams.custom_fields[].text`
|
|
7
|
+
* Add support for `generated_from` on `ConfirmationToken.payment_method_preview.card` and `PaymentMethod.card`
|
|
8
|
+
* Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enum `Event.type`
|
|
9
|
+
* Change `Issuing.Card.personalization_design` and `Issuing.PhysicalBundle.features` to be required
|
|
10
|
+
* Add support for new values `en-RO` and `ro-RO` on enums `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`
|
|
11
|
+
* Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
|
12
|
+
|
|
3
13
|
## 15.8.0 - 2024-05-23
|
|
4
14
|
* [#2092](https://github.com/stripe/stripe-node/pull/2092) Update generated code
|
|
5
15
|
* Add support for `external_account_collection` on `AccountSession.components.balances.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.balances.features`, and `AccountSessionCreateParams.components.payouts.features`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
15.
|
|
1
|
+
15.9.0
|
package/cjs/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '15.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '15.9.0';
|
|
38
38
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
39
39
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
40
40
|
Stripe.resources = resources;
|
package/esm/stripe.core.js
CHANGED
|
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
31
31
|
];
|
|
32
32
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
33
33
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
34
|
-
Stripe.PACKAGE_VERSION = '15.
|
|
34
|
+
Stripe.PACKAGE_VERSION = '15.9.0';
|
|
35
35
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
36
36
|
Stripe.StripeResource = StripeResource;
|
|
37
37
|
Stripe.resources = resources;
|
package/package.json
CHANGED
package/types/Accounts.d.ts
CHANGED
|
@@ -957,7 +957,8 @@ declare module 'stripe' {
|
|
|
957
957
|
| 'verification_missing_directors'
|
|
958
958
|
| 'verification_missing_executives'
|
|
959
959
|
| 'verification_missing_owners'
|
|
960
|
-
| 'verification_requires_additional_memorandum_of_associations'
|
|
960
|
+
| 'verification_requires_additional_memorandum_of_associations'
|
|
961
|
+
| 'verification_requires_additional_proof_of_registration';
|
|
961
962
|
}
|
|
962
963
|
}
|
|
963
964
|
|
|
@@ -1122,7 +1123,8 @@ declare module 'stripe' {
|
|
|
1122
1123
|
| 'verification_missing_directors'
|
|
1123
1124
|
| 'verification_missing_executives'
|
|
1124
1125
|
| 'verification_missing_owners'
|
|
1125
|
-
| 'verification_requires_additional_memorandum_of_associations'
|
|
1126
|
+
| 'verification_requires_additional_memorandum_of_associations'
|
|
1127
|
+
| 'verification_requires_additional_proof_of_registration';
|
|
1126
1128
|
}
|
|
1127
1129
|
}
|
|
1128
1130
|
|
|
@@ -88,7 +88,7 @@ declare module 'stripe' {
|
|
|
88
88
|
settings?: AccountCreateParams.Settings;
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
|
-
* Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
|
91
|
+
* Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
|
|
92
92
|
*/
|
|
93
93
|
tos_acceptance?: AccountCreateParams.TosAcceptance;
|
|
94
94
|
|
|
@@ -1566,7 +1566,7 @@ declare module 'stripe' {
|
|
|
1566
1566
|
settings?: AccountUpdateParams.Settings;
|
|
1567
1567
|
|
|
1568
1568
|
/**
|
|
1569
|
-
* Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
|
|
1569
|
+
* Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
|
|
1570
1570
|
*/
|
|
1571
1571
|
tos_acceptance?: AccountUpdateParams.TosAcceptance;
|
|
1572
1572
|
}
|
package/types/BankAccounts.d.ts
CHANGED
|
@@ -250,7 +250,8 @@ declare module 'stripe' {
|
|
|
250
250
|
| 'verification_missing_directors'
|
|
251
251
|
| 'verification_missing_executives'
|
|
252
252
|
| 'verification_missing_owners'
|
|
253
|
-
| 'verification_requires_additional_memorandum_of_associations'
|
|
253
|
+
| 'verification_requires_additional_memorandum_of_associations'
|
|
254
|
+
| 'verification_requires_additional_proof_of_registration';
|
|
254
255
|
}
|
|
255
256
|
}
|
|
256
257
|
|
|
@@ -383,7 +384,8 @@ declare module 'stripe' {
|
|
|
383
384
|
| 'verification_missing_directors'
|
|
384
385
|
| 'verification_missing_executives'
|
|
385
386
|
| 'verification_missing_owners'
|
|
386
|
-
| 'verification_requires_additional_memorandum_of_associations'
|
|
387
|
+
| 'verification_requires_additional_memorandum_of_associations'
|
|
388
|
+
| 'verification_requires_additional_proof_of_registration';
|
|
387
389
|
}
|
|
388
390
|
}
|
|
389
391
|
}
|
package/types/Capabilities.d.ts
CHANGED
|
@@ -205,7 +205,8 @@ declare module 'stripe' {
|
|
|
205
205
|
| 'verification_missing_directors'
|
|
206
206
|
| 'verification_missing_executives'
|
|
207
207
|
| 'verification_missing_owners'
|
|
208
|
-
| 'verification_requires_additional_memorandum_of_associations'
|
|
208
|
+
| 'verification_requires_additional_memorandum_of_associations'
|
|
209
|
+
| 'verification_requires_additional_proof_of_registration';
|
|
209
210
|
}
|
|
210
211
|
}
|
|
211
212
|
|
|
@@ -374,7 +375,8 @@ declare module 'stripe' {
|
|
|
374
375
|
| 'verification_missing_directors'
|
|
375
376
|
| 'verification_missing_executives'
|
|
376
377
|
| 'verification_missing_owners'
|
|
377
|
-
| 'verification_requires_additional_memorandum_of_associations'
|
|
378
|
+
| 'verification_requires_additional_memorandum_of_associations'
|
|
379
|
+
| 'verification_requires_additional_proof_of_registration';
|
|
378
380
|
}
|
|
379
381
|
}
|
|
380
382
|
|
package/types/Charges.d.ts
CHANGED
|
@@ -1613,7 +1613,7 @@ declare module 'stripe' {
|
|
|
1613
1613
|
|
|
1614
1614
|
/**
|
|
1615
1615
|
* Preferred language of the Klarna authorization page that the customer is redirected to.
|
|
1616
|
-
* Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
|
|
1616
|
+
* Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
|
|
1617
1617
|
*/
|
|
1618
1618
|
preferred_locale: string | null;
|
|
1619
1619
|
}
|
|
@@ -604,6 +604,11 @@ declare module 'stripe' {
|
|
|
604
604
|
|
|
605
605
|
namespace CustomField {
|
|
606
606
|
interface Dropdown {
|
|
607
|
+
/**
|
|
608
|
+
* The value that will pre-fill on the payment page.
|
|
609
|
+
*/
|
|
610
|
+
default_value: string | null;
|
|
611
|
+
|
|
607
612
|
/**
|
|
608
613
|
* The options available for the customer to select. Up to 200 options allowed.
|
|
609
614
|
*/
|
|
@@ -642,6 +647,11 @@ declare module 'stripe' {
|
|
|
642
647
|
}
|
|
643
648
|
|
|
644
649
|
interface Numeric {
|
|
650
|
+
/**
|
|
651
|
+
* The value that will pre-fill the field on the payment page.
|
|
652
|
+
*/
|
|
653
|
+
default_value: string | null;
|
|
654
|
+
|
|
645
655
|
/**
|
|
646
656
|
* The maximum character length constraint for the customer's input.
|
|
647
657
|
*/
|
|
@@ -659,6 +669,11 @@ declare module 'stripe' {
|
|
|
659
669
|
}
|
|
660
670
|
|
|
661
671
|
interface Text {
|
|
672
|
+
/**
|
|
673
|
+
* The value that will pre-fill the field on the payment page.
|
|
674
|
+
*/
|
|
675
|
+
default_value: string | null;
|
|
676
|
+
|
|
662
677
|
/**
|
|
663
678
|
* The maximum character length constraint for the customer's input.
|
|
664
679
|
*/
|
|
@@ -421,6 +421,11 @@ declare module 'stripe' {
|
|
|
421
421
|
|
|
422
422
|
namespace CustomField {
|
|
423
423
|
interface Dropdown {
|
|
424
|
+
/**
|
|
425
|
+
* The value that will pre-fill the field on the payment page.Must match a `value` in the `options` array.
|
|
426
|
+
*/
|
|
427
|
+
default_value?: string;
|
|
428
|
+
|
|
424
429
|
/**
|
|
425
430
|
* The options available for the customer to select. Up to 200 options allowed.
|
|
426
431
|
*/
|
|
@@ -454,6 +459,11 @@ declare module 'stripe' {
|
|
|
454
459
|
}
|
|
455
460
|
|
|
456
461
|
interface Numeric {
|
|
462
|
+
/**
|
|
463
|
+
* The value that will pre-fill the field on the payment page.
|
|
464
|
+
*/
|
|
465
|
+
default_value?: string;
|
|
466
|
+
|
|
457
467
|
/**
|
|
458
468
|
* The maximum character length constraint for the customer's input.
|
|
459
469
|
*/
|
|
@@ -466,6 +476,11 @@ declare module 'stripe' {
|
|
|
466
476
|
}
|
|
467
477
|
|
|
468
478
|
interface Text {
|
|
479
|
+
/**
|
|
480
|
+
* The value that will pre-fill the field on the payment page.
|
|
481
|
+
*/
|
|
482
|
+
default_value?: string;
|
|
483
|
+
|
|
469
484
|
/**
|
|
470
485
|
* The maximum character length constraint for the customer's input.
|
|
471
486
|
*/
|
|
@@ -2116,7 +2131,7 @@ declare module 'stripe' {
|
|
|
2116
2131
|
shipping_rate?: string;
|
|
2117
2132
|
|
|
2118
2133
|
/**
|
|
2119
|
-
* Parameters to be passed to Shipping Rate creation for this shipping option
|
|
2134
|
+
* Parameters to be passed to Shipping Rate creation for this shipping option.
|
|
2120
2135
|
*/
|
|
2121
2136
|
shipping_rate_data?: ShippingOption.ShippingRateData;
|
|
2122
2137
|
}
|
|
@@ -357,6 +357,11 @@ declare module 'stripe' {
|
|
|
357
357
|
*/
|
|
358
358
|
funding: string;
|
|
359
359
|
|
|
360
|
+
/**
|
|
361
|
+
* Details of the original PaymentMethod that created this object.
|
|
362
|
+
*/
|
|
363
|
+
generated_from: Card.GeneratedFrom | null;
|
|
364
|
+
|
|
360
365
|
/**
|
|
361
366
|
* Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
|
362
367
|
*/
|
|
@@ -406,6 +411,221 @@ declare module 'stripe' {
|
|
|
406
411
|
cvc_check: string | null;
|
|
407
412
|
}
|
|
408
413
|
|
|
414
|
+
interface GeneratedFrom {
|
|
415
|
+
/**
|
|
416
|
+
* The charge that created this object.
|
|
417
|
+
*/
|
|
418
|
+
charge: string | null;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Transaction-specific details of the payment method used in the payment.
|
|
422
|
+
*/
|
|
423
|
+
payment_method_details: GeneratedFrom.PaymentMethodDetails | null;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* The ID of the SetupAttempt that generated this PaymentMethod, if any.
|
|
427
|
+
*/
|
|
428
|
+
setup_attempt: string | Stripe.SetupAttempt | null;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
namespace GeneratedFrom {
|
|
432
|
+
interface PaymentMethodDetails {
|
|
433
|
+
card_present?: PaymentMethodDetails.CardPresent;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* The type of payment method transaction-specific details from the transaction that generated this `card` payment method. Always `card_present`.
|
|
437
|
+
*/
|
|
438
|
+
type: string;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
namespace PaymentMethodDetails {
|
|
442
|
+
interface CardPresent {
|
|
443
|
+
/**
|
|
444
|
+
* The authorized amount
|
|
445
|
+
*/
|
|
446
|
+
amount_authorized: number | null;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
450
|
+
*/
|
|
451
|
+
brand: string | null;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
|
|
455
|
+
*/
|
|
456
|
+
capture_before?: number;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
|
|
460
|
+
*/
|
|
461
|
+
cardholder_name: string | null;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* 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.
|
|
465
|
+
*/
|
|
466
|
+
country: string | null;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
|
|
470
|
+
*/
|
|
471
|
+
description?: string | null;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Authorization response cryptogram.
|
|
475
|
+
*/
|
|
476
|
+
emv_auth_data: string | null;
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Two-digit number representing the card's expiration month.
|
|
480
|
+
*/
|
|
481
|
+
exp_month: number;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Four-digit number representing the card's expiration year.
|
|
485
|
+
*/
|
|
486
|
+
exp_year: number;
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* 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, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
|
|
490
|
+
*
|
|
491
|
+
* *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
|
|
492
|
+
*/
|
|
493
|
+
fingerprint: string | null;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
|
497
|
+
*/
|
|
498
|
+
funding: string | null;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
|
|
502
|
+
*/
|
|
503
|
+
generated_card: string | null;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
|
507
|
+
*/
|
|
508
|
+
iin?: string | null;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support).
|
|
512
|
+
*/
|
|
513
|
+
incremental_authorization_supported: boolean;
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
|
517
|
+
*/
|
|
518
|
+
issuer?: string | null;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* The last four digits of the card.
|
|
522
|
+
*/
|
|
523
|
+
last4: string | null;
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
|
527
|
+
*/
|
|
528
|
+
network: string | null;
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* Details about payments collected offline.
|
|
532
|
+
*/
|
|
533
|
+
offline: CardPresent.Offline | null;
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* Defines whether the authorized amount can be over-captured or not
|
|
537
|
+
*/
|
|
538
|
+
overcapture_supported: boolean;
|
|
539
|
+
|
|
540
|
+
/**
|
|
541
|
+
* EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
|
|
542
|
+
*/
|
|
543
|
+
preferred_locales: Array<string> | null;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* How card details were read in this transaction.
|
|
547
|
+
*/
|
|
548
|
+
read_method: CardPresent.ReadMethod | null;
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* A collection of fields required to be displayed on receipts. Only required for EMV transactions.
|
|
552
|
+
*/
|
|
553
|
+
receipt: CardPresent.Receipt | null;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
namespace CardPresent {
|
|
557
|
+
interface Offline {
|
|
558
|
+
/**
|
|
559
|
+
* Time at which the payment was collected while offline
|
|
560
|
+
*/
|
|
561
|
+
stored_at: number | null;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
type ReadMethod =
|
|
565
|
+
| 'contact_emv'
|
|
566
|
+
| 'contactless_emv'
|
|
567
|
+
| 'contactless_magstripe_mode'
|
|
568
|
+
| 'magnetic_stripe_fallback'
|
|
569
|
+
| 'magnetic_stripe_track2';
|
|
570
|
+
|
|
571
|
+
interface Receipt {
|
|
572
|
+
/**
|
|
573
|
+
* The type of account being debited or credited
|
|
574
|
+
*/
|
|
575
|
+
account_type?: Receipt.AccountType;
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* EMV tag 9F26, cryptogram generated by the integrated circuit chip.
|
|
579
|
+
*/
|
|
580
|
+
application_cryptogram: string | null;
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Mnenomic of the Application Identifier.
|
|
584
|
+
*/
|
|
585
|
+
application_preferred_name: string | null;
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Identifier for this transaction.
|
|
589
|
+
*/
|
|
590
|
+
authorization_code: string | null;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* EMV tag 8A. A code returned by the card issuer.
|
|
594
|
+
*/
|
|
595
|
+
authorization_response_code: string | null;
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
|
|
599
|
+
*/
|
|
600
|
+
cardholder_verification_method: string | null;
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
|
|
604
|
+
*/
|
|
605
|
+
dedicated_file_name: string | null;
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* The outcome of a series of EMV functions performed by the card reader.
|
|
609
|
+
*/
|
|
610
|
+
terminal_verification_results: string | null;
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* An indication of various EMV functions performed during the transaction.
|
|
614
|
+
*/
|
|
615
|
+
transaction_status_information: string | null;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
namespace Receipt {
|
|
619
|
+
type AccountType =
|
|
620
|
+
| 'checking'
|
|
621
|
+
| 'credit'
|
|
622
|
+
| 'prepaid'
|
|
623
|
+
| 'unknown';
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
409
629
|
interface Networks {
|
|
410
630
|
/**
|
|
411
631
|
* All available networks for the card.
|
package/types/EventTypes.d.ts
CHANGED
|
@@ -112,6 +112,10 @@ declare module 'stripe' {
|
|
|
112
112
|
| IssuingDisputeFundsReinstatedEvent
|
|
113
113
|
| IssuingDisputeSubmittedEvent
|
|
114
114
|
| IssuingDisputeUpdatedEvent
|
|
115
|
+
| IssuingPersonalizationDesignActivatedEvent
|
|
116
|
+
| IssuingPersonalizationDesignDeactivatedEvent
|
|
117
|
+
| IssuingPersonalizationDesignRejectedEvent
|
|
118
|
+
| IssuingPersonalizationDesignUpdatedEvent
|
|
115
119
|
| IssuingTokenCreatedEvent
|
|
116
120
|
| IssuingTokenUpdatedEvent
|
|
117
121
|
| IssuingTransactionCreatedEvent
|
|
@@ -1983,6 +1987,70 @@ declare module 'stripe' {
|
|
|
1983
1987
|
}
|
|
1984
1988
|
}
|
|
1985
1989
|
|
|
1990
|
+
/**
|
|
1991
|
+
* Occurs whenever a personalization design is activated following the activation of the physical bundle that belongs to it.
|
|
1992
|
+
*/
|
|
1993
|
+
interface IssuingPersonalizationDesignActivatedEvent extends EventBase {
|
|
1994
|
+
type: 'issuing_personalization_design.activated';
|
|
1995
|
+
data: IssuingPersonalizationDesignActivatedEvent.Data;
|
|
1996
|
+
}
|
|
1997
|
+
|
|
1998
|
+
namespace IssuingPersonalizationDesignActivatedEvent {
|
|
1999
|
+
interface Data extends Stripe.Event.Data {
|
|
2000
|
+
object: Stripe.Issuing.PersonalizationDesign;
|
|
2001
|
+
|
|
2002
|
+
previous_attributes?: Partial<Stripe.Issuing.PersonalizationDesign>;
|
|
2003
|
+
}
|
|
2004
|
+
}
|
|
2005
|
+
|
|
2006
|
+
/**
|
|
2007
|
+
* Occurs whenever a personalization design is deactivated following the deactivation of the physical bundle that belongs to it.
|
|
2008
|
+
*/
|
|
2009
|
+
interface IssuingPersonalizationDesignDeactivatedEvent extends EventBase {
|
|
2010
|
+
type: 'issuing_personalization_design.deactivated';
|
|
2011
|
+
data: IssuingPersonalizationDesignDeactivatedEvent.Data;
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
namespace IssuingPersonalizationDesignDeactivatedEvent {
|
|
2015
|
+
interface Data extends Stripe.Event.Data {
|
|
2016
|
+
object: Stripe.Issuing.PersonalizationDesign;
|
|
2017
|
+
|
|
2018
|
+
previous_attributes?: Partial<Stripe.Issuing.PersonalizationDesign>;
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
/**
|
|
2023
|
+
* Occurs whenever a personalization design is rejected by design review.
|
|
2024
|
+
*/
|
|
2025
|
+
interface IssuingPersonalizationDesignRejectedEvent extends EventBase {
|
|
2026
|
+
type: 'issuing_personalization_design.rejected';
|
|
2027
|
+
data: IssuingPersonalizationDesignRejectedEvent.Data;
|
|
2028
|
+
}
|
|
2029
|
+
|
|
2030
|
+
namespace IssuingPersonalizationDesignRejectedEvent {
|
|
2031
|
+
interface Data extends Stripe.Event.Data {
|
|
2032
|
+
object: Stripe.Issuing.PersonalizationDesign;
|
|
2033
|
+
|
|
2034
|
+
previous_attributes?: Partial<Stripe.Issuing.PersonalizationDesign>;
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
|
|
2038
|
+
/**
|
|
2039
|
+
* Occurs whenever a personalization design is updated.
|
|
2040
|
+
*/
|
|
2041
|
+
interface IssuingPersonalizationDesignUpdatedEvent extends EventBase {
|
|
2042
|
+
type: 'issuing_personalization_design.updated';
|
|
2043
|
+
data: IssuingPersonalizationDesignUpdatedEvent.Data;
|
|
2044
|
+
}
|
|
2045
|
+
|
|
2046
|
+
namespace IssuingPersonalizationDesignUpdatedEvent {
|
|
2047
|
+
interface Data extends Stripe.Event.Data {
|
|
2048
|
+
object: Stripe.Issuing.PersonalizationDesign;
|
|
2049
|
+
|
|
2050
|
+
previous_attributes?: Partial<Stripe.Issuing.PersonalizationDesign>;
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
|
|
1986
2054
|
/**
|
|
1987
2055
|
* Occurs whenever an issuing digital wallet token is created.
|
|
1988
2056
|
*/
|
package/types/Events.d.ts
CHANGED
|
@@ -143,6 +143,10 @@ declare module 'stripe' {
|
|
|
143
143
|
| 'issuing_dispute.funds_reinstated'
|
|
144
144
|
| 'issuing_dispute.submitted'
|
|
145
145
|
| 'issuing_dispute.updated'
|
|
146
|
+
| 'issuing_personalization_design.activated'
|
|
147
|
+
| 'issuing_personalization_design.deactivated'
|
|
148
|
+
| 'issuing_personalization_design.rejected'
|
|
149
|
+
| 'issuing_personalization_design.updated'
|
|
146
150
|
| 'issuing_token.created'
|
|
147
151
|
| 'issuing_token.updated'
|
|
148
152
|
| 'issuing_transaction.created'
|
|
@@ -1491,7 +1491,7 @@ declare module 'stripe' {
|
|
|
1491
1491
|
schedule_details?: InvoiceCreatePreviewParams.ScheduleDetails;
|
|
1492
1492
|
|
|
1493
1493
|
/**
|
|
1494
|
-
* The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `
|
|
1494
|
+
* The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_details.items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_details.items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions.
|
|
1495
1495
|
*/
|
|
1496
1496
|
subscription?: string;
|
|
1497
1497
|
|
|
@@ -2602,7 +2602,7 @@ declare module 'stripe' {
|
|
|
2602
2602
|
schedule_details?: InvoiceListUpcomingLinesParams.ScheduleDetails;
|
|
2603
2603
|
|
|
2604
2604
|
/**
|
|
2605
|
-
* The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `
|
|
2605
|
+
* The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_details.items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_details.items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions.
|
|
2606
2606
|
*/
|
|
2607
2607
|
subscription?: string;
|
|
2608
2608
|
|
|
@@ -3948,7 +3948,7 @@ declare module 'stripe' {
|
|
|
3948
3948
|
schedule_details?: InvoiceRetrieveUpcomingParams.ScheduleDetails;
|
|
3949
3949
|
|
|
3950
3950
|
/**
|
|
3951
|
-
* The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `
|
|
3951
|
+
* The identifier of the subscription for which you'd like to retrieve the upcoming invoice. If not provided, but a `subscription_details.items` is provided, you will preview creating a subscription with those items. If neither `subscription` nor `subscription_details.items` is provided, you will retrieve the next upcoming invoice from among the customer's subscriptions.
|
|
3952
3952
|
*/
|
|
3953
3953
|
subscription?: string;
|
|
3954
3954
|
|
package/types/Issuing/Cards.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ declare module 'stripe' {
|
|
|
17
17
|
*/
|
|
18
18
|
object: 'issuing.physical_bundle';
|
|
19
19
|
|
|
20
|
-
features
|
|
20
|
+
features: PhysicalBundle.Features;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
23
|
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|