stripe 13.0.0 → 13.1.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,18 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 13.1.0 - 2023-08-17
4
+ * [#1875](https://github.com/stripe/stripe-node/pull/1875) Update Typescript types to support version `2023-08-16`.
5
+
3
6
  ## 13.0.0 - 2023-08-16
4
7
  * This release changes the pinned API version to `2023-08-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-08-16) and carefully review the API changes before upgrading `stripe-node`.
5
8
  * More information is available in the [stripe-node v13 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v13)
6
- " ⚠️" symbol highlights breaking changes.
9
+
10
+ "⚠️" symbol highlights breaking changes.
11
+
7
12
  * ⚠️[#1803](https://github.com/stripe/stripe-node/pull/1803) Change the default behavior to perform 1 reattempt on retryable request failures (previously the default was 0).
8
13
  * [#1808](https://github.com/stripe/stripe-node/pull/1808) Allow request-level options to disable retries.
9
- * ⚠️Remove deprecated `del` method on `Subcriptions`. Please use the `cancel` method instead, which was introduced in [v9.14.0](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#9140---2022-07-18):
14
+ * ⚠️Remove deprecated `del` method on `Subscriptions`. Please use the `cancel` method instead, which was introduced in [v9.14.0](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#9140---2022-07-18):
10
15
  * [#1872](https://github.com/stripe/stripe-node/pull/1872) Update generated code
11
16
  * ⚠️Add support for new values `verification_directors_mismatch`, `verification_document_directors_mismatch`, `verification_extraneous_directors`, and `verification_missing_directors` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code`
12
17
  * ⚠️Remove support for values `custom_account_update` and `custom_account_verification` from enum `AccountLinkCreateParams.type`
13
18
  * These values are not fully operational
14
19
  * ⚠️Remove support for `available_on` on `BalanceTransactionListParams`
15
- * Use of this parameter is discouraged. You may use [`.AddExtraParam`](https://github.com/stripe/stripe-dotnet/#parameters) if sending the parameter is still required.
20
+ * Use of this parameter is discouraged. Suppress the Typescript error with `// @ts-ignore` or `any` if sending the parameter is still required.
16
21
  * ⚠️Remove support for `alternate_statement_descriptors` and `dispute` on `Charge`
17
22
  * Use of these fields is discouraged.
18
23
  * ⚠️Remove support for `destination` on `Charge`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 13.0.0
1
+ 13.1.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 = '13.0.0';
37
+ Stripe.PACKAGE_VERSION = '13.1.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 = '13.0.0';
34
+ Stripe.PACKAGE_VERSION = '13.1.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": "13.0.0",
3
+ "version": "13.1.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
package/types/lib.d.ts CHANGED
@@ -27,7 +27,7 @@ declare module 'stripe' {
27
27
  }): (...args: any[]) => Response<ResponseObject>; //eslint-disable-line @typescript-eslint/no-explicit-any
28
28
  static MAX_BUFFERED_REQUEST_METRICS: number;
29
29
  }
30
- export type LatestApiVersion = '2022-11-15';
30
+ export type LatestApiVersion = '2023-08-16';
31
31
  export type HttpAgent = Agent;
32
32
  export type HttpProtocol = 'http' | 'https';
33
33
 
@@ -9,7 +9,7 @@
9
9
  import Stripe from 'stripe';
10
10
 
11
11
  let stripe = new Stripe('sk_test_123', {
12
- apiVersion: '2022-11-15',
12
+ apiVersion: '2023-08-16',
13
13
  });
14
14
 
15
15
  // @ts-ignore lazily ignore apiVersion requirement.
@@ -27,7 +27,7 @@ stripe = new Stripe('sk_test_123', {
27
27
 
28
28
  // Check config object.
29
29
  stripe = new Stripe('sk_test_123', {
30
- apiVersion: '2022-11-15',
30
+ apiVersion: '2023-08-16',
31
31
  typescript: true,
32
32
  maxNetworkRetries: 1,
33
33
  timeout: 1000,