@stripe/connect-js 3.3.4 → 3.3.5-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.
@@ -1,6 +1,10 @@
1
1
  /* eslint-disable @typescript-eslint/no-empty-function */
2
2
  /* eslint-disable @typescript-eslint/no-unused-vars */
3
3
  const ConnectElementCustomMethodConfig = {
4
+ "payment-details": {
5
+ setPayment: _payment => {},
6
+ setOnClose: _listener => {}
7
+ },
4
8
  "account-onboarding": {
5
9
  setFullTermsOfServiceUrl: _termOfServiceUrl => {},
6
10
  setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
@@ -9,29 +13,51 @@ const ConnectElementCustomMethodConfig = {
9
13
  setCollectionOptions: _collectionOptions => {},
10
14
  setOnExit: _listener => {}
11
15
  },
12
- "payment-details": {
13
- setPayment: _payment => {},
14
- setOnClose: _listener => {}
16
+ "account-management": {
17
+ setCollectionOptions: _collectionOptions => {}
18
+ },
19
+ "issuing-card": {
20
+ setDefaultCard: _defaultCard => {},
21
+ setCardArtFileLink: _cardArtFileLink => {},
22
+ setCardSwitching: _cardSwitching => {},
23
+ setFetchEphemeralKey: _fetchEphemeralKey => {}
24
+ },
25
+ "issuing-cards-list": {
26
+ setCardArtFileLink: _cardArtFileLink => {},
27
+ setFetchEphemeralKey: _fetchEphemeralKey => {}
28
+ },
29
+ "financial-account": {
30
+ setFinancialAccount: _financialAccount => {}
31
+ },
32
+ "financial-account-transactions": {
33
+ setFinancialAccount: _financialAccount => {}
15
34
  }
16
35
  };
17
36
 
18
37
  const componentNameMapping = {
19
- "account-onboarding": "stripe-connect-account-onboarding",
20
38
  payments: "stripe-connect-payments",
21
- "payment-details": "stripe-connect-payment-details",
22
39
  payouts: "stripe-connect-payouts",
40
+ "payment-details": "stripe-connect-payment-details",
41
+ "account-onboarding": "stripe-connect-account-onboarding",
42
+ "payment-method-settings": "stripe-connect-payment-method-settings",
23
43
  "account-management": "stripe-connect-account-management",
24
44
  "notification-banner": "stripe-connect-notification-banner",
45
+ "instant-payouts": "stripe-connect-instant-payouts",
46
+ "issuing-card": "stripe-connect-issuing-card",
47
+ "issuing-cards-list": "stripe-connect-issuing-cards-list",
48
+ "financial-account": "stripe-connect-financial-account",
49
+ "financial-account-transactions": "stripe-connect-financial-account-transactions",
50
+ "capital-overview": "stripe-connect-capital-overview",
25
51
  documents: "stripe-connect-documents"
26
52
  };
27
53
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
28
- const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
54
+ const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
29
55
  const findScript = () => {
30
56
  return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
31
57
  };
32
58
  const injectScript = () => {
33
59
  const script = document.createElement("script");
34
- script.src = "https://connect-js.stripe.com/v1.0/connect.js";
60
+ script.src = "https://connect-js.stripe.com/v0.1/connect.js";
35
61
  const head = document.head;
36
62
  if (!head) {
37
63
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -149,7 +175,7 @@ const createWrapper = stripeConnect => {
149
175
  sdk: true,
150
176
  sdkOptions: {
151
177
  // This will be replaced by the npm package version when bundling
152
- sdkVersion: "3.3.4"
178
+ sdkVersion: "3.3.4-beta-1"
153
179
  }
154
180
  })
155
181
  }));
package/dist/connect.js CHANGED
@@ -5,6 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  /* eslint-disable @typescript-eslint/no-empty-function */
6
6
  /* eslint-disable @typescript-eslint/no-unused-vars */
7
7
  const ConnectElementCustomMethodConfig = {
8
+ "payment-details": {
9
+ setPayment: _payment => {},
10
+ setOnClose: _listener => {}
11
+ },
8
12
  "account-onboarding": {
9
13
  setFullTermsOfServiceUrl: _termOfServiceUrl => {},
10
14
  setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
@@ -13,29 +17,51 @@ const ConnectElementCustomMethodConfig = {
13
17
  setCollectionOptions: _collectionOptions => {},
14
18
  setOnExit: _listener => {}
15
19
  },
16
- "payment-details": {
17
- setPayment: _payment => {},
18
- setOnClose: _listener => {}
20
+ "account-management": {
21
+ setCollectionOptions: _collectionOptions => {}
22
+ },
23
+ "issuing-card": {
24
+ setDefaultCard: _defaultCard => {},
25
+ setCardArtFileLink: _cardArtFileLink => {},
26
+ setCardSwitching: _cardSwitching => {},
27
+ setFetchEphemeralKey: _fetchEphemeralKey => {}
28
+ },
29
+ "issuing-cards-list": {
30
+ setCardArtFileLink: _cardArtFileLink => {},
31
+ setFetchEphemeralKey: _fetchEphemeralKey => {}
32
+ },
33
+ "financial-account": {
34
+ setFinancialAccount: _financialAccount => {}
35
+ },
36
+ "financial-account-transactions": {
37
+ setFinancialAccount: _financialAccount => {}
19
38
  }
20
39
  };
21
40
 
22
41
  const componentNameMapping = {
23
- "account-onboarding": "stripe-connect-account-onboarding",
24
42
  payments: "stripe-connect-payments",
25
- "payment-details": "stripe-connect-payment-details",
26
43
  payouts: "stripe-connect-payouts",
44
+ "payment-details": "stripe-connect-payment-details",
45
+ "account-onboarding": "stripe-connect-account-onboarding",
46
+ "payment-method-settings": "stripe-connect-payment-method-settings",
27
47
  "account-management": "stripe-connect-account-management",
28
48
  "notification-banner": "stripe-connect-notification-banner",
49
+ "instant-payouts": "stripe-connect-instant-payouts",
50
+ "issuing-card": "stripe-connect-issuing-card",
51
+ "issuing-cards-list": "stripe-connect-issuing-cards-list",
52
+ "financial-account": "stripe-connect-financial-account",
53
+ "financial-account-transactions": "stripe-connect-financial-account-transactions",
54
+ "capital-overview": "stripe-connect-capital-overview",
29
55
  documents: "stripe-connect-documents"
30
56
  };
31
57
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
32
- const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
58
+ const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
33
59
  const findScript = () => {
34
60
  return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
35
61
  };
36
62
  const injectScript = () => {
37
63
  const script = document.createElement("script");
38
- script.src = "https://connect-js.stripe.com/v1.0/connect.js";
64
+ script.src = "https://connect-js.stripe.com/v0.1/connect.js";
39
65
  const head = document.head;
40
66
  if (!head) {
41
67
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -153,7 +179,7 @@ const createWrapper = stripeConnect => {
153
179
  sdk: true,
154
180
  sdkOptions: {
155
181
  // This will be replaced by the npm package version when bundling
156
- sdkVersion: "3.3.4"
182
+ sdkVersion: "3.3.4-beta-1"
157
183
  }
158
184
  })
159
185
  }));
package/dist/pure.esm.js CHANGED
@@ -1,6 +1,10 @@
1
1
  /* eslint-disable @typescript-eslint/no-empty-function */
2
2
  /* eslint-disable @typescript-eslint/no-unused-vars */
3
3
  const ConnectElementCustomMethodConfig = {
4
+ "payment-details": {
5
+ setPayment: _payment => {},
6
+ setOnClose: _listener => {}
7
+ },
4
8
  "account-onboarding": {
5
9
  setFullTermsOfServiceUrl: _termOfServiceUrl => {},
6
10
  setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
@@ -9,29 +13,51 @@ const ConnectElementCustomMethodConfig = {
9
13
  setCollectionOptions: _collectionOptions => {},
10
14
  setOnExit: _listener => {}
11
15
  },
12
- "payment-details": {
13
- setPayment: _payment => {},
14
- setOnClose: _listener => {}
16
+ "account-management": {
17
+ setCollectionOptions: _collectionOptions => {}
18
+ },
19
+ "issuing-card": {
20
+ setDefaultCard: _defaultCard => {},
21
+ setCardArtFileLink: _cardArtFileLink => {},
22
+ setCardSwitching: _cardSwitching => {},
23
+ setFetchEphemeralKey: _fetchEphemeralKey => {}
24
+ },
25
+ "issuing-cards-list": {
26
+ setCardArtFileLink: _cardArtFileLink => {},
27
+ setFetchEphemeralKey: _fetchEphemeralKey => {}
28
+ },
29
+ "financial-account": {
30
+ setFinancialAccount: _financialAccount => {}
31
+ },
32
+ "financial-account-transactions": {
33
+ setFinancialAccount: _financialAccount => {}
15
34
  }
16
35
  };
17
36
 
18
37
  const componentNameMapping = {
19
- "account-onboarding": "stripe-connect-account-onboarding",
20
38
  payments: "stripe-connect-payments",
21
- "payment-details": "stripe-connect-payment-details",
22
39
  payouts: "stripe-connect-payouts",
40
+ "payment-details": "stripe-connect-payment-details",
41
+ "account-onboarding": "stripe-connect-account-onboarding",
42
+ "payment-method-settings": "stripe-connect-payment-method-settings",
23
43
  "account-management": "stripe-connect-account-management",
24
44
  "notification-banner": "stripe-connect-notification-banner",
45
+ "instant-payouts": "stripe-connect-instant-payouts",
46
+ "issuing-card": "stripe-connect-issuing-card",
47
+ "issuing-cards-list": "stripe-connect-issuing-cards-list",
48
+ "financial-account": "stripe-connect-financial-account",
49
+ "financial-account-transactions": "stripe-connect-financial-account-transactions",
50
+ "capital-overview": "stripe-connect-capital-overview",
25
51
  documents: "stripe-connect-documents"
26
52
  };
27
53
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
28
- const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
54
+ const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
29
55
  const findScript = () => {
30
56
  return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
31
57
  };
32
58
  const injectScript = () => {
33
59
  const script = document.createElement("script");
34
- script.src = "https://connect-js.stripe.com/v1.0/connect.js";
60
+ script.src = "https://connect-js.stripe.com/v0.1/connect.js";
35
61
  const head = document.head;
36
62
  if (!head) {
37
63
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -149,7 +175,7 @@ const createWrapper = stripeConnect => {
149
175
  sdk: true,
150
176
  sdkOptions: {
151
177
  // This will be replaced by the npm package version when bundling
152
- sdkVersion: "3.3.4"
178
+ sdkVersion: "3.3.4-beta-1"
153
179
  }
154
180
  })
155
181
  }));
package/dist/pure.js CHANGED
@@ -5,6 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  /* eslint-disable @typescript-eslint/no-empty-function */
6
6
  /* eslint-disable @typescript-eslint/no-unused-vars */
7
7
  const ConnectElementCustomMethodConfig = {
8
+ "payment-details": {
9
+ setPayment: _payment => {},
10
+ setOnClose: _listener => {}
11
+ },
8
12
  "account-onboarding": {
9
13
  setFullTermsOfServiceUrl: _termOfServiceUrl => {},
10
14
  setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
@@ -13,29 +17,51 @@ const ConnectElementCustomMethodConfig = {
13
17
  setCollectionOptions: _collectionOptions => {},
14
18
  setOnExit: _listener => {}
15
19
  },
16
- "payment-details": {
17
- setPayment: _payment => {},
18
- setOnClose: _listener => {}
20
+ "account-management": {
21
+ setCollectionOptions: _collectionOptions => {}
22
+ },
23
+ "issuing-card": {
24
+ setDefaultCard: _defaultCard => {},
25
+ setCardArtFileLink: _cardArtFileLink => {},
26
+ setCardSwitching: _cardSwitching => {},
27
+ setFetchEphemeralKey: _fetchEphemeralKey => {}
28
+ },
29
+ "issuing-cards-list": {
30
+ setCardArtFileLink: _cardArtFileLink => {},
31
+ setFetchEphemeralKey: _fetchEphemeralKey => {}
32
+ },
33
+ "financial-account": {
34
+ setFinancialAccount: _financialAccount => {}
35
+ },
36
+ "financial-account-transactions": {
37
+ setFinancialAccount: _financialAccount => {}
19
38
  }
20
39
  };
21
40
 
22
41
  const componentNameMapping = {
23
- "account-onboarding": "stripe-connect-account-onboarding",
24
42
  payments: "stripe-connect-payments",
25
- "payment-details": "stripe-connect-payment-details",
26
43
  payouts: "stripe-connect-payouts",
44
+ "payment-details": "stripe-connect-payment-details",
45
+ "account-onboarding": "stripe-connect-account-onboarding",
46
+ "payment-method-settings": "stripe-connect-payment-method-settings",
27
47
  "account-management": "stripe-connect-account-management",
28
48
  "notification-banner": "stripe-connect-notification-banner",
49
+ "instant-payouts": "stripe-connect-instant-payouts",
50
+ "issuing-card": "stripe-connect-issuing-card",
51
+ "issuing-cards-list": "stripe-connect-issuing-cards-list",
52
+ "financial-account": "stripe-connect-financial-account",
53
+ "financial-account-transactions": "stripe-connect-financial-account-transactions",
54
+ "capital-overview": "stripe-connect-capital-overview",
29
55
  documents: "stripe-connect-documents"
30
56
  };
31
57
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
32
- const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
58
+ const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
33
59
  const findScript = () => {
34
60
  return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
35
61
  };
36
62
  const injectScript = () => {
37
63
  const script = document.createElement("script");
38
- script.src = "https://connect-js.stripe.com/v1.0/connect.js";
64
+ script.src = "https://connect-js.stripe.com/v0.1/connect.js";
39
65
  const head = document.head;
40
66
  if (!head) {
41
67
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -153,7 +179,7 @@ const createWrapper = stripeConnect => {
153
179
  sdk: true,
154
180
  sdkOptions: {
155
181
  // This will be replaced by the npm package version when bundling
156
- sdkVersion: "3.3.4"
182
+ sdkVersion: "3.3.4-beta-1"
157
183
  }
158
184
  })
159
185
  }));
@@ -1,6 +1,6 @@
1
1
  import { IStripeConnectInitParams, StripeConnectInstance, ConnectElementTagName } from "../types";
2
2
  export type LoadConnectAndInitialize = (initParams: IStripeConnectInitParams) => StripeConnectInstance;
3
- type ConnectElementHTMLName = "stripe-connect-account-onboarding" | "stripe-connect-payments" | "stripe-connect-payment-details" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "stripe-connect-payouts" | "stripe-connect-documents";
3
+ export type ConnectElementHTMLName = "stripe-connect-payments" | "stripe-connect-payouts" | "stripe-connect-payment-details" | "stripe-connect-account-onboarding" | "stripe-connect-payment-method-settings" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "stripe-connect-instant-payouts" | "stripe-connect-issuing-card" | "stripe-connect-issuing-cards-list" | "stripe-connect-financial-account" | "stripe-connect-financial-account-transactions" | "stripe-connect-capital-overview" | "stripe-connect-documents";
4
4
  export declare const componentNameMapping: Record<ConnectElementTagName, ConnectElementHTMLName>;
5
5
  type StripeConnectInstanceExtended = StripeConnectInstance & {
6
6
  debugInstance: () => Promise<StripeConnectInstance>;
@@ -1,2 +1,2 @@
1
- export declare const SCRIPT_SELECTOR = "script[src^=\"https://connect-js.stripe.com/v1.0/connect.js\"]";
1
+ export declare const SCRIPT_SELECTOR = "script[src^=\"https://connect-js.stripe.com/v0.1/connect.js\"]";
2
2
  export {};
@@ -1,8 +1,20 @@
1
+ export type FetchEphemeralKeyFunction = (fetchParams: {
2
+ issuingCard: string;
3
+ nonce: string;
4
+ }) => Promise<{
5
+ issuingCard: string;
6
+ nonce: string;
7
+ ephemeralKeySecret: string;
8
+ }>;
1
9
  export type CollectionOptions = {
2
10
  fields: "currently_due" | "eventually_due";
3
11
  futureRequirements?: "omit" | "include";
4
12
  };
5
13
  export declare const ConnectElementCustomMethodConfig: {
14
+ "payment-details": {
15
+ setPayment: (_payment: string | undefined) => void;
16
+ setOnClose: (_listener: (() => void) | undefined) => void;
17
+ };
6
18
  "account-onboarding": {
7
19
  setFullTermsOfServiceUrl: (_termOfServiceUrl: string | undefined) => void;
8
20
  setRecipientTermsOfServiceUrl: (_recipientTermsOfServiceUrl: string | undefined) => void;
@@ -11,8 +23,23 @@ export declare const ConnectElementCustomMethodConfig: {
11
23
  setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
12
24
  setOnExit: (_listener: (() => void) | undefined) => void;
13
25
  };
14
- "payment-details": {
15
- setPayment: (_payment: string | undefined) => void;
16
- setOnClose: (_listener: (() => void) | undefined) => void;
26
+ "account-management": {
27
+ setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
28
+ };
29
+ "issuing-card": {
30
+ setDefaultCard: (_defaultCard: string | undefined) => void;
31
+ setCardArtFileLink: (_cardArtFileLink: string | undefined) => void;
32
+ setCardSwitching: (_cardSwitching: boolean | undefined) => void;
33
+ setFetchEphemeralKey: (_fetchEphemeralKey: FetchEphemeralKeyFunction | undefined) => void;
34
+ };
35
+ "issuing-cards-list": {
36
+ setCardArtFileLink: (_cardArtFileLink: string | undefined) => void;
37
+ setFetchEphemeralKey: (_fetchEphemeralKey: FetchEphemeralKeyFunction | undefined) => void;
38
+ };
39
+ "financial-account": {
40
+ setFinancialAccount: (_financialAccount: string) => void;
41
+ };
42
+ "financial-account-transactions": {
43
+ setFinancialAccount: (_financialAccount: string) => void;
17
44
  };
18
45
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.3.4",
3
+ "version": "3.3.5-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
@@ -10,25 +10,40 @@ export type LoadConnectAndInitialize = (
10
10
  initParams: IStripeConnectInitParams
11
11
  ) => StripeConnectInstance;
12
12
 
13
- type ConnectElementHTMLName =
14
- | "stripe-connect-account-onboarding"
13
+ export type ConnectElementHTMLName =
15
14
  | "stripe-connect-payments"
15
+ | "stripe-connect-payouts"
16
16
  | "stripe-connect-payment-details"
17
+ | "stripe-connect-account-onboarding"
18
+ | "stripe-connect-payment-method-settings"
17
19
  | "stripe-connect-account-management"
18
20
  | "stripe-connect-notification-banner"
19
- | "stripe-connect-payouts"
21
+ | "stripe-connect-instant-payouts"
22
+ | "stripe-connect-issuing-card"
23
+ | "stripe-connect-issuing-cards-list"
24
+ | "stripe-connect-financial-account"
25
+ | "stripe-connect-financial-account-transactions"
26
+ | "stripe-connect-capital-overview"
20
27
  | "stripe-connect-documents";
21
28
 
22
29
  export const componentNameMapping: Record<
23
30
  ConnectElementTagName,
24
31
  ConnectElementHTMLName
25
32
  > = {
26
- "account-onboarding": "stripe-connect-account-onboarding",
27
33
  payments: "stripe-connect-payments",
28
- "payment-details": "stripe-connect-payment-details",
29
34
  payouts: "stripe-connect-payouts",
35
+ "payment-details": "stripe-connect-payment-details",
36
+ "account-onboarding": "stripe-connect-account-onboarding",
37
+ "payment-method-settings": "stripe-connect-payment-method-settings",
30
38
  "account-management": "stripe-connect-account-management",
31
39
  "notification-banner": "stripe-connect-notification-banner",
40
+ "instant-payouts": "stripe-connect-instant-payouts",
41
+ "issuing-card": "stripe-connect-issuing-card",
42
+ "issuing-cards-list": "stripe-connect-issuing-cards-list",
43
+ "financial-account": "stripe-connect-financial-account",
44
+ "financial-account-transactions":
45
+ "stripe-connect-financial-account-transactions",
46
+ "capital-overview": "stripe-connect-capital-overview",
32
47
  documents: "stripe-connect-documents"
33
48
  };
34
49
 
@@ -42,7 +57,7 @@ interface StripeConnectWrapper {
42
57
 
43
58
  const EXISTING_SCRIPT_MESSAGE =
44
59
  "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
45
- const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
60
+ const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
46
61
 
47
62
  export const findScript = (): HTMLScriptElement | null => {
48
63
  return (
@@ -54,7 +69,7 @@ export const findScript = (): HTMLScriptElement | null => {
54
69
 
55
70
  const injectScript = (): HTMLScriptElement => {
56
71
  const script = document.createElement("script");
57
- script.src = "https://connect-js.stripe.com/v1.0/connect.js";
72
+ script.src = "https://connect-js.stripe.com/v0.1/connect.js";
58
73
 
59
74
  const head = document.head;
60
75
 
@@ -1,4 +1,4 @@
1
1
  export const SCRIPT_SELECTOR =
2
- 'script[src^="https://connect-js.stripe.com/v1.0/connect.js"]';
2
+ 'script[src^="https://connect-js.stripe.com/v0.1/connect.js"]';
3
3
 
4
4
  export {};
package/types/config.ts CHANGED
@@ -1,12 +1,25 @@
1
1
  /* eslint-disable @typescript-eslint/no-empty-function */
2
2
  /* eslint-disable @typescript-eslint/no-unused-vars */
3
3
 
4
+ export type FetchEphemeralKeyFunction = (fetchParams: {
5
+ issuingCard: string;
6
+ nonce: string;
7
+ }) => Promise<{
8
+ issuingCard: string;
9
+ nonce: string;
10
+ ephemeralKeySecret: string;
11
+ }>;
12
+
4
13
  export type CollectionOptions = {
5
14
  fields: "currently_due" | "eventually_due";
6
15
  futureRequirements?: "omit" | "include";
7
16
  };
8
17
 
9
18
  export const ConnectElementCustomMethodConfig = {
19
+ "payment-details": {
20
+ setPayment: (_payment: string | undefined): void => {},
21
+ setOnClose: (_listener: (() => void) | undefined): void => {}
22
+ },
10
23
  "account-onboarding": {
11
24
  setFullTermsOfServiceUrl: (
12
25
  _termOfServiceUrl: string | undefined
@@ -23,8 +36,29 @@ export const ConnectElementCustomMethodConfig = {
23
36
  ): void => {},
24
37
  setOnExit: (_listener: (() => void) | undefined): void => {}
25
38
  },
26
- "payment-details": {
27
- setPayment: (_payment: string | undefined): void => {},
28
- setOnClose: (_listener: (() => void) | undefined): void => {}
39
+ "account-management": {
40
+ setCollectionOptions: (
41
+ _collectionOptions: CollectionOptions | undefined
42
+ ): void => {}
43
+ },
44
+ "issuing-card": {
45
+ setDefaultCard: (_defaultCard: string | undefined): void => {},
46
+ setCardArtFileLink: (_cardArtFileLink: string | undefined): void => {},
47
+ setCardSwitching: (_cardSwitching: boolean | undefined): void => {},
48
+ setFetchEphemeralKey: (
49
+ _fetchEphemeralKey: FetchEphemeralKeyFunction | undefined
50
+ ): void => {}
51
+ },
52
+ "issuing-cards-list": {
53
+ setCardArtFileLink: (_cardArtFileLink: string | undefined): void => {},
54
+ setFetchEphemeralKey: (
55
+ _fetchEphemeralKey: FetchEphemeralKeyFunction | undefined
56
+ ): void => {}
57
+ },
58
+ "financial-account": {
59
+ setFinancialAccount: (_financialAccount: string): void => {}
60
+ },
61
+ "financial-account-transactions": {
62
+ setFinancialAccount: (_financialAccount: string): void => {}
29
63
  }
30
64
  };
package/types/shared.d.ts CHANGED
@@ -447,10 +447,17 @@ export interface StripeConnectInstance {
447
447
  * Tagnames to be used with the `create` method of the Connect instance.
448
448
  */
449
449
  export type ConnectElementTagName =
450
- | "account-onboarding"
451
450
  | "payments"
451
+ | "payouts"
452
452
  | "payment-details"
453
+ | "account-onboarding"
454
+ | "payment-method-settings"
453
455
  | "account-management"
454
456
  | "notification-banner"
455
- | "payouts"
457
+ | "instant-payouts"
458
+ | "issuing-card"
459
+ | "issuing-cards-list"
460
+ | "financial-account"
461
+ | "financial-account-transactions"
462
+ | "capital-overview"
456
463
  | "documents";