@stripe/connect-js 3.2.2-beta-1 → 3.3.0-beta-1

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.
@@ -10,6 +10,7 @@ const ConnectElementCustomMethodConfig = {
10
10
  setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
11
11
  setPrivacyPolicyUrl: _privacyPolicyUrl => {},
12
12
  setSkipTermsOfServiceCollection: _skipTermsOfServiceCollection => {},
13
+ setCollectionOptions: _collectionOptions => {},
13
14
  setOnExit: _listener => {}
14
15
  },
15
16
  "issuing-card": {
@@ -131,7 +132,7 @@ const initStripeConnect = (stripePromise, initParams) => {
131
132
  },
132
133
  logout: () => {
133
134
  return stripeConnectInstance.then(instance => {
134
- instance.logout();
135
+ return instance.logout();
135
136
  });
136
137
  }
137
138
  };
@@ -148,7 +149,7 @@ const createWrapper = stripeConnect => {
148
149
  sdk: true,
149
150
  sdkOptions: {
150
151
  // This will be replaced by the npm package version when bundling
151
- sdkVersion: "3.2.2-beta-1"
152
+ sdkVersion: "3.3.0-beta-1"
152
153
  }
153
154
  })
154
155
  }));
package/dist/connect.js CHANGED
@@ -14,6 +14,7 @@ const ConnectElementCustomMethodConfig = {
14
14
  setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
15
15
  setPrivacyPolicyUrl: _privacyPolicyUrl => {},
16
16
  setSkipTermsOfServiceCollection: _skipTermsOfServiceCollection => {},
17
+ setCollectionOptions: _collectionOptions => {},
17
18
  setOnExit: _listener => {}
18
19
  },
19
20
  "issuing-card": {
@@ -135,7 +136,7 @@ const initStripeConnect = (stripePromise, initParams) => {
135
136
  },
136
137
  logout: () => {
137
138
  return stripeConnectInstance.then(instance => {
138
- instance.logout();
139
+ return instance.logout();
139
140
  });
140
141
  }
141
142
  };
@@ -152,7 +153,7 @@ const createWrapper = stripeConnect => {
152
153
  sdk: true,
153
154
  sdkOptions: {
154
155
  // This will be replaced by the npm package version when bundling
155
- sdkVersion: "3.2.2-beta-1"
156
+ sdkVersion: "3.3.0-beta-1"
156
157
  }
157
158
  })
158
159
  }));
package/dist/pure.esm.js CHANGED
@@ -10,6 +10,7 @@ const ConnectElementCustomMethodConfig = {
10
10
  setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
11
11
  setPrivacyPolicyUrl: _privacyPolicyUrl => {},
12
12
  setSkipTermsOfServiceCollection: _skipTermsOfServiceCollection => {},
13
+ setCollectionOptions: _collectionOptions => {},
13
14
  setOnExit: _listener => {}
14
15
  },
15
16
  "issuing-card": {
@@ -131,7 +132,7 @@ const initStripeConnect = (stripePromise, initParams) => {
131
132
  },
132
133
  logout: () => {
133
134
  return stripeConnectInstance.then(instance => {
134
- instance.logout();
135
+ return instance.logout();
135
136
  });
136
137
  }
137
138
  };
@@ -148,7 +149,7 @@ const createWrapper = stripeConnect => {
148
149
  sdk: true,
149
150
  sdkOptions: {
150
151
  // This will be replaced by the npm package version when bundling
151
- sdkVersion: "3.2.2-beta-1"
152
+ sdkVersion: "3.3.0-beta-1"
152
153
  }
153
154
  })
154
155
  }));
package/dist/pure.js CHANGED
@@ -14,6 +14,7 @@ const ConnectElementCustomMethodConfig = {
14
14
  setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
15
15
  setPrivacyPolicyUrl: _privacyPolicyUrl => {},
16
16
  setSkipTermsOfServiceCollection: _skipTermsOfServiceCollection => {},
17
+ setCollectionOptions: _collectionOptions => {},
17
18
  setOnExit: _listener => {}
18
19
  },
19
20
  "issuing-card": {
@@ -135,7 +136,7 @@ const initStripeConnect = (stripePromise, initParams) => {
135
136
  },
136
137
  logout: () => {
137
138
  return stripeConnectInstance.then(instance => {
138
- instance.logout();
139
+ return instance.logout();
139
140
  });
140
141
  }
141
142
  };
@@ -152,7 +153,7 @@ const createWrapper = stripeConnect => {
152
153
  sdk: true,
153
154
  sdkOptions: {
154
155
  // This will be replaced by the npm package version when bundling
155
- sdkVersion: "3.2.2-beta-1"
156
+ sdkVersion: "3.3.0-beta-1"
156
157
  }
157
158
  })
158
159
  }));
@@ -6,6 +6,10 @@ type FetchEphemeralKeyFunction = (fetchParams: {
6
6
  nonce: string;
7
7
  ephemeralKeySecret: string;
8
8
  }>;
9
+ type CollectionOptions = {
10
+ fields: "currently_due" | "eventually_due";
11
+ futureRequirements?: "omit" | "include";
12
+ };
9
13
  export declare const ConnectElementCustomMethodConfig: {
10
14
  "payment-details": {
11
15
  setPayment: (_payment: string | undefined) => void;
@@ -16,6 +20,7 @@ export declare const ConnectElementCustomMethodConfig: {
16
20
  setRecipientTermsOfServiceUrl: (_recipientTermsOfServiceUrl: string | undefined) => void;
17
21
  setPrivacyPolicyUrl: (_privacyPolicyUrl: string | undefined) => void;
18
22
  setSkipTermsOfServiceCollection: (_skipTermsOfServiceCollection: boolean | undefined) => void;
23
+ setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
19
24
  setOnExit: (_listener: (() => void) | undefined) => void;
20
25
  };
21
26
  "issuing-card": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.2.2-beta-1",
3
+ "version": "3.3.0-beta-1",
4
4
  "description": "Connect.js loading utility package",
5
5
  "main": "dist/connect.js",
6
6
  "module": "dist/connect.esm.js",
package/src/shared.ts CHANGED
@@ -179,7 +179,7 @@ export const initStripeConnect = (
179
179
  },
180
180
  logout: () => {
181
181
  return stripeConnectInstance.then(instance => {
182
- instance.logout();
182
+ return instance.logout();
183
183
  });
184
184
  }
185
185
  };
package/types/config.ts CHANGED
@@ -10,6 +10,11 @@ type FetchEphemeralKeyFunction = (fetchParams: {
10
10
  ephemeralKeySecret: string;
11
11
  }>;
12
12
 
13
+ type CollectionOptions = {
14
+ fields: "currently_due" | "eventually_due";
15
+ futureRequirements?: "omit" | "include";
16
+ };
17
+
13
18
  export const ConnectElementCustomMethodConfig = {
14
19
  "payment-details": {
15
20
  setPayment: (_payment: string | undefined): void => {},
@@ -26,6 +31,9 @@ export const ConnectElementCustomMethodConfig = {
26
31
  setSkipTermsOfServiceCollection: (
27
32
  _skipTermsOfServiceCollection: boolean | undefined
28
33
  ): void => {},
34
+ setCollectionOptions: (
35
+ _collectionOptions: CollectionOptions | undefined
36
+ ): void => {},
29
37
  setOnExit: (_listener: (() => void) | undefined): void => {}
30
38
  },
31
39
  "issuing-card": {