stripe 16.7.0-beta.1 → 16.8.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/VERSION +1 -1
  3. package/cjs/resources/Tax/Calculations.js +4 -0
  4. package/cjs/stripe.core.js +1 -1
  5. package/esm/resources/Tax/Calculations.js +4 -0
  6. package/esm/stripe.core.js +1 -1
  7. package/package.json +1 -1
  8. package/types/AccountSessions.d.ts +30 -0
  9. package/types/Accounts.d.ts +4 -4
  10. package/types/AccountsResource.d.ts +7 -7
  11. package/types/Cards.d.ts +2 -2
  12. package/types/Charges.d.ts +13 -3
  13. package/types/ChargesResource.d.ts +5 -5
  14. package/types/Checkout/Sessions.d.ts +178 -93
  15. package/types/Checkout/SessionsResource.d.ts +192 -103
  16. package/types/ConfirmationTokens.d.ts +22 -0
  17. package/types/CustomerSessions.d.ts +1 -1
  18. package/types/CustomerSessionsResource.d.ts +1 -1
  19. package/types/Identity/VerificationSessions.d.ts +5 -0
  20. package/types/Identity/VerificationSessionsResource.d.ts +7 -0
  21. package/types/Invoices.d.ts +1 -0
  22. package/types/InvoicesResource.d.ts +13 -13
  23. package/types/Orders.d.ts +39 -39
  24. package/types/OrdersResource.d.ts +104 -104
  25. package/types/PaymentIntents.d.ts +126 -125
  26. package/types/PaymentIntentsResource.d.ts +513 -504
  27. package/types/PaymentLinks.d.ts +3 -2
  28. package/types/PaymentLinksResource.d.ts +6 -4
  29. package/types/PaymentMethods.d.ts +22 -0
  30. package/types/PaymentMethodsResource.d.ts +2 -2
  31. package/types/Persons.d.ts +4 -1
  32. package/types/QuoteLines.d.ts +1 -1
  33. package/types/QuotePreviewInvoices.d.ts +1 -0
  34. package/types/SetupAttempts.d.ts +6 -0
  35. package/types/SetupIntents.d.ts +12 -0
  36. package/types/SetupIntentsResource.d.ts +54 -3
  37. package/types/Subscriptions.d.ts +2 -1
  38. package/types/SubscriptionsResource.d.ts +6 -4
  39. package/types/Tax/CalculationsResource.d.ts +20 -0
  40. package/types/Terminal/Readers.d.ts +1 -1
  41. package/types/TestHelpers/ConfirmationTokensResource.d.ts +1 -1
  42. package/types/TestHelpers/Treasury/OutboundPaymentsResource.d.ts +5 -0
  43. package/types/TestHelpers/Treasury/OutboundTransfersResource.d.ts +5 -0
  44. package/types/TransfersResource.d.ts +1 -1
  45. package/types/Treasury/FinancialAccounts.d.ts +3 -0
  46. package/types/Treasury/OutboundPayments.d.ts +6 -1
  47. package/types/Treasury/OutboundTransfers.d.ts +6 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 16.8.0-beta.1 - 2024-08-12
4
+ * [#2148](https://github.com/stripe/stripe-node/pull/2148) Update generated code for beta
5
+ * Add support for `capital_financing_application` and `capital_financing` on `AccountSession.components`
6
+ * Add support for `payto` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options`
7
+ * Add support for new value `payto` on enum `Checkout.SessionCreateParams.payment_method_types[]`
8
+ * Add support for new value `custom` on enums `Checkout.Session.ui_mode` and `Checkout.SessionCreateParams.ui_mode`
9
+ * ⚠️ Remove support for `risk_correlation_id` on `PaymentIntent.payment_method_options.rechnung`, `PaymentIntentConfirmParams.payment_method_options.rechnung`, `PaymentIntentCreateParams.payment_method_options.rechnung`, and `PaymentIntentUpdateParams.payment_method_options.rechnung`
10
+ * Add support for new value `payto` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
11
+ * Change `QuoteLine.cancel_subscription_schedule` to be required
12
+
13
+ ## 16.7.0 - 2024-08-08
14
+ * [#2147](https://github.com/stripe/stripe-node/pull/2147) Update generated code
15
+ * Add support for `activate`, `archive`, `create`, `deactivate`, `list`, and `retrieve` methods on resource `Billing.Alert`
16
+ * Add support for `retrieve` method on resource `Tax.Calculation`
17
+ * Add support for new value `invalid_mandate_reference_prefix_format` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
18
+ * Add support for `type` on `Charge.payment_method_details.card_present.offline`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present.offline`, `PaymentMethod.card.generated_from.payment_method_details.card_present.offline`, and `SetupAttempt.payment_method_details.card_present.offline`
19
+ * Add support for `offline` on `ConfirmationToken.payment_method_preview.card_present` and `PaymentMethod.card_present`
20
+ * Add support for `related_customer` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionListParams`, and `Identity.VerificationSession`
21
+ * Change `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.count`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.count`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.count`, and `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.interval` to be optional
22
+ * Add support for new value `girocard` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network`
23
+ * Add support for new value `financial_addresses.aba.forwarding` on enums `Treasury.FinancialAccount.active_features[]`, `Treasury.FinancialAccount.pending_features[]`, and `Treasury.FinancialAccount.restricted_features[]`
24
+
3
25
  ## 16.7.0-beta.1 - 2024-08-01
4
26
  * [#2145](https://github.com/stripe/stripe-node/pull/2145) Update generated code for beta
5
27
  * Add support for `attach_payment` method on resource `Invoice`
@@ -9,6 +31,14 @@
9
31
  * Add support for new value `lines_invalid` on enum `Quote.status_details.stale.last_reason.type`
10
32
  * Add support for `last_price_migration_error` on `SubscriptionSchedule` and `Subscription`
11
33
 
34
+ ## 16.6.0 - 2024-08-01
35
+ * [#2144](https://github.com/stripe/stripe-node/pull/2144) Update generated code
36
+ * Add support for new resources `Billing.AlertTriggered` and `Billing.Alert`
37
+ * Add support for new value `charge_exceeds_transaction_limit` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
38
+ * ⚠️ Remove support for `authorization_code` on `Charge.payment_method_details.card`. This was accidentally released last week.
39
+ * Add support for new value `billing.alert.triggered` on enum `Event.type`
40
+ * Add support for new value `billing.alert.triggered` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
41
+
12
42
  ## 16.6.0-beta.1 - 2024-07-25
13
43
  * [#2137](https://github.com/stripe/stripe-node/pull/2137) Update generated code for beta
14
44
  * Add support for new resources `Billing.AlertTriggered`, `Billing.Alert`, and `Tax.Association`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 16.7.0-beta.1
1
+ 16.8.0-beta.1
@@ -6,6 +6,10 @@ const StripeResource_js_1 = require("../../StripeResource.js");
6
6
  const stripeMethod = StripeResource_js_1.StripeResource.method;
7
7
  exports.Calculations = StripeResource_js_1.StripeResource.extend({
8
8
  create: stripeMethod({ method: 'POST', fullPath: '/v1/tax/calculations' }),
9
+ retrieve: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v1/tax/calculations/{calculation}',
12
+ }),
9
13
  listLineItems: stripeMethod({
10
14
  method: 'GET',
11
15
  fullPath: '/v1/tax/calculations/{calculation}/line_items',
@@ -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-beta.1';
37
+ Stripe.PACKAGE_VERSION = '16.8.0-beta.1';
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;
@@ -3,6 +3,10 @@ import { StripeResource } from '../../StripeResource.js';
3
3
  const stripeMethod = StripeResource.method;
4
4
  export const Calculations = StripeResource.extend({
5
5
  create: stripeMethod({ method: 'POST', fullPath: '/v1/tax/calculations' }),
6
+ retrieve: stripeMethod({
7
+ method: 'GET',
8
+ fullPath: '/v1/tax/calculations/{calculation}',
9
+ }),
6
10
  listLineItems: stripeMethod({
7
11
  method: 'GET',
8
12
  fullPath: '/v1/tax/calculations/{calculation}/line_items',
@@ -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-beta.1';
34
+ Stripe.PACKAGE_VERSION = '16.8.0-beta.1';
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-beta.1",
3
+ "version": "16.8.0-beta.1",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -52,6 +52,10 @@ declare module 'stripe' {
52
52
 
53
53
  balances: Components.Balances;
54
54
 
55
+ capital_financing?: Components.CapitalFinancing | null;
56
+
57
+ capital_financing_application?: Components.CapitalFinancingApplication | null;
58
+
55
59
  capital_financing_promotion?: Components.CapitalFinancingPromotion | null;
56
60
 
57
61
  documents: Components.Documents;
@@ -141,6 +145,32 @@ declare module 'stripe' {
141
145
  }
142
146
  }
143
147
 
148
+ interface CapitalFinancing {
149
+ /**
150
+ * Whether the embedded component is enabled.
151
+ */
152
+ enabled: boolean;
153
+
154
+ features: CapitalFinancing.Features;
155
+ }
156
+
157
+ namespace CapitalFinancing {
158
+ interface Features {}
159
+ }
160
+
161
+ interface CapitalFinancingApplication {
162
+ /**
163
+ * Whether the embedded component is enabled.
164
+ */
165
+ enabled: boolean;
166
+
167
+ features: CapitalFinancingApplication.Features;
168
+ }
169
+
170
+ namespace CapitalFinancingApplication {
171
+ interface Features {}
172
+ }
173
+
144
174
  interface CapitalFinancingPromotion {
145
175
  /**
146
176
  * Whether the embedded component is enabled.
@@ -1414,22 +1414,22 @@ declare module 'stripe' {
1414
1414
  statement_descriptor: string | null;
1415
1415
 
1416
1416
  /**
1417
- * The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only)
1417
+ * The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
1418
1418
  */
1419
1419
  statement_descriptor_kana: string | null;
1420
1420
 
1421
1421
  /**
1422
- * The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only)
1422
+ * The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
1423
1423
  */
1424
1424
  statement_descriptor_kanji: string | null;
1425
1425
 
1426
1426
  /**
1427
- * The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kana` specified on the charge. `statement_descriptor_prefix_kana` is useful for maximizing descriptor space for the dynamic portion.
1427
+ * The Kana variation of `statement_descriptor_prefix` used for card charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
1428
1428
  */
1429
1429
  statement_descriptor_prefix_kana: string | null;
1430
1430
 
1431
1431
  /**
1432
- * The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only). This field prefixes any dynamic `statement_descriptor_suffix_kanji` specified on the charge. `statement_descriptor_prefix_kanji` is useful for maximizing descriptor space for the dynamic portion.
1432
+ * The Kanji variation of `statement_descriptor_prefix` used for card charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
1433
1433
  */
1434
1434
  statement_descriptor_prefix_kanji: string | null;
1435
1435
  }
@@ -1576,17 +1576,17 @@ declare module 'stripe' {
1576
1576
 
1577
1577
  interface Payments {
1578
1578
  /**
1579
- * The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge.
1579
+ * The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
1580
1580
  */
1581
1581
  statement_descriptor?: string;
1582
1582
 
1583
1583
  /**
1584
- * The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only).
1584
+ * The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
1585
1585
  */
1586
1586
  statement_descriptor_kana?: string;
1587
1587
 
1588
1588
  /**
1589
- * The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only).
1589
+ * The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
1590
1590
  */
1591
1591
  statement_descriptor_kanji?: string;
1592
1592
  }
@@ -3234,17 +3234,17 @@ declare module 'stripe' {
3234
3234
 
3235
3235
  interface Payments {
3236
3236
  /**
3237
- * The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge.
3237
+ * The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors).
3238
3238
  */
3239
3239
  statement_descriptor?: string;
3240
3240
 
3241
3241
  /**
3242
- * The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only).
3242
+ * The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
3243
3243
  */
3244
3244
  statement_descriptor_kana?: string;
3245
3245
 
3246
3246
  /**
3247
- * The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only).
3247
+ * The Kanji variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
3248
3248
  */
3249
3249
  statement_descriptor_kanji?: string;
3250
3250
  }
@@ -4396,7 +4396,7 @@ declare module 'stripe' {
4396
4396
  *
4397
4397
  * Test-mode accounts can be deleted at any time.
4398
4398
  *
4399
- * 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.
4399
+ * 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.
4400
4400
  *
4401
4401
  * If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
4402
4402
  */
package/types/Cards.d.ts CHANGED
@@ -71,7 +71,7 @@ declare module 'stripe' {
71
71
  available_payout_methods?: Array<Card.AvailablePayoutMethod> | null;
72
72
 
73
73
  /**
74
- * Card brand. Can be `American Express`, `Diners Club`, `Discover`, `Eftpos Australia`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
74
+ * Card brand. Can be `American Express`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
75
75
  */
76
76
  brand: string;
77
77
 
@@ -81,7 +81,7 @@ declare module 'stripe' {
81
81
  country: string | null;
82
82
 
83
83
  /**
84
- * Three-letter [ISO code for currency](https://stripe.com/docs/payouts). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. This property is only available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
84
+ * Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies). Only applicable on accounts (not customers or recipients). The card can be used as a transfer destination for funds in this currency. This property is only available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
85
85
  */
86
86
  currency?: string | null;
87
87
 
@@ -62,7 +62,7 @@ declare module 'stripe' {
62
62
  billing_details: Charge.BillingDetails;
63
63
 
64
64
  /**
65
- * The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined. This only works for card payments.
65
+ * The full statement descriptor that is passed to card networks, and that is displayed on your customers' credit card and bank statements. Allows you to see what the statement descriptor looks like after the static and dynamic portions are combined. This value only exists for card payments.
66
66
  */
67
67
  calculated_statement_descriptor: string | null;
68
68
 
@@ -214,12 +214,12 @@ declare module 'stripe' {
214
214
  source_transfer: string | Stripe.Transfer | null;
215
215
 
216
216
  /**
217
- * For card charges, use `statement_descriptor_suffix` instead. Otherwise, you can use this value as the complete description of a charge on your customers' statements. Must contain at least one letter, maximum 22 characters.
217
+ * For a non-card charge, text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors). This value overrides the account's default statement descriptor. For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
218
218
  */
219
219
  statement_descriptor: string | null;
220
220
 
221
221
  /**
222
- * Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
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.
223
223
  */
224
224
  statement_descriptor_suffix: string | null;
225
225
 
@@ -707,6 +707,11 @@ declare module 'stripe' {
707
707
  */
708
708
  amount_authorized: number | null;
709
709
 
710
+ /**
711
+ * Authorization code on the charge.
712
+ */
713
+ authorization_code: string | null;
714
+
710
715
  /**
711
716
  * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
712
717
  */
@@ -1228,6 +1233,11 @@ declare module 'stripe' {
1228
1233
  * Time at which the payment was collected while offline
1229
1234
  */
1230
1235
  stored_at: number | null;
1236
+
1237
+ /**
1238
+ * The method used to process this payment method offline. Only deferred is allowed.
1239
+ */
1240
+ type: 'deferred' | null;
1231
1241
  }
1232
1242
 
1233
1243
  type ReadMethod =
@@ -73,12 +73,12 @@ declare module 'stripe' {
73
73
  source?: string;
74
74
 
75
75
  /**
76
- * For card charges, use `statement_descriptor_suffix` instead. Otherwise, you can use this value as the complete description of a charge on your customers' statements. Must contain at least one letter, maximum 22 characters.
76
+ * For a non-card charge, text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors). This value overrides the account's default statement descriptor. For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
77
77
  */
78
78
  statement_descriptor?: string;
79
79
 
80
80
  /**
81
- * Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
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.
82
82
  */
83
83
  statement_descriptor_suffix?: string;
84
84
 
@@ -911,7 +911,7 @@ declare module 'stripe' {
911
911
  payment_intent?: string;
912
912
 
913
913
  /**
914
- * Only return charges for this transfer group.
914
+ * Only return charges for this transfer group, limited to 100.
915
915
  */
916
916
  transfer_group?: string;
917
917
  }
@@ -948,12 +948,12 @@ declare module 'stripe' {
948
948
  receipt_email?: string;
949
949
 
950
950
  /**
951
- * For card charges, use `statement_descriptor_suffix` instead. Otherwise, you can use this value as the complete description of a charge on your customers' statements. Must contain at least one letter, maximum 22 characters.
951
+ * For a non-card charge, text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors). This value overrides the account's default statement descriptor. For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
952
952
  */
953
953
  statement_descriptor?: string;
954
954
 
955
955
  /**
956
- * Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
956
+ * 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.
957
957
  */
958
958
  statement_descriptor_suffix?: string;
959
959