@stripe/connect-js 3.3.38-preview-1 → 3.3.40-preview-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.esm.js +4 -1
- package/dist/connect.js +4 -1
- package/dist/pure.esm.js +4 -1
- package/dist/pure.js +4 -1
- package/dist/types/config.d.ts +5 -0
- package/package.json +1 -1
- package/src/shared.ts +6 -0
- package/types/config.ts +7 -0
package/dist/connect.esm.js
CHANGED
|
@@ -249,6 +249,9 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
249
249
|
for (const method in methods) {
|
|
250
250
|
element[method] = function (value) {
|
|
251
251
|
stripeConnectInstance.then(() => {
|
|
252
|
+
if (!this[`${method}InternalOnly`]) {
|
|
253
|
+
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.3.40-preview-1`);
|
|
254
|
+
}
|
|
252
255
|
this[`${method}InternalOnly`](value);
|
|
253
256
|
});
|
|
254
257
|
};
|
|
@@ -301,7 +304,7 @@ const createWrapper = stripeConnect => {
|
|
|
301
304
|
sdk: true,
|
|
302
305
|
sdkOptions: {
|
|
303
306
|
// This will be replaced by the npm package version when bundling
|
|
304
|
-
sdkVersion: "3.3.
|
|
307
|
+
sdkVersion: "3.3.40-preview-1"
|
|
305
308
|
}
|
|
306
309
|
})
|
|
307
310
|
}));
|
package/dist/connect.js
CHANGED
|
@@ -253,6 +253,9 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
253
253
|
for (const method in methods) {
|
|
254
254
|
element[method] = function (value) {
|
|
255
255
|
stripeConnectInstance.then(() => {
|
|
256
|
+
if (!this[`${method}InternalOnly`]) {
|
|
257
|
+
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.3.40-preview-1`);
|
|
258
|
+
}
|
|
256
259
|
this[`${method}InternalOnly`](value);
|
|
257
260
|
});
|
|
258
261
|
};
|
|
@@ -305,7 +308,7 @@ const createWrapper = stripeConnect => {
|
|
|
305
308
|
sdk: true,
|
|
306
309
|
sdkOptions: {
|
|
307
310
|
// This will be replaced by the npm package version when bundling
|
|
308
|
-
sdkVersion: "3.3.
|
|
311
|
+
sdkVersion: "3.3.40-preview-1"
|
|
309
312
|
}
|
|
310
313
|
})
|
|
311
314
|
}));
|
package/dist/pure.esm.js
CHANGED
|
@@ -249,6 +249,9 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
249
249
|
for (const method in methods) {
|
|
250
250
|
element[method] = function (value) {
|
|
251
251
|
stripeConnectInstance.then(() => {
|
|
252
|
+
if (!this[`${method}InternalOnly`]) {
|
|
253
|
+
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.3.40-preview-1`);
|
|
254
|
+
}
|
|
252
255
|
this[`${method}InternalOnly`](value);
|
|
253
256
|
});
|
|
254
257
|
};
|
|
@@ -301,7 +304,7 @@ const createWrapper = stripeConnect => {
|
|
|
301
304
|
sdk: true,
|
|
302
305
|
sdkOptions: {
|
|
303
306
|
// This will be replaced by the npm package version when bundling
|
|
304
|
-
sdkVersion: "3.3.
|
|
307
|
+
sdkVersion: "3.3.40-preview-1"
|
|
305
308
|
}
|
|
306
309
|
})
|
|
307
310
|
}));
|
package/dist/pure.js
CHANGED
|
@@ -253,6 +253,9 @@ const initStripeConnect = (stripePromise, initParams) => {
|
|
|
253
253
|
for (const method in methods) {
|
|
254
254
|
element[method] = function (value) {
|
|
255
255
|
stripeConnectInstance.then(() => {
|
|
256
|
+
if (!this[`${method}InternalOnly`]) {
|
|
257
|
+
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.3.40-preview-1`);
|
|
258
|
+
}
|
|
256
259
|
this[`${method}InternalOnly`](value);
|
|
257
260
|
});
|
|
258
261
|
};
|
|
@@ -305,7 +308,7 @@ const createWrapper = stripeConnect => {
|
|
|
305
308
|
sdk: true,
|
|
306
309
|
sdkOptions: {
|
|
307
310
|
// This will be replaced by the npm package version when bundling
|
|
308
|
-
sdkVersion: "3.3.
|
|
311
|
+
sdkVersion: "3.3.40-preview-1"
|
|
309
312
|
}
|
|
310
313
|
})
|
|
311
314
|
}));
|
package/dist/types/config.d.ts
CHANGED
|
@@ -9,6 +9,11 @@ export type FetchEphemeralKeyFunction = (fetchParams: {
|
|
|
9
9
|
export type CollectionOptions = {
|
|
10
10
|
fields: "currently_due" | "eventually_due";
|
|
11
11
|
futureRequirements?: "omit" | "include";
|
|
12
|
+
requirements?: {
|
|
13
|
+
only: string[];
|
|
14
|
+
} | {
|
|
15
|
+
exclude: string[];
|
|
16
|
+
};
|
|
12
17
|
};
|
|
13
18
|
export type Status = "blocked" | "canceled" | "disputed" | "early_fraud_warning" | "failed" | "incomplete" | "partially_refunded" | "pending" | "refund_pending" | "refunded" | "successful" | "uncaptured";
|
|
14
19
|
export type PaymentMethod = "ach_credit_transfer" | "ach_debit" | "acss_debit" | "affirm" | "afterpay_clearpay" | "alipay" | "alma" | "amazon_pay" | "amex_express_checkout" | "android_pay" | "apple_pay" | "au_becs_debit" | "nz_bank_account" | "bancontact" | "bacs_debit" | "bitcoin_source" | "bitcoin" | "blik" | "boleto" | "boleto_pilot" | "card_present" | "card" | "cashapp" | "crypto" | "customer_balance" | "demo_pay" | "dummy_passthrough_card" | "gbp_credit_transfer" | "google_pay" | "eps" | "fpx" | "giropay" | "grabpay" | "ideal" | "id_bank_transfer" | "id_credit_transfer" | "jp_credit_transfer" | "interac_present" | "kakao_pay" | "klarna" | "konbini" | "kr_card" | "kr_market" | "link" | "masterpass" | "mb_way" | "meta_pay" | "multibanco" | "mobilepay" | "naver_pay" | "netbanking" | "ng_bank" | "ng_bank_transfer" | "ng_card" | "ng_market" | "ng_ussd" | "vipps" | "oxxo" | "p24" | "payto" | "pay_by_bank" | "paper_check" | "payco" | "paynow" | "paypal" | "pix" | "promptpay" | "revolut_pay" | "samsung_pay" | "sepa_credit_transfer" | "sepa_debit" | "sofort" | "south_korea_market" | "swish" | "three_d_secure" | "three_d_secure_2" | "three_d_secure_2_eap" | "twint" | "upi" | "us_bank_account" | "visa_checkout" | "wechat" | "wechat_pay" | "zip";
|
package/package.json
CHANGED
package/src/shared.ts
CHANGED
|
@@ -235,6 +235,12 @@ export const initStripeConnect = (
|
|
|
235
235
|
for (const method in methods) {
|
|
236
236
|
(element as any)[method] = function (value: any) {
|
|
237
237
|
stripeConnectInstance.then(() => {
|
|
238
|
+
if (!this[`${method}InternalOnly`]) {
|
|
239
|
+
throw new Error(
|
|
240
|
+
`Method ${method} is not available in the ${tagName} HTML element. Are you using a supported version of the "@stripe/connect-js" package? Using version: _NPM_PACKAGE_VERSION_`
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
|
|
238
244
|
this[`${method}InternalOnly`](value);
|
|
239
245
|
});
|
|
240
246
|
};
|
package/types/config.ts
CHANGED
|
@@ -13,6 +13,13 @@ export type FetchEphemeralKeyFunction = (fetchParams: {
|
|
|
13
13
|
export type CollectionOptions = {
|
|
14
14
|
fields: "currently_due" | "eventually_due";
|
|
15
15
|
futureRequirements?: "omit" | "include";
|
|
16
|
+
requirements?:
|
|
17
|
+
| {
|
|
18
|
+
only: string[];
|
|
19
|
+
}
|
|
20
|
+
| {
|
|
21
|
+
exclude: string[];
|
|
22
|
+
};
|
|
16
23
|
};
|
|
17
24
|
|
|
18
25
|
export type Status =
|