@stripe/connect-js 3.4.9-preview.1 → 3.5.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/components/componentsAndSetters.d.ts +17 -101
- package/dist/connect.esm.js +18 -83
- package/dist/connect.js +18 -83
- package/dist/exportedTypes/shared.d.ts +1 -68
- package/dist/init.d.ts +1 -1
- package/dist/pure.esm.js +18 -83
- package/dist/pure.js +18 -83
- package/package.json +4 -4
- package/src/components/componentsAndSetters.ts +24 -197
- package/src/exportedTypes/shared.ts +0 -69
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const connectElementTagNames: readonly ["
|
|
1
|
+
export declare const connectElementTagNames: readonly ["account-onboarding", "disputes-list", "payments", "payment-details", "payment-disputes", "payouts", "payouts-list", "payout-details", "balances", "account-management", "notification-banner", "instant-payouts-promotion", "issuing-card", "issuing-cards-list", "financial-account", "financial-account-transactions", "documents", "tax-registrations", "tax-settings", "terminal-hardware-orders", "terminal-hardware-shop", "balance-report", "payout-reconciliation-report", "reporting-chart"];
|
|
2
2
|
export type FetchEphemeralKeyFunction = (fetchParams: {
|
|
3
3
|
issuingCard: string;
|
|
4
4
|
nonce: string;
|
|
@@ -48,10 +48,6 @@ export type NotificationCount = {
|
|
|
48
48
|
total: number;
|
|
49
49
|
actionRequired: number;
|
|
50
50
|
};
|
|
51
|
-
export type InstallState = {
|
|
52
|
-
appId: string;
|
|
53
|
-
state: "INSTALLED" | "UNINSTALLED";
|
|
54
|
-
};
|
|
55
51
|
export type LoaderStart = {
|
|
56
52
|
elementTagName: string;
|
|
57
53
|
};
|
|
@@ -69,15 +65,8 @@ export type EmbeddedError = {
|
|
|
69
65
|
type: EmbeddedErrorType;
|
|
70
66
|
message?: string;
|
|
71
67
|
};
|
|
72
|
-
export type
|
|
73
|
-
productType: "standard" | "refill" | "none";
|
|
74
|
-
activeFinancingCount: number;
|
|
75
|
-
};
|
|
76
|
-
export type FinancingPromotionLayoutType = "full" | "banner";
|
|
77
|
-
export type CapitalFinancingManualPaymentPresentationMode = "inline" | "overlay";
|
|
78
|
-
export type IntervalType = "day" | "week" | "month" | "quarter" | "year";
|
|
68
|
+
export type IntervalType = "day" | "week" | "month";
|
|
79
69
|
export type ReportName = "gross_volume" | "net_volume";
|
|
80
|
-
export type RecipientDataSource = "customers";
|
|
81
70
|
export type EmbeddedErrorType =
|
|
82
71
|
/**
|
|
83
72
|
* Failure to connect to Stripe's API.
|
|
@@ -112,19 +101,6 @@ export declare const ConnectElementCommonMethodConfig: {
|
|
|
112
101
|
setOnLoaderStart: (_listener: (({ elementTagName }: LoaderStart) => void) | undefined) => void;
|
|
113
102
|
};
|
|
114
103
|
export declare const ConnectElementCustomMethodConfig: {
|
|
115
|
-
payments: {
|
|
116
|
-
setDefaultFilters: (_filters: PaymentsListDefaultFilters | undefined) => void;
|
|
117
|
-
};
|
|
118
|
-
"payment-details": {
|
|
119
|
-
setPayment: (_payment: string | undefined) => void;
|
|
120
|
-
setOnClose: (_listener: (() => void) | undefined) => void;
|
|
121
|
-
};
|
|
122
|
-
"payment-disputes": {
|
|
123
|
-
setPayment: (_payment: string | undefined) => void;
|
|
124
|
-
setOnDisputesLoaded: (_listener: (({ total }: {
|
|
125
|
-
total: number;
|
|
126
|
-
}) => void) | undefined) => void;
|
|
127
|
-
};
|
|
128
104
|
"account-onboarding": {
|
|
129
105
|
setFullTermsOfServiceUrl: (_termOfServiceUrl: string | undefined) => void;
|
|
130
106
|
setRecipientTermsOfServiceUrl: (_recipientTermsOfServiceUrl: string | undefined) => void;
|
|
@@ -164,67 +140,22 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
164
140
|
"financial-account": {
|
|
165
141
|
setFinancialAccount: (_financialAccount: string) => void;
|
|
166
142
|
};
|
|
167
|
-
"financial-account-rewards": {
|
|
168
|
-
setFinancialAccount: (_financialAccount: string) => void;
|
|
169
|
-
};
|
|
170
143
|
"financial-account-transactions": {
|
|
171
144
|
setFinancialAccount: (_financialAccount: string) => void;
|
|
172
145
|
};
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
};
|
|
176
|
-
"app-install": {
|
|
177
|
-
setApp: (_app: string | undefined) => void;
|
|
178
|
-
setOnAppInstallStateFetched: (_listener: (({ appId, state }: InstallState) => void) | undefined) => void;
|
|
179
|
-
setOnAppInstallStateChanged: (_listener: (({ appId, state }: InstallState) => void) | undefined) => void;
|
|
180
|
-
};
|
|
181
|
-
"app-viewport": {
|
|
182
|
-
setApp: (_app: string | undefined) => void;
|
|
183
|
-
setAppData: (_appData: Record<string, string> | undefined) => void;
|
|
146
|
+
payments: {
|
|
147
|
+
setDefaultFilters: (_filters: PaymentsListDefaultFilters | undefined) => void;
|
|
184
148
|
};
|
|
185
|
-
"payment-
|
|
186
|
-
|
|
149
|
+
"payment-details": {
|
|
150
|
+
setPayment: (_payment: string | undefined) => void;
|
|
151
|
+
setOnClose: (_listener: (() => void) | undefined) => void;
|
|
187
152
|
};
|
|
188
|
-
"
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
setHowCapitalWorksUrl: (_howCapitalWorksUrl: string | undefined) => void;
|
|
192
|
-
setSupportUrl: (_supportUrl: string | undefined) => void;
|
|
193
|
-
setOnFinancingsLoaded: (_listener: (({ total }: {
|
|
153
|
+
"payment-disputes": {
|
|
154
|
+
setPayment: (_payment: string | undefined) => void;
|
|
155
|
+
setOnDisputesLoaded: (_listener: (({ total }: {
|
|
194
156
|
total: number;
|
|
195
157
|
}) => void) | undefined) => void;
|
|
196
158
|
};
|
|
197
|
-
"capital-financing-application": {
|
|
198
|
-
setOnApplicationSubmitted: (_listener: (() => void) | undefined) => void;
|
|
199
|
-
setPrivacyPolicyUrl: (_privacyPolicyUrl: string | undefined) => void;
|
|
200
|
-
setHowCapitalWorksUrl: (_howCapitalWorksUrl: string | undefined) => void;
|
|
201
|
-
setOnApplicationStepChange: (_listener: (({ step }: StepChange) => void) | undefined) => void;
|
|
202
|
-
setDefaultFinancingOffer: (_defaultFinancingOffer: string | undefined) => void;
|
|
203
|
-
setOnApplicationInitiated: (_listener: (() => void) | undefined) => void;
|
|
204
|
-
setResumeInitiatedApplication: (_resumeInitiatedApplication: boolean | undefined) => void;
|
|
205
|
-
};
|
|
206
|
-
"capital-financing-manual-payment": {
|
|
207
|
-
setPresentationMode: (_presentationMode: CapitalFinancingManualPaymentPresentationMode | undefined) => void;
|
|
208
|
-
setOnManualPaymentSubmitted: (_listener: (() => void) | undefined) => void;
|
|
209
|
-
setOnOverlayClosed: (_listener: (() => void) | undefined) => void;
|
|
210
|
-
};
|
|
211
|
-
"capital-financing-promotion": {
|
|
212
|
-
setLayout: (_layout: FinancingPromotionLayoutType | undefined) => void;
|
|
213
|
-
setOnApplicationSubmitted: (_listener: (() => void) | undefined) => void;
|
|
214
|
-
setOnEligibleFinancingOfferLoaded: (_listener: (({ productType, activeFinancingCount, }: FinancingProductType) => void) | undefined) => void;
|
|
215
|
-
setPrivacyPolicyUrl: (_privacyPolicyUrl: string | undefined) => void;
|
|
216
|
-
setHowCapitalWorksUrl: (_howCapitalWorksUrl: string | undefined) => void;
|
|
217
|
-
setEligibilityCriteriaUrl: (_eligibilityCriteriaUrl: string | undefined) => void;
|
|
218
|
-
setOnApplicationStepChange: (_listener: (({ step }: StepChange) => void) | undefined) => void;
|
|
219
|
-
setOnAdvanceToCapitalFinancingApplication: (_listener: (() => void) | undefined) => void;
|
|
220
|
-
setDisableNestedCapitalFinancingApplication: (_disableNestedCapitalFinancingApplication: boolean | undefined) => void;
|
|
221
|
-
};
|
|
222
|
-
"reporting-chart": {
|
|
223
|
-
setReportName: (_reportName: ReportName) => void;
|
|
224
|
-
setIntervalStart: (_intervalStart: Date | undefined) => void;
|
|
225
|
-
setIntervalEnd: (_intervalEnd: Date | undefined) => void;
|
|
226
|
-
setIntervalType: (_intervalType: IntervalType | undefined) => void;
|
|
227
|
-
};
|
|
228
159
|
"tax-settings": {
|
|
229
160
|
setHideProductTaxCodeSelector: (_hidden: boolean | undefined) => void;
|
|
230
161
|
setDisplayHeadOfficeCountries: (_countries: string[] | undefined) => void;
|
|
@@ -241,35 +172,20 @@ export declare const ConnectElementCustomMethodConfig: {
|
|
|
241
172
|
id: string;
|
|
242
173
|
}) => void) | undefined) => void;
|
|
243
174
|
};
|
|
244
|
-
"tax-threshold-monitoring": {
|
|
245
|
-
setDisplayCountries: (_countries: string[] | undefined) => void;
|
|
246
|
-
};
|
|
247
|
-
"product-tax-code-selector": {
|
|
248
|
-
setOnTaxCodeSelect: (_listener: ((taxCode: string | null, _: {
|
|
249
|
-
analyticsName: string;
|
|
250
|
-
} | null) => void) | undefined) => void;
|
|
251
|
-
setHideDescription: (_hideDescription: boolean | undefined) => void;
|
|
252
|
-
setDisabled: (_disabled: boolean | undefined) => void;
|
|
253
|
-
setInitialTaxCode: (_initialTaxCode: string | undefined) => void;
|
|
254
|
-
};
|
|
255
|
-
"export-tax-transactions": {};
|
|
256
175
|
"payout-details": {
|
|
257
176
|
setPayout: (_payout: string | undefined) => void;
|
|
258
177
|
setOnClose: (_listener: (() => void) | undefined) => void;
|
|
259
178
|
};
|
|
260
|
-
"check-scanning": {
|
|
261
|
-
setHandleCheckScanSubmitted: (_handleCheckScanSubmitted: ({ checkScanToken, }: {
|
|
262
|
-
checkScanToken: string;
|
|
263
|
-
}) => Promise<void>) => void;
|
|
264
|
-
};
|
|
265
|
-
"agentic-commerce-settings": {
|
|
266
|
-
setOnAgreementUpdated: (_listener: (({ agreementId }: {
|
|
267
|
-
agreementId: string;
|
|
268
|
-
}) => void) | undefined) => void;
|
|
269
|
-
};
|
|
270
179
|
"terminal-hardware-shop": {
|
|
271
180
|
setOnCheckoutFinished: (_listener: (() => void) | undefined) => void;
|
|
272
181
|
};
|
|
182
|
+
"reporting-chart": {
|
|
183
|
+
setReportName: (_reportName: ReportName) => void;
|
|
184
|
+
setIntervalStart: (_intervalStart: Date | undefined) => void;
|
|
185
|
+
setIntervalEnd: (_intervalEnd: Date | undefined) => void;
|
|
186
|
+
setIntervalType: (_intervalType: IntervalType | undefined) => void;
|
|
187
|
+
setHeight: (_height: string | undefined) => void;
|
|
188
|
+
};
|
|
273
189
|
"payout-reconciliation-report": {
|
|
274
190
|
setOnReportAvailabilityLoaded: (_listener: (({ isReportAvailable }: {
|
|
275
191
|
isReportAvailable: boolean;
|
package/dist/connect.esm.js
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
// Source of truth for the entire list of components. When you add a new component, it should be added here.
|
|
3
|
-
const connectElementTagNames = ["
|
|
3
|
+
const connectElementTagNames = ["account-onboarding", "disputes-list", "payments", "payment-details", "payment-disputes", "payouts", "payouts-list", "payout-details", "balances", "account-management", "notification-banner", "instant-payouts-promotion", "issuing-card", "issuing-cards-list", "financial-account", "financial-account-transactions", "documents", "tax-registrations", "tax-settings", "terminal-hardware-orders", "terminal-hardware-shop", "balance-report", "payout-reconciliation-report", "reporting-chart"];
|
|
4
4
|
const ConnectElementCommonMethodConfig = {
|
|
5
5
|
setOnLoadError: _listener => {},
|
|
6
6
|
setOnLoaderStart: _listener => {}
|
|
7
7
|
};
|
|
8
8
|
const ConnectElementCustomMethodConfig = {
|
|
9
|
-
payments: {
|
|
10
|
-
setDefaultFilters: _filters => {}
|
|
11
|
-
},
|
|
12
|
-
"payment-details": {
|
|
13
|
-
setPayment: _payment => {},
|
|
14
|
-
setOnClose: _listener => {}
|
|
15
|
-
},
|
|
16
|
-
"payment-disputes": {
|
|
17
|
-
setPayment: _payment => {},
|
|
18
|
-
setOnDisputesLoaded: _listener => {}
|
|
19
|
-
},
|
|
20
9
|
"account-onboarding": {
|
|
21
10
|
setFullTermsOfServiceUrl: _termOfServiceUrl => {},
|
|
22
11
|
setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
|
|
@@ -52,64 +41,19 @@ const ConnectElementCustomMethodConfig = {
|
|
|
52
41
|
"financial-account": {
|
|
53
42
|
setFinancialAccount: _financialAccount => {}
|
|
54
43
|
},
|
|
55
|
-
"financial-account-rewards": {
|
|
56
|
-
setFinancialAccount: _financialAccount => {}
|
|
57
|
-
},
|
|
58
44
|
"financial-account-transactions": {
|
|
59
45
|
setFinancialAccount: _financialAccount => {}
|
|
60
46
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
"app-install": {
|
|
65
|
-
setApp: _app => {},
|
|
66
|
-
setOnAppInstallStateFetched: _listener => {},
|
|
67
|
-
setOnAppInstallStateChanged: _listener => {}
|
|
68
|
-
},
|
|
69
|
-
"app-viewport": {
|
|
70
|
-
setApp: _app => {},
|
|
71
|
-
setAppData: _appData => {}
|
|
72
|
-
},
|
|
73
|
-
"payment-method-settings": {
|
|
74
|
-
setPaymentMethodConfiguration: _paymentMethodConfiguration => {}
|
|
75
|
-
},
|
|
76
|
-
"capital-financing": {
|
|
77
|
-
setDefaultFinancingOffer: _defaultFinancingOffer => {},
|
|
78
|
-
setShowFinancingSelector: _showFinancingSelector => {},
|
|
79
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
80
|
-
setSupportUrl: _supportUrl => {},
|
|
81
|
-
setOnFinancingsLoaded: _listener => {}
|
|
82
|
-
},
|
|
83
|
-
"capital-financing-application": {
|
|
84
|
-
setOnApplicationSubmitted: _listener => {},
|
|
85
|
-
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
86
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
87
|
-
setOnApplicationStepChange: _listener => {},
|
|
88
|
-
setDefaultFinancingOffer: _defaultFinancingOffer => {},
|
|
89
|
-
setOnApplicationInitiated: _listener => {},
|
|
90
|
-
setResumeInitiatedApplication: _resumeInitiatedApplication => {}
|
|
91
|
-
},
|
|
92
|
-
"capital-financing-manual-payment": {
|
|
93
|
-
setPresentationMode: _presentationMode => {},
|
|
94
|
-
setOnManualPaymentSubmitted: _listener => {},
|
|
95
|
-
setOnOverlayClosed: _listener => {}
|
|
47
|
+
payments: {
|
|
48
|
+
setDefaultFilters: _filters => {}
|
|
96
49
|
},
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
setOnEligibleFinancingOfferLoaded: _listener => {},
|
|
101
|
-
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
102
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
103
|
-
setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {},
|
|
104
|
-
setOnApplicationStepChange: _listener => {},
|
|
105
|
-
setOnAdvanceToCapitalFinancingApplication: _listener => {},
|
|
106
|
-
setDisableNestedCapitalFinancingApplication: _disableNestedCapitalFinancingApplication => {}
|
|
50
|
+
"payment-details": {
|
|
51
|
+
setPayment: _payment => {},
|
|
52
|
+
setOnClose: _listener => {}
|
|
107
53
|
},
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
setIntervalEnd: _intervalEnd => {},
|
|
112
|
-
setIntervalType: _intervalType => {}
|
|
54
|
+
"payment-disputes": {
|
|
55
|
+
setPayment: _payment => {},
|
|
56
|
+
setOnDisputesLoaded: _listener => {}
|
|
113
57
|
},
|
|
114
58
|
"tax-settings": {
|
|
115
59
|
setHideProductTaxCodeSelector: _hidden => {},
|
|
@@ -121,29 +65,20 @@ const ConnectElementCustomMethodConfig = {
|
|
|
121
65
|
setDisplayCountries: _countries => {},
|
|
122
66
|
setOnAfterTaxRegistrationExpired: _listener => {}
|
|
123
67
|
},
|
|
124
|
-
"tax-threshold-monitoring": {
|
|
125
|
-
setDisplayCountries: _countries => {}
|
|
126
|
-
},
|
|
127
|
-
"product-tax-code-selector": {
|
|
128
|
-
setOnTaxCodeSelect: _listener => {},
|
|
129
|
-
setHideDescription: _hideDescription => {},
|
|
130
|
-
setDisabled: _disabled => {},
|
|
131
|
-
setInitialTaxCode: _initialTaxCode => {}
|
|
132
|
-
},
|
|
133
|
-
"export-tax-transactions": {},
|
|
134
68
|
"payout-details": {
|
|
135
69
|
setPayout: _payout => {},
|
|
136
70
|
setOnClose: _listener => {}
|
|
137
71
|
},
|
|
138
|
-
"check-scanning": {
|
|
139
|
-
setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
|
|
140
|
-
},
|
|
141
|
-
"agentic-commerce-settings": {
|
|
142
|
-
setOnAgreementUpdated: _listener => {}
|
|
143
|
-
},
|
|
144
72
|
"terminal-hardware-shop": {
|
|
145
73
|
setOnCheckoutFinished: _listener => {}
|
|
146
74
|
},
|
|
75
|
+
"reporting-chart": {
|
|
76
|
+
setReportName: _reportName => {},
|
|
77
|
+
setIntervalStart: _intervalStart => {},
|
|
78
|
+
setIntervalEnd: _intervalEnd => {},
|
|
79
|
+
setIntervalType: _intervalType => {},
|
|
80
|
+
setHeight: _height => {}
|
|
81
|
+
},
|
|
147
82
|
"payout-reconciliation-report": {
|
|
148
83
|
setOnReportAvailabilityLoaded: _listener => {}
|
|
149
84
|
}
|
|
@@ -249,7 +184,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
249
184
|
element[method] = function (value) {
|
|
250
185
|
stripeConnectInstance.then(() => {
|
|
251
186
|
if (!this[`${method}InternalOnly`]) {
|
|
252
|
-
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.
|
|
187
|
+
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.5.0`);
|
|
253
188
|
}
|
|
254
189
|
this[`${method}InternalOnly`](value);
|
|
255
190
|
});
|
|
@@ -303,7 +238,7 @@ const createWrapper = stripeConnect => {
|
|
|
303
238
|
sdk: true,
|
|
304
239
|
sdkOptions: {
|
|
305
240
|
// This will be replaced by the npm package version when bundling
|
|
306
|
-
sdkVersion: "3.
|
|
241
|
+
sdkVersion: "3.5.0"
|
|
307
242
|
}
|
|
308
243
|
})
|
|
309
244
|
}));
|
package/dist/connect.js
CHANGED
|
@@ -4,23 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
6
6
|
// Source of truth for the entire list of components. When you add a new component, it should be added here.
|
|
7
|
-
const connectElementTagNames = ["
|
|
7
|
+
const connectElementTagNames = ["account-onboarding", "disputes-list", "payments", "payment-details", "payment-disputes", "payouts", "payouts-list", "payout-details", "balances", "account-management", "notification-banner", "instant-payouts-promotion", "issuing-card", "issuing-cards-list", "financial-account", "financial-account-transactions", "documents", "tax-registrations", "tax-settings", "terminal-hardware-orders", "terminal-hardware-shop", "balance-report", "payout-reconciliation-report", "reporting-chart"];
|
|
8
8
|
const ConnectElementCommonMethodConfig = {
|
|
9
9
|
setOnLoadError: _listener => {},
|
|
10
10
|
setOnLoaderStart: _listener => {}
|
|
11
11
|
};
|
|
12
12
|
const ConnectElementCustomMethodConfig = {
|
|
13
|
-
payments: {
|
|
14
|
-
setDefaultFilters: _filters => {}
|
|
15
|
-
},
|
|
16
|
-
"payment-details": {
|
|
17
|
-
setPayment: _payment => {},
|
|
18
|
-
setOnClose: _listener => {}
|
|
19
|
-
},
|
|
20
|
-
"payment-disputes": {
|
|
21
|
-
setPayment: _payment => {},
|
|
22
|
-
setOnDisputesLoaded: _listener => {}
|
|
23
|
-
},
|
|
24
13
|
"account-onboarding": {
|
|
25
14
|
setFullTermsOfServiceUrl: _termOfServiceUrl => {},
|
|
26
15
|
setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
|
|
@@ -56,64 +45,19 @@ const ConnectElementCustomMethodConfig = {
|
|
|
56
45
|
"financial-account": {
|
|
57
46
|
setFinancialAccount: _financialAccount => {}
|
|
58
47
|
},
|
|
59
|
-
"financial-account-rewards": {
|
|
60
|
-
setFinancialAccount: _financialAccount => {}
|
|
61
|
-
},
|
|
62
48
|
"financial-account-transactions": {
|
|
63
49
|
setFinancialAccount: _financialAccount => {}
|
|
64
50
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
"app-install": {
|
|
69
|
-
setApp: _app => {},
|
|
70
|
-
setOnAppInstallStateFetched: _listener => {},
|
|
71
|
-
setOnAppInstallStateChanged: _listener => {}
|
|
72
|
-
},
|
|
73
|
-
"app-viewport": {
|
|
74
|
-
setApp: _app => {},
|
|
75
|
-
setAppData: _appData => {}
|
|
76
|
-
},
|
|
77
|
-
"payment-method-settings": {
|
|
78
|
-
setPaymentMethodConfiguration: _paymentMethodConfiguration => {}
|
|
79
|
-
},
|
|
80
|
-
"capital-financing": {
|
|
81
|
-
setDefaultFinancingOffer: _defaultFinancingOffer => {},
|
|
82
|
-
setShowFinancingSelector: _showFinancingSelector => {},
|
|
83
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
84
|
-
setSupportUrl: _supportUrl => {},
|
|
85
|
-
setOnFinancingsLoaded: _listener => {}
|
|
86
|
-
},
|
|
87
|
-
"capital-financing-application": {
|
|
88
|
-
setOnApplicationSubmitted: _listener => {},
|
|
89
|
-
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
90
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
91
|
-
setOnApplicationStepChange: _listener => {},
|
|
92
|
-
setDefaultFinancingOffer: _defaultFinancingOffer => {},
|
|
93
|
-
setOnApplicationInitiated: _listener => {},
|
|
94
|
-
setResumeInitiatedApplication: _resumeInitiatedApplication => {}
|
|
95
|
-
},
|
|
96
|
-
"capital-financing-manual-payment": {
|
|
97
|
-
setPresentationMode: _presentationMode => {},
|
|
98
|
-
setOnManualPaymentSubmitted: _listener => {},
|
|
99
|
-
setOnOverlayClosed: _listener => {}
|
|
51
|
+
payments: {
|
|
52
|
+
setDefaultFilters: _filters => {}
|
|
100
53
|
},
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
setOnEligibleFinancingOfferLoaded: _listener => {},
|
|
105
|
-
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
106
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
107
|
-
setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {},
|
|
108
|
-
setOnApplicationStepChange: _listener => {},
|
|
109
|
-
setOnAdvanceToCapitalFinancingApplication: _listener => {},
|
|
110
|
-
setDisableNestedCapitalFinancingApplication: _disableNestedCapitalFinancingApplication => {}
|
|
54
|
+
"payment-details": {
|
|
55
|
+
setPayment: _payment => {},
|
|
56
|
+
setOnClose: _listener => {}
|
|
111
57
|
},
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
setIntervalEnd: _intervalEnd => {},
|
|
116
|
-
setIntervalType: _intervalType => {}
|
|
58
|
+
"payment-disputes": {
|
|
59
|
+
setPayment: _payment => {},
|
|
60
|
+
setOnDisputesLoaded: _listener => {}
|
|
117
61
|
},
|
|
118
62
|
"tax-settings": {
|
|
119
63
|
setHideProductTaxCodeSelector: _hidden => {},
|
|
@@ -125,29 +69,20 @@ const ConnectElementCustomMethodConfig = {
|
|
|
125
69
|
setDisplayCountries: _countries => {},
|
|
126
70
|
setOnAfterTaxRegistrationExpired: _listener => {}
|
|
127
71
|
},
|
|
128
|
-
"tax-threshold-monitoring": {
|
|
129
|
-
setDisplayCountries: _countries => {}
|
|
130
|
-
},
|
|
131
|
-
"product-tax-code-selector": {
|
|
132
|
-
setOnTaxCodeSelect: _listener => {},
|
|
133
|
-
setHideDescription: _hideDescription => {},
|
|
134
|
-
setDisabled: _disabled => {},
|
|
135
|
-
setInitialTaxCode: _initialTaxCode => {}
|
|
136
|
-
},
|
|
137
|
-
"export-tax-transactions": {},
|
|
138
72
|
"payout-details": {
|
|
139
73
|
setPayout: _payout => {},
|
|
140
74
|
setOnClose: _listener => {}
|
|
141
75
|
},
|
|
142
|
-
"check-scanning": {
|
|
143
|
-
setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
|
|
144
|
-
},
|
|
145
|
-
"agentic-commerce-settings": {
|
|
146
|
-
setOnAgreementUpdated: _listener => {}
|
|
147
|
-
},
|
|
148
76
|
"terminal-hardware-shop": {
|
|
149
77
|
setOnCheckoutFinished: _listener => {}
|
|
150
78
|
},
|
|
79
|
+
"reporting-chart": {
|
|
80
|
+
setReportName: _reportName => {},
|
|
81
|
+
setIntervalStart: _intervalStart => {},
|
|
82
|
+
setIntervalEnd: _intervalEnd => {},
|
|
83
|
+
setIntervalType: _intervalType => {},
|
|
84
|
+
setHeight: _height => {}
|
|
85
|
+
},
|
|
151
86
|
"payout-reconciliation-report": {
|
|
152
87
|
setOnReportAvailabilityLoaded: _listener => {}
|
|
153
88
|
}
|
|
@@ -253,7 +188,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
253
188
|
element[method] = function (value) {
|
|
254
189
|
stripeConnectInstance.then(() => {
|
|
255
190
|
if (!this[`${method}InternalOnly`]) {
|
|
256
|
-
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.
|
|
191
|
+
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.5.0`);
|
|
257
192
|
}
|
|
258
193
|
this[`${method}InternalOnly`](value);
|
|
259
194
|
});
|
|
@@ -307,7 +242,7 @@ const createWrapper = stripeConnect => {
|
|
|
307
242
|
sdk: true,
|
|
308
243
|
sdkOptions: {
|
|
309
244
|
// This will be replaced by the npm package version when bundling
|
|
310
|
-
sdkVersion: "3.
|
|
245
|
+
sdkVersion: "3.5.0"
|
|
311
246
|
}
|
|
312
247
|
})
|
|
313
248
|
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConnectElementCommonMethodConfig, ConnectElementCustomMethodConfig, connectElementTagNames
|
|
1
|
+
import type { ConnectElementCommonMethodConfig, ConnectElementCustomMethodConfig, connectElementTagNames } from "../components/componentsAndSetters";
|
|
2
2
|
export type LoadConnectAndInitialize = (initParams: IStripeConnectInitParams) => StripeConnectInstance;
|
|
3
3
|
export interface StripeConnectWrapper {
|
|
4
4
|
initialize: (params: IStripeConnectInitParams) => StripeConnectInstance;
|
|
@@ -435,68 +435,6 @@ export type IStripeConnectUpdateParams = {
|
|
|
435
435
|
*/
|
|
436
436
|
displayOptions?: IStripeConnectDisplayOptions;
|
|
437
437
|
};
|
|
438
|
-
/**
|
|
439
|
-
* Reasons why risk signals collection was skipped.
|
|
440
|
-
*/
|
|
441
|
-
export type RiskSignalsCollectionSkippedReason =
|
|
442
|
-
/**
|
|
443
|
-
* Required component (account_onboarding) not enabled.
|
|
444
|
-
*/
|
|
445
|
-
"required_component_not_enabled"
|
|
446
|
-
/**
|
|
447
|
-
* The account doesn't have a risk signals collection requirement.
|
|
448
|
-
*/
|
|
449
|
-
| "not_required"
|
|
450
|
-
/**
|
|
451
|
-
* The risk signals collection requirement has already been fulfilled.
|
|
452
|
-
*/
|
|
453
|
-
| "requirement_fulfilled";
|
|
454
|
-
/**
|
|
455
|
-
* Error types that can occur during risk signals collection.
|
|
456
|
-
*/
|
|
457
|
-
export type RiskSignalsCollectionErrorType = Extract<EmbeddedErrorType, "api_connection_error" | "invalid_request_error" | "rate_limit_error" | "api_error">;
|
|
458
|
-
/**
|
|
459
|
-
* Errors that can occur during risk signals collection.
|
|
460
|
-
*/
|
|
461
|
-
export type RiskSignalsCollectionError =
|
|
462
|
-
/**
|
|
463
|
-
* Error occurred during general Connect.js loading.
|
|
464
|
-
*/
|
|
465
|
-
{
|
|
466
|
-
type: "load_error";
|
|
467
|
-
loadError: EmbeddedError;
|
|
468
|
-
}
|
|
469
|
-
/**
|
|
470
|
-
* Error occurred during risk signals collection.
|
|
471
|
-
*/
|
|
472
|
-
| {
|
|
473
|
-
type: RiskSignalsCollectionErrorType;
|
|
474
|
-
message?: string;
|
|
475
|
-
};
|
|
476
|
-
/**
|
|
477
|
-
* Event emitted during risk signals collection.
|
|
478
|
-
*/
|
|
479
|
-
export declare type RiskSignalsCollectionEvent =
|
|
480
|
-
/**
|
|
481
|
-
* Risk signals collection completed and successfully received by Stripe.
|
|
482
|
-
*/
|
|
483
|
-
{
|
|
484
|
-
status: "completed";
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
487
|
-
* Risk signals collection skipped with reason.
|
|
488
|
-
*/
|
|
489
|
-
| {
|
|
490
|
-
status: "skipped";
|
|
491
|
-
skippedReason: RiskSignalsCollectionSkippedReason;
|
|
492
|
-
}
|
|
493
|
-
/**
|
|
494
|
-
* Risk signals collection failed due to error and was not sent to Stripe server.
|
|
495
|
-
*/
|
|
496
|
-
| {
|
|
497
|
-
status: "failed";
|
|
498
|
-
error: RiskSignalsCollectionError;
|
|
499
|
-
};
|
|
500
438
|
export interface IStripeConnectDisplayOptions {
|
|
501
439
|
/**
|
|
502
440
|
* Whether embedded components should show object id's in the UI
|
|
@@ -529,11 +467,6 @@ export interface IStripeConnectInitParams {
|
|
|
529
467
|
* An array of custom fonts, which embedded components created from a ConnectInstance can use.
|
|
530
468
|
*/
|
|
531
469
|
fonts?: Array<CssFontSource | CustomFontSource>;
|
|
532
|
-
/**
|
|
533
|
-
* Callback for risk signals collection event
|
|
534
|
-
* @param {RiskSignalsCollectionEvent} event - The risk signals collection event containing status and additional details.
|
|
535
|
-
*/
|
|
536
|
-
onRiskSignalsCollection?: (event: RiskSignalsCollectionEvent) => void;
|
|
537
470
|
/**
|
|
538
471
|
* Options that affect how all embedded components under this instance render
|
|
539
472
|
*/
|
package/dist/init.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ConnectElementTagName, IStripeConnectInitParams, StripeConnectInstance, StripeConnectWrapper } from "./exportedTypes/shared";
|
|
2
2
|
export type ConnectElementHTMLName = `stripe-connect-${ConnectElementTagName}`;
|
|
3
|
-
export declare const componentNameMapping: Record<"
|
|
3
|
+
export declare const componentNameMapping: Record<"account-onboarding" | "disputes-list" | "payments" | "payment-details" | "payment-disputes" | "payouts" | "payouts-list" | "payout-details" | "balances" | "account-management" | "notification-banner" | "instant-payouts-promotion" | "issuing-card" | "issuing-cards-list" | "financial-account" | "financial-account-transactions" | "documents" | "tax-registrations" | "tax-settings" | "terminal-hardware-orders" | "terminal-hardware-shop" | "balance-report" | "payout-reconciliation-report" | "reporting-chart", "stripe-connect-account-onboarding" | "stripe-connect-disputes-list" | "stripe-connect-payments" | "stripe-connect-payment-details" | "stripe-connect-payment-disputes" | "stripe-connect-payouts" | "stripe-connect-payouts-list" | "stripe-connect-payout-details" | "stripe-connect-balances" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "stripe-connect-instant-payouts-promotion" | "stripe-connect-issuing-card" | "stripe-connect-issuing-cards-list" | "stripe-connect-financial-account" | "stripe-connect-financial-account-transactions" | "stripe-connect-documents" | "stripe-connect-tax-registrations" | "stripe-connect-tax-settings" | "stripe-connect-terminal-hardware-orders" | "stripe-connect-terminal-hardware-shop" | "stripe-connect-balance-report" | "stripe-connect-payout-reconciliation-report" | "stripe-connect-reporting-chart">;
|
|
4
4
|
type StripeConnectInstanceExtended = StripeConnectInstance & {
|
|
5
5
|
debugInstance: () => Promise<StripeConnectInstance>;
|
|
6
6
|
};
|
package/dist/pure.esm.js
CHANGED
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
2
|
// Source of truth for the entire list of components. When you add a new component, it should be added here.
|
|
3
|
-
const connectElementTagNames = ["
|
|
3
|
+
const connectElementTagNames = ["account-onboarding", "disputes-list", "payments", "payment-details", "payment-disputes", "payouts", "payouts-list", "payout-details", "balances", "account-management", "notification-banner", "instant-payouts-promotion", "issuing-card", "issuing-cards-list", "financial-account", "financial-account-transactions", "documents", "tax-registrations", "tax-settings", "terminal-hardware-orders", "terminal-hardware-shop", "balance-report", "payout-reconciliation-report", "reporting-chart"];
|
|
4
4
|
const ConnectElementCommonMethodConfig = {
|
|
5
5
|
setOnLoadError: _listener => {},
|
|
6
6
|
setOnLoaderStart: _listener => {}
|
|
7
7
|
};
|
|
8
8
|
const ConnectElementCustomMethodConfig = {
|
|
9
|
-
payments: {
|
|
10
|
-
setDefaultFilters: _filters => {}
|
|
11
|
-
},
|
|
12
|
-
"payment-details": {
|
|
13
|
-
setPayment: _payment => {},
|
|
14
|
-
setOnClose: _listener => {}
|
|
15
|
-
},
|
|
16
|
-
"payment-disputes": {
|
|
17
|
-
setPayment: _payment => {},
|
|
18
|
-
setOnDisputesLoaded: _listener => {}
|
|
19
|
-
},
|
|
20
9
|
"account-onboarding": {
|
|
21
10
|
setFullTermsOfServiceUrl: _termOfServiceUrl => {},
|
|
22
11
|
setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
|
|
@@ -52,64 +41,19 @@ const ConnectElementCustomMethodConfig = {
|
|
|
52
41
|
"financial-account": {
|
|
53
42
|
setFinancialAccount: _financialAccount => {}
|
|
54
43
|
},
|
|
55
|
-
"financial-account-rewards": {
|
|
56
|
-
setFinancialAccount: _financialAccount => {}
|
|
57
|
-
},
|
|
58
44
|
"financial-account-transactions": {
|
|
59
45
|
setFinancialAccount: _financialAccount => {}
|
|
60
46
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
"app-install": {
|
|
65
|
-
setApp: _app => {},
|
|
66
|
-
setOnAppInstallStateFetched: _listener => {},
|
|
67
|
-
setOnAppInstallStateChanged: _listener => {}
|
|
68
|
-
},
|
|
69
|
-
"app-viewport": {
|
|
70
|
-
setApp: _app => {},
|
|
71
|
-
setAppData: _appData => {}
|
|
72
|
-
},
|
|
73
|
-
"payment-method-settings": {
|
|
74
|
-
setPaymentMethodConfiguration: _paymentMethodConfiguration => {}
|
|
75
|
-
},
|
|
76
|
-
"capital-financing": {
|
|
77
|
-
setDefaultFinancingOffer: _defaultFinancingOffer => {},
|
|
78
|
-
setShowFinancingSelector: _showFinancingSelector => {},
|
|
79
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
80
|
-
setSupportUrl: _supportUrl => {},
|
|
81
|
-
setOnFinancingsLoaded: _listener => {}
|
|
82
|
-
},
|
|
83
|
-
"capital-financing-application": {
|
|
84
|
-
setOnApplicationSubmitted: _listener => {},
|
|
85
|
-
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
86
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
87
|
-
setOnApplicationStepChange: _listener => {},
|
|
88
|
-
setDefaultFinancingOffer: _defaultFinancingOffer => {},
|
|
89
|
-
setOnApplicationInitiated: _listener => {},
|
|
90
|
-
setResumeInitiatedApplication: _resumeInitiatedApplication => {}
|
|
91
|
-
},
|
|
92
|
-
"capital-financing-manual-payment": {
|
|
93
|
-
setPresentationMode: _presentationMode => {},
|
|
94
|
-
setOnManualPaymentSubmitted: _listener => {},
|
|
95
|
-
setOnOverlayClosed: _listener => {}
|
|
47
|
+
payments: {
|
|
48
|
+
setDefaultFilters: _filters => {}
|
|
96
49
|
},
|
|
97
|
-
"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
setOnEligibleFinancingOfferLoaded: _listener => {},
|
|
101
|
-
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
102
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
103
|
-
setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {},
|
|
104
|
-
setOnApplicationStepChange: _listener => {},
|
|
105
|
-
setOnAdvanceToCapitalFinancingApplication: _listener => {},
|
|
106
|
-
setDisableNestedCapitalFinancingApplication: _disableNestedCapitalFinancingApplication => {}
|
|
50
|
+
"payment-details": {
|
|
51
|
+
setPayment: _payment => {},
|
|
52
|
+
setOnClose: _listener => {}
|
|
107
53
|
},
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
setIntervalEnd: _intervalEnd => {},
|
|
112
|
-
setIntervalType: _intervalType => {}
|
|
54
|
+
"payment-disputes": {
|
|
55
|
+
setPayment: _payment => {},
|
|
56
|
+
setOnDisputesLoaded: _listener => {}
|
|
113
57
|
},
|
|
114
58
|
"tax-settings": {
|
|
115
59
|
setHideProductTaxCodeSelector: _hidden => {},
|
|
@@ -121,29 +65,20 @@ const ConnectElementCustomMethodConfig = {
|
|
|
121
65
|
setDisplayCountries: _countries => {},
|
|
122
66
|
setOnAfterTaxRegistrationExpired: _listener => {}
|
|
123
67
|
},
|
|
124
|
-
"tax-threshold-monitoring": {
|
|
125
|
-
setDisplayCountries: _countries => {}
|
|
126
|
-
},
|
|
127
|
-
"product-tax-code-selector": {
|
|
128
|
-
setOnTaxCodeSelect: _listener => {},
|
|
129
|
-
setHideDescription: _hideDescription => {},
|
|
130
|
-
setDisabled: _disabled => {},
|
|
131
|
-
setInitialTaxCode: _initialTaxCode => {}
|
|
132
|
-
},
|
|
133
|
-
"export-tax-transactions": {},
|
|
134
68
|
"payout-details": {
|
|
135
69
|
setPayout: _payout => {},
|
|
136
70
|
setOnClose: _listener => {}
|
|
137
71
|
},
|
|
138
|
-
"check-scanning": {
|
|
139
|
-
setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
|
|
140
|
-
},
|
|
141
|
-
"agentic-commerce-settings": {
|
|
142
|
-
setOnAgreementUpdated: _listener => {}
|
|
143
|
-
},
|
|
144
72
|
"terminal-hardware-shop": {
|
|
145
73
|
setOnCheckoutFinished: _listener => {}
|
|
146
74
|
},
|
|
75
|
+
"reporting-chart": {
|
|
76
|
+
setReportName: _reportName => {},
|
|
77
|
+
setIntervalStart: _intervalStart => {},
|
|
78
|
+
setIntervalEnd: _intervalEnd => {},
|
|
79
|
+
setIntervalType: _intervalType => {},
|
|
80
|
+
setHeight: _height => {}
|
|
81
|
+
},
|
|
147
82
|
"payout-reconciliation-report": {
|
|
148
83
|
setOnReportAvailabilityLoaded: _listener => {}
|
|
149
84
|
}
|
|
@@ -249,7 +184,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
249
184
|
element[method] = function (value) {
|
|
250
185
|
stripeConnectInstance.then(() => {
|
|
251
186
|
if (!this[`${method}InternalOnly`]) {
|
|
252
|
-
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.
|
|
187
|
+
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.5.0`);
|
|
253
188
|
}
|
|
254
189
|
this[`${method}InternalOnly`](value);
|
|
255
190
|
});
|
|
@@ -303,7 +238,7 @@ const createWrapper = stripeConnect => {
|
|
|
303
238
|
sdk: true,
|
|
304
239
|
sdkOptions: {
|
|
305
240
|
// This will be replaced by the npm package version when bundling
|
|
306
|
-
sdkVersion: "3.
|
|
241
|
+
sdkVersion: "3.5.0"
|
|
307
242
|
}
|
|
308
243
|
})
|
|
309
244
|
}));
|
package/dist/pure.js
CHANGED
|
@@ -4,23 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
6
6
|
// Source of truth for the entire list of components. When you add a new component, it should be added here.
|
|
7
|
-
const connectElementTagNames = ["
|
|
7
|
+
const connectElementTagNames = ["account-onboarding", "disputes-list", "payments", "payment-details", "payment-disputes", "payouts", "payouts-list", "payout-details", "balances", "account-management", "notification-banner", "instant-payouts-promotion", "issuing-card", "issuing-cards-list", "financial-account", "financial-account-transactions", "documents", "tax-registrations", "tax-settings", "terminal-hardware-orders", "terminal-hardware-shop", "balance-report", "payout-reconciliation-report", "reporting-chart"];
|
|
8
8
|
const ConnectElementCommonMethodConfig = {
|
|
9
9
|
setOnLoadError: _listener => {},
|
|
10
10
|
setOnLoaderStart: _listener => {}
|
|
11
11
|
};
|
|
12
12
|
const ConnectElementCustomMethodConfig = {
|
|
13
|
-
payments: {
|
|
14
|
-
setDefaultFilters: _filters => {}
|
|
15
|
-
},
|
|
16
|
-
"payment-details": {
|
|
17
|
-
setPayment: _payment => {},
|
|
18
|
-
setOnClose: _listener => {}
|
|
19
|
-
},
|
|
20
|
-
"payment-disputes": {
|
|
21
|
-
setPayment: _payment => {},
|
|
22
|
-
setOnDisputesLoaded: _listener => {}
|
|
23
|
-
},
|
|
24
13
|
"account-onboarding": {
|
|
25
14
|
setFullTermsOfServiceUrl: _termOfServiceUrl => {},
|
|
26
15
|
setRecipientTermsOfServiceUrl: _recipientTermsOfServiceUrl => {},
|
|
@@ -56,64 +45,19 @@ const ConnectElementCustomMethodConfig = {
|
|
|
56
45
|
"financial-account": {
|
|
57
46
|
setFinancialAccount: _financialAccount => {}
|
|
58
47
|
},
|
|
59
|
-
"financial-account-rewards": {
|
|
60
|
-
setFinancialAccount: _financialAccount => {}
|
|
61
|
-
},
|
|
62
48
|
"financial-account-transactions": {
|
|
63
49
|
setFinancialAccount: _financialAccount => {}
|
|
64
50
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
"app-install": {
|
|
69
|
-
setApp: _app => {},
|
|
70
|
-
setOnAppInstallStateFetched: _listener => {},
|
|
71
|
-
setOnAppInstallStateChanged: _listener => {}
|
|
72
|
-
},
|
|
73
|
-
"app-viewport": {
|
|
74
|
-
setApp: _app => {},
|
|
75
|
-
setAppData: _appData => {}
|
|
76
|
-
},
|
|
77
|
-
"payment-method-settings": {
|
|
78
|
-
setPaymentMethodConfiguration: _paymentMethodConfiguration => {}
|
|
79
|
-
},
|
|
80
|
-
"capital-financing": {
|
|
81
|
-
setDefaultFinancingOffer: _defaultFinancingOffer => {},
|
|
82
|
-
setShowFinancingSelector: _showFinancingSelector => {},
|
|
83
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
84
|
-
setSupportUrl: _supportUrl => {},
|
|
85
|
-
setOnFinancingsLoaded: _listener => {}
|
|
86
|
-
},
|
|
87
|
-
"capital-financing-application": {
|
|
88
|
-
setOnApplicationSubmitted: _listener => {},
|
|
89
|
-
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
90
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
91
|
-
setOnApplicationStepChange: _listener => {},
|
|
92
|
-
setDefaultFinancingOffer: _defaultFinancingOffer => {},
|
|
93
|
-
setOnApplicationInitiated: _listener => {},
|
|
94
|
-
setResumeInitiatedApplication: _resumeInitiatedApplication => {}
|
|
95
|
-
},
|
|
96
|
-
"capital-financing-manual-payment": {
|
|
97
|
-
setPresentationMode: _presentationMode => {},
|
|
98
|
-
setOnManualPaymentSubmitted: _listener => {},
|
|
99
|
-
setOnOverlayClosed: _listener => {}
|
|
51
|
+
payments: {
|
|
52
|
+
setDefaultFilters: _filters => {}
|
|
100
53
|
},
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
setOnEligibleFinancingOfferLoaded: _listener => {},
|
|
105
|
-
setPrivacyPolicyUrl: _privacyPolicyUrl => {},
|
|
106
|
-
setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
|
|
107
|
-
setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {},
|
|
108
|
-
setOnApplicationStepChange: _listener => {},
|
|
109
|
-
setOnAdvanceToCapitalFinancingApplication: _listener => {},
|
|
110
|
-
setDisableNestedCapitalFinancingApplication: _disableNestedCapitalFinancingApplication => {}
|
|
54
|
+
"payment-details": {
|
|
55
|
+
setPayment: _payment => {},
|
|
56
|
+
setOnClose: _listener => {}
|
|
111
57
|
},
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
setIntervalEnd: _intervalEnd => {},
|
|
116
|
-
setIntervalType: _intervalType => {}
|
|
58
|
+
"payment-disputes": {
|
|
59
|
+
setPayment: _payment => {},
|
|
60
|
+
setOnDisputesLoaded: _listener => {}
|
|
117
61
|
},
|
|
118
62
|
"tax-settings": {
|
|
119
63
|
setHideProductTaxCodeSelector: _hidden => {},
|
|
@@ -125,29 +69,20 @@ const ConnectElementCustomMethodConfig = {
|
|
|
125
69
|
setDisplayCountries: _countries => {},
|
|
126
70
|
setOnAfterTaxRegistrationExpired: _listener => {}
|
|
127
71
|
},
|
|
128
|
-
"tax-threshold-monitoring": {
|
|
129
|
-
setDisplayCountries: _countries => {}
|
|
130
|
-
},
|
|
131
|
-
"product-tax-code-selector": {
|
|
132
|
-
setOnTaxCodeSelect: _listener => {},
|
|
133
|
-
setHideDescription: _hideDescription => {},
|
|
134
|
-
setDisabled: _disabled => {},
|
|
135
|
-
setInitialTaxCode: _initialTaxCode => {}
|
|
136
|
-
},
|
|
137
|
-
"export-tax-transactions": {},
|
|
138
72
|
"payout-details": {
|
|
139
73
|
setPayout: _payout => {},
|
|
140
74
|
setOnClose: _listener => {}
|
|
141
75
|
},
|
|
142
|
-
"check-scanning": {
|
|
143
|
-
setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
|
|
144
|
-
},
|
|
145
|
-
"agentic-commerce-settings": {
|
|
146
|
-
setOnAgreementUpdated: _listener => {}
|
|
147
|
-
},
|
|
148
76
|
"terminal-hardware-shop": {
|
|
149
77
|
setOnCheckoutFinished: _listener => {}
|
|
150
78
|
},
|
|
79
|
+
"reporting-chart": {
|
|
80
|
+
setReportName: _reportName => {},
|
|
81
|
+
setIntervalStart: _intervalStart => {},
|
|
82
|
+
setIntervalEnd: _intervalEnd => {},
|
|
83
|
+
setIntervalType: _intervalType => {},
|
|
84
|
+
setHeight: _height => {}
|
|
85
|
+
},
|
|
151
86
|
"payout-reconciliation-report": {
|
|
152
87
|
setOnReportAvailabilityLoaded: _listener => {}
|
|
153
88
|
}
|
|
@@ -253,7 +188,7 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
253
188
|
element[method] = function (value) {
|
|
254
189
|
stripeConnectInstance.then(() => {
|
|
255
190
|
if (!this[`${method}InternalOnly`]) {
|
|
256
|
-
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.
|
|
191
|
+
throw new Error(`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: 3.5.0`);
|
|
257
192
|
}
|
|
258
193
|
this[`${method}InternalOnly`](value);
|
|
259
194
|
});
|
|
@@ -307,7 +242,7 @@ const createWrapper = stripeConnect => {
|
|
|
307
242
|
sdk: true,
|
|
308
243
|
sdkOptions: {
|
|
309
244
|
// This will be replaced by the npm package version when bundling
|
|
310
|
-
sdkVersion: "3.
|
|
245
|
+
sdkVersion: "3.5.0"
|
|
311
246
|
}
|
|
312
247
|
})
|
|
313
248
|
}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripe/connect-js",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "Connect.js loading utility package (
|
|
3
|
+
"version": "3.5.0",
|
|
4
|
+
"description": "Connect.js loading utility package (GA version)",
|
|
5
5
|
"main": "dist/connect.js",
|
|
6
6
|
"module": "dist/connect.esm.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
24
|
-
"url": "
|
|
24
|
+
"url": "https://github.com/stripe/connect-js.git"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|
|
27
27
|
"Stripe",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"jest-environment-jsdom": "^29.5.0",
|
|
64
64
|
"prettier": "2.8.8",
|
|
65
65
|
"rimraf": "^2.6.2",
|
|
66
|
-
"rollup": "^2.
|
|
66
|
+
"rollup": "^2.79.2",
|
|
67
67
|
"rollup-plugin-babel": "^4.4.0",
|
|
68
68
|
"rollup-plugin-typescript2": "^0.25.3",
|
|
69
69
|
"ts-jest": "^29.1.0",
|
|
@@ -2,55 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
// Source of truth for the entire list of components. When you add a new component, it should be added here.
|
|
4
4
|
export const connectElementTagNames = [
|
|
5
|
+
"account-onboarding",
|
|
6
|
+
"disputes-list",
|
|
5
7
|
"payments",
|
|
6
|
-
"payouts",
|
|
7
8
|
"payment-details",
|
|
8
9
|
"payment-disputes",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"payouts",
|
|
11
|
+
"payouts-list",
|
|
12
|
+
"payout-details",
|
|
13
|
+
"balances",
|
|
12
14
|
"account-management",
|
|
13
15
|
"notification-banner",
|
|
14
|
-
"instant-payouts",
|
|
15
16
|
"instant-payouts-promotion",
|
|
16
17
|
"issuing-card",
|
|
17
18
|
"issuing-cards-list",
|
|
18
19
|
"financial-account",
|
|
19
|
-
"financial-account-rewards",
|
|
20
20
|
"financial-account-transactions",
|
|
21
|
-
"recipients",
|
|
22
|
-
"capital-financing",
|
|
23
|
-
"capital-financing-application",
|
|
24
|
-
"capital-financing-promotion",
|
|
25
|
-
"capital-financing-manual-payment",
|
|
26
|
-
"capital-overview",
|
|
27
21
|
"documents",
|
|
28
|
-
"product-tax-code-selector",
|
|
29
|
-
"export-tax-transactions",
|
|
30
22
|
"tax-registrations",
|
|
31
23
|
"tax-settings",
|
|
32
|
-
"tax-threshold-monitoring",
|
|
33
|
-
"balances",
|
|
34
|
-
"payouts-list",
|
|
35
|
-
"payout-details",
|
|
36
|
-
"app-install",
|
|
37
|
-
"app-viewport",
|
|
38
|
-
"reporting-chart",
|
|
39
|
-
"check-scanning",
|
|
40
|
-
"agentic-commerce-settings",
|
|
41
24
|
"terminal-hardware-orders",
|
|
42
25
|
"terminal-hardware-shop",
|
|
43
|
-
"network-cost-passthrough-report",
|
|
44
26
|
"balance-report",
|
|
45
27
|
"payout-reconciliation-report",
|
|
46
|
-
"
|
|
47
|
-
"financial-accounts",
|
|
48
|
-
"financial-accounts-transactions",
|
|
49
|
-
"bills",
|
|
28
|
+
"reporting-chart",
|
|
50
29
|
] as const;
|
|
51
30
|
|
|
52
31
|
// BEGIN: Setter definitions. All setters and their associated types are defined here. When adding a new component, if it has setters, they should be added here as well.
|
|
53
|
-
|
|
54
32
|
export type FetchEphemeralKeyFunction = (fetchParams: {
|
|
55
33
|
issuingCard: string;
|
|
56
34
|
nonce: string;
|
|
@@ -191,11 +169,6 @@ export type NotificationCount = {
|
|
|
191
169
|
actionRequired: number;
|
|
192
170
|
};
|
|
193
171
|
|
|
194
|
-
export type InstallState = {
|
|
195
|
-
appId: string;
|
|
196
|
-
state: "INSTALLED" | "UNINSTALLED";
|
|
197
|
-
};
|
|
198
|
-
|
|
199
172
|
export type LoaderStart = {
|
|
200
173
|
elementTagName: string;
|
|
201
174
|
};
|
|
@@ -218,23 +191,10 @@ export type EmbeddedError = {
|
|
|
218
191
|
message?: string;
|
|
219
192
|
};
|
|
220
193
|
|
|
221
|
-
export type
|
|
222
|
-
productType: "standard" | "refill" | "none";
|
|
223
|
-
activeFinancingCount: number;
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
export type FinancingPromotionLayoutType = "full" | "banner";
|
|
227
|
-
|
|
228
|
-
export type CapitalFinancingManualPaymentPresentationMode =
|
|
229
|
-
| "inline"
|
|
230
|
-
| "overlay";
|
|
231
|
-
|
|
232
|
-
export type IntervalType = "day" | "week" | "month" | "quarter" | "year";
|
|
194
|
+
export type IntervalType = "day" | "week" | "month";
|
|
233
195
|
|
|
234
196
|
export type ReportName = "gross_volume" | "net_volume";
|
|
235
197
|
|
|
236
|
-
export type RecipientDataSource = "customers";
|
|
237
|
-
|
|
238
198
|
export type EmbeddedErrorType =
|
|
239
199
|
/**
|
|
240
200
|
* Failure to connect to Stripe's API.
|
|
@@ -275,21 +235,6 @@ export const ConnectElementCommonMethodConfig = {
|
|
|
275
235
|
};
|
|
276
236
|
|
|
277
237
|
export const ConnectElementCustomMethodConfig = {
|
|
278
|
-
payments: {
|
|
279
|
-
setDefaultFilters: (
|
|
280
|
-
_filters: PaymentsListDefaultFilters | undefined
|
|
281
|
-
): void => {},
|
|
282
|
-
},
|
|
283
|
-
"payment-details": {
|
|
284
|
-
setPayment: (_payment: string | undefined): void => {},
|
|
285
|
-
setOnClose: (_listener: (() => void) | undefined): void => {},
|
|
286
|
-
},
|
|
287
|
-
"payment-disputes": {
|
|
288
|
-
setPayment: (_payment: string | undefined): void => {},
|
|
289
|
-
setOnDisputesLoaded: (
|
|
290
|
-
_listener: (({ total }: { total: number }) => void) | undefined
|
|
291
|
-
): void => {},
|
|
292
|
-
},
|
|
293
238
|
"account-onboarding": {
|
|
294
239
|
setFullTermsOfServiceUrl: (
|
|
295
240
|
_termOfServiceUrl: string | undefined
|
|
@@ -355,116 +300,24 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
355
300
|
"financial-account": {
|
|
356
301
|
setFinancialAccount: (_financialAccount: string): void => {},
|
|
357
302
|
},
|
|
358
|
-
"financial-account-rewards": {
|
|
359
|
-
setFinancialAccount: (_financialAccount: string): void => {},
|
|
360
|
-
},
|
|
361
303
|
"financial-account-transactions": {
|
|
362
304
|
setFinancialAccount: (_financialAccount: string): void => {},
|
|
363
305
|
},
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
"app-install": {
|
|
368
|
-
setApp: (_app: string | undefined): void => {},
|
|
369
|
-
setOnAppInstallStateFetched: (
|
|
370
|
-
_listener: (({ appId, state }: InstallState) => void) | undefined
|
|
371
|
-
): void => {},
|
|
372
|
-
setOnAppInstallStateChanged: (
|
|
373
|
-
_listener: (({ appId, state }: InstallState) => void) | undefined
|
|
306
|
+
payments: {
|
|
307
|
+
setDefaultFilters: (
|
|
308
|
+
_filters: PaymentsListDefaultFilters | undefined
|
|
374
309
|
): void => {},
|
|
375
310
|
},
|
|
376
|
-
"
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
},
|
|
380
|
-
"payment-method-settings": {
|
|
381
|
-
setPaymentMethodConfiguration: (
|
|
382
|
-
_paymentMethodConfiguration: string | undefined
|
|
383
|
-
): void => {},
|
|
311
|
+
"payment-details": {
|
|
312
|
+
setPayment: (_payment: string | undefined): void => {},
|
|
313
|
+
setOnClose: (_listener: (() => void) | undefined): void => {},
|
|
384
314
|
},
|
|
385
|
-
"
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
): void => {},
|
|
389
|
-
setShowFinancingSelector: (
|
|
390
|
-
_showFinancingSelector: boolean | undefined
|
|
391
|
-
): void => {},
|
|
392
|
-
setHowCapitalWorksUrl: (
|
|
393
|
-
_howCapitalWorksUrl: string | undefined
|
|
394
|
-
): void => {},
|
|
395
|
-
setSupportUrl: (_supportUrl: string | undefined): void => {},
|
|
396
|
-
setOnFinancingsLoaded: (
|
|
315
|
+
"payment-disputes": {
|
|
316
|
+
setPayment: (_payment: string | undefined): void => {},
|
|
317
|
+
setOnDisputesLoaded: (
|
|
397
318
|
_listener: (({ total }: { total: number }) => void) | undefined
|
|
398
319
|
): void => {},
|
|
399
320
|
},
|
|
400
|
-
"capital-financing-application": {
|
|
401
|
-
setOnApplicationSubmitted: (
|
|
402
|
-
_listener: (() => void) | undefined
|
|
403
|
-
): void => {},
|
|
404
|
-
setPrivacyPolicyUrl: (_privacyPolicyUrl: string | undefined): void => {},
|
|
405
|
-
setHowCapitalWorksUrl: (
|
|
406
|
-
_howCapitalWorksUrl: string | undefined
|
|
407
|
-
): void => {},
|
|
408
|
-
setOnApplicationStepChange: (
|
|
409
|
-
_listener: (({ step }: StepChange) => void) | undefined
|
|
410
|
-
): void => {},
|
|
411
|
-
setDefaultFinancingOffer: (
|
|
412
|
-
_defaultFinancingOffer: string | undefined
|
|
413
|
-
): void => {},
|
|
414
|
-
setOnApplicationInitiated: (
|
|
415
|
-
_listener: (() => void) | undefined
|
|
416
|
-
): void => {},
|
|
417
|
-
setResumeInitiatedApplication: (
|
|
418
|
-
_resumeInitiatedApplication: boolean | undefined
|
|
419
|
-
): void => {},
|
|
420
|
-
},
|
|
421
|
-
"capital-financing-manual-payment": {
|
|
422
|
-
setPresentationMode: (
|
|
423
|
-
_presentationMode:
|
|
424
|
-
| CapitalFinancingManualPaymentPresentationMode
|
|
425
|
-
| undefined
|
|
426
|
-
): void => {},
|
|
427
|
-
setOnManualPaymentSubmitted: (
|
|
428
|
-
_listener: (() => void) | undefined
|
|
429
|
-
): void => {},
|
|
430
|
-
setOnOverlayClosed: (_listener: (() => void) | undefined): void => {},
|
|
431
|
-
},
|
|
432
|
-
"capital-financing-promotion": {
|
|
433
|
-
setLayout: (_layout: FinancingPromotionLayoutType | undefined): void => {},
|
|
434
|
-
setOnApplicationSubmitted: (
|
|
435
|
-
_listener: (() => void) | undefined
|
|
436
|
-
): void => {},
|
|
437
|
-
setOnEligibleFinancingOfferLoaded: (
|
|
438
|
-
_listener:
|
|
439
|
-
| (({
|
|
440
|
-
productType,
|
|
441
|
-
activeFinancingCount,
|
|
442
|
-
}: FinancingProductType) => void)
|
|
443
|
-
| undefined
|
|
444
|
-
): void => {},
|
|
445
|
-
setPrivacyPolicyUrl: (_privacyPolicyUrl: string | undefined): void => {},
|
|
446
|
-
setHowCapitalWorksUrl: (
|
|
447
|
-
_howCapitalWorksUrl: string | undefined
|
|
448
|
-
): void => {},
|
|
449
|
-
setEligibilityCriteriaUrl: (
|
|
450
|
-
_eligibilityCriteriaUrl: string | undefined
|
|
451
|
-
): void => {},
|
|
452
|
-
setOnApplicationStepChange: (
|
|
453
|
-
_listener: (({ step }: StepChange) => void) | undefined
|
|
454
|
-
): void => {},
|
|
455
|
-
setOnAdvanceToCapitalFinancingApplication: (
|
|
456
|
-
_listener: (() => void) | undefined
|
|
457
|
-
): void => {},
|
|
458
|
-
setDisableNestedCapitalFinancingApplication: (
|
|
459
|
-
_disableNestedCapitalFinancingApplication: boolean | undefined
|
|
460
|
-
): void => {},
|
|
461
|
-
},
|
|
462
|
-
"reporting-chart": {
|
|
463
|
-
setReportName: (_reportName: ReportName): void => {},
|
|
464
|
-
setIntervalStart: (_intervalStart: Date | undefined): void => {},
|
|
465
|
-
setIntervalEnd: (_intervalEnd: Date | undefined): void => {},
|
|
466
|
-
setIntervalType: (_intervalType: IntervalType | undefined): void => {},
|
|
467
|
-
},
|
|
468
321
|
"tax-settings": {
|
|
469
322
|
setHideProductTaxCodeSelector: (_hidden: boolean | undefined): void => {},
|
|
470
323
|
setDisplayHeadOfficeCountries: (
|
|
@@ -483,46 +336,20 @@ export const ConnectElementCustomMethodConfig = {
|
|
|
483
336
|
_listener: (({ id }: { id: string }) => void) | undefined
|
|
484
337
|
): void => {},
|
|
485
338
|
},
|
|
486
|
-
"tax-threshold-monitoring": {
|
|
487
|
-
setDisplayCountries: (_countries: string[] | undefined): void => {},
|
|
488
|
-
},
|
|
489
|
-
"product-tax-code-selector": {
|
|
490
|
-
setOnTaxCodeSelect: (
|
|
491
|
-
_listener:
|
|
492
|
-
| ((
|
|
493
|
-
taxCode: string | null,
|
|
494
|
-
_: { analyticsName: string } | null
|
|
495
|
-
) => void)
|
|
496
|
-
| undefined
|
|
497
|
-
): void => {},
|
|
498
|
-
setHideDescription: (_hideDescription: boolean | undefined): void => {},
|
|
499
|
-
setDisabled: (_disabled: boolean | undefined): void => {},
|
|
500
|
-
setInitialTaxCode: (_initialTaxCode: string | undefined): void => {},
|
|
501
|
-
},
|
|
502
|
-
"export-tax-transactions": {},
|
|
503
339
|
"payout-details": {
|
|
504
340
|
setPayout: (_payout: string | undefined): void => {},
|
|
505
341
|
setOnClose: (_listener: (() => void) | undefined): void => {},
|
|
506
342
|
},
|
|
507
|
-
"check-scanning": {
|
|
508
|
-
setHandleCheckScanSubmitted: (
|
|
509
|
-
_handleCheckScanSubmitted: ({
|
|
510
|
-
checkScanToken,
|
|
511
|
-
}: {
|
|
512
|
-
checkScanToken: string;
|
|
513
|
-
}) => Promise<void>
|
|
514
|
-
): void => {},
|
|
515
|
-
},
|
|
516
|
-
"agentic-commerce-settings": {
|
|
517
|
-
setOnAgreementUpdated: (
|
|
518
|
-
_listener:
|
|
519
|
-
| (({ agreementId }: { agreementId: string }) => void)
|
|
520
|
-
| undefined
|
|
521
|
-
): void => {},
|
|
522
|
-
},
|
|
523
343
|
"terminal-hardware-shop": {
|
|
524
344
|
setOnCheckoutFinished: (_listener: (() => void) | undefined): void => {},
|
|
525
345
|
},
|
|
346
|
+
"reporting-chart": {
|
|
347
|
+
setReportName: (_reportName: ReportName): void => {},
|
|
348
|
+
setIntervalStart: (_intervalStart: Date | undefined): void => {},
|
|
349
|
+
setIntervalEnd: (_intervalEnd: Date | undefined): void => {},
|
|
350
|
+
setIntervalType: (_intervalType: IntervalType | undefined): void => {},
|
|
351
|
+
setHeight: (_height: string | undefined): void => {},
|
|
352
|
+
},
|
|
526
353
|
"payout-reconciliation-report": {
|
|
527
354
|
setOnReportAvailabilityLoaded: (
|
|
528
355
|
_listener:
|
|
@@ -2,8 +2,6 @@ import type {
|
|
|
2
2
|
ConnectElementCommonMethodConfig,
|
|
3
3
|
ConnectElementCustomMethodConfig,
|
|
4
4
|
connectElementTagNames,
|
|
5
|
-
EmbeddedError,
|
|
6
|
-
EmbeddedErrorType,
|
|
7
5
|
} from "../components/componentsAndSetters";
|
|
8
6
|
|
|
9
7
|
export type LoadConnectAndInitialize = (
|
|
@@ -518,67 +516,6 @@ export type IStripeConnectUpdateParams = {
|
|
|
518
516
|
displayOptions?: IStripeConnectDisplayOptions;
|
|
519
517
|
};
|
|
520
518
|
|
|
521
|
-
/**
|
|
522
|
-
* Reasons why risk signals collection was skipped.
|
|
523
|
-
*/
|
|
524
|
-
export type RiskSignalsCollectionSkippedReason =
|
|
525
|
-
/**
|
|
526
|
-
* Required component (account_onboarding) not enabled.
|
|
527
|
-
*/
|
|
528
|
-
| "required_component_not_enabled"
|
|
529
|
-
/**
|
|
530
|
-
* The account doesn't have a risk signals collection requirement.
|
|
531
|
-
*/
|
|
532
|
-
| "not_required"
|
|
533
|
-
/**
|
|
534
|
-
* The risk signals collection requirement has already been fulfilled.
|
|
535
|
-
*/
|
|
536
|
-
| "requirement_fulfilled";
|
|
537
|
-
|
|
538
|
-
/**
|
|
539
|
-
* Error types that can occur during risk signals collection.
|
|
540
|
-
*/
|
|
541
|
-
export type RiskSignalsCollectionErrorType = Extract<
|
|
542
|
-
EmbeddedErrorType,
|
|
543
|
-
| "api_connection_error"
|
|
544
|
-
| "invalid_request_error"
|
|
545
|
-
| "rate_limit_error"
|
|
546
|
-
| "api_error"
|
|
547
|
-
>;
|
|
548
|
-
|
|
549
|
-
/**
|
|
550
|
-
* Errors that can occur during risk signals collection.
|
|
551
|
-
*/
|
|
552
|
-
export type RiskSignalsCollectionError =
|
|
553
|
-
/**
|
|
554
|
-
* Error occurred during general Connect.js loading.
|
|
555
|
-
*/
|
|
556
|
-
| { type: "load_error"; loadError: EmbeddedError }
|
|
557
|
-
|
|
558
|
-
/**
|
|
559
|
-
* Error occurred during risk signals collection.
|
|
560
|
-
*/
|
|
561
|
-
| { type: RiskSignalsCollectionErrorType; message?: string };
|
|
562
|
-
|
|
563
|
-
/**
|
|
564
|
-
* Event emitted during risk signals collection.
|
|
565
|
-
*/
|
|
566
|
-
export declare type RiskSignalsCollectionEvent =
|
|
567
|
-
/**
|
|
568
|
-
* Risk signals collection completed and successfully received by Stripe.
|
|
569
|
-
*/
|
|
570
|
-
| { status: "completed" }
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
* Risk signals collection skipped with reason.
|
|
574
|
-
*/
|
|
575
|
-
| { status: "skipped"; skippedReason: RiskSignalsCollectionSkippedReason }
|
|
576
|
-
|
|
577
|
-
/**
|
|
578
|
-
* Risk signals collection failed due to error and was not sent to Stripe server.
|
|
579
|
-
*/
|
|
580
|
-
| { status: "failed"; error: RiskSignalsCollectionError };
|
|
581
|
-
|
|
582
519
|
export interface IStripeConnectDisplayOptions {
|
|
583
520
|
/**
|
|
584
521
|
* Whether embedded components should show object id's in the UI
|
|
@@ -617,12 +554,6 @@ export interface IStripeConnectInitParams {
|
|
|
617
554
|
*/
|
|
618
555
|
fonts?: Array<CssFontSource | CustomFontSource>;
|
|
619
556
|
|
|
620
|
-
/**
|
|
621
|
-
* Callback for risk signals collection event
|
|
622
|
-
* @param {RiskSignalsCollectionEvent} event - The risk signals collection event containing status and additional details.
|
|
623
|
-
*/
|
|
624
|
-
onRiskSignalsCollection?: (event: RiskSignalsCollectionEvent) => void;
|
|
625
|
-
|
|
626
557
|
/**
|
|
627
558
|
* Options that affect how all embedded components under this instance render
|
|
628
559
|
*/
|