stripe 12.11.0 → 12.12.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,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 12.12.0 - 2023-07-06
4
+ * [#1831](https://github.com/stripe/stripe-node/pull/1831) Update generated code
5
+ * Add support for `numeric` and `text` on `PaymentLink.custom_fields[]`
6
+ * Add support for `automatic_tax` on `SubscriptionListParams`
7
+
3
8
  ## 12.11.0 - 2023-06-29
4
9
  * [#1823](https://github.com/stripe/stripe-node/pull/1823) Update generated code
5
10
  * Add support for new value `application_fees_not_allowed` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 12.11.0
1
+ 12.12.0
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
34
34
  ];
35
35
  const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
36
36
  function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
37
- Stripe.PACKAGE_VERSION = '12.11.0';
37
+ Stripe.PACKAGE_VERSION = '12.12.0';
38
38
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
39
39
  Stripe.StripeResource = StripeResource_js_1.StripeResource;
40
40
  Stripe.resources = resources;
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
31
31
  ];
32
32
  const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
33
33
  export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
34
- Stripe.PACKAGE_VERSION = '12.11.0';
34
+ Stripe.PACKAGE_VERSION = '12.12.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": "12.11.0",
3
+ "version": "12.12.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -4,7 +4,7 @@ declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  namespace FinancialConnections {
6
6
  /**
7
- * The AccountOwner object.
7
+ * Describes an owner of an account.
8
8
  */
9
9
  interface AccountOwner {
10
10
  /**
@@ -218,11 +218,21 @@ declare module 'stripe' {
218
218
 
219
219
  label: CustomField.Label;
220
220
 
221
+ /**
222
+ * Configuration for `type=numeric` fields.
223
+ */
224
+ numeric: CustomField.Numeric | null;
225
+
221
226
  /**
222
227
  * Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
223
228
  */
224
229
  optional: boolean;
225
230
 
231
+ /**
232
+ * Configuration for `type=text` fields.
233
+ */
234
+ text: CustomField.Text | null;
235
+
226
236
  /**
227
237
  * The type of the field.
228
238
  */
@@ -263,6 +273,30 @@ declare module 'stripe' {
263
273
  type: 'custom';
264
274
  }
265
275
 
276
+ interface Numeric {
277
+ /**
278
+ * The maximum character length constraint for the customer's input.
279
+ */
280
+ maximum_length: number | null;
281
+
282
+ /**
283
+ * The minimum character length requirement for the customer's input.
284
+ */
285
+ minimum_length: number | null;
286
+ }
287
+
288
+ interface Text {
289
+ /**
290
+ * The maximum character length constraint for the customer's input.
291
+ */
292
+ maximum_length: number | null;
293
+
294
+ /**
295
+ * The minimum character length requirement for the customer's input.
296
+ */
297
+ minimum_length: number | null;
298
+ }
299
+
266
300
  type Type = 'dropdown' | 'numeric' | 'text';
267
301
  }
268
302
 
@@ -1372,6 +1372,11 @@ declare module 'stripe' {
1372
1372
  }
1373
1373
 
1374
1374
  interface SubscriptionListParams extends PaginationParams {
1375
+ /**
1376
+ * Filter subscriptions by their automatic tax settings.
1377
+ */
1378
+ automatic_tax?: SubscriptionListParams.AutomaticTax;
1379
+
1375
1380
  /**
1376
1381
  * The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`.
1377
1382
  */
@@ -1415,6 +1420,13 @@ declare module 'stripe' {
1415
1420
  }
1416
1421
 
1417
1422
  namespace SubscriptionListParams {
1423
+ interface AutomaticTax {
1424
+ /**
1425
+ * Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.
1426
+ */
1427
+ enabled: boolean;
1428
+ }
1429
+
1418
1430
  type CollectionMethod = 'charge_automatically' | 'send_invoice';
1419
1431
 
1420
1432
  type Status =