stripe 16.7.0 → 16.8.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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 16.8.0 - 2024-08-15
4
+ * [#2155](https://github.com/stripe/stripe-node/pull/2155) Update generated code
5
+ * Add support for `authorization_code` on `Charge.payment_method_details.card`
6
+ * Add support for `wallet` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present`
7
+ * Add support for `mandate_options` on `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, and `PaymentIntentUpdateParams.payment_method_options.bacs_debit`
8
+ * Add support for `bacs_debit` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options`
9
+ * Add support for `chips` on `Treasury.OutboundPayment.tracking_details.us_domestic_wire`, `Treasury.OutboundPaymentUpdateParams.testHelpers.tracking_details.us_domestic_wire`, `Treasury.OutboundTransfer.tracking_details.us_domestic_wire`, and `Treasury.OutboundTransferUpdateParams.testHelpers.tracking_details.us_domestic_wire`
10
+ * Change type of `Treasury.OutboundPayment.tracking_details.us_domestic_wire.imad` and `Treasury.OutboundTransfer.tracking_details.us_domestic_wire.imad` from `string` to `string | null`
11
+
3
12
  ## 16.7.0 - 2024-08-08
4
13
  * [#2147](https://github.com/stripe/stripe-node/pull/2147) Update generated code
5
14
  * Add support for `activate`, `archive`, `create`, `deactivate`, `list`, and `retrieve` methods on resource `Billing.Alert`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 16.7.0
1
+ 16.8.0
@@ -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 = '16.7.0';
37
+ Stripe.PACKAGE_VERSION = '16.8.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;
@@ -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 = '16.7.0';
34
+ Stripe.PACKAGE_VERSION = '16.8.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "16.7.0",
3
+ "version": "16.8.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -984,7 +984,7 @@ declare module 'stripe' {
984
984
 
985
985
  interface Documents {
986
986
  /**
987
- * One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a voided check.
987
+ * One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
988
988
  */
989
989
  bank_account_ownership_verification?: Documents.BankAccountOwnershipVerification;
990
990
 
@@ -2563,7 +2563,7 @@ declare module 'stripe' {
2563
2563
 
2564
2564
  interface Documents {
2565
2565
  /**
2566
- * One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a voided check.
2566
+ * One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
2567
2567
  */
2568
2568
  bank_account_ownership_verification?: Documents.BankAccountOwnershipVerification;
2569
2569
 
@@ -3244,7 +3244,7 @@ declare module 'stripe' {
3244
3244
 
3245
3245
  interface AccountCreatePersonParams {
3246
3246
  /**
3247
- * Details on the legal guardian's acceptance of the required Stripe agreements.
3247
+ * Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
3248
3248
  */
3249
3249
  additional_tos_acceptances?: AccountCreatePersonParams.AdditionalTosAcceptances;
3250
3250
 
@@ -3757,7 +3757,7 @@ declare module 'stripe' {
3757
3757
 
3758
3758
  interface Documents {
3759
3759
  /**
3760
- * One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a voided check.
3760
+ * One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a check.
3761
3761
  */
3762
3762
  bank_account_ownership_verification?: Documents.BankAccountOwnershipVerification;
3763
3763
  }
@@ -3774,7 +3774,7 @@ declare module 'stripe' {
3774
3774
 
3775
3775
  interface AccountUpdatePersonParams {
3776
3776
  /**
3777
- * Details on the legal guardian's acceptance of the required Stripe agreements.
3777
+ * Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
3778
3778
  */
3779
3779
  additional_tos_acceptances?: AccountUpdatePersonParams.AdditionalTosAcceptances;
3780
3780
 
@@ -4150,7 +4150,7 @@ declare module 'stripe' {
4150
4150
  *
4151
4151
  * Test-mode accounts can be deleted at any time.
4152
4152
  *
4153
- * Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balanace_object) are zero.
4153
+ * Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balance_object) are zero.
4154
4154
  *
4155
4155
  * If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
4156
4156
  */
@@ -209,7 +209,7 @@ declare module 'stripe' {
209
209
  source: Stripe.CustomerSource | null;
210
210
 
211
211
  /**
212
- * The transfer ID which created this charge. Only present if the charge came from another Stripe account. [See the Connect documentation](https://stripe.com/docs/connect/destination-charges) for details.
212
+ * The transfer ID which created this charge. Only present if the charge came from another Stripe account. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details.
213
213
  */
214
214
  source_transfer: string | Stripe.Transfer | null;
215
215
 
@@ -219,7 +219,7 @@ declare module 'stripe' {
219
219
  statement_descriptor: string | null;
220
220
 
221
221
  /**
222
- * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
222
+ * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
223
223
  */
224
224
  statement_descriptor_suffix: string | null;
225
225
 
@@ -703,6 +703,11 @@ declare module 'stripe' {
703
703
  */
704
704
  amount_authorized: number | null;
705
705
 
706
+ /**
707
+ * Authorization code on the charge.
708
+ */
709
+ authorization_code: string | null;
710
+
706
711
  /**
707
712
  * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
708
713
  */
@@ -1172,10 +1177,7 @@ declare module 'stripe' {
1172
1177
  network: string | null;
1173
1178
 
1174
1179
  /**
1175
- * This is used by the financial networks to identify a transaction.
1176
- * Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data.
1177
- * The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD).
1178
- * This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
1180
+ * This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
1179
1181
  */
1180
1182
  network_transaction_id: string | null;
1181
1183
 
@@ -1203,6 +1205,8 @@ declare module 'stripe' {
1203
1205
  * A collection of fields required to be displayed on receipts. Only required for EMV transactions.
1204
1206
  */
1205
1207
  receipt: CardPresent.Receipt | null;
1208
+
1209
+ wallet?: CardPresent.Wallet;
1206
1210
  }
1207
1211
 
1208
1212
  namespace CardPresent {
@@ -1275,6 +1279,17 @@ declare module 'stripe' {
1275
1279
  namespace Receipt {
1276
1280
  type AccountType = 'checking' | 'credit' | 'prepaid' | 'unknown';
1277
1281
  }
1282
+
1283
+ interface Wallet {
1284
+ /**
1285
+ * The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
1286
+ */
1287
+ type: Wallet.Type;
1288
+ }
1289
+
1290
+ namespace Wallet {
1291
+ type Type = 'apple_pay' | 'google_pay' | 'samsung_pay' | 'unknown';
1292
+ }
1278
1293
  }
1279
1294
 
1280
1295
  interface Cashapp {
@@ -1559,10 +1574,7 @@ declare module 'stripe' {
1559
1574
  network: string | null;
1560
1575
 
1561
1576
  /**
1562
- * This is used by the financial networks to identify a transaction.
1563
- * Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data.
1564
- * The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD).
1565
- * This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
1577
+ * This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
1566
1578
  */
1567
1579
  network_transaction_id: string | null;
1568
1580
 
@@ -78,7 +78,7 @@ declare module 'stripe' {
78
78
  statement_descriptor?: string;
79
79
 
80
80
  /**
81
- * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
81
+ * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
82
82
  */
83
83
  statement_descriptor_suffix?: string;
84
84
 
@@ -301,7 +301,7 @@ declare module 'stripe' {
301
301
  statement_descriptor?: string;
302
302
 
303
303
  /**
304
- * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
304
+ * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
305
305
  */
306
306
  statement_descriptor_suffix?: string;
307
307
 
@@ -25,7 +25,7 @@ declare module 'stripe' {
25
25
  billing_address_collection?: SessionCreateParams.BillingAddressCollection;
26
26
 
27
27
  /**
28
- * If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website.
28
+ * If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is `embedded`.
29
29
  */
30
30
  cancel_url?: string;
31
31
 
@@ -563,10 +563,7 @@ declare module 'stripe' {
563
563
  network: string | null;
564
564
 
565
565
  /**
566
- * This is used by the financial networks to identify a transaction.
567
- * Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data.
568
- * The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD).
569
- * This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
566
+ * This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
570
567
  */
571
568
  network_transaction_id: string | null;
572
569
 
@@ -594,6 +591,8 @@ declare module 'stripe' {
594
591
  * A collection of fields required to be displayed on receipts. Only required for EMV transactions.
595
592
  */
596
593
  receipt: CardPresent.Receipt | null;
594
+
595
+ wallet?: CardPresent.Wallet;
597
596
  }
598
597
 
599
598
  namespace CardPresent {
@@ -670,6 +669,21 @@ declare module 'stripe' {
670
669
  | 'prepaid'
671
670
  | 'unknown';
672
671
  }
672
+
673
+ interface Wallet {
674
+ /**
675
+ * The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
676
+ */
677
+ type: Wallet.Type;
678
+ }
679
+
680
+ namespace Wallet {
681
+ type Type =
682
+ | 'apple_pay'
683
+ | 'google_pay'
684
+ | 'samsung_pay'
685
+ | 'unknown';
686
+ }
673
687
  }
674
688
  }
675
689
  }
@@ -867,6 +881,8 @@ declare module 'stripe' {
867
881
  * How card details were read in this transaction.
868
882
  */
869
883
  read_method: CardPresent.ReadMethod | null;
884
+
885
+ wallet?: CardPresent.Wallet;
870
886
  }
871
887
 
872
888
  namespace CardPresent {
@@ -900,6 +916,17 @@ declare module 'stripe' {
900
916
  | 'contactless_magstripe_mode'
901
917
  | 'magnetic_stripe_fallback'
902
918
  | 'magnetic_stripe_track2';
919
+
920
+ interface Wallet {
921
+ /**
922
+ * The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
923
+ */
924
+ type: Wallet.Type;
925
+ }
926
+
927
+ namespace Wallet {
928
+ type Type = 'apple_pay' | 'google_pay' | 'samsung_pay' | 'unknown';
929
+ }
903
930
  }
904
931
 
905
932
  interface Cashapp {
@@ -102,7 +102,7 @@ declare module 'stripe' {
102
102
  *
103
103
  * Payment methods attached to other Customers cannot be used with this PaymentIntent.
104
104
  *
105
- * If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
105
+ * If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
106
106
  */
107
107
  customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;
108
108
 
@@ -212,7 +212,7 @@ declare module 'stripe' {
212
212
  statement_descriptor: string | null;
213
213
 
214
214
  /**
215
- * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
215
+ * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
216
216
  */
217
217
  statement_descriptor_suffix: string | null;
218
218
 
@@ -1513,6 +1513,8 @@ declare module 'stripe' {
1513
1513
  }
1514
1514
 
1515
1515
  interface BacsDebit {
1516
+ mandate_options?: BacsDebit.MandateOptions;
1517
+
1516
1518
  /**
1517
1519
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1518
1520
  *
@@ -1526,6 +1528,8 @@ declare module 'stripe' {
1526
1528
  }
1527
1529
 
1528
1530
  namespace BacsDebit {
1531
+ interface MandateOptions {}
1532
+
1529
1533
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
1530
1534
  }
1531
1535
 
@@ -50,7 +50,7 @@ declare module 'stripe' {
50
50
  *
51
51
  * Payment methods attached to other Customers cannot be used with this PaymentIntent.
52
52
  *
53
- * If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
53
+ * If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
54
54
  */
55
55
  customer?: string;
56
56
 
@@ -160,7 +160,7 @@ declare module 'stripe' {
160
160
  statement_descriptor?: string;
161
161
 
162
162
  /**
163
- * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
163
+ * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
164
164
  */
165
165
  statement_descriptor_suffix?: string;
166
166
 
@@ -1243,6 +1243,11 @@ declare module 'stripe' {
1243
1243
  }
1244
1244
 
1245
1245
  interface BacsDebit {
1246
+ /**
1247
+ * Additional fields for Mandate creation
1248
+ */
1249
+ mandate_options?: BacsDebit.MandateOptions;
1250
+
1246
1251
  /**
1247
1252
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1248
1253
  *
@@ -1258,6 +1263,8 @@ declare module 'stripe' {
1258
1263
  }
1259
1264
 
1260
1265
  namespace BacsDebit {
1266
+ interface MandateOptions {}
1267
+
1261
1268
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
1262
1269
  }
1263
1270
 
@@ -2568,7 +2575,7 @@ declare module 'stripe' {
2568
2575
  *
2569
2576
  * Payment methods attached to other Customers cannot be used with this PaymentIntent.
2570
2577
  *
2571
- * If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.corp.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
2578
+ * If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
2572
2579
  */
2573
2580
  customer?: string;
2574
2581
 
@@ -2645,7 +2652,7 @@ declare module 'stripe' {
2645
2652
  statement_descriptor?: string;
2646
2653
 
2647
2654
  /**
2648
- * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
2655
+ * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
2649
2656
  */
2650
2657
  statement_descriptor_suffix?: string;
2651
2658
 
@@ -3651,6 +3658,11 @@ declare module 'stripe' {
3651
3658
  }
3652
3659
 
3653
3660
  interface BacsDebit {
3661
+ /**
3662
+ * Additional fields for Mandate creation
3663
+ */
3664
+ mandate_options?: BacsDebit.MandateOptions;
3665
+
3654
3666
  /**
3655
3667
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3656
3668
  *
@@ -3666,6 +3678,8 @@ declare module 'stripe' {
3666
3678
  }
3667
3679
 
3668
3680
  namespace BacsDebit {
3681
+ interface MandateOptions {}
3682
+
3669
3683
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
3670
3684
  }
3671
3685
 
@@ -5009,7 +5023,7 @@ declare module 'stripe' {
5009
5023
  statement_descriptor?: string;
5010
5024
 
5011
5025
  /**
5012
- * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
5026
+ * Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
5013
5027
  */
5014
5028
  statement_descriptor_suffix?: string;
5015
5029
 
@@ -6171,6 +6185,11 @@ declare module 'stripe' {
6171
6185
  }
6172
6186
 
6173
6187
  interface BacsDebit {
6188
+ /**
6189
+ * Additional fields for Mandate creation
6190
+ */
6191
+ mandate_options?: BacsDebit.MandateOptions;
6192
+
6174
6193
  /**
6175
6194
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
6176
6195
  *
@@ -6186,6 +6205,8 @@ declare module 'stripe' {
6186
6205
  }
6187
6206
 
6188
6207
  namespace BacsDebit {
6208
+ interface MandateOptions {}
6209
+
6189
6210
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
6190
6211
  }
6191
6212
 
@@ -465,10 +465,7 @@ declare module 'stripe' {
465
465
  network: string | null;
466
466
 
467
467
  /**
468
- * This is used by the financial networks to identify a transaction.
469
- * Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data.
470
- * The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD).
471
- * This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
468
+ * This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
472
469
  */
473
470
  network_transaction_id: string | null;
474
471
 
@@ -496,6 +493,8 @@ declare module 'stripe' {
496
493
  * A collection of fields required to be displayed on receipts. Only required for EMV transactions.
497
494
  */
498
495
  receipt: CardPresent.Receipt | null;
496
+
497
+ wallet?: CardPresent.Wallet;
499
498
  }
500
499
 
501
500
  namespace CardPresent {
@@ -572,6 +571,21 @@ declare module 'stripe' {
572
571
  | 'prepaid'
573
572
  | 'unknown';
574
573
  }
574
+
575
+ interface Wallet {
576
+ /**
577
+ * The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
578
+ */
579
+ type: Wallet.Type;
580
+ }
581
+
582
+ namespace Wallet {
583
+ type Type =
584
+ | 'apple_pay'
585
+ | 'google_pay'
586
+ | 'samsung_pay'
587
+ | 'unknown';
588
+ }
575
589
  }
576
590
  }
577
591
  }
@@ -769,6 +783,8 @@ declare module 'stripe' {
769
783
  * How card details were read in this transaction.
770
784
  */
771
785
  read_method: CardPresent.ReadMethod | null;
786
+
787
+ wallet?: CardPresent.Wallet;
772
788
  }
773
789
 
774
790
  namespace CardPresent {
@@ -802,6 +818,17 @@ declare module 'stripe' {
802
818
  | 'contactless_magstripe_mode'
803
819
  | 'magnetic_stripe_fallback'
804
820
  | 'magnetic_stripe_track2';
821
+
822
+ interface Wallet {
823
+ /**
824
+ * The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
825
+ */
826
+ type: Wallet.Type;
827
+ }
828
+
829
+ namespace Wallet {
830
+ type Type = 'apple_pay' | 'google_pay' | 'samsung_pay' | 'unknown';
831
+ }
805
832
  }
806
833
 
807
834
  interface Cashapp {
@@ -836,7 +836,7 @@ declare module 'stripe' {
836
836
  ): ApiListPromise<Stripe.LineItem>;
837
837
 
838
838
  /**
839
- * Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.corp.stripe.com/quotes/overview#quote_pdf)
839
+ * Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
840
840
  */
841
841
  pdf(
842
842
  id: string,
@@ -125,7 +125,7 @@ declare module 'stripe' {
125
125
  on_behalf_of: string | Stripe.Account | null;
126
126
 
127
127
  /**
128
- * ID of the payment method used with this SetupIntent. If the payment method is `card_present` and isn't a digital wallet, then the [generated_card](https://docs.corp.stripe.com/api/setup_attempts/object#setup_attempt_object-payment_method_details-card_present-generated_card) associated with the `latest_attempt` is attached to the Customer instead.
128
+ * ID of the payment method used with this SetupIntent. If the payment method is `card_present` and isn't a digital wallet, then the [generated_card](https://docs.stripe.com/api/setup_attempts/object#setup_attempt_object-payment_method_details-card_present-generated_card) associated with the `latest_attempt` is attached to the Customer instead.
129
129
  */
130
130
  payment_method: string | Stripe.PaymentMethod | null;
131
131
 
@@ -572,6 +572,8 @@ declare module 'stripe' {
572
572
 
573
573
  amazon_pay?: PaymentMethodOptions.AmazonPay;
574
574
 
575
+ bacs_debit?: PaymentMethodOptions.BacsDebit;
576
+
575
577
  card?: PaymentMethodOptions.Card;
576
578
 
577
579
  card_present?: PaymentMethodOptions.CardPresent;
@@ -643,6 +645,14 @@ declare module 'stripe' {
643
645
 
644
646
  interface AmazonPay {}
645
647
 
648
+ interface BacsDebit {
649
+ mandate_options?: BacsDebit.MandateOptions;
650
+ }
651
+
652
+ namespace BacsDebit {
653
+ interface MandateOptions {}
654
+ }
655
+
646
656
  interface Card {
647
657
  /**
648
658
  * Configuration options for setting up an eMandate for cards issued in India.
@@ -795,6 +795,11 @@ declare module 'stripe' {
795
795
  */
796
796
  amazon_pay?: PaymentMethodOptions.AmazonPay;
797
797
 
798
+ /**
799
+ * If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.
800
+ */
801
+ bacs_debit?: PaymentMethodOptions.BacsDebit;
802
+
798
803
  /**
799
804
  * Configuration for any card setup attempted on this SetupIntent.
800
805
  */
@@ -889,6 +894,17 @@ declare module 'stripe' {
889
894
 
890
895
  interface AmazonPay {}
891
896
 
897
+ interface BacsDebit {
898
+ /**
899
+ * Additional fields for Mandate creation
900
+ */
901
+ mandate_options?: BacsDebit.MandateOptions;
902
+ }
903
+
904
+ namespace BacsDebit {
905
+ interface MandateOptions {}
906
+ }
907
+
892
908
  interface Card {
893
909
  /**
894
910
  * Configuration options for setting up an eMandate for cards issued in India.
@@ -1906,6 +1922,11 @@ declare module 'stripe' {
1906
1922
  */
1907
1923
  amazon_pay?: PaymentMethodOptions.AmazonPay;
1908
1924
 
1925
+ /**
1926
+ * If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.
1927
+ */
1928
+ bacs_debit?: PaymentMethodOptions.BacsDebit;
1929
+
1909
1930
  /**
1910
1931
  * Configuration for any card setup attempted on this SetupIntent.
1911
1932
  */
@@ -2000,6 +2021,17 @@ declare module 'stripe' {
2000
2021
 
2001
2022
  interface AmazonPay {}
2002
2023
 
2024
+ interface BacsDebit {
2025
+ /**
2026
+ * Additional fields for Mandate creation
2027
+ */
2028
+ mandate_options?: BacsDebit.MandateOptions;
2029
+ }
2030
+
2031
+ namespace BacsDebit {
2032
+ interface MandateOptions {}
2033
+ }
2034
+
2003
2035
  interface Card {
2004
2036
  /**
2005
2037
  * Configuration options for setting up an eMandate for cards issued in India.
@@ -3066,6 +3098,11 @@ declare module 'stripe' {
3066
3098
  */
3067
3099
  amazon_pay?: PaymentMethodOptions.AmazonPay;
3068
3100
 
3101
+ /**
3102
+ * If this is a `bacs_debit` SetupIntent, this sub-hash contains details about the Bacs Debit payment method options.
3103
+ */
3104
+ bacs_debit?: PaymentMethodOptions.BacsDebit;
3105
+
3069
3106
  /**
3070
3107
  * Configuration for any card setup attempted on this SetupIntent.
3071
3108
  */
@@ -3160,6 +3197,17 @@ declare module 'stripe' {
3160
3197
 
3161
3198
  interface AmazonPay {}
3162
3199
 
3200
+ interface BacsDebit {
3201
+ /**
3202
+ * Additional fields for Mandate creation
3203
+ */
3204
+ mandate_options?: BacsDebit.MandateOptions;
3205
+ }
3206
+
3207
+ namespace BacsDebit {
3208
+ interface MandateOptions {}
3209
+ }
3210
+
3163
3211
  interface Card {
3164
3212
  /**
3165
3213
  * Configuration options for setting up an eMandate for cards issued in India.
@@ -45,6 +45,11 @@ declare module 'stripe' {
45
45
  type Type = 'ach' | 'us_domestic_wire';
46
46
 
47
47
  interface UsDomesticWire {
48
+ /**
49
+ * CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network.
50
+ */
51
+ chips?: string;
52
+
48
53
  /**
49
54
  * IMAD for funds sent over the `us_domestic_wire` network.
50
55
  */
@@ -45,6 +45,11 @@ declare module 'stripe' {
45
45
  type Type = 'ach' | 'us_domestic_wire';
46
46
 
47
47
  interface UsDomesticWire {
48
+ /**
49
+ * CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network.
50
+ */
51
+ chips?: string;
52
+
48
53
  /**
49
54
  * IMAD for funds sent over the `us_domestic_wire` network.
50
55
  */
@@ -582,7 +582,7 @@ declare module 'stripe' {
582
582
 
583
583
  interface Person {
584
584
  /**
585
- * Details on the legal guardian's acceptance of the required Stripe agreements.
585
+ * Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
586
586
  */
587
587
  additional_tos_acceptances?: Person.AdditionalTosAcceptances;
588
588
 
@@ -300,10 +300,15 @@ declare module 'stripe' {
300
300
  type Type = 'ach' | 'us_domestic_wire';
301
301
 
302
302
  interface UsDomesticWire {
303
+ /**
304
+ * CHIPS System Sequence Number (SSN) of the OutboundPayment for payments sent over the `us_domestic_wire` network.
305
+ */
306
+ chips: string | null;
307
+
303
308
  /**
304
309
  * IMAD of the OutboundPayment for payments sent over the `us_domestic_wire` network.
305
310
  */
306
- imad: string;
311
+ imad: string | null;
307
312
 
308
313
  /**
309
314
  * OMAD of the OutboundPayment for payments sent over the `us_domestic_wire` network.
@@ -259,10 +259,15 @@ declare module 'stripe' {
259
259
  type Type = 'ach' | 'us_domestic_wire';
260
260
 
261
261
  interface UsDomesticWire {
262
+ /**
263
+ * CHIPS System Sequence Number (SSN) of the OutboundTransfer for transfers sent over the `us_domestic_wire` network.
264
+ */
265
+ chips: string | null;
266
+
262
267
  /**
263
268
  * IMAD of the OutboundTransfer for transfers sent over the `us_domestic_wire` network.
264
269
  */
265
- imad: string;
270
+ imad: string | null;
266
271
 
267
272
  /**
268
273
  * OMAD of the OutboundTransfer for transfers sent over the `us_domestic_wire` network.