stripe 10.4.0 → 10.6.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,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 10.6.0 - 2022-08-26
4
+ * [#1534](https://github.com/stripe/stripe-node/pull/1534) API Updates
5
+ * Change `Account.company.name`, `Charge.refunds`, `PaymentIntent.charges`, `Product.caption`, `Product.statement_descriptor`, `Product.unit_label`, `Terminal.Configuration.tipping.aud.fixed_amounts`, `Terminal.Configuration.tipping.aud.percentages`, `Terminal.Configuration.tipping.cad.fixed_amounts`, `Terminal.Configuration.tipping.cad.percentages`, `Terminal.Configuration.tipping.chf.fixed_amounts`, `Terminal.Configuration.tipping.chf.percentages`, `Terminal.Configuration.tipping.czk.fixed_amounts`, `Terminal.Configuration.tipping.czk.percentages`, `Terminal.Configuration.tipping.dkk.fixed_amounts`, `Terminal.Configuration.tipping.dkk.percentages`, `Terminal.Configuration.tipping.eur.fixed_amounts`, `Terminal.Configuration.tipping.eur.percentages`, `Terminal.Configuration.tipping.gbp.fixed_amounts`, `Terminal.Configuration.tipping.gbp.percentages`, `Terminal.Configuration.tipping.hkd.fixed_amounts`, `Terminal.Configuration.tipping.hkd.percentages`, `Terminal.Configuration.tipping.myr.fixed_amounts`, `Terminal.Configuration.tipping.myr.percentages`, `Terminal.Configuration.tipping.nok.fixed_amounts`, `Terminal.Configuration.tipping.nok.percentages`, `Terminal.Configuration.tipping.nzd.fixed_amounts`, `Terminal.Configuration.tipping.nzd.percentages`, `Terminal.Configuration.tipping.sek.fixed_amounts`, `Terminal.Configuration.tipping.sek.percentages`, `Terminal.Configuration.tipping.sgd.fixed_amounts`, `Terminal.Configuration.tipping.sgd.percentages`, `Terminal.Configuration.tipping.usd.fixed_amounts`, `Terminal.Configuration.tipping.usd.percentages`, `Treasury.FinancialAccount.active_features`, `Treasury.FinancialAccount.pending_features`, `Treasury.FinancialAccount.platform_restrictions`, and `Treasury.FinancialAccount.restricted_features` to be optional
6
+ * This is a bug fix. These fields were all actually optional and not guaranteed to be returned by the Stripe API, however the type annotations did not correctly reflect this.
7
+ * Fixes https://github.com/stripe/stripe-node/issues/1518.
8
+ * Add support for `login_page` on `BillingPortal.Configuration`, `BillingPortalConfigurationCreateParams`, and `BillingPortalConfigurationUpdateParams`
9
+ * Add support for new value `deutsche_bank_ag` on enums `Charge.payment_method_details.eps.bank`, `PaymentIntentConfirmParams.payment_method_data.eps.bank`, `PaymentIntentCreateParams.payment_method_data.eps.bank`, `PaymentIntentUpdateParams.payment_method_data.eps.bank`, `PaymentMethod.eps.bank`, `PaymentMethodCreateParams.eps.bank`, `SetupIntentConfirmParams.payment_method_data.eps.bank`, `SetupIntentCreateParams.payment_method_data.eps.bank`, and `SetupIntentUpdateParams.payment_method_data.eps.bank`
10
+ * Add support for `customs` and `phone_number` on `Issuing.Card.shipping` and `IssuingCardCreateParams.shipping`
11
+ * Add support for `description` on `Quote.subscription_data`, `QuoteCreateParams.subscription_data`, `QuoteUpdateParams.subscription_data`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, and `SubscriptionScheduleUpdateParams.phases[]`
12
+
13
+ * [#1532](https://github.com/stripe/stripe-node/pull/1532) Update coveralls step to run for one node version, remove finish step
14
+ * [#1531](https://github.com/stripe/stripe-node/pull/1531) Regen yarn.lock.
15
+
16
+ ## 10.5.0 - 2022-08-24
17
+ * [#1527](https://github.com/stripe/stripe-node/pull/1527) fix: Update FetchHttpClient to send empty string for empty POST/PUT/PATCH requests.
18
+ * [#1528](https://github.com/stripe/stripe-node/pull/1528) Update README.md to use a new NOTE notation
19
+ * [#1526](https://github.com/stripe/stripe-node/pull/1526) Add test coverage using Coveralls
20
+
3
21
  ## 10.4.0 - 2022-08-23
4
22
  * [#1520](https://github.com/stripe/stripe-node/pull/1520) Add beta readme.md section
5
23
  * [#1524](https://github.com/stripe/stripe-node/pull/1524) API Updates
package/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![Version](https://img.shields.io/npm/v/stripe.svg)](https://www.npmjs.org/package/stripe)
4
4
  [![Build Status](https://github.com/stripe/stripe-node/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/stripe/stripe-node/actions?query=branch%3Amaster)
5
+ [![Coverage Status](https://coveralls.io/repos/github/stripe/stripe-node/badge.svg?branch=master)](https://coveralls.io/github/stripe/stripe-node?branch=master)
5
6
  [![Downloads](https://img.shields.io/npm/dm/stripe.svg)](https://www.npmjs.com/package/stripe)
6
7
  [![Try on RunKit](https://badge.runkitcdn.com/stripe.svg)](https://runkit.com/npm/stripe)
7
8
 
@@ -186,7 +187,8 @@ const stripe = Stripe('sk_test_...', {
186
187
  | `protocol` | `'https'` | `'https'` or `'http'`. `http` is never appropriate for sending requests to Stripe servers, and we strongly discourage `http`, even in local testing scenarios, as this can result in your credentials being transmitted over an insecure channel. |
187
188
  | `telemetry` | `true` | Allow Stripe to send latency [telemetry](#request-latency-telemetry). |
188
189
 
189
- Note: Both `maxNetworkRetries` and `timeout` can be overridden on a per-request basis.
190
+ > **Note**
191
+ > Both `maxNetworkRetries` and `timeout` can be overridden on a per-request basis.
190
192
 
191
193
  ### Configuring Timeout
192
194
 
@@ -472,7 +474,7 @@ const stripe = new Stripe('sk_test_...', {
472
474
  });
473
475
  ```
474
476
 
475
- ### Beta version
477
+ ### Beta SDKs
476
478
 
477
479
  Stripe has features in the beta phase that can be accessed via the beta version of this package.
478
480
  We would love for you to try these and share feedback with us before these features reach the stable phase.
@@ -480,7 +482,8 @@ The beta versions can be installed in one of two ways
480
482
  - To install the latest beta version, run the command `npm install stripe@beta --save`
481
483
  - To install a specific beta version, replace the term "beta" in the above command with the version number like `npm install stripe@1.2.3-beta.1 --save`
482
484
 
483
- > Note: There can be breaking changes between beta versions. Therefore we recommend pinning the package version to a specific beta version in your package.json file. This way you can install the same version each time without breaking changes unless you are intentionally looking for the latest beta version.
485
+ > **Note**
486
+ > There can be breaking changes between beta versions. Therefore we recommend pinning the package version to a specific beta version in your package.json file. This way you can install the same version each time without breaking changes unless you are intentionally looking for the latest beta version.
484
487
 
485
488
  We highly recommend keeping an eye on when the beta feature you are interested in goes from beta to stable so that you can move from using a beta version of the SDK to the stable version.
486
489
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 10.4.0
1
+ 10.6.0
@@ -39,11 +39,19 @@ class FetchHttpClient extends HttpClient {
39
39
  );
40
40
  url.port = port;
41
41
 
42
+ // For methods which expect payloads, we should always pass a body value
43
+ // even when it is empty. Without this, some JS runtimes (eg. Deno) will
44
+ // inject a second Content-Length header. See https://github.com/stripe/stripe-node/issues/1519
45
+ // for more details.
46
+ const methodHasPayload =
47
+ method == 'POST' || method == 'PUT' || method == 'PATCH';
48
+ const body = requestData || (methodHasPayload ? '' : undefined);
49
+
42
50
  const fetchFn = this._fetchFn || fetch;
43
51
  const fetchPromise = fetchFn(url.toString(), {
44
52
  method,
45
53
  headers,
46
- body: requestData || undefined,
54
+ body,
47
55
  });
48
56
 
49
57
  // The Fetch API does not support passing in a timeout natively, so a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "10.4.0",
3
+ "version": "10.6.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -31,6 +31,7 @@
31
31
  "@typescript-eslint/parser": "^2.13.0",
32
32
  "chai": "~4.2.0",
33
33
  "chai-as-promised": "~7.1.1",
34
+ "coveralls": "^3.1.1",
34
35
  "eslint": "^6.8.0",
35
36
  "eslint-config-prettier": "^4.1.0",
36
37
  "eslint-plugin-chai-friendly": "^0.4.0",
@@ -421,7 +421,7 @@ declare module 'stripe' {
421
421
  /**
422
422
  * The company's legal name.
423
423
  */
424
- name: string | null;
424
+ name?: string | null;
425
425
 
426
426
  /**
427
427
  * The Kana variation of the company's legal name (Japan only).
@@ -125,7 +125,7 @@ declare module 'stripe' {
125
125
  /**
126
126
  * Three-letter [ISO code for the currency](https://stripe.com/docs/payouts) paid out to the bank account.
127
127
  */
128
- currency: string | null;
128
+ currency?: string | null;
129
129
 
130
130
  /**
131
131
  * Always true for a deleted object
@@ -55,6 +55,8 @@ declare module 'stripe' {
55
55
  */
56
56
  livemode: boolean;
57
57
 
58
+ login_page: Configuration.LoginPage;
59
+
58
60
  /**
59
61
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
60
62
  */
@@ -238,6 +240,20 @@ declare module 'stripe' {
238
240
  | 'none';
239
241
  }
240
242
  }
243
+
244
+ interface LoginPage {
245
+ /**
246
+ * If `true`, a shareable `url` will be generated that will take your customers to a hosted login page for the customer portal.
247
+ *
248
+ * If `false`, the previously generated `url`, if any, will be deactivated.
249
+ */
250
+ enabled: boolean;
251
+
252
+ /**
253
+ * A shareable URL to the hosted portal login page. Your customers will be able to log in with their [email](https://stripe.com/docs/api/customers/object#customer_object-email) and receive a link to their customer portal.
254
+ */
255
+ url: string | null;
256
+ }
241
257
  }
242
258
 
243
259
  interface ConfigurationCreateParams {
@@ -261,6 +277,11 @@ declare module 'stripe' {
261
277
  */
262
278
  expand?: Array<string>;
263
279
 
280
+ /**
281
+ * The hosted login page for this configuration. Learn more about the portal login page in our [integration docs](https://stripe.com/docs/billing/subscriptions/integrating-customer-portal#share).
282
+ */
283
+ login_page?: ConfigurationCreateParams.LoginPage;
284
+
264
285
  /**
265
286
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
266
287
  */
@@ -462,6 +483,13 @@ declare module 'stripe' {
462
483
  | 'none';
463
484
  }
464
485
  }
486
+
487
+ interface LoginPage {
488
+ /**
489
+ * Set to `true` to generate a shareable URL [`login_page.url`](https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-login_page-url) that will take your customers to a hosted login page for the customer portal.
490
+ */
491
+ enabled: boolean;
492
+ }
465
493
  }
466
494
 
467
495
  interface ConfigurationRetrieveParams {
@@ -497,6 +525,11 @@ declare module 'stripe' {
497
525
  */
498
526
  features?: ConfigurationUpdateParams.Features;
499
527
 
528
+ /**
529
+ * The hosted login page for this configuration. Learn more about the portal login page in our [integration docs](https://stripe.com/docs/billing/subscriptions/integrating-customer-portal#share).
530
+ */
531
+ login_page?: ConfigurationUpdateParams.LoginPage;
532
+
500
533
  /**
501
534
  * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
502
535
  */
@@ -698,6 +731,15 @@ declare module 'stripe' {
698
731
  | 'none';
699
732
  }
700
733
  }
734
+
735
+ interface LoginPage {
736
+ /**
737
+ * Set to `true` to generate a shareable URL [`login_page.url`](https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-login_page-url) that will take your customers to a hosted login page for the customer portal.
738
+ *
739
+ * Set to `false` to deactivate the `login_page.url`.
740
+ */
741
+ enabled: boolean;
742
+ }
701
743
  }
702
744
 
703
745
  interface ConfigurationListParams extends PaginationParams {
@@ -191,7 +191,7 @@ declare module 'stripe' {
191
191
  /**
192
192
  * Three-letter [ISO code for the currency](https://stripe.com/docs/payouts) paid out to the bank account.
193
193
  */
194
- currency: string | null;
194
+ currency?: string | null;
195
195
 
196
196
  /**
197
197
  * Always true for a deleted object
@@ -204,7 +204,7 @@ declare module 'stripe' {
204
204
  /**
205
205
  * A list of refunds that have been applied to the charge.
206
206
  */
207
- refunds: ApiList<Stripe.Refund>;
207
+ refunds?: ApiList<Stripe.Refund>;
208
208
 
209
209
  /**
210
210
  * ID of the review associated with this charge if one exists.
@@ -1125,7 +1125,7 @@ declare module 'stripe' {
1125
1125
 
1126
1126
  interface Eps {
1127
1127
  /**
1128
- * The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
1128
+ * The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
1129
1129
  */
1130
1130
  bank: Eps.Bank | null;
1131
1131
 
@@ -1149,6 +1149,7 @@ declare module 'stripe' {
1149
1149
  | 'brull_kallmus_bank_ag'
1150
1150
  | 'btv_vier_lander_bank'
1151
1151
  | 'capital_bank_grawe_gruppe_ag'
1152
+ | 'deutsche_bank_ag'
1152
1153
  | 'dolomitenbank'
1153
1154
  | 'easybank_ag'
1154
1155
  | 'erste_bank_und_sparkassen'
@@ -2944,7 +2944,7 @@ declare module 'stripe' {
2944
2944
 
2945
2945
  class InvoicesResource {
2946
2946
  /**
2947
- * This endpoint creates a draft invoice for a given customer. The draft invoice created pulls in all pending invoice items on that customer, including prorations. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or <a href="#send_invoice">send](https://stripe.com/docs/api#finalize_invoice) the invoice to your customers.
2947
+ * This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or <a href="#send_invoice">send](https://stripe.com/docs/api#finalize_invoice) the invoice to your customers.
2948
2948
  */
2949
2949
  create(
2950
2950
  params?: InvoiceCreateParams,
@@ -135,6 +135,11 @@ declare module 'stripe' {
135
135
  */
136
136
  carrier: Shipping.Carrier | null;
137
137
 
138
+ /**
139
+ * Additional information that may be required for clearing customs.
140
+ */
141
+ customs: Shipping.Customs | null;
142
+
138
143
  /**
139
144
  * A unix timestamp representing a best estimate of when the card will be delivered.
140
145
  */
@@ -145,6 +150,11 @@ declare module 'stripe' {
145
150
  */
146
151
  name: string;
147
152
 
153
+ /**
154
+ * The phone number of the receiver of the bulk shipment. This phone number will be provided to the shipping company, who might use it to contact the receiver in case of delivery issues.
155
+ */
156
+ phone_number: string | null;
157
+
148
158
  /**
149
159
  * Shipment service, such as `standard` or `express`.
150
160
  */
@@ -174,6 +184,13 @@ declare module 'stripe' {
174
184
  namespace Shipping {
175
185
  type Carrier = 'dhl' | 'fedex' | 'royal_mail' | 'usps';
176
186
 
187
+ interface Customs {
188
+ /**
189
+ * A registration number used for customs in Europe. See https://www.gov.uk/eori and https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en.
190
+ */
191
+ eori_number: string | null;
192
+ }
193
+
177
194
  type Service = 'express' | 'priority' | 'standard';
178
195
 
179
196
  type Status =
@@ -1227,11 +1244,21 @@ declare module 'stripe' {
1227
1244
  */
1228
1245
  address: Shipping.Address;
1229
1246
 
1247
+ /**
1248
+ * Customs information for the shipment.
1249
+ */
1250
+ customs?: Shipping.Customs;
1251
+
1230
1252
  /**
1231
1253
  * The name printed on the shipping label when shipping the card.
1232
1254
  */
1233
1255
  name: string;
1234
1256
 
1257
+ /**
1258
+ * Phone number of the recipient of the shipment.
1259
+ */
1260
+ phone_number?: string;
1261
+
1235
1262
  /**
1236
1263
  * Shipment service.
1237
1264
  */
@@ -1276,6 +1303,13 @@ declare module 'stripe' {
1276
1303
  state?: string;
1277
1304
  }
1278
1305
 
1306
+ interface Customs {
1307
+ /**
1308
+ * The Economic Operators Registration and Identification (EORI) number to use for Customs. Required for bulk shipments to Europe.
1309
+ */
1310
+ eori_number?: string;
1311
+ }
1312
+
1279
1313
  type Service = 'express' | 'priority' | 'standard';
1280
1314
 
1281
1315
  type Type = 'bulk' | 'individual';
@@ -76,7 +76,7 @@ declare module 'stripe' {
76
76
  /**
77
77
  * Charges that were created by this PaymentIntent, if any.
78
78
  */
79
- charges: ApiList<Stripe.Charge>;
79
+ charges?: ApiList<Stripe.Charge>;
80
80
 
81
81
  /**
82
82
  * The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key.
@@ -2229,6 +2229,7 @@ declare module 'stripe' {
2229
2229
  | 'brull_kallmus_bank_ag'
2230
2230
  | 'btv_vier_lander_bank'
2231
2231
  | 'capital_bank_grawe_gruppe_ag'
2232
+ | 'deutsche_bank_ag'
2232
2233
  | 'dolomitenbank'
2233
2234
  | 'easybank_ag'
2234
2235
  | 'erste_bank_und_sparkassen'
@@ -3941,6 +3942,7 @@ declare module 'stripe' {
3941
3942
  | 'brull_kallmus_bank_ag'
3942
3943
  | 'btv_vier_lander_bank'
3943
3944
  | 'capital_bank_grawe_gruppe_ag'
3945
+ | 'deutsche_bank_ag'
3944
3946
  | 'dolomitenbank'
3945
3947
  | 'easybank_ag'
3946
3948
  | 'erste_bank_und_sparkassen'
@@ -5788,6 +5790,7 @@ declare module 'stripe' {
5788
5790
  | 'brull_kallmus_bank_ag'
5789
5791
  | 'btv_vier_lander_bank'
5790
5792
  | 'capital_bank_grawe_gruppe_ag'
5793
+ | 'deutsche_bank_ag'
5791
5794
  | 'dolomitenbank'
5792
5795
  | 'easybank_ag'
5793
5796
  | 'erste_bank_und_sparkassen'
@@ -416,7 +416,7 @@ declare module 'stripe' {
416
416
 
417
417
  interface Eps {
418
418
  /**
419
- * The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
419
+ * The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
420
420
  */
421
421
  bank: Eps.Bank | null;
422
422
  }
@@ -433,6 +433,7 @@ declare module 'stripe' {
433
433
  | 'brull_kallmus_bank_ag'
434
434
  | 'btv_vier_lander_bank'
435
435
  | 'capital_bank_grawe_gruppe_ag'
436
+ | 'deutsche_bank_ag'
436
437
  | 'dolomitenbank'
437
438
  | 'easybank_ag'
438
439
  | 'erste_bank_und_sparkassen'
@@ -1086,6 +1087,7 @@ declare module 'stripe' {
1086
1087
  | 'brull_kallmus_bank_ag'
1087
1088
  | 'btv_vier_lander_bank'
1088
1089
  | 'capital_bank_grawe_gruppe_ag'
1090
+ | 'deutsche_bank_ag'
1089
1091
  | 'dolomitenbank'
1090
1092
  | 'easybank_ag'
1091
1093
  | 'erste_bank_und_sparkassen'
@@ -36,7 +36,7 @@ declare module 'stripe' {
36
36
  /**
37
37
  * A short one-line description of the product, meant to be displayable to the customer. Only applicable to products of `type=good`.
38
38
  */
39
- caption: string | null;
39
+ caption?: string | null;
40
40
 
41
41
  /**
42
42
  * Time at which the object was created. Measured in seconds since the Unix epoch.
@@ -93,7 +93,7 @@ declare module 'stripe' {
93
93
  /**
94
94
  * Extra information about a product which will appear on your customer's credit card statement. In the case that multiple products are billed at once, the first statement descriptor will be used.
95
95
  */
96
- statement_descriptor: string | null;
96
+ statement_descriptor?: string | null;
97
97
 
98
98
  /**
99
99
  * A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
@@ -108,7 +108,7 @@ declare module 'stripe' {
108
108
  /**
109
109
  * A label that represents units of this product in Stripe and on customers' receipts and invoices. When set, this will be included in associated invoice line item descriptions.
110
110
  */
111
- unit_label: string | null;
111
+ unit_label?: string | null;
112
112
 
113
113
  /**
114
114
  * Time at which the object was last updated. Measured in seconds since the Unix epoch.
@@ -418,6 +418,11 @@ declare module 'stripe' {
418
418
  }
419
419
 
420
420
  interface SubscriptionData {
421
+ /**
422
+ * The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
423
+ */
424
+ description: string | null;
425
+
421
426
  /**
422
427
  * When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. This date is ignored if it is in the past when the quote is accepted. Measured in seconds since the Unix epoch.
423
428
  */
@@ -731,6 +736,11 @@ declare module 'stripe' {
731
736
  }
732
737
 
733
738
  interface SubscriptionData {
739
+ /**
740
+ * The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
741
+ */
742
+ description?: string;
743
+
734
744
  /**
735
745
  * When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special value `current_period_end` can be provided to update a subscription at the end of its current period. The `effective_date` is ignored if it is in the past when the quote is accepted.
736
746
  */
@@ -970,6 +980,11 @@ declare module 'stripe' {
970
980
  }
971
981
 
972
982
  interface SubscriptionData {
983
+ /**
984
+ * The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
985
+ */
986
+ description?: string;
987
+
973
988
  /**
974
989
  * When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special value `current_period_end` can be provided to update a subscription at the end of its current period. The `effective_date` is ignored if it is in the past when the quote is accepted.
975
990
  */
@@ -985,6 +985,7 @@ declare module 'stripe' {
985
985
  | 'brull_kallmus_bank_ag'
986
986
  | 'btv_vier_lander_bank'
987
987
  | 'capital_bank_grawe_gruppe_ag'
988
+ | 'deutsche_bank_ag'
988
989
  | 'dolomitenbank'
989
990
  | 'easybank_ag'
990
991
  | 'erste_bank_und_sparkassen'
@@ -1851,6 +1852,7 @@ declare module 'stripe' {
1851
1852
  | 'brull_kallmus_bank_ag'
1852
1853
  | 'btv_vier_lander_bank'
1853
1854
  | 'capital_bank_grawe_gruppe_ag'
1855
+ | 'deutsche_bank_ag'
1854
1856
  | 'dolomitenbank'
1855
1857
  | 'easybank_ag'
1856
1858
  | 'erste_bank_und_sparkassen'
@@ -2799,6 +2801,7 @@ declare module 'stripe' {
2799
2801
  | 'brull_kallmus_bank_ag'
2800
2802
  | 'btv_vier_lander_bank'
2801
2803
  | 'capital_bank_grawe_gruppe_ag'
2804
+ | 'deutsche_bank_ag'
2802
2805
  | 'dolomitenbank'
2803
2806
  | 'easybank_ag'
2804
2807
  | 'erste_bank_und_sparkassen'
@@ -141,6 +141,11 @@ declare module 'stripe' {
141
141
  */
142
142
  default_payment_method: string | Stripe.PaymentMethod | null;
143
143
 
144
+ /**
145
+ * Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
146
+ */
147
+ description: string | null;
148
+
144
149
  /**
145
150
  * The subscription schedule's default invoice settings.
146
151
  */
@@ -246,6 +251,11 @@ declare module 'stripe' {
246
251
  */
247
252
  default_tax_rates?: Array<Stripe.TaxRate> | null;
248
253
 
254
+ /**
255
+ * Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
256
+ */
257
+ description: string | null;
258
+
249
259
  /**
250
260
  * The end of this phase of the subscription schedule.
251
261
  */
@@ -473,6 +483,11 @@ declare module 'stripe' {
473
483
  */
474
484
  default_payment_method?: string;
475
485
 
486
+ /**
487
+ * Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
488
+ */
489
+ description?: string;
490
+
476
491
  /**
477
492
  * All invoices will be billed using the specified settings.
478
493
  */
@@ -581,6 +596,11 @@ declare module 'stripe' {
581
596
  */
582
597
  default_tax_rates?: Stripe.Emptyable<Array<string>>;
583
598
 
599
+ /**
600
+ * Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
601
+ */
602
+ description?: string;
603
+
584
604
  /**
585
605
  * The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
586
606
  */
@@ -898,6 +918,11 @@ declare module 'stripe' {
898
918
  */
899
919
  default_payment_method?: string;
900
920
 
921
+ /**
922
+ * Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
923
+ */
924
+ description?: string;
925
+
901
926
  /**
902
927
  * All invoices will be billed using the specified settings.
903
928
  */
@@ -1006,6 +1031,11 @@ declare module 'stripe' {
1006
1031
  */
1007
1032
  default_tax_rates?: Stripe.Emptyable<Array<string>>;
1008
1033
 
1034
+ /**
1035
+ * Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription.
1036
+ */
1037
+ description?: string;
1038
+
1009
1039
  /**
1010
1040
  * The date at which this phase of the subscription schedule ends. If set, `iterations` must not be set.
1011
1041
  */
@@ -79,12 +79,12 @@ declare module 'stripe' {
79
79
  /**
80
80
  * Fixed amounts displayed when collecting a tip
81
81
  */
82
- fixed_amounts: Array<number> | null;
82
+ fixed_amounts?: Array<number> | null;
83
83
 
84
84
  /**
85
85
  * Percentages displayed when collecting a tip
86
86
  */
87
- percentages: Array<number> | null;
87
+ percentages?: Array<number> | null;
88
88
 
89
89
  /**
90
90
  * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
@@ -96,12 +96,12 @@ declare module 'stripe' {
96
96
  /**
97
97
  * Fixed amounts displayed when collecting a tip
98
98
  */
99
- fixed_amounts: Array<number> | null;
99
+ fixed_amounts?: Array<number> | null;
100
100
 
101
101
  /**
102
102
  * Percentages displayed when collecting a tip
103
103
  */
104
- percentages: Array<number> | null;
104
+ percentages?: Array<number> | null;
105
105
 
106
106
  /**
107
107
  * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
@@ -113,12 +113,12 @@ declare module 'stripe' {
113
113
  /**
114
114
  * Fixed amounts displayed when collecting a tip
115
115
  */
116
- fixed_amounts: Array<number> | null;
116
+ fixed_amounts?: Array<number> | null;
117
117
 
118
118
  /**
119
119
  * Percentages displayed when collecting a tip
120
120
  */
121
- percentages: Array<number> | null;
121
+ percentages?: Array<number> | null;
122
122
 
123
123
  /**
124
124
  * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
@@ -130,12 +130,12 @@ declare module 'stripe' {
130
130
  /**
131
131
  * Fixed amounts displayed when collecting a tip
132
132
  */
133
- fixed_amounts: Array<number> | null;
133
+ fixed_amounts?: Array<number> | null;
134
134
 
135
135
  /**
136
136
  * Percentages displayed when collecting a tip
137
137
  */
138
- percentages: Array<number> | null;
138
+ percentages?: Array<number> | null;
139
139
 
140
140
  /**
141
141
  * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
@@ -147,12 +147,12 @@ declare module 'stripe' {
147
147
  /**
148
148
  * Fixed amounts displayed when collecting a tip
149
149
  */
150
- fixed_amounts: Array<number> | null;
150
+ fixed_amounts?: Array<number> | null;
151
151
 
152
152
  /**
153
153
  * Percentages displayed when collecting a tip
154
154
  */
155
- percentages: Array<number> | null;
155
+ percentages?: Array<number> | null;
156
156
 
157
157
  /**
158
158
  * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
@@ -164,12 +164,12 @@ declare module 'stripe' {
164
164
  /**
165
165
  * Fixed amounts displayed when collecting a tip
166
166
  */
167
- fixed_amounts: Array<number> | null;
167
+ fixed_amounts?: Array<number> | null;
168
168
 
169
169
  /**
170
170
  * Percentages displayed when collecting a tip
171
171
  */
172
- percentages: Array<number> | null;
172
+ percentages?: Array<number> | null;
173
173
 
174
174
  /**
175
175
  * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
@@ -181,12 +181,12 @@ declare module 'stripe' {
181
181
  /**
182
182
  * Fixed amounts displayed when collecting a tip
183
183
  */
184
- fixed_amounts: Array<number> | null;
184
+ fixed_amounts?: Array<number> | null;
185
185
 
186
186
  /**
187
187
  * Percentages displayed when collecting a tip
188
188
  */
189
- percentages: Array<number> | null;
189
+ percentages?: Array<number> | null;
190
190
 
191
191
  /**
192
192
  * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
@@ -198,12 +198,12 @@ declare module 'stripe' {
198
198
  /**
199
199
  * Fixed amounts displayed when collecting a tip
200
200
  */
201
- fixed_amounts: Array<number> | null;
201
+ fixed_amounts?: Array<number> | null;
202
202
 
203
203
  /**
204
204
  * Percentages displayed when collecting a tip
205
205
  */
206
- percentages: Array<number> | null;
206
+ percentages?: Array<number> | null;
207
207
 
208
208
  /**
209
209
  * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
@@ -215,12 +215,12 @@ declare module 'stripe' {
215
215
  /**
216
216
  * Fixed amounts displayed when collecting a tip
217
217
  */
218
- fixed_amounts: Array<number> | null;
218
+ fixed_amounts?: Array<number> | null;
219
219
 
220
220
  /**
221
221
  * Percentages displayed when collecting a tip
222
222
  */
223
- percentages: Array<number> | null;
223
+ percentages?: Array<number> | null;
224
224
 
225
225
  /**
226
226
  * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
@@ -232,12 +232,12 @@ declare module 'stripe' {
232
232
  /**
233
233
  * Fixed amounts displayed when collecting a tip
234
234
  */
235
- fixed_amounts: Array<number> | null;
235
+ fixed_amounts?: Array<number> | null;
236
236
 
237
237
  /**
238
238
  * Percentages displayed when collecting a tip
239
239
  */
240
- percentages: Array<number> | null;
240
+ percentages?: Array<number> | null;
241
241
 
242
242
  /**
243
243
  * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
@@ -249,12 +249,12 @@ declare module 'stripe' {
249
249
  /**
250
250
  * Fixed amounts displayed when collecting a tip
251
251
  */
252
- fixed_amounts: Array<number> | null;
252
+ fixed_amounts?: Array<number> | null;
253
253
 
254
254
  /**
255
255
  * Percentages displayed when collecting a tip
256
256
  */
257
- percentages: Array<number> | null;
257
+ percentages?: Array<number> | null;
258
258
 
259
259
  /**
260
260
  * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
@@ -266,12 +266,12 @@ declare module 'stripe' {
266
266
  /**
267
267
  * Fixed amounts displayed when collecting a tip
268
268
  */
269
- fixed_amounts: Array<number> | null;
269
+ fixed_amounts?: Array<number> | null;
270
270
 
271
271
  /**
272
272
  * Percentages displayed when collecting a tip
273
273
  */
274
- percentages: Array<number> | null;
274
+ percentages?: Array<number> | null;
275
275
 
276
276
  /**
277
277
  * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
@@ -283,12 +283,12 @@ declare module 'stripe' {
283
283
  /**
284
284
  * Fixed amounts displayed when collecting a tip
285
285
  */
286
- fixed_amounts: Array<number> | null;
286
+ fixed_amounts?: Array<number> | null;
287
287
 
288
288
  /**
289
289
  * Percentages displayed when collecting a tip
290
290
  */
291
- percentages: Array<number> | null;
291
+ percentages?: Array<number> | null;
292
292
 
293
293
  /**
294
294
  * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
@@ -300,12 +300,12 @@ declare module 'stripe' {
300
300
  /**
301
301
  * Fixed amounts displayed when collecting a tip
302
302
  */
303
- fixed_amounts: Array<number> | null;
303
+ fixed_amounts?: Array<number> | null;
304
304
 
305
305
  /**
306
306
  * Percentages displayed when collecting a tip
307
307
  */
308
- percentages: Array<number> | null;
308
+ percentages?: Array<number> | null;
309
309
 
310
310
  /**
311
311
  * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
@@ -21,7 +21,7 @@ declare module 'stripe' {
21
21
  /**
22
22
  * The array of paths to active Features in the Features hash.
23
23
  */
24
- active_features: Array<FinancialAccount.ActiveFeature>;
24
+ active_features?: Array<FinancialAccount.ActiveFeature>;
25
25
 
26
26
  /**
27
27
  * Balance information for the FinancialAccount
@@ -62,17 +62,17 @@ declare module 'stripe' {
62
62
  /**
63
63
  * The array of paths to pending Features in the Features hash.
64
64
  */
65
- pending_features: Array<FinancialAccount.PendingFeature>;
65
+ pending_features?: Array<FinancialAccount.PendingFeature>;
66
66
 
67
67
  /**
68
68
  * The set of functionalities that the platform can restrict on the FinancialAccount.
69
69
  */
70
- platform_restrictions: FinancialAccount.PlatformRestrictions | null;
70
+ platform_restrictions?: FinancialAccount.PlatformRestrictions | null;
71
71
 
72
72
  /**
73
73
  * The array of paths to restricted Features in the Features hash.
74
74
  */
75
- restricted_features: Array<FinancialAccount.RestrictedFeature>;
75
+ restricted_features?: Array<FinancialAccount.RestrictedFeature>;
76
76
 
77
77
  /**
78
78
  * The enum specifying what state the account is in.