@stripe/connect-js 3.2.2-beta-1 → 3.3.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/connect.esm.js +9 -24
- package/dist/connect.js +9 -24
- package/dist/pure.esm.js +9 -24
- package/dist/pure.js +9 -24
- package/dist/src/shared.d.ts +1 -1
- package/dist/types/config.d.ts +8 -21
- package/package.json +1 -1
- package/src/shared.ts +7 -19
- package/types/config.ts +10 -25
- package/types/shared.d.ts +2 -8
package/dist/connect.esm.js
CHANGED
|
@@ -1,43 +1,28 @@
|
|
|
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
|
-
},
|
|
8
4
|
"account-onboarding": {
|
|
9
5
|
setFullTermsOfServiceUrl: _termOfServiceUrl => {},
|
|
10
6
|
setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
|
|
11
7
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
12
8
|
setSkipTermsOfServiceCollection: _skipTermsOfServiceCollection => {},
|
|
9
|
+
setCollectionOptions: _collectionOptions => {},
|
|
13
10
|
setOnExit: _listener => {}
|
|
14
11
|
},
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
setCardSwitching: _cardSwitching => {},
|
|
19
|
-
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
20
|
-
},
|
|
21
|
-
"issuing-cards-list": {
|
|
22
|
-
setCardArtFileLink: _cardArtFileLink => {},
|
|
23
|
-
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
12
|
+
"payment-details": {
|
|
13
|
+
setPayment: _payment => {},
|
|
14
|
+
setOnClose: _listener => {}
|
|
24
15
|
}
|
|
25
16
|
};
|
|
26
17
|
|
|
27
18
|
const componentNameMapping = {
|
|
19
|
+
"account-onboarding": "stripe-connect-account-onboarding",
|
|
28
20
|
payments: "stripe-connect-payments",
|
|
29
|
-
payouts: "stripe-connect-payouts",
|
|
30
21
|
"payment-details": "stripe-connect-payment-details",
|
|
31
|
-
|
|
32
|
-
"payment-method-settings": "stripe-connect-payment-method-settings",
|
|
33
|
-
"account-management": "stripe-connect-account-management",
|
|
34
|
-
"notification-banner": "stripe-connect-notification-banner",
|
|
35
|
-
"instant-payouts": "stripe-connect-instant-payouts",
|
|
36
|
-
"issuing-card": "stripe-connect-issuing-card",
|
|
37
|
-
"issuing-cards-list": "stripe-connect-issuing-cards-list"
|
|
22
|
+
payouts: "stripe-connect-payouts"
|
|
38
23
|
};
|
|
39
24
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
40
|
-
const V0_URL = "https://connect-js.stripe.com/
|
|
25
|
+
const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
|
|
41
26
|
const findScript = () => {
|
|
42
27
|
return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
|
|
43
28
|
};
|
|
@@ -131,7 +116,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
131
116
|
},
|
|
132
117
|
logout: () => {
|
|
133
118
|
return stripeConnectInstance.then(instance => {
|
|
134
|
-
instance.logout();
|
|
119
|
+
return instance.logout();
|
|
135
120
|
});
|
|
136
121
|
}
|
|
137
122
|
};
|
|
@@ -148,7 +133,7 @@ const createWrapper = stripeConnect => {
|
|
|
148
133
|
sdk: true,
|
|
149
134
|
sdkOptions: {
|
|
150
135
|
// This will be replaced by the npm package version when bundling
|
|
151
|
-
sdkVersion: "3.
|
|
136
|
+
sdkVersion: "3.3.0"
|
|
152
137
|
}
|
|
153
138
|
})
|
|
154
139
|
}));
|
package/dist/connect.js
CHANGED
|
@@ -5,43 +5,28 @@ 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
|
-
},
|
|
12
8
|
"account-onboarding": {
|
|
13
9
|
setFullTermsOfServiceUrl: _termOfServiceUrl => {},
|
|
14
10
|
setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
|
|
15
11
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
16
12
|
setSkipTermsOfServiceCollection: _skipTermsOfServiceCollection => {},
|
|
13
|
+
setCollectionOptions: _collectionOptions => {},
|
|
17
14
|
setOnExit: _listener => {}
|
|
18
15
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
setCardSwitching: _cardSwitching => {},
|
|
23
|
-
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
24
|
-
},
|
|
25
|
-
"issuing-cards-list": {
|
|
26
|
-
setCardArtFileLink: _cardArtFileLink => {},
|
|
27
|
-
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
16
|
+
"payment-details": {
|
|
17
|
+
setPayment: _payment => {},
|
|
18
|
+
setOnClose: _listener => {}
|
|
28
19
|
}
|
|
29
20
|
};
|
|
30
21
|
|
|
31
22
|
const componentNameMapping = {
|
|
23
|
+
"account-onboarding": "stripe-connect-account-onboarding",
|
|
32
24
|
payments: "stripe-connect-payments",
|
|
33
|
-
payouts: "stripe-connect-payouts",
|
|
34
25
|
"payment-details": "stripe-connect-payment-details",
|
|
35
|
-
|
|
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"
|
|
26
|
+
payouts: "stripe-connect-payouts"
|
|
42
27
|
};
|
|
43
28
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
44
|
-
const V0_URL = "https://connect-js.stripe.com/
|
|
29
|
+
const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
|
|
45
30
|
const findScript = () => {
|
|
46
31
|
return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
|
|
47
32
|
};
|
|
@@ -135,7 +120,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
135
120
|
},
|
|
136
121
|
logout: () => {
|
|
137
122
|
return stripeConnectInstance.then(instance => {
|
|
138
|
-
instance.logout();
|
|
123
|
+
return instance.logout();
|
|
139
124
|
});
|
|
140
125
|
}
|
|
141
126
|
};
|
|
@@ -152,7 +137,7 @@ const createWrapper = stripeConnect => {
|
|
|
152
137
|
sdk: true,
|
|
153
138
|
sdkOptions: {
|
|
154
139
|
// This will be replaced by the npm package version when bundling
|
|
155
|
-
sdkVersion: "3.
|
|
140
|
+
sdkVersion: "3.3.0"
|
|
156
141
|
}
|
|
157
142
|
})
|
|
158
143
|
}));
|
package/dist/pure.esm.js
CHANGED
|
@@ -1,43 +1,28 @@
|
|
|
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
|
-
},
|
|
8
4
|
"account-onboarding": {
|
|
9
5
|
setFullTermsOfServiceUrl: _termOfServiceUrl => {},
|
|
10
6
|
setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
|
|
11
7
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
12
8
|
setSkipTermsOfServiceCollection: _skipTermsOfServiceCollection => {},
|
|
9
|
+
setCollectionOptions: _collectionOptions => {},
|
|
13
10
|
setOnExit: _listener => {}
|
|
14
11
|
},
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
setCardSwitching: _cardSwitching => {},
|
|
19
|
-
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
20
|
-
},
|
|
21
|
-
"issuing-cards-list": {
|
|
22
|
-
setCardArtFileLink: _cardArtFileLink => {},
|
|
23
|
-
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
12
|
+
"payment-details": {
|
|
13
|
+
setPayment: _payment => {},
|
|
14
|
+
setOnClose: _listener => {}
|
|
24
15
|
}
|
|
25
16
|
};
|
|
26
17
|
|
|
27
18
|
const componentNameMapping = {
|
|
19
|
+
"account-onboarding": "stripe-connect-account-onboarding",
|
|
28
20
|
payments: "stripe-connect-payments",
|
|
29
|
-
payouts: "stripe-connect-payouts",
|
|
30
21
|
"payment-details": "stripe-connect-payment-details",
|
|
31
|
-
|
|
32
|
-
"payment-method-settings": "stripe-connect-payment-method-settings",
|
|
33
|
-
"account-management": "stripe-connect-account-management",
|
|
34
|
-
"notification-banner": "stripe-connect-notification-banner",
|
|
35
|
-
"instant-payouts": "stripe-connect-instant-payouts",
|
|
36
|
-
"issuing-card": "stripe-connect-issuing-card",
|
|
37
|
-
"issuing-cards-list": "stripe-connect-issuing-cards-list"
|
|
22
|
+
payouts: "stripe-connect-payouts"
|
|
38
23
|
};
|
|
39
24
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
40
|
-
const V0_URL = "https://connect-js.stripe.com/
|
|
25
|
+
const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
|
|
41
26
|
const findScript = () => {
|
|
42
27
|
return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
|
|
43
28
|
};
|
|
@@ -131,7 +116,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
131
116
|
},
|
|
132
117
|
logout: () => {
|
|
133
118
|
return stripeConnectInstance.then(instance => {
|
|
134
|
-
instance.logout();
|
|
119
|
+
return instance.logout();
|
|
135
120
|
});
|
|
136
121
|
}
|
|
137
122
|
};
|
|
@@ -148,7 +133,7 @@ const createWrapper = stripeConnect => {
|
|
|
148
133
|
sdk: true,
|
|
149
134
|
sdkOptions: {
|
|
150
135
|
// This will be replaced by the npm package version when bundling
|
|
151
|
-
sdkVersion: "3.
|
|
136
|
+
sdkVersion: "3.3.0"
|
|
152
137
|
}
|
|
153
138
|
})
|
|
154
139
|
}));
|
package/dist/pure.js
CHANGED
|
@@ -5,43 +5,28 @@ 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
|
-
},
|
|
12
8
|
"account-onboarding": {
|
|
13
9
|
setFullTermsOfServiceUrl: _termOfServiceUrl => {},
|
|
14
10
|
setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
|
|
15
11
|
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
16
12
|
setSkipTermsOfServiceCollection: _skipTermsOfServiceCollection => {},
|
|
13
|
+
setCollectionOptions: _collectionOptions => {},
|
|
17
14
|
setOnExit: _listener => {}
|
|
18
15
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
setCardSwitching: _cardSwitching => {},
|
|
23
|
-
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
24
|
-
},
|
|
25
|
-
"issuing-cards-list": {
|
|
26
|
-
setCardArtFileLink: _cardArtFileLink => {},
|
|
27
|
-
setFetchEphemeralKey: _fetchEphemeralKey => {}
|
|
16
|
+
"payment-details": {
|
|
17
|
+
setPayment: _payment => {},
|
|
18
|
+
setOnClose: _listener => {}
|
|
28
19
|
}
|
|
29
20
|
};
|
|
30
21
|
|
|
31
22
|
const componentNameMapping = {
|
|
23
|
+
"account-onboarding": "stripe-connect-account-onboarding",
|
|
32
24
|
payments: "stripe-connect-payments",
|
|
33
|
-
payouts: "stripe-connect-payouts",
|
|
34
25
|
"payment-details": "stripe-connect-payment-details",
|
|
35
|
-
|
|
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"
|
|
26
|
+
payouts: "stripe-connect-payouts"
|
|
42
27
|
};
|
|
43
28
|
const EXISTING_SCRIPT_MESSAGE = "loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
44
|
-
const V0_URL = "https://connect-js.stripe.com/
|
|
29
|
+
const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
|
|
45
30
|
const findScript = () => {
|
|
46
31
|
return document.querySelectorAll(`script[src="${V0_URL}"]`)[0] || null;
|
|
47
32
|
};
|
|
@@ -135,7 +120,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
135
120
|
},
|
|
136
121
|
logout: () => {
|
|
137
122
|
return stripeConnectInstance.then(instance => {
|
|
138
|
-
instance.logout();
|
|
123
|
+
return instance.logout();
|
|
139
124
|
});
|
|
140
125
|
}
|
|
141
126
|
};
|
|
@@ -152,7 +137,7 @@ const createWrapper = stripeConnect => {
|
|
|
152
137
|
sdk: true,
|
|
153
138
|
sdkOptions: {
|
|
154
139
|
// This will be replaced by the npm package version when bundling
|
|
155
|
-
sdkVersion: "3.
|
|
140
|
+
sdkVersion: "3.3.0"
|
|
156
141
|
}
|
|
157
142
|
})
|
|
158
143
|
}));
|
package/dist/src/shared.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IStripeConnectInitParams, StripeConnectInstance, ConnectElementTagName } from "../types";
|
|
2
2
|
export type LoadConnectAndInitialize = (initParams: IStripeConnectInitParams) => StripeConnectInstance;
|
|
3
|
-
|
|
3
|
+
type ConnectElementHTMLName = "stripe-connect-account-onboarding" | "stripe-connect-payments" | "stripe-connect-payment-details" | "stripe-connect-payouts";
|
|
4
4
|
export declare const componentNameMapping: Record<ConnectElementTagName, ConnectElementHTMLName>;
|
|
5
5
|
type StripeConnectInstanceExtended = StripeConnectInstance & {
|
|
6
6
|
debugInstance: () => Promise<StripeConnectInstance>;
|
package/dist/types/config.d.ts
CHANGED
|
@@ -1,32 +1,19 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
issuingCard: string;
|
|
6
|
-
nonce: string;
|
|
7
|
-
ephemeralKeySecret: string;
|
|
8
|
-
}>;
|
|
1
|
+
type CollectionOptions = {
|
|
2
|
+
fields: "currently_due" | "eventually_due";
|
|
3
|
+
futureRequirements?: "omit" | "include";
|
|
4
|
+
};
|
|
9
5
|
export declare const ConnectElementCustomMethodConfig: {
|
|
10
|
-
"payment-details": {
|
|
11
|
-
setPayment: (_payment: string | undefined) => void;
|
|
12
|
-
setOnClose: (_listener: (() => void) | undefined) => void;
|
|
13
|
-
};
|
|
14
6
|
"account-onboarding": {
|
|
15
7
|
setFullTermsOfServiceUrl: (_termOfServiceUrl: string | undefined) => void;
|
|
16
8
|
setRecipientTermsOfServiceUrl: (_recipientTermsOfServiceUrl: string | undefined) => void;
|
|
17
9
|
setPrivacyPolicyUrl: (_privacyPolicyUrl: string | undefined) => void;
|
|
18
10
|
setSkipTermsOfServiceCollection: (_skipTermsOfServiceCollection: boolean | undefined) => void;
|
|
11
|
+
setCollectionOptions: (_collectionOptions: CollectionOptions | undefined) => void;
|
|
19
12
|
setOnExit: (_listener: (() => void) | undefined) => void;
|
|
20
13
|
};
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
setCardSwitching: (_cardSwitching: boolean | undefined) => void;
|
|
25
|
-
setFetchEphemeralKey: (_fetchEphemeralKey: FetchEphemeralKeyFunction | undefined) => void;
|
|
26
|
-
};
|
|
27
|
-
"issuing-cards-list": {
|
|
28
|
-
setCardArtFileLink: (_cardArtFileLink: string | undefined) => void;
|
|
29
|
-
setFetchEphemeralKey: (_fetchEphemeralKey: FetchEphemeralKeyFunction | undefined) => void;
|
|
14
|
+
"payment-details": {
|
|
15
|
+
setPayment: (_payment: string | undefined) => void;
|
|
16
|
+
setOnClose: (_listener: (() => void) | undefined) => void;
|
|
30
17
|
};
|
|
31
18
|
};
|
|
32
19
|
export {};
|
package/package.json
CHANGED
package/src/shared.ts
CHANGED
|
@@ -10,32 +10,20 @@ export type LoadConnectAndInitialize = (
|
|
|
10
10
|
initParams: IStripeConnectInitParams
|
|
11
11
|
) => StripeConnectInstance;
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
type ConnectElementHTMLName =
|
|
14
|
+
| "stripe-connect-account-onboarding"
|
|
14
15
|
| "stripe-connect-payments"
|
|
15
|
-
| "stripe-connect-payouts"
|
|
16
16
|
| "stripe-connect-payment-details"
|
|
17
|
-
| "stripe-connect-
|
|
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";
|
|
17
|
+
| "stripe-connect-payouts";
|
|
24
18
|
|
|
25
19
|
export const componentNameMapping: Record<
|
|
26
20
|
ConnectElementTagName,
|
|
27
21
|
ConnectElementHTMLName
|
|
28
22
|
> = {
|
|
23
|
+
"account-onboarding": "stripe-connect-account-onboarding",
|
|
29
24
|
payments: "stripe-connect-payments",
|
|
30
|
-
payouts: "stripe-connect-payouts",
|
|
31
25
|
"payment-details": "stripe-connect-payment-details",
|
|
32
|
-
|
|
33
|
-
"payment-method-settings": "stripe-connect-payment-method-settings",
|
|
34
|
-
"account-management": "stripe-connect-account-management",
|
|
35
|
-
"notification-banner": "stripe-connect-notification-banner",
|
|
36
|
-
"instant-payouts": "stripe-connect-instant-payouts",
|
|
37
|
-
"issuing-card": "stripe-connect-issuing-card",
|
|
38
|
-
"issuing-cards-list": "stripe-connect-issuing-cards-list"
|
|
26
|
+
payouts: "stripe-connect-payouts"
|
|
39
27
|
};
|
|
40
28
|
|
|
41
29
|
type StripeConnectInstanceExtended = StripeConnectInstance & {
|
|
@@ -48,7 +36,7 @@ interface StripeConnectWrapper {
|
|
|
48
36
|
|
|
49
37
|
const EXISTING_SCRIPT_MESSAGE =
|
|
50
38
|
"loadConnect was called but an existing Connect.js script already exists in the document; existing script parameters will be used";
|
|
51
|
-
const V0_URL = "https://connect-js.stripe.com/
|
|
39
|
+
const V0_URL = "https://connect-js.stripe.com/v1.0/connect.js";
|
|
52
40
|
|
|
53
41
|
export const findScript = (): HTMLScriptElement | null => {
|
|
54
42
|
return (
|
|
@@ -179,7 +167,7 @@ export const initStripeConnect = (
|
|
|
179
167
|
},
|
|
180
168
|
logout: () => {
|
|
181
169
|
return stripeConnectInstance.then(instance => {
|
|
182
|
-
instance.logout();
|
|
170
|
+
return instance.logout();
|
|
183
171
|
});
|
|
184
172
|
}
|
|
185
173
|
};
|
package/types/config.ts
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
3
3
|
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
issuingCard: string;
|
|
9
|
-
nonce: string;
|
|
10
|
-
ephemeralKeySecret: string;
|
|
11
|
-
}>;
|
|
4
|
+
type CollectionOptions = {
|
|
5
|
+
fields: "currently_due" | "eventually_due";
|
|
6
|
+
futureRequirements?: "omit" | "include";
|
|
7
|
+
};
|
|
12
8
|
|
|
13
9
|
export const ConnectElementCustomMethodConfig = {
|
|
14
|
-
"payment-details": {
|
|
15
|
-
setPayment: (_payment: string | undefined): void => {},
|
|
16
|
-
setOnClose: (_listener: (() => void) | undefined): void => {}
|
|
17
|
-
},
|
|
18
10
|
"account-onboarding": {
|
|
19
11
|
setFullTermsOfServiceUrl: (
|
|
20
12
|
_termOfServiceUrl: string | undefined
|
|
@@ -26,20 +18,13 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
26
18
|
setSkipTermsOfServiceCollection: (
|
|
27
19
|
_skipTermsOfServiceCollection: boolean | undefined
|
|
28
20
|
): void => {},
|
|
21
|
+
setCollectionOptions: (
|
|
22
|
+
_collectionOptions: CollectionOptions | undefined
|
|
23
|
+
): void => {},
|
|
29
24
|
setOnExit: (_listener: (() => void) | undefined): void => {}
|
|
30
25
|
},
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
setCardSwitching: (_cardSwitching: boolean | undefined): void => {},
|
|
35
|
-
setFetchEphemeralKey: (
|
|
36
|
-
_fetchEphemeralKey: FetchEphemeralKeyFunction | undefined
|
|
37
|
-
): void => {}
|
|
38
|
-
},
|
|
39
|
-
"issuing-cards-list": {
|
|
40
|
-
setCardArtFileLink: (_cardArtFileLink: string | undefined): void => {},
|
|
41
|
-
setFetchEphemeralKey: (
|
|
42
|
-
_fetchEphemeralKey: FetchEphemeralKeyFunction | undefined
|
|
43
|
-
): void => {}
|
|
26
|
+
"payment-details": {
|
|
27
|
+
setPayment: (_payment: string | undefined): void => {},
|
|
28
|
+
setOnClose: (_listener: (() => void) | undefined): void => {}
|
|
44
29
|
}
|
|
45
30
|
};
|
package/types/shared.d.ts
CHANGED
|
@@ -447,13 +447,7 @@ 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"
|
|
450
451
|
| "payments"
|
|
451
|
-
| "payouts"
|
|
452
452
|
| "payment-details"
|
|
453
|
-
| "
|
|
454
|
-
| "payment-method-settings"
|
|
455
|
-
| "account-management"
|
|
456
|
-
| "notification-banner"
|
|
457
|
-
| "instant-payouts"
|
|
458
|
-
| "issuing-card"
|
|
459
|
-
| "issuing-cards-list";
|
|
453
|
+
| "payouts";
|