stripe 16.6.0 → 16.7.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.
Files changed (42) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/VERSION +1 -1
  3. package/cjs/resources/Billing/Alerts.js +27 -0
  4. package/cjs/resources/Tax/Calculations.js +4 -0
  5. package/cjs/resources.js +2 -0
  6. package/cjs/stripe.core.js +1 -1
  7. package/esm/resources/Billing/Alerts.js +24 -0
  8. package/esm/resources/Tax/Calculations.js +4 -0
  9. package/esm/resources.js +2 -0
  10. package/esm/stripe.core.js +1 -1
  11. package/package.json +1 -1
  12. package/types/Accounts.d.ts +4 -4
  13. package/types/AccountsResource.d.ts +6 -6
  14. package/types/Billing/AlertsResource.d.ts +176 -0
  15. package/types/Cards.d.ts +2 -2
  16. package/types/Charges.d.ts +8 -3
  17. package/types/ChargesResource.d.ts +5 -5
  18. package/types/Checkout/Sessions.d.ts +90 -90
  19. package/types/Checkout/SessionsResource.d.ts +96 -99
  20. package/types/ConfirmationTokens.d.ts +22 -0
  21. package/types/CustomerSessions.d.ts +1 -1
  22. package/types/CustomerSessionsResource.d.ts +1 -1
  23. package/types/Identity/VerificationSessions.d.ts +5 -0
  24. package/types/Identity/VerificationSessionsResource.d.ts +7 -0
  25. package/types/Invoices.d.ts +1 -0
  26. package/types/InvoicesResource.d.ts +13 -13
  27. package/types/PaymentIntents.d.ts +118 -116
  28. package/types/PaymentIntentsResource.d.ts +471 -468
  29. package/types/PaymentLinks.d.ts +2 -2
  30. package/types/PaymentLinksResource.d.ts +4 -4
  31. package/types/PaymentMethods.d.ts +22 -0
  32. package/types/Persons.d.ts +4 -1
  33. package/types/SetupAttempts.d.ts +6 -0
  34. package/types/SetupIntents.d.ts +2 -0
  35. package/types/SetupIntentsResource.d.ts +3 -0
  36. package/types/Subscriptions.d.ts +2 -1
  37. package/types/SubscriptionsResource.d.ts +6 -4
  38. package/types/Tax/CalculationsResource.d.ts +20 -0
  39. package/types/Terminal/Readers.d.ts +1 -1
  40. package/types/TransfersResource.d.ts +1 -1
  41. package/types/Treasury/FinancialAccounts.d.ts +3 -0
  42. package/types/index.d.ts +2 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 16.7.0 - 2024-08-08
4
+ * [#2147](https://github.com/stripe/stripe-node/pull/2147) Update generated code
5
+ * Add support for `activate`, `archive`, `create`, `deactivate`, `list`, and `retrieve` methods on resource `Billing.Alert`
6
+ * Add support for `retrieve` method on resource `Tax.Calculation`
7
+ * 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`
8
+ * 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`
9
+ * Add support for `offline` on `ConfirmationToken.payment_method_preview.card_present` and `PaymentMethod.card_present`
10
+ * Add support for `related_customer` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionListParams`, and `Identity.VerificationSession`
11
+ * 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
12
+ * 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`
13
+ * Add support for new value `financial_addresses.aba.forwarding` on enums `Treasury.FinancialAccount.active_features[]`, `Treasury.FinancialAccount.pending_features[]`, and `Treasury.FinancialAccount.restricted_features[]`
14
+
3
15
  ## 16.6.0 - 2024-08-01
4
16
  * [#2144](https://github.com/stripe/stripe-node/pull/2144) Update generated code
5
17
  * Add support for new resources `Billing.AlertTriggered` and `Billing.Alert`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 16.6.0
1
+ 16.7.0
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Alerts = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.Alerts = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({ method: 'POST', fullPath: '/v1/billing/alerts' }),
9
+ retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/billing/alerts/{id}' }),
10
+ list: stripeMethod({
11
+ method: 'GET',
12
+ fullPath: '/v1/billing/alerts',
13
+ methodType: 'list',
14
+ }),
15
+ activate: stripeMethod({
16
+ method: 'POST',
17
+ fullPath: '/v1/billing/alerts/{id}/activate',
18
+ }),
19
+ archive: stripeMethod({
20
+ method: 'POST',
21
+ fullPath: '/v1/billing/alerts/{id}/archive',
22
+ }),
23
+ deactivate: stripeMethod({
24
+ method: 'POST',
25
+ fullPath: '/v1/billing/alerts/{id}/deactivate',
26
+ }),
27
+ });
@@ -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',
package/cjs/resources.js CHANGED
@@ -6,6 +6,7 @@ exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = export
6
6
  const ResourceNamespace_js_1 = require("./ResourceNamespace.js");
7
7
  const Accounts_js_1 = require("./resources/FinancialConnections/Accounts.js");
8
8
  const ActiveEntitlements_js_1 = require("./resources/Entitlements/ActiveEntitlements.js");
9
+ const Alerts_js_1 = require("./resources/Billing/Alerts.js");
9
10
  const Authorizations_js_1 = require("./resources/TestHelpers/Issuing/Authorizations.js");
10
11
  const Authorizations_js_2 = require("./resources/Issuing/Authorizations.js");
11
12
  const Calculations_js_1 = require("./resources/Tax/Calculations.js");
@@ -174,6 +175,7 @@ var WebhookEndpoints_js_1 = require("./resources/WebhookEndpoints.js");
174
175
  Object.defineProperty(exports, "WebhookEndpoints", { enumerable: true, get: function () { return WebhookEndpoints_js_1.WebhookEndpoints; } });
175
176
  exports.Apps = (0, ResourceNamespace_js_1.resourceNamespace)('apps', { Secrets: Secrets_js_1.Secrets });
176
177
  exports.Billing = (0, ResourceNamespace_js_1.resourceNamespace)('billing', {
178
+ Alerts: Alerts_js_1.Alerts,
177
179
  MeterEventAdjustments: MeterEventAdjustments_js_1.MeterEventAdjustments,
178
180
  MeterEvents: MeterEvents_js_1.MeterEvents,
179
181
  Meters: Meters_js_1.Meters,
@@ -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.6.0';
37
+ Stripe.PACKAGE_VERSION = '16.7.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;
@@ -0,0 +1,24 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const Alerts = StripeResource.extend({
5
+ create: stripeMethod({ method: 'POST', fullPath: '/v1/billing/alerts' }),
6
+ retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/billing/alerts/{id}' }),
7
+ list: stripeMethod({
8
+ method: 'GET',
9
+ fullPath: '/v1/billing/alerts',
10
+ methodType: 'list',
11
+ }),
12
+ activate: stripeMethod({
13
+ method: 'POST',
14
+ fullPath: '/v1/billing/alerts/{id}/activate',
15
+ }),
16
+ archive: stripeMethod({
17
+ method: 'POST',
18
+ fullPath: '/v1/billing/alerts/{id}/archive',
19
+ }),
20
+ deactivate: stripeMethod({
21
+ method: 'POST',
22
+ fullPath: '/v1/billing/alerts/{id}/deactivate',
23
+ }),
24
+ });
@@ -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',
package/esm/resources.js CHANGED
@@ -2,6 +2,7 @@
2
2
  import { resourceNamespace } from './ResourceNamespace.js';
3
3
  import { Accounts as FinancialConnectionsAccounts } from './resources/FinancialConnections/Accounts.js';
4
4
  import { ActiveEntitlements as EntitlementsActiveEntitlements } from './resources/Entitlements/ActiveEntitlements.js';
5
+ import { Alerts as BillingAlerts } from './resources/Billing/Alerts.js';
5
6
  import { Authorizations as TestHelpersIssuingAuthorizations } from './resources/TestHelpers/Issuing/Authorizations.js';
6
7
  import { Authorizations as IssuingAuthorizations } from './resources/Issuing/Authorizations.js';
7
8
  import { Calculations as TaxCalculations } from './resources/Tax/Calculations.js';
@@ -118,6 +119,7 @@ export { Transfers } from './resources/Transfers.js';
118
119
  export { WebhookEndpoints } from './resources/WebhookEndpoints.js';
119
120
  export const Apps = resourceNamespace('apps', { Secrets: AppsSecrets });
120
121
  export const Billing = resourceNamespace('billing', {
122
+ Alerts: BillingAlerts,
121
123
  MeterEventAdjustments: BillingMeterEventAdjustments,
122
124
  MeterEvents: BillingMeterEvents,
123
125
  Meters: BillingMeters,
@@ -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.6.0';
34
+ Stripe.PACKAGE_VERSION = '16.7.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.6.0",
3
+ "version": "16.7.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -1316,22 +1316,22 @@ declare module 'stripe' {
1316
1316
  statement_descriptor: string | null;
1317
1317
 
1318
1318
  /**
1319
- * The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only)
1319
+ * 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).
1320
1320
  */
1321
1321
  statement_descriptor_kana: string | null;
1322
1322
 
1323
1323
  /**
1324
- * The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only)
1324
+ * 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).
1325
1325
  */
1326
1326
  statement_descriptor_kanji: string | null;
1327
1327
 
1328
1328
  /**
1329
- * 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.
1329
+ * 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).
1330
1330
  */
1331
1331
  statement_descriptor_prefix_kana: string | null;
1332
1332
 
1333
1333
  /**
1334
- * 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.
1334
+ * 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).
1335
1335
  */
1336
1336
  statement_descriptor_prefix_kanji: string | null;
1337
1337
  }
@@ -1441,17 +1441,17 @@ declare module 'stripe' {
1441
1441
 
1442
1442
  interface Payments {
1443
1443
  /**
1444
- * 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.
1444
+ * 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).
1445
1445
  */
1446
1446
  statement_descriptor?: string;
1447
1447
 
1448
1448
  /**
1449
- * The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only).
1449
+ * 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).
1450
1450
  */
1451
1451
  statement_descriptor_kana?: string;
1452
1452
 
1453
1453
  /**
1454
- * The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only).
1454
+ * 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).
1455
1455
  */
1456
1456
  statement_descriptor_kanji?: string;
1457
1457
  }
@@ -2995,17 +2995,17 @@ declare module 'stripe' {
2995
2995
 
2996
2996
  interface Payments {
2997
2997
  /**
2998
- * 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.
2998
+ * 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).
2999
2999
  */
3000
3000
  statement_descriptor?: string;
3001
3001
 
3002
3002
  /**
3003
- * The Kana variation of the default text that appears on credit card statements when a charge is made (Japan only).
3003
+ * 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).
3004
3004
  */
3005
3005
  statement_descriptor_kana?: string;
3006
3006
 
3007
3007
  /**
3008
- * The Kanji variation of the default text that appears on credit card statements when a charge is made (Japan only).
3008
+ * 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).
3009
3009
  */
3010
3010
  statement_descriptor_kanji?: string;
3011
3011
  }
@@ -0,0 +1,176 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ namespace Billing {
6
+ interface AlertCreateParams {
7
+ /**
8
+ * The type of alert to create.
9
+ */
10
+ alert_type: 'usage_threshold';
11
+
12
+ /**
13
+ * The title of the alert.
14
+ */
15
+ title: string;
16
+
17
+ /**
18
+ * Specifies which fields in the response should be expanded.
19
+ */
20
+ expand?: Array<string>;
21
+
22
+ /**
23
+ * Filters to limit the scope of an alert.
24
+ */
25
+ filter?: AlertCreateParams.Filter;
26
+
27
+ /**
28
+ * The configuration of the usage threshold.
29
+ */
30
+ usage_threshold_config?: AlertCreateParams.UsageThresholdConfig;
31
+ }
32
+
33
+ namespace AlertCreateParams {
34
+ interface Filter {
35
+ /**
36
+ * Limit the scope to this alert only to this customer.
37
+ */
38
+ customer?: string;
39
+ }
40
+
41
+ interface UsageThresholdConfig {
42
+ /**
43
+ * Defines at which value the alert will fire.
44
+ */
45
+ gte: number;
46
+
47
+ /**
48
+ * The [Billing Meter](https://stripe.com/api/billing/meter) ID whose usage is monitored.
49
+ */
50
+ meter?: string;
51
+
52
+ /**
53
+ * Whether the alert should only fire only once, or once per billing cycle.
54
+ */
55
+ recurrence: 'one_time';
56
+ }
57
+ }
58
+
59
+ interface AlertRetrieveParams {
60
+ /**
61
+ * Specifies which fields in the response should be expanded.
62
+ */
63
+ expand?: Array<string>;
64
+ }
65
+
66
+ interface AlertListParams extends PaginationParams {
67
+ /**
68
+ * Filter results to only include this type of alert.
69
+ */
70
+ alert_type?: 'usage_threshold';
71
+
72
+ /**
73
+ * Specifies which fields in the response should be expanded.
74
+ */
75
+ expand?: Array<string>;
76
+
77
+ /**
78
+ * Filter results to only include alerts with the given meter.
79
+ */
80
+ meter?: string;
81
+ }
82
+
83
+ interface AlertActivateParams {
84
+ /**
85
+ * Specifies which fields in the response should be expanded.
86
+ */
87
+ expand?: Array<string>;
88
+ }
89
+
90
+ interface AlertArchiveParams {
91
+ /**
92
+ * Specifies which fields in the response should be expanded.
93
+ */
94
+ expand?: Array<string>;
95
+ }
96
+
97
+ interface AlertDeactivateParams {
98
+ /**
99
+ * Specifies which fields in the response should be expanded.
100
+ */
101
+ expand?: Array<string>;
102
+ }
103
+
104
+ class AlertsResource {
105
+ /**
106
+ * Creates a billing alert
107
+ */
108
+ create(
109
+ params: AlertCreateParams,
110
+ options?: RequestOptions
111
+ ): Promise<Stripe.Response<Stripe.Billing.Alert>>;
112
+
113
+ /**
114
+ * Retrieves a billing alert given an ID
115
+ */
116
+ retrieve(
117
+ id: string,
118
+ params?: AlertRetrieveParams,
119
+ options?: RequestOptions
120
+ ): Promise<Stripe.Response<Stripe.Billing.Alert>>;
121
+ retrieve(
122
+ id: string,
123
+ options?: RequestOptions
124
+ ): Promise<Stripe.Response<Stripe.Billing.Alert>>;
125
+
126
+ /**
127
+ * Lists billing active and inactive alerts
128
+ */
129
+ list(
130
+ params?: AlertListParams,
131
+ options?: RequestOptions
132
+ ): ApiListPromise<Stripe.Billing.Alert>;
133
+ list(options?: RequestOptions): ApiListPromise<Stripe.Billing.Alert>;
134
+
135
+ /**
136
+ * Reactivates this alert, allowing it to trigger again.
137
+ */
138
+ activate(
139
+ id: string,
140
+ params?: AlertActivateParams,
141
+ options?: RequestOptions
142
+ ): Promise<Stripe.Response<Stripe.Billing.Alert>>;
143
+ activate(
144
+ id: string,
145
+ options?: RequestOptions
146
+ ): Promise<Stripe.Response<Stripe.Billing.Alert>>;
147
+
148
+ /**
149
+ * Archives this alert, removing it from the list view and APIs. This is non-reversible.
150
+ */
151
+ archive(
152
+ id: string,
153
+ params?: AlertArchiveParams,
154
+ options?: RequestOptions
155
+ ): Promise<Stripe.Response<Stripe.Billing.Alert>>;
156
+ archive(
157
+ id: string,
158
+ options?: RequestOptions
159
+ ): Promise<Stripe.Response<Stripe.Billing.Alert>>;
160
+
161
+ /**
162
+ * Deactivates this alert, preventing it from triggering.
163
+ */
164
+ deactivate(
165
+ id: string,
166
+ params?: AlertDeactivateParams,
167
+ options?: RequestOptions
168
+ ): Promise<Stripe.Response<Stripe.Billing.Alert>>;
169
+ deactivate(
170
+ id: string,
171
+ options?: RequestOptions
172
+ ): Promise<Stripe.Response<Stripe.Billing.Alert>>;
173
+ }
174
+ }
175
+ }
176
+ }
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
 
@@ -1211,6 +1211,11 @@ declare module 'stripe' {
1211
1211
  * Time at which the payment was collected while offline
1212
1212
  */
1213
1213
  stored_at: number | null;
1214
+
1215
+ /**
1216
+ * The method used to process this payment method offline. Only deferred is allowed.
1217
+ */
1218
+ type: 'deferred' | null;
1214
1219
  }
1215
1220
 
1216
1221
  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
 
@@ -264,7 +264,7 @@ declare module 'stripe' {
264
264
  payment_intent?: string;
265
265
 
266
266
  /**
267
- * Only return charges for this transfer group.
267
+ * Only return charges for this transfer group, limited to 100.
268
268
  */
269
269
  transfer_group?: string;
270
270
  }
@@ -296,12 +296,12 @@ declare module 'stripe' {
296
296
  receipt_email?: string;
297
297
 
298
298
  /**
299
- * 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.
299
+ * 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.
300
300
  */
301
301
  statement_descriptor?: string;
302
302
 
303
303
  /**
304
- * 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.
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.
305
305
  */
306
306
  statement_descriptor_suffix?: string;
307
307