@stripe/connect-js 3.4.7-preview.0 → 3.4.7

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,4 +1,4 @@
1
- export declare const connectElementTagNames: readonly ["payments", "payouts", "payment-details", "payment-disputes", "disputes-list", "account-onboarding", "payment-method-settings", "account-management", "notification-banner", "instant-payouts", "instant-payouts-promotion", "issuing-card", "issuing-cards-list", "financial-account", "financial-account-transactions", "recipients", "capital-financing", "capital-financing-application", "capital-financing-promotion", "capital-overview", "documents", "product-tax-code-selector", "export-tax-transactions", "tax-registrations", "tax-settings", "tax-threshold-monitoring", "balances", "payouts-list", "payout-details", "app-install", "app-viewport", "reporting-chart", "check-scanning", "agentic-commerce-settings", "terminal-hardware-orders", "terminal-hardware-shop", "network-cost-passthrough-report", "balance-report", "payout-reconciliation-report", "recipients-list", "financial-accounts", "financial-accounts-transactions", "bills"];
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"];
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,14 +65,6 @@ export type EmbeddedError = {
69
65
  type: EmbeddedErrorType;
70
66
  message?: string;
71
67
  };
72
- export type FinancingProductType = {
73
- productType: "standard" | "refill" | "none";
74
- activeFinancingCount: number;
75
- };
76
- export type FinancingPromotionLayoutType = "full" | "banner";
77
- export type IntervalType = "day" | "week" | "month" | "quarter" | "year";
78
- export type ReportName = "gross_volume" | "net_volume";
79
- export type RecipientDataSource = "customers";
80
68
  export type EmbeddedErrorType =
81
69
  /**
82
70
  * Failure to connect to Stripe's API.
@@ -111,19 +99,6 @@ export declare const ConnectElementCommonMethodConfig: {
111
99
  setOnLoaderStart: (_listener: (({ elementTagName }: LoaderStart) => void) | undefined) => void;
112
100
  };
113
101
  export declare const ConnectElementCustomMethodConfig: {
114
- payments: {
115
- setDefaultFilters: (_filters: PaymentsListDefaultFilters | undefined) => void;
116
- };
117
- "payment-details": {
118
- setPayment: (_payment: string | undefined) => void;
119
- setOnClose: (_listener: (() => void) | undefined) => void;
120
- };
121
- "payment-disputes": {
122
- setPayment: (_payment: string | undefined) => void;
123
- setOnDisputesLoaded: (_listener: (({ total }: {
124
- total: number;
125
- }) => void) | undefined) => void;
126
- };
127
102
  "account-onboarding": {
128
103
  setFullTermsOfServiceUrl: (_termOfServiceUrl: string | undefined) => void;
129
104
  setRecipientTermsOfServiceUrl: (_recipientTermsOfServiceUrl: string | undefined) => void;
@@ -166,56 +141,19 @@ export declare const ConnectElementCustomMethodConfig: {
166
141
  "financial-account-transactions": {
167
142
  setFinancialAccount: (_financialAccount: string) => void;
168
143
  };
169
- recipients: {
170
- setDataSource: (_dataSource: RecipientDataSource) => void;
171
- };
172
- "app-install": {
173
- setApp: (_app: string | undefined) => void;
174
- setOnAppInstallStateFetched: (_listener: (({ appId, state }: InstallState) => void) | undefined) => void;
175
- setOnAppInstallStateChanged: (_listener: (({ appId, state }: InstallState) => void) | undefined) => void;
176
- };
177
- "app-viewport": {
178
- setApp: (_app: string | undefined) => void;
179
- setAppData: (_appData: Record<string, string> | undefined) => void;
144
+ payments: {
145
+ setDefaultFilters: (_filters: PaymentsListDefaultFilters | undefined) => void;
180
146
  };
181
- "payment-method-settings": {
182
- setPaymentMethodConfiguration: (_paymentMethodConfiguration: string | undefined) => void;
147
+ "payment-details": {
148
+ setPayment: (_payment: string | undefined) => void;
149
+ setOnClose: (_listener: (() => void) | undefined) => void;
183
150
  };
184
- "capital-financing": {
185
- setDefaultFinancingOffer: (_defaultFinancingOffer: string | undefined) => void;
186
- setShowFinancingSelector: (_showFinancingSelector: boolean | undefined) => void;
187
- setHowCapitalWorksUrl: (_howCapitalWorksUrl: string | undefined) => void;
188
- setSupportUrl: (_supportUrl: string | undefined) => void;
189
- setOnFinancingsLoaded: (_listener: (({ total }: {
151
+ "payment-disputes": {
152
+ setPayment: (_payment: string | undefined) => void;
153
+ setOnDisputesLoaded: (_listener: (({ total }: {
190
154
  total: number;
191
155
  }) => void) | undefined) => void;
192
156
  };
193
- "capital-financing-application": {
194
- setOnApplicationSubmitted: (_listener: (() => void) | undefined) => void;
195
- setPrivacyPolicyUrl: (_privacyPolicyUrl: string | undefined) => void;
196
- setHowCapitalWorksUrl: (_howCapitalWorksUrl: string | undefined) => void;
197
- setOnApplicationStepChange: (_listener: (({ step }: StepChange) => void) | undefined) => void;
198
- setDefaultFinancingOffer: (_defaultFinancingOffer: string | undefined) => void;
199
- setOnApplicationInitiated: (_listener: (() => void) | undefined) => void;
200
- setResumeInitiatedApplication: (_resumeInitiatedApplication: boolean | undefined) => void;
201
- };
202
- "capital-financing-promotion": {
203
- setLayout: (_layout: FinancingPromotionLayoutType | undefined) => void;
204
- setOnApplicationSubmitted: (_listener: (() => void) | undefined) => void;
205
- setOnEligibleFinancingOfferLoaded: (_listener: (({ productType, activeFinancingCount, }: FinancingProductType) => void) | undefined) => void;
206
- setPrivacyPolicyUrl: (_privacyPolicyUrl: string | undefined) => void;
207
- setHowCapitalWorksUrl: (_howCapitalWorksUrl: string | undefined) => void;
208
- setEligibilityCriteriaUrl: (_eligibilityCriteriaUrl: string | undefined) => void;
209
- setOnApplicationStepChange: (_listener: (({ step }: StepChange) => void) | undefined) => void;
210
- setOnAdvanceToCapitalFinancingApplication: (_listener: (() => void) | undefined) => void;
211
- setDisableNestedCapitalFinancingApplication: (_disableNestedCapitalFinancingApplication: boolean | undefined) => void;
212
- };
213
- "reporting-chart": {
214
- setReportName: (_reportName: ReportName) => void;
215
- setIntervalStart: (_intervalStart: Date | undefined) => void;
216
- setIntervalEnd: (_intervalEnd: Date | undefined) => void;
217
- setIntervalType: (_intervalType: IntervalType | undefined) => void;
218
- };
219
157
  "tax-settings": {
220
158
  setHideProductTaxCodeSelector: (_hidden: boolean | undefined) => void;
221
159
  setDisplayHeadOfficeCountries: (_countries: string[] | undefined) => void;
@@ -232,32 +170,10 @@ export declare const ConnectElementCustomMethodConfig: {
232
170
  id: string;
233
171
  }) => void) | undefined) => void;
234
172
  };
235
- "tax-threshold-monitoring": {
236
- setDisplayCountries: (_countries: string[] | undefined) => void;
237
- };
238
- "product-tax-code-selector": {
239
- setOnTaxCodeSelect: (_listener: ((taxCode: string | null, _: {
240
- analyticsName: string;
241
- } | null) => void) | undefined) => void;
242
- setHideDescription: (_hideDescription: boolean | undefined) => void;
243
- setDisabled: (_disabled: boolean | undefined) => void;
244
- setInitialTaxCode: (_initialTaxCode: string | undefined) => void;
245
- };
246
- "export-tax-transactions": {};
247
173
  "payout-details": {
248
174
  setPayout: (_payout: string | undefined) => void;
249
175
  setOnClose: (_listener: (() => void) | undefined) => void;
250
176
  };
251
- "check-scanning": {
252
- setHandleCheckScanSubmitted: (_handleCheckScanSubmitted: ({ checkScanToken, }: {
253
- checkScanToken: string;
254
- }) => Promise<void>) => void;
255
- };
256
- "agentic-commerce-settings": {
257
- setOnAgreementUpdated: (_listener: (({ agreementId }: {
258
- agreementId: string;
259
- }) => void) | undefined) => void;
260
- };
261
177
  "terminal-hardware-shop": {
262
178
  setOnCheckoutFinished: (_listener: (() => void) | undefined) => void;
263
179
  };
@@ -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 = ["payments", "payouts", "payment-details", "payment-disputes", "disputes-list", "account-onboarding", "payment-method-settings", "account-management", "notification-banner", "instant-payouts", "instant-payouts-promotion", "issuing-card", "issuing-cards-list", "financial-account", "financial-account-transactions", "recipients", "capital-financing", "capital-financing-application", "capital-financing-promotion", "capital-overview", "documents", "product-tax-code-selector", "export-tax-transactions", "tax-registrations", "tax-settings", "tax-threshold-monitoring", "balances", "payouts-list", "payout-details", "app-install", "app-viewport", "reporting-chart", "check-scanning", "agentic-commerce-settings", "terminal-hardware-orders", "terminal-hardware-shop", "network-cost-passthrough-report", "balance-report", "payout-reconciliation-report", "recipients-list", "financial-accounts", "financial-accounts-transactions", "bills"];
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"];
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 => {},
@@ -55,53 +44,16 @@ const ConnectElementCustomMethodConfig = {
55
44
  "financial-account-transactions": {
56
45
  setFinancialAccount: _financialAccount => {}
57
46
  },
58
- recipients: {
59
- setDataSource: _dataSource => {}
60
- },
61
- "app-install": {
62
- setApp: _app => {},
63
- setOnAppInstallStateFetched: _listener => {},
64
- setOnAppInstallStateChanged: _listener => {}
65
- },
66
- "app-viewport": {
67
- setApp: _app => {},
68
- setAppData: _appData => {}
69
- },
70
- "payment-method-settings": {
71
- setPaymentMethodConfiguration: _paymentMethodConfiguration => {}
72
- },
73
- "capital-financing": {
74
- setDefaultFinancingOffer: _defaultFinancingOffer => {},
75
- setShowFinancingSelector: _showFinancingSelector => {},
76
- setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
77
- setSupportUrl: _supportUrl => {},
78
- setOnFinancingsLoaded: _listener => {}
79
- },
80
- "capital-financing-application": {
81
- setOnApplicationSubmitted: _listener => {},
82
- setPrivacyPolicyUrl: _privacyPolicyUrl => {},
83
- setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
84
- setOnApplicationStepChange: _listener => {},
85
- setDefaultFinancingOffer: _defaultFinancingOffer => {},
86
- setOnApplicationInitiated: _listener => {},
87
- setResumeInitiatedApplication: _resumeInitiatedApplication => {}
47
+ payments: {
48
+ setDefaultFilters: _filters => {}
88
49
  },
89
- "capital-financing-promotion": {
90
- setLayout: _layout => {},
91
- setOnApplicationSubmitted: _listener => {},
92
- setOnEligibleFinancingOfferLoaded: _listener => {},
93
- setPrivacyPolicyUrl: _privacyPolicyUrl => {},
94
- setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
95
- setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {},
96
- setOnApplicationStepChange: _listener => {},
97
- setOnAdvanceToCapitalFinancingApplication: _listener => {},
98
- setDisableNestedCapitalFinancingApplication: _disableNestedCapitalFinancingApplication => {}
50
+ "payment-details": {
51
+ setPayment: _payment => {},
52
+ setOnClose: _listener => {}
99
53
  },
100
- "reporting-chart": {
101
- setReportName: _reportName => {},
102
- setIntervalStart: _intervalStart => {},
103
- setIntervalEnd: _intervalEnd => {},
104
- setIntervalType: _intervalType => {}
54
+ "payment-disputes": {
55
+ setPayment: _payment => {},
56
+ setOnDisputesLoaded: _listener => {}
105
57
  },
106
58
  "tax-settings": {
107
59
  setHideProductTaxCodeSelector: _hidden => {},
@@ -113,26 +65,10 @@ const ConnectElementCustomMethodConfig = {
113
65
  setDisplayCountries: _countries => {},
114
66
  setOnAfterTaxRegistrationExpired: _listener => {}
115
67
  },
116
- "tax-threshold-monitoring": {
117
- setDisplayCountries: _countries => {}
118
- },
119
- "product-tax-code-selector": {
120
- setOnTaxCodeSelect: _listener => {},
121
- setHideDescription: _hideDescription => {},
122
- setDisabled: _disabled => {},
123
- setInitialTaxCode: _initialTaxCode => {}
124
- },
125
- "export-tax-transactions": {},
126
68
  "payout-details": {
127
69
  setPayout: _payout => {},
128
70
  setOnClose: _listener => {}
129
71
  },
130
- "check-scanning": {
131
- setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
132
- },
133
- "agentic-commerce-settings": {
134
- setOnAgreementUpdated: _listener => {}
135
- },
136
72
  "terminal-hardware-shop": {
137
73
  setOnCheckoutFinished: _listener => {}
138
74
  },
@@ -241,7 +177,7 @@ const initStripeConnect = (stripePromise, initParams) => {
241
177
  element[method] = function (value) {
242
178
  stripeConnectInstance.then(() => {
243
179
  if (!this[`${method}InternalOnly`]) {
244
- 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.4.7-preview.0`);
180
+ 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.4.7`);
245
181
  }
246
182
  this[`${method}InternalOnly`](value);
247
183
  });
@@ -295,7 +231,7 @@ const createWrapper = stripeConnect => {
295
231
  sdk: true,
296
232
  sdkOptions: {
297
233
  // This will be replaced by the npm package version when bundling
298
- sdkVersion: "3.4.7-preview.0"
234
+ sdkVersion: "3.4.7"
299
235
  }
300
236
  })
301
237
  }));
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 = ["payments", "payouts", "payment-details", "payment-disputes", "disputes-list", "account-onboarding", "payment-method-settings", "account-management", "notification-banner", "instant-payouts", "instant-payouts-promotion", "issuing-card", "issuing-cards-list", "financial-account", "financial-account-transactions", "recipients", "capital-financing", "capital-financing-application", "capital-financing-promotion", "capital-overview", "documents", "product-tax-code-selector", "export-tax-transactions", "tax-registrations", "tax-settings", "tax-threshold-monitoring", "balances", "payouts-list", "payout-details", "app-install", "app-viewport", "reporting-chart", "check-scanning", "agentic-commerce-settings", "terminal-hardware-orders", "terminal-hardware-shop", "network-cost-passthrough-report", "balance-report", "payout-reconciliation-report", "recipients-list", "financial-accounts", "financial-accounts-transactions", "bills"];
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"];
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 => {},
@@ -59,53 +48,16 @@ const ConnectElementCustomMethodConfig = {
59
48
  "financial-account-transactions": {
60
49
  setFinancialAccount: _financialAccount => {}
61
50
  },
62
- recipients: {
63
- setDataSource: _dataSource => {}
64
- },
65
- "app-install": {
66
- setApp: _app => {},
67
- setOnAppInstallStateFetched: _listener => {},
68
- setOnAppInstallStateChanged: _listener => {}
69
- },
70
- "app-viewport": {
71
- setApp: _app => {},
72
- setAppData: _appData => {}
73
- },
74
- "payment-method-settings": {
75
- setPaymentMethodConfiguration: _paymentMethodConfiguration => {}
76
- },
77
- "capital-financing": {
78
- setDefaultFinancingOffer: _defaultFinancingOffer => {},
79
- setShowFinancingSelector: _showFinancingSelector => {},
80
- setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
81
- setSupportUrl: _supportUrl => {},
82
- setOnFinancingsLoaded: _listener => {}
83
- },
84
- "capital-financing-application": {
85
- setOnApplicationSubmitted: _listener => {},
86
- setPrivacyPolicyUrl: _privacyPolicyUrl => {},
87
- setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
88
- setOnApplicationStepChange: _listener => {},
89
- setDefaultFinancingOffer: _defaultFinancingOffer => {},
90
- setOnApplicationInitiated: _listener => {},
91
- setResumeInitiatedApplication: _resumeInitiatedApplication => {}
51
+ payments: {
52
+ setDefaultFilters: _filters => {}
92
53
  },
93
- "capital-financing-promotion": {
94
- setLayout: _layout => {},
95
- setOnApplicationSubmitted: _listener => {},
96
- setOnEligibleFinancingOfferLoaded: _listener => {},
97
- setPrivacyPolicyUrl: _privacyPolicyUrl => {},
98
- setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
99
- setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {},
100
- setOnApplicationStepChange: _listener => {},
101
- setOnAdvanceToCapitalFinancingApplication: _listener => {},
102
- setDisableNestedCapitalFinancingApplication: _disableNestedCapitalFinancingApplication => {}
54
+ "payment-details": {
55
+ setPayment: _payment => {},
56
+ setOnClose: _listener => {}
103
57
  },
104
- "reporting-chart": {
105
- setReportName: _reportName => {},
106
- setIntervalStart: _intervalStart => {},
107
- setIntervalEnd: _intervalEnd => {},
108
- setIntervalType: _intervalType => {}
58
+ "payment-disputes": {
59
+ setPayment: _payment => {},
60
+ setOnDisputesLoaded: _listener => {}
109
61
  },
110
62
  "tax-settings": {
111
63
  setHideProductTaxCodeSelector: _hidden => {},
@@ -117,26 +69,10 @@ const ConnectElementCustomMethodConfig = {
117
69
  setDisplayCountries: _countries => {},
118
70
  setOnAfterTaxRegistrationExpired: _listener => {}
119
71
  },
120
- "tax-threshold-monitoring": {
121
- setDisplayCountries: _countries => {}
122
- },
123
- "product-tax-code-selector": {
124
- setOnTaxCodeSelect: _listener => {},
125
- setHideDescription: _hideDescription => {},
126
- setDisabled: _disabled => {},
127
- setInitialTaxCode: _initialTaxCode => {}
128
- },
129
- "export-tax-transactions": {},
130
72
  "payout-details": {
131
73
  setPayout: _payout => {},
132
74
  setOnClose: _listener => {}
133
75
  },
134
- "check-scanning": {
135
- setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
136
- },
137
- "agentic-commerce-settings": {
138
- setOnAgreementUpdated: _listener => {}
139
- },
140
76
  "terminal-hardware-shop": {
141
77
  setOnCheckoutFinished: _listener => {}
142
78
  },
@@ -245,7 +181,7 @@ const initStripeConnect = (stripePromise, initParams) => {
245
181
  element[method] = function (value) {
246
182
  stripeConnectInstance.then(() => {
247
183
  if (!this[`${method}InternalOnly`]) {
248
- 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.4.7-preview.0`);
184
+ 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.4.7`);
249
185
  }
250
186
  this[`${method}InternalOnly`](value);
251
187
  });
@@ -299,7 +235,7 @@ const createWrapper = stripeConnect => {
299
235
  sdk: true,
300
236
  sdkOptions: {
301
237
  // This will be replaced by the npm package version when bundling
302
- sdkVersion: "3.4.7-preview.0"
238
+ sdkVersion: "3.4.7"
303
239
  }
304
240
  })
305
241
  }));
@@ -1,4 +1,4 @@
1
- import type { ConnectElementCommonMethodConfig, ConnectElementCustomMethodConfig, connectElementTagNames, EmbeddedError, EmbeddedErrorType } from "../components/componentsAndSetters";
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<"payments" | "payouts" | "payment-details" | "payment-disputes" | "disputes-list" | "account-onboarding" | "payment-method-settings" | "account-management" | "notification-banner" | "instant-payouts" | "instant-payouts-promotion" | "issuing-card" | "issuing-cards-list" | "financial-account" | "financial-account-transactions" | "recipients" | "capital-financing" | "capital-financing-application" | "capital-financing-promotion" | "capital-overview" | "documents" | "product-tax-code-selector" | "export-tax-transactions" | "tax-registrations" | "tax-settings" | "tax-threshold-monitoring" | "balances" | "payouts-list" | "payout-details" | "app-install" | "app-viewport" | "reporting-chart" | "check-scanning" | "agentic-commerce-settings" | "terminal-hardware-orders" | "terminal-hardware-shop" | "network-cost-passthrough-report" | "balance-report" | "payout-reconciliation-report" | "recipients-list" | "financial-accounts" | "financial-accounts-transactions" | "bills", "stripe-connect-payments" | "stripe-connect-payouts" | "stripe-connect-payment-details" | "stripe-connect-payment-disputes" | "stripe-connect-disputes-list" | "stripe-connect-account-onboarding" | "stripe-connect-payment-method-settings" | "stripe-connect-account-management" | "stripe-connect-notification-banner" | "stripe-connect-instant-payouts" | "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-recipients" | "stripe-connect-capital-financing" | "stripe-connect-capital-financing-application" | "stripe-connect-capital-financing-promotion" | "stripe-connect-capital-overview" | "stripe-connect-documents" | "stripe-connect-product-tax-code-selector" | "stripe-connect-export-tax-transactions" | "stripe-connect-tax-registrations" | "stripe-connect-tax-settings" | "stripe-connect-tax-threshold-monitoring" | "stripe-connect-balances" | "stripe-connect-payouts-list" | "stripe-connect-payout-details" | "stripe-connect-app-install" | "stripe-connect-app-viewport" | "stripe-connect-reporting-chart" | "stripe-connect-check-scanning" | "stripe-connect-agentic-commerce-settings" | "stripe-connect-terminal-hardware-orders" | "stripe-connect-terminal-hardware-shop" | "stripe-connect-network-cost-passthrough-report" | "stripe-connect-balance-report" | "stripe-connect-payout-reconciliation-report" | "stripe-connect-recipients-list" | "stripe-connect-financial-accounts" | "stripe-connect-financial-accounts-transactions" | "stripe-connect-bills">;
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", "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">;
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 = ["payments", "payouts", "payment-details", "payment-disputes", "disputes-list", "account-onboarding", "payment-method-settings", "account-management", "notification-banner", "instant-payouts", "instant-payouts-promotion", "issuing-card", "issuing-cards-list", "financial-account", "financial-account-transactions", "recipients", "capital-financing", "capital-financing-application", "capital-financing-promotion", "capital-overview", "documents", "product-tax-code-selector", "export-tax-transactions", "tax-registrations", "tax-settings", "tax-threshold-monitoring", "balances", "payouts-list", "payout-details", "app-install", "app-viewport", "reporting-chart", "check-scanning", "agentic-commerce-settings", "terminal-hardware-orders", "terminal-hardware-shop", "network-cost-passthrough-report", "balance-report", "payout-reconciliation-report", "recipients-list", "financial-accounts", "financial-accounts-transactions", "bills"];
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"];
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 => {},
@@ -55,53 +44,16 @@ const ConnectElementCustomMethodConfig = {
55
44
  "financial-account-transactions": {
56
45
  setFinancialAccount: _financialAccount => {}
57
46
  },
58
- recipients: {
59
- setDataSource: _dataSource => {}
60
- },
61
- "app-install": {
62
- setApp: _app => {},
63
- setOnAppInstallStateFetched: _listener => {},
64
- setOnAppInstallStateChanged: _listener => {}
65
- },
66
- "app-viewport": {
67
- setApp: _app => {},
68
- setAppData: _appData => {}
69
- },
70
- "payment-method-settings": {
71
- setPaymentMethodConfiguration: _paymentMethodConfiguration => {}
72
- },
73
- "capital-financing": {
74
- setDefaultFinancingOffer: _defaultFinancingOffer => {},
75
- setShowFinancingSelector: _showFinancingSelector => {},
76
- setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
77
- setSupportUrl: _supportUrl => {},
78
- setOnFinancingsLoaded: _listener => {}
79
- },
80
- "capital-financing-application": {
81
- setOnApplicationSubmitted: _listener => {},
82
- setPrivacyPolicyUrl: _privacyPolicyUrl => {},
83
- setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
84
- setOnApplicationStepChange: _listener => {},
85
- setDefaultFinancingOffer: _defaultFinancingOffer => {},
86
- setOnApplicationInitiated: _listener => {},
87
- setResumeInitiatedApplication: _resumeInitiatedApplication => {}
47
+ payments: {
48
+ setDefaultFilters: _filters => {}
88
49
  },
89
- "capital-financing-promotion": {
90
- setLayout: _layout => {},
91
- setOnApplicationSubmitted: _listener => {},
92
- setOnEligibleFinancingOfferLoaded: _listener => {},
93
- setPrivacyPolicyUrl: _privacyPolicyUrl => {},
94
- setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
95
- setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {},
96
- setOnApplicationStepChange: _listener => {},
97
- setOnAdvanceToCapitalFinancingApplication: _listener => {},
98
- setDisableNestedCapitalFinancingApplication: _disableNestedCapitalFinancingApplication => {}
50
+ "payment-details": {
51
+ setPayment: _payment => {},
52
+ setOnClose: _listener => {}
99
53
  },
100
- "reporting-chart": {
101
- setReportName: _reportName => {},
102
- setIntervalStart: _intervalStart => {},
103
- setIntervalEnd: _intervalEnd => {},
104
- setIntervalType: _intervalType => {}
54
+ "payment-disputes": {
55
+ setPayment: _payment => {},
56
+ setOnDisputesLoaded: _listener => {}
105
57
  },
106
58
  "tax-settings": {
107
59
  setHideProductTaxCodeSelector: _hidden => {},
@@ -113,26 +65,10 @@ const ConnectElementCustomMethodConfig = {
113
65
  setDisplayCountries: _countries => {},
114
66
  setOnAfterTaxRegistrationExpired: _listener => {}
115
67
  },
116
- "tax-threshold-monitoring": {
117
- setDisplayCountries: _countries => {}
118
- },
119
- "product-tax-code-selector": {
120
- setOnTaxCodeSelect: _listener => {},
121
- setHideDescription: _hideDescription => {},
122
- setDisabled: _disabled => {},
123
- setInitialTaxCode: _initialTaxCode => {}
124
- },
125
- "export-tax-transactions": {},
126
68
  "payout-details": {
127
69
  setPayout: _payout => {},
128
70
  setOnClose: _listener => {}
129
71
  },
130
- "check-scanning": {
131
- setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
132
- },
133
- "agentic-commerce-settings": {
134
- setOnAgreementUpdated: _listener => {}
135
- },
136
72
  "terminal-hardware-shop": {
137
73
  setOnCheckoutFinished: _listener => {}
138
74
  },
@@ -241,7 +177,7 @@ const initStripeConnect = (stripePromise, initParams) => {
241
177
  element[method] = function (value) {
242
178
  stripeConnectInstance.then(() => {
243
179
  if (!this[`${method}InternalOnly`]) {
244
- 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.4.7-preview.0`);
180
+ 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.4.7`);
245
181
  }
246
182
  this[`${method}InternalOnly`](value);
247
183
  });
@@ -295,7 +231,7 @@ const createWrapper = stripeConnect => {
295
231
  sdk: true,
296
232
  sdkOptions: {
297
233
  // This will be replaced by the npm package version when bundling
298
- sdkVersion: "3.4.7-preview.0"
234
+ sdkVersion: "3.4.7"
299
235
  }
300
236
  })
301
237
  }));
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 = ["payments", "payouts", "payment-details", "payment-disputes", "disputes-list", "account-onboarding", "payment-method-settings", "account-management", "notification-banner", "instant-payouts", "instant-payouts-promotion", "issuing-card", "issuing-cards-list", "financial-account", "financial-account-transactions", "recipients", "capital-financing", "capital-financing-application", "capital-financing-promotion", "capital-overview", "documents", "product-tax-code-selector", "export-tax-transactions", "tax-registrations", "tax-settings", "tax-threshold-monitoring", "balances", "payouts-list", "payout-details", "app-install", "app-viewport", "reporting-chart", "check-scanning", "agentic-commerce-settings", "terminal-hardware-orders", "terminal-hardware-shop", "network-cost-passthrough-report", "balance-report", "payout-reconciliation-report", "recipients-list", "financial-accounts", "financial-accounts-transactions", "bills"];
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"];
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 => {},
@@ -59,53 +48,16 @@ const ConnectElementCustomMethodConfig = {
59
48
  "financial-account-transactions": {
60
49
  setFinancialAccount: _financialAccount => {}
61
50
  },
62
- recipients: {
63
- setDataSource: _dataSource => {}
64
- },
65
- "app-install": {
66
- setApp: _app => {},
67
- setOnAppInstallStateFetched: _listener => {},
68
- setOnAppInstallStateChanged: _listener => {}
69
- },
70
- "app-viewport": {
71
- setApp: _app => {},
72
- setAppData: _appData => {}
73
- },
74
- "payment-method-settings": {
75
- setPaymentMethodConfiguration: _paymentMethodConfiguration => {}
76
- },
77
- "capital-financing": {
78
- setDefaultFinancingOffer: _defaultFinancingOffer => {},
79
- setShowFinancingSelector: _showFinancingSelector => {},
80
- setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
81
- setSupportUrl: _supportUrl => {},
82
- setOnFinancingsLoaded: _listener => {}
83
- },
84
- "capital-financing-application": {
85
- setOnApplicationSubmitted: _listener => {},
86
- setPrivacyPolicyUrl: _privacyPolicyUrl => {},
87
- setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
88
- setOnApplicationStepChange: _listener => {},
89
- setDefaultFinancingOffer: _defaultFinancingOffer => {},
90
- setOnApplicationInitiated: _listener => {},
91
- setResumeInitiatedApplication: _resumeInitiatedApplication => {}
51
+ payments: {
52
+ setDefaultFilters: _filters => {}
92
53
  },
93
- "capital-financing-promotion": {
94
- setLayout: _layout => {},
95
- setOnApplicationSubmitted: _listener => {},
96
- setOnEligibleFinancingOfferLoaded: _listener => {},
97
- setPrivacyPolicyUrl: _privacyPolicyUrl => {},
98
- setHowCapitalWorksUrl: _howCapitalWorksUrl => {},
99
- setEligibilityCriteriaUrl: _eligibilityCriteriaUrl => {},
100
- setOnApplicationStepChange: _listener => {},
101
- setOnAdvanceToCapitalFinancingApplication: _listener => {},
102
- setDisableNestedCapitalFinancingApplication: _disableNestedCapitalFinancingApplication => {}
54
+ "payment-details": {
55
+ setPayment: _payment => {},
56
+ setOnClose: _listener => {}
103
57
  },
104
- "reporting-chart": {
105
- setReportName: _reportName => {},
106
- setIntervalStart: _intervalStart => {},
107
- setIntervalEnd: _intervalEnd => {},
108
- setIntervalType: _intervalType => {}
58
+ "payment-disputes": {
59
+ setPayment: _payment => {},
60
+ setOnDisputesLoaded: _listener => {}
109
61
  },
110
62
  "tax-settings": {
111
63
  setHideProductTaxCodeSelector: _hidden => {},
@@ -117,26 +69,10 @@ const ConnectElementCustomMethodConfig = {
117
69
  setDisplayCountries: _countries => {},
118
70
  setOnAfterTaxRegistrationExpired: _listener => {}
119
71
  },
120
- "tax-threshold-monitoring": {
121
- setDisplayCountries: _countries => {}
122
- },
123
- "product-tax-code-selector": {
124
- setOnTaxCodeSelect: _listener => {},
125
- setHideDescription: _hideDescription => {},
126
- setDisabled: _disabled => {},
127
- setInitialTaxCode: _initialTaxCode => {}
128
- },
129
- "export-tax-transactions": {},
130
72
  "payout-details": {
131
73
  setPayout: _payout => {},
132
74
  setOnClose: _listener => {}
133
75
  },
134
- "check-scanning": {
135
- setHandleCheckScanSubmitted: _handleCheckScanSubmitted => {}
136
- },
137
- "agentic-commerce-settings": {
138
- setOnAgreementUpdated: _listener => {}
139
- },
140
76
  "terminal-hardware-shop": {
141
77
  setOnCheckoutFinished: _listener => {}
142
78
  },
@@ -245,7 +181,7 @@ const initStripeConnect = (stripePromise, initParams) => {
245
181
  element[method] = function (value) {
246
182
  stripeConnectInstance.then(() => {
247
183
  if (!this[`${method}InternalOnly`]) {
248
- 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.4.7-preview.0`);
184
+ 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.4.7`);
249
185
  }
250
186
  this[`${method}InternalOnly`](value);
251
187
  });
@@ -299,7 +235,7 @@ const createWrapper = stripeConnect => {
299
235
  sdk: true,
300
236
  sdkOptions: {
301
237
  // This will be replaced by the npm package version when bundling
302
- sdkVersion: "3.4.7-preview.0"
238
+ sdkVersion: "3.4.7"
303
239
  }
304
240
  })
305
241
  }));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stripe/connect-js",
3
- "version": "3.4.7-preview.0",
4
- "description": "Connect.js loading utility package (preview version)",
3
+ "version": "3.4.7",
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": "git+https://github.com/stripe/connect-js.git"
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.80.0",
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,53 +2,32 @@
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
- "disputes-list",
10
- "account-onboarding",
11
- "payment-method-settings",
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
20
  "financial-account-transactions",
20
- "recipients",
21
- "capital-financing",
22
- "capital-financing-application",
23
- "capital-financing-promotion",
24
- "capital-overview",
25
21
  "documents",
26
- "product-tax-code-selector",
27
- "export-tax-transactions",
28
22
  "tax-registrations",
29
23
  "tax-settings",
30
- "tax-threshold-monitoring",
31
- "balances",
32
- "payouts-list",
33
- "payout-details",
34
- "app-install",
35
- "app-viewport",
36
- "reporting-chart",
37
- "check-scanning",
38
- "agentic-commerce-settings",
39
24
  "terminal-hardware-orders",
40
25
  "terminal-hardware-shop",
41
- "network-cost-passthrough-report",
42
26
  "balance-report",
43
27
  "payout-reconciliation-report",
44
- "recipients-list",
45
- "financial-accounts",
46
- "financial-accounts-transactions",
47
- "bills",
48
28
  ] as const;
49
29
 
50
30
  // 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.
51
-
52
31
  export type FetchEphemeralKeyFunction = (fetchParams: {
53
32
  issuingCard: string;
54
33
  nonce: string;
@@ -189,11 +168,6 @@ export type NotificationCount = {
189
168
  actionRequired: number;
190
169
  };
191
170
 
192
- export type InstallState = {
193
- appId: string;
194
- state: "INSTALLED" | "UNINSTALLED";
195
- };
196
-
197
171
  export type LoaderStart = {
198
172
  elementTagName: string;
199
173
  };
@@ -216,19 +190,6 @@ export type EmbeddedError = {
216
190
  message?: string;
217
191
  };
218
192
 
219
- export type FinancingProductType = {
220
- productType: "standard" | "refill" | "none";
221
- activeFinancingCount: number;
222
- };
223
-
224
- export type FinancingPromotionLayoutType = "full" | "banner";
225
-
226
- export type IntervalType = "day" | "week" | "month" | "quarter" | "year";
227
-
228
- export type ReportName = "gross_volume" | "net_volume";
229
-
230
- export type RecipientDataSource = "customers";
231
-
232
193
  export type EmbeddedErrorType =
233
194
  /**
234
195
  * Failure to connect to Stripe's API.
@@ -269,21 +230,6 @@ export const ConnectElementCommonMethodConfig = {
269
230
  };
270
231
 
271
232
  export const ConnectElementCustomMethodConfig = {
272
- payments: {
273
- setDefaultFilters: (
274
- _filters: PaymentsListDefaultFilters | undefined
275
- ): void => {},
276
- },
277
- "payment-details": {
278
- setPayment: (_payment: string | undefined): void => {},
279
- setOnClose: (_listener: (() => void) | undefined): void => {},
280
- },
281
- "payment-disputes": {
282
- setPayment: (_payment: string | undefined): void => {},
283
- setOnDisputesLoaded: (
284
- _listener: (({ total }: { total: number }) => void) | undefined
285
- ): void => {},
286
- },
287
233
  "account-onboarding": {
288
234
  setFullTermsOfServiceUrl: (
289
235
  _termOfServiceUrl: string | undefined
@@ -352,99 +298,21 @@ export const ConnectElementCustomMethodConfig = {
352
298
  "financial-account-transactions": {
353
299
  setFinancialAccount: (_financialAccount: string): void => {},
354
300
  },
355
- recipients: {
356
- setDataSource: (_dataSource: RecipientDataSource): void => {},
357
- },
358
- "app-install": {
359
- setApp: (_app: string | undefined): void => {},
360
- setOnAppInstallStateFetched: (
361
- _listener: (({ appId, state }: InstallState) => void) | undefined
362
- ): void => {},
363
- setOnAppInstallStateChanged: (
364
- _listener: (({ appId, state }: InstallState) => void) | undefined
301
+ payments: {
302
+ setDefaultFilters: (
303
+ _filters: PaymentsListDefaultFilters | undefined
365
304
  ): void => {},
366
305
  },
367
- "app-viewport": {
368
- setApp: (_app: string | undefined): void => {},
369
- setAppData: (_appData: Record<string, string> | undefined): void => {},
370
- },
371
- "payment-method-settings": {
372
- setPaymentMethodConfiguration: (
373
- _paymentMethodConfiguration: string | undefined
374
- ): void => {},
306
+ "payment-details": {
307
+ setPayment: (_payment: string | undefined): void => {},
308
+ setOnClose: (_listener: (() => void) | undefined): void => {},
375
309
  },
376
- "capital-financing": {
377
- setDefaultFinancingOffer: (
378
- _defaultFinancingOffer: string | undefined
379
- ): void => {},
380
- setShowFinancingSelector: (
381
- _showFinancingSelector: boolean | undefined
382
- ): void => {},
383
- setHowCapitalWorksUrl: (
384
- _howCapitalWorksUrl: string | undefined
385
- ): void => {},
386
- setSupportUrl: (_supportUrl: string | undefined): void => {},
387
- setOnFinancingsLoaded: (
310
+ "payment-disputes": {
311
+ setPayment: (_payment: string | undefined): void => {},
312
+ setOnDisputesLoaded: (
388
313
  _listener: (({ total }: { total: number }) => void) | undefined
389
314
  ): void => {},
390
315
  },
391
- "capital-financing-application": {
392
- setOnApplicationSubmitted: (
393
- _listener: (() => void) | undefined
394
- ): void => {},
395
- setPrivacyPolicyUrl: (_privacyPolicyUrl: string | undefined): void => {},
396
- setHowCapitalWorksUrl: (
397
- _howCapitalWorksUrl: string | undefined
398
- ): void => {},
399
- setOnApplicationStepChange: (
400
- _listener: (({ step }: StepChange) => void) | undefined
401
- ): void => {},
402
- setDefaultFinancingOffer: (
403
- _defaultFinancingOffer: string | undefined
404
- ): void => {},
405
- setOnApplicationInitiated: (
406
- _listener: (() => void) | undefined
407
- ): void => {},
408
- setResumeInitiatedApplication: (
409
- _resumeInitiatedApplication: boolean | undefined
410
- ): void => {},
411
- },
412
- "capital-financing-promotion": {
413
- setLayout: (_layout: FinancingPromotionLayoutType | undefined): void => {},
414
- setOnApplicationSubmitted: (
415
- _listener: (() => void) | undefined
416
- ): void => {},
417
- setOnEligibleFinancingOfferLoaded: (
418
- _listener:
419
- | (({
420
- productType,
421
- activeFinancingCount,
422
- }: FinancingProductType) => void)
423
- | undefined
424
- ): void => {},
425
- setPrivacyPolicyUrl: (_privacyPolicyUrl: string | undefined): void => {},
426
- setHowCapitalWorksUrl: (
427
- _howCapitalWorksUrl: string | undefined
428
- ): void => {},
429
- setEligibilityCriteriaUrl: (
430
- _eligibilityCriteriaUrl: string | undefined
431
- ): void => {},
432
- setOnApplicationStepChange: (
433
- _listener: (({ step }: StepChange) => void) | undefined
434
- ): void => {},
435
- setOnAdvanceToCapitalFinancingApplication: (
436
- _listener: (() => void) | undefined
437
- ): void => {},
438
- setDisableNestedCapitalFinancingApplication: (
439
- _disableNestedCapitalFinancingApplication: boolean | undefined
440
- ): void => {},
441
- },
442
- "reporting-chart": {
443
- setReportName: (_reportName: ReportName): void => {},
444
- setIntervalStart: (_intervalStart: Date | undefined): void => {},
445
- setIntervalEnd: (_intervalEnd: Date | undefined): void => {},
446
- setIntervalType: (_intervalType: IntervalType | undefined): void => {},
447
- },
448
316
  "tax-settings": {
449
317
  setHideProductTaxCodeSelector: (_hidden: boolean | undefined): void => {},
450
318
  setDisplayHeadOfficeCountries: (
@@ -463,43 +331,10 @@ export const ConnectElementCustomMethodConfig = {
463
331
  _listener: (({ id }: { id: string }) => void) | undefined
464
332
  ): void => {},
465
333
  },
466
- "tax-threshold-monitoring": {
467
- setDisplayCountries: (_countries: string[] | undefined): void => {},
468
- },
469
- "product-tax-code-selector": {
470
- setOnTaxCodeSelect: (
471
- _listener:
472
- | ((
473
- taxCode: string | null,
474
- _: { analyticsName: string } | null
475
- ) => void)
476
- | undefined
477
- ): void => {},
478
- setHideDescription: (_hideDescription: boolean | undefined): void => {},
479
- setDisabled: (_disabled: boolean | undefined): void => {},
480
- setInitialTaxCode: (_initialTaxCode: string | undefined): void => {},
481
- },
482
- "export-tax-transactions": {},
483
334
  "payout-details": {
484
335
  setPayout: (_payout: string | undefined): void => {},
485
336
  setOnClose: (_listener: (() => void) | undefined): void => {},
486
337
  },
487
- "check-scanning": {
488
- setHandleCheckScanSubmitted: (
489
- _handleCheckScanSubmitted: ({
490
- checkScanToken,
491
- }: {
492
- checkScanToken: string;
493
- }) => Promise<void>
494
- ): void => {},
495
- },
496
- "agentic-commerce-settings": {
497
- setOnAgreementUpdated: (
498
- _listener:
499
- | (({ agreementId }: { agreementId: string }) => void)
500
- | undefined
501
- ): void => {},
502
- },
503
338
  "terminal-hardware-shop": {
504
339
  setOnCheckoutFinished: (_listener: (() => void) | undefined): void => {},
505
340
  },
@@ -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
  */