@bigcommerce/checkout-sdk 1.381.4 → 1.382.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/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +10 -10
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.js.map +1 -1
- package/dist/checkout-sdk.umd.js +1 -1
- package/dist/checkout-sdk.umd.js.map +1 -1
- package/docs/README.md +3 -3
- package/docs/interfaces/AchInstrument.md +94 -0
- package/docs/interfaces/BankInstrument.md +0 -11
- package/docs/interfaces/BaseAccountInstrument.md +2 -7
- package/docs/interfaces/BaseInstrument.md +0 -2
- package/docs/interfaces/PayPalInstrument.md +0 -4
- package/package.json +1 -1
- package/docs/interfaces/BraintreeAchInstrument.md +0 -94
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -15,7 +15,14 @@ import { WithAccountCreation } from '@bigcommerce/checkout-sdk/payment-integrati
|
|
|
15
15
|
import { WithBankAccountInstrument } from '@bigcommerce/checkout-sdk/payment-integration-api';
|
|
16
16
|
import { createTimeout } from '@bigcommerce/request-sender';
|
|
17
17
|
|
|
18
|
-
declare type AccountInstrument = PayPalInstrument | BankInstrument;
|
|
18
|
+
declare type AccountInstrument = PayPalInstrument | BankInstrument | AchInstrument;
|
|
19
|
+
|
|
20
|
+
declare interface AchInstrument extends BaseAccountInstrument {
|
|
21
|
+
issuer: string;
|
|
22
|
+
accountNumber: string;
|
|
23
|
+
type: 'bank';
|
|
24
|
+
method: 'ach';
|
|
25
|
+
}
|
|
19
26
|
|
|
20
27
|
declare interface Address extends AddressRequestBody {
|
|
21
28
|
country: string;
|
|
@@ -886,7 +893,6 @@ declare interface Banner {
|
|
|
886
893
|
}
|
|
887
894
|
|
|
888
895
|
declare interface BaseAccountInstrument extends BaseInstrument {
|
|
889
|
-
externalId: string;
|
|
890
896
|
method: string;
|
|
891
897
|
type: 'account' | 'bank';
|
|
892
898
|
}
|
|
@@ -1470,13 +1476,6 @@ declare interface BoltPaymentInitializeOptions {
|
|
|
1470
1476
|
onPaymentSelect?(hasBoltAccount: boolean): void;
|
|
1471
1477
|
}
|
|
1472
1478
|
|
|
1473
|
-
declare interface BraintreeAchInstrument extends BaseInstrument {
|
|
1474
|
-
issuer: string;
|
|
1475
|
-
accountNumber: string;
|
|
1476
|
-
type: 'bank';
|
|
1477
|
-
method: 'ach';
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
1479
|
declare interface BraintreeError extends Error {
|
|
1481
1480
|
type: 'CUSTOMER' | 'MERCHANT' | 'NETWORK' | 'INTERNAL' | 'UNKNOWN';
|
|
1482
1481
|
code: string;
|
|
@@ -6612,12 +6611,13 @@ declare interface PayPalCommerceVenmoPaymentInitializeOptions {
|
|
|
6612
6611
|
}
|
|
6613
6612
|
|
|
6614
6613
|
declare interface PayPalInstrument extends BaseAccountInstrument {
|
|
6614
|
+
externalId: string;
|
|
6615
6615
|
method: 'paypal';
|
|
6616
6616
|
}
|
|
6617
6617
|
|
|
6618
6618
|
declare type PaymentInitializeOptions = BasePaymentInitializeOptions & WithAdyenV2PaymentInitializeOptions & WithAdyenV3PaymentInitializeOptions & WithApplePayPaymentInitializeOptions & WithBoltPaymentInitializeOptions & WithBraintreePaypalAchPaymentInitializeOptions & WithCreditCardPaymentInitializeOptions & WithPayPalCommercePaymentInitializeOptions & WithPayPalCommerceCreditPaymentInitializeOptions & WithPayPalCommerceVenmoPaymentInitializeOptions & WithPayPalCommerceAlternativeMethodsPaymentInitializeOptions & WithPayPalCommerceCreditCardsPaymentInitializeOptions & WithSquareV2PaymentInitializeOptions;
|
|
6619
6619
|
|
|
6620
|
-
declare type PaymentInstrument = CardInstrument | AccountInstrument
|
|
6620
|
+
declare type PaymentInstrument = CardInstrument | AccountInstrument;
|
|
6621
6621
|
|
|
6622
6622
|
declare interface PaymentMethod<T = any> {
|
|
6623
6623
|
id: string;
|