@stripe/stripe-js 9.16.0 → 9.17.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/dist/index.js CHANGED
@@ -71,7 +71,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
71
71
 
72
72
  stripe._registerWrapper({
73
73
  name: 'stripe-js',
74
- version: "9.16.0",
74
+ version: "9.17.0",
75
75
  startTime: startTime
76
76
  });
77
77
  };
@@ -172,7 +172,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
172
172
  var expectedVersion = RELEASE_TRAIN;
173
173
 
174
174
  if (isTestKey && version !== expectedVersion) {
175
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.16.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
175
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.17.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
176
176
  }
177
177
 
178
178
  var stripe = maybeStripe.apply(undefined, args);
package/dist/index.mjs CHANGED
@@ -67,7 +67,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
67
67
 
68
68
  stripe._registerWrapper({
69
69
  name: 'stripe-js',
70
- version: "9.16.0",
70
+ version: "9.17.0",
71
71
  startTime: startTime
72
72
  });
73
73
  };
@@ -168,7 +168,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
168
168
  var expectedVersion = RELEASE_TRAIN;
169
169
 
170
170
  if (isTestKey && version !== expectedVersion) {
171
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.16.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
171
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.17.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
172
172
  }
173
173
 
174
174
  var stripe = maybeStripe.apply(undefined, args);
package/dist/pure.js CHANGED
@@ -71,7 +71,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
71
71
 
72
72
  stripe._registerWrapper({
73
73
  name: 'stripe-js',
74
- version: "9.16.0",
74
+ version: "9.17.0",
75
75
  startTime: startTime
76
76
  });
77
77
  };
@@ -172,7 +172,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
172
172
  var expectedVersion = RELEASE_TRAIN;
173
173
 
174
174
  if (isTestKey && version !== expectedVersion) {
175
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.16.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
175
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.17.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
176
176
  }
177
177
 
178
178
  var stripe = maybeStripe.apply(undefined, args);
package/dist/pure.mjs CHANGED
@@ -67,7 +67,7 @@ var registerWrapper = function registerWrapper(stripe, startTime) {
67
67
 
68
68
  stripe._registerWrapper({
69
69
  name: 'stripe-js',
70
- version: "9.16.0",
70
+ version: "9.17.0",
71
71
  startTime: startTime
72
72
  });
73
73
  };
@@ -168,7 +168,7 @@ var initStripe = function initStripe(maybeStripe, args, startTime) {
168
168
  var expectedVersion = RELEASE_TRAIN;
169
169
 
170
170
  if (isTestKey && version !== expectedVersion) {
171
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.16.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
171
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("9.17.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
172
172
  }
173
173
 
174
174
  var stripe = maybeStripe.apply(undefined, args);
@@ -1,3 +1,22 @@
1
+ /**
2
+ * Requires beta access:
3
+ * Contact [Stripe support](https://support.stripe.com/) for more information.
4
+ *
5
+ * Evidence is subject to server-side eligibility and validation. Providing it
6
+ * does not guarantee that Stripe.js will omit its consent pane.
7
+ */
8
+ export interface PreCollectedConsent {
9
+ /**
10
+ * ID of a financial_connections.consent object returned by the merchant's server.
11
+ */
12
+ consent: string;
13
+
14
+ /**
15
+ * Unix timestamp in seconds when the customer affirmatively accepted the complete consent text.
16
+ */
17
+ collectedAt: number;
18
+ }
19
+
1
20
  /**
2
21
  * Data to be sent with a `stripe.collectFinancialConnectionsAccounts` request.
3
22
  */
@@ -6,6 +25,8 @@ export interface CollectFinancialConnectionsAccountsOptions {
6
25
  * The client secret of the [Financial Connections Session](https://stripe.com/docs/api/financial_connections/session).
7
26
  */
8
27
  clientSecret: string;
28
+
29
+ preCollectedConsent?: PreCollectedConsent;
9
30
  }
10
31
 
11
32
  /**
@@ -16,4 +37,6 @@ export interface CollectBankAccountTokenOptions {
16
37
  * The client secret of the [Financial Connections Session](https://stripe.com/docs/api/financial_connections/session).
17
38
  */
18
39
  clientSecret: string;
40
+
41
+ preCollectedConsent?: PreCollectedConsent;
19
42
  }
@@ -1,3 +1,22 @@
1
+ /**
2
+ * Requires beta access:
3
+ * Contact [Stripe support](https://support.stripe.com/) for more information.
4
+ *
5
+ * Evidence is subject to server-side eligibility and validation. Providing it
6
+ * does not guarantee that Stripe.js will omit its consent pane.
7
+ */
8
+ export interface PreCollectedConsent {
9
+ /**
10
+ * ID of a financial_connections.consent object returned by the merchant's server.
11
+ */
12
+ consent: string;
13
+
14
+ /**
15
+ * Unix timestamp in seconds when the customer affirmatively accepted the complete consent text.
16
+ */
17
+ collectedAt: number;
18
+ }
19
+
1
20
  /**
2
21
  * Data to be sent with a `stripe.collectFinancialConnectionsAccounts` request.
3
22
  */
@@ -6,6 +25,8 @@ export interface CollectFinancialConnectionsAccountsOptions {
6
25
  * The client secret of the [Financial Connections Session](https://stripe.com/docs/api/financial_connections/session).
7
26
  */
8
27
  clientSecret: string;
28
+
29
+ preCollectedConsent?: PreCollectedConsent;
9
30
  }
10
31
 
11
32
  /**
@@ -16,4 +37,6 @@ export interface CollectBankAccountTokenOptions {
16
37
  * The client secret of the [Financial Connections Session](https://stripe.com/docs/api/financial_connections/session).
17
38
  */
18
39
  clientSecret: string;
40
+
41
+ preCollectedConsent?: PreCollectedConsent;
19
42
  }
@@ -6,6 +6,7 @@ import {
6
6
  StripeAuBankAccountElement,
7
7
  } from './elements';
8
8
  import {PaymentMethodCreateParams, PaymentIntentConfirmParams} from '../api';
9
+ import {PreCollectedConsent} from './financial-connections';
9
10
  import {Omit} from '../utils';
10
11
 
11
12
  export type CreatePaymentMethodData =
@@ -1638,6 +1639,8 @@ export interface CollectBankAccountForPaymentOptions {
1638
1639
  */
1639
1640
  clientSecret: string;
1640
1641
 
1642
+ preCollectedConsent?: PreCollectedConsent;
1643
+
1641
1644
  params: CollectBankAccountParams;
1642
1645
 
1643
1646
  /**
@@ -6,6 +6,7 @@ import {
6
6
  StripeAuBankAccountElement,
7
7
  } from './elements';
8
8
  import {PaymentMethodCreateParams, PaymentIntentConfirmParams} from '../api';
9
+ import {PreCollectedConsent} from './financial-connections';
9
10
  import {Omit} from '../utils';
10
11
 
11
12
  export type CreatePaymentMethodData =
@@ -1638,6 +1639,8 @@ export interface CollectBankAccountForPaymentOptions {
1638
1639
  */
1639
1640
  clientSecret: string;
1640
1641
 
1642
+ preCollectedConsent?: PreCollectedConsent;
1643
+
1641
1644
  params: CollectBankAccountParams;
1642
1645
 
1643
1646
  /**
@@ -1,4 +1,5 @@
1
1
  import {PaymentMethodCreateParams, SetupIntentConfirmParams} from '../api';
2
+ import {PreCollectedConsent} from './financial-connections';
2
3
 
3
4
  import {
4
5
  CreatePaymentMethodAcssDebitData,
@@ -323,6 +324,8 @@ export interface CollectBankAccountForSetupOptions {
323
324
  */
324
325
  clientSecret: string;
325
326
 
327
+ preCollectedConsent?: PreCollectedConsent;
328
+
326
329
  params: CollectBankAccountParams;
327
330
 
328
331
  /**
@@ -1,4 +1,5 @@
1
1
  import {PaymentMethodCreateParams, SetupIntentConfirmParams} from '../api';
2
+ import {PreCollectedConsent} from './financial-connections';
2
3
 
3
4
  import {
4
5
  CreatePaymentMethodAcssDebitData,
@@ -323,6 +324,8 @@ export interface CollectBankAccountForSetupOptions {
323
324
  */
324
325
  clientSecret: string;
325
326
 
327
+ preCollectedConsent?: PreCollectedConsent;
328
+
326
329
  params: CollectBankAccountParams;
327
330
 
328
331
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-js",
3
- "version": "9.16.0",
3
+ "version": "9.17.0",
4
4
  "description": "Stripe.js loading utility",
5
5
  "repository": "github:stripe/stripe-js",
6
6
  "main": "lib/index.js",