@stripe/connect-js 3.3.3 → 3.3.4-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,27 +13,50 @@ 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",
43
+ "account-management": "stripe-connect-account-management",
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",
23
50
  documents: "stripe-connect-documents"
24
51
  };
25
52
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
26
- const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
53
+ const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
27
54
  const findScript = () => {
28
55
  return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
29
56
  };
30
57
  const injectScript = () => {
31
58
  const script = document.createElement("script");
32
- script.src = "https://connect-js.stripe.com/v1.0/connect.js";
59
+ script.src = "https://connect-js.stripe.com/v0.1/connect.js";
33
60
  const head = document.head;
34
61
  if (!head) {
35
62
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -147,7 +174,7 @@ const createWrapper = stripeConnect => {
147
174
  sdk: true,
148
175
  sdkOptions: {
149
176
  // This will be replaced by the npm package version when bundling
150
- sdkVersion: "3.3.3"
177
+ sdkVersion: "3.3.4-beta-1"
151
178
  }
152
179
  })
153
180
  }));
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,27 +17,50 @@ 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",
47
+ "account-management": "stripe-connect-account-management",
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",
27
54
  documents: "stripe-connect-documents"
28
55
  };
29
56
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
30
- const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
57
+ const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
31
58
  const findScript = () => {
32
59
  return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
33
60
  };
34
61
  const injectScript = () => {
35
62
  const script = document.createElement("script");
36
- script.src = "https://connect-js.stripe.com/v1.0/connect.js";
63
+ script.src = "https://connect-js.stripe.com/v0.1/connect.js";
37
64
  const head = document.head;
38
65
  if (!head) {
39
66
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -151,7 +178,7 @@ const createWrapper = stripeConnect => {
151
178
  sdk: true,
152
179
  sdkOptions: {
153
180
  // This will be replaced by the npm package version when bundling
154
- sdkVersion: "3.3.3"
181
+ sdkVersion: "3.3.4-beta-1"
155
182
  }
156
183
  })
157
184
  }));
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,27 +13,50 @@ 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",
43
+ "account-management": "stripe-connect-account-management",
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",
23
50
  documents: "stripe-connect-documents"
24
51
  };
25
52
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
26
- const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
53
+ const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
27
54
  const findScript = () => {
28
55
  return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
29
56
  };
30
57
  const injectScript = () => {
31
58
  const script = document.createElement("script");
32
- script.src = "https://connect-js.stripe.com/v1.0/connect.js";
59
+ script.src = "https://connect-js.stripe.com/v0.1/connect.js";
33
60
  const head = document.head;
34
61
  if (!head) {
35
62
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -147,7 +174,7 @@ const createWrapper = stripeConnect => {
147
174
  sdk: true,
148
175
  sdkOptions: {
149
176
  // This will be replaced by the npm package version when bundling
150
- sdkVersion: "3.3.3"
177
+ sdkVersion: "3.3.4-beta-1"
151
178
  }
152
179
  })
153
180
  }));
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,27 +17,50 @@ 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",
47
+ "account-management": "stripe-connect-account-management",
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",
27
54
  documents: "stripe-connect-documents"
28
55
  };
29
56
  const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
30
- const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
57
+ const V0_URL = "https://connect-js.stripe.com/v0.1/connect.js";
31
58
  const findScript = () => {
32
59
  return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
33
60
  };
34
61
  const injectScript = () => {
35
62
  const script = document.createElement("script");
36
- script.src = "https://connect-js.stripe.com/v1.0/connect.js";
63
+ script.src = "https://connect-js.stripe.com/v0.1/connect.js";
37
64
  const head = document.head;
38
65
  if (!head) {
39
66
  throw new Error("Expected document.head not to be null. Connect.js requires a <head> element.");
@@ -151,7 +178,7 @@ const createWrapper = stripeConnect => {
151
178
  sdk: true,
152
179
  sdkOptions: {
153
180
  // This will be replaced by the npm package version when bundling
154
- sdkVersion: "3.3.3"
181
+ sdkVersion: "3.3.4-beta-1"
155
182
  }
156
183
  })
157
184
  }));
@@ -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-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-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.3",
3
+ "version": "3.3.4-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,21 +10,38 @@ 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"
16
- | "stripe-connect-payment-details"
17
15
  | "stripe-connect-payouts"
16
+ | "stripe-connect-payment-details"
17
+ | "stripe-connect-account-onboarding"
18
+ | "stripe-connect-payment-method-settings"
19
+ | "stripe-connect-account-management"
20
+ | "stripe-connect-notification-banner"
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"
18
26
  | "stripe-connect-documents";
19
27
 
20
28
  export const componentNameMapping: Record<
21
29
  ConnectElementTagName,
22
30
  ConnectElementHTMLName
23
31
  > = {
24
- "account-onboarding": "stripe-connect-account-onboarding",
25
32
  payments: "stripe-connect-payments",
26
- "payment-details": "stripe-connect-payment-details",
27
33
  payouts: "stripe-connect-payouts",
34
+ "payment-details": "stripe-connect-payment-details",
35
+ "account-onboarding": "stripe-connect-account-onboarding",
36
+ "payment-method-settings": "stripe-connect-payment-method-settings",
37
+ "account-management": "stripe-connect-account-management",
38
+ "notification-banner": "stripe-connect-notification-banner",
39
+ "instant-payouts": "stripe-connect-instant-payouts",
40
+ "issuing-card": "stripe-connect-issuing-card",
41
+ "issuing-cards-list": "stripe-connect-issuing-cards-list",
42
+ "financial-account": "stripe-connect-financial-account",
43
+ "financial-account-transactions":
44
+ "stripe-connect-financial-account-transactions",
28
45
  documents: "stripe-connect-documents"
29
46
  };
30
47
 
@@ -38,7 +55,7 @@ interface StripeConnectWrapper {
38
55
 
39
56
  const EXISTING_SCRIPT_MESSAGE =
40
57
  "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
41
- 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";
42
59
 
43
60
  export const findScript = (): HTMLScriptElement | null => {
44
61
  return (
@@ -50,7 +67,7 @@ export const findScript = (): HTMLScriptElement | null => {
50
67
 
51
68
  const injectScript = (): HTMLScriptElement => {
52
69
  const script = document.createElement("script");
53
- script.src = "https://connect-js.stripe.com/v1.0/connect.js";
70
+ script.src = "https://connect-js.stripe.com/v0.1/connect.js";
54
71
 
55
72
  const head = document.head;
56
73
 
@@ -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,8 +447,16 @@ 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"
452
- | "payment-details"
453
451
  | "payouts"
452
+ | "payment-details"
453
+ | "account-onboarding"
454
+ | "payment-method-settings"
455
+ | "account-management"
456
+ | "notification-banner"
457
+ | "instant-payouts"
458
+ | "issuing-card"
459
+ | "issuing-cards-list"
460
+ | "financial-account"
461
+ | "financial-account-transactions"
454
462
  | "documents";