@bigcommerce/checkout-sdk 1.381.4 → 1.382.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.
@@ -15,7 +15,7 @@ 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 | BraintreeAchInstrument;
19
19
 
20
20
  declare interface Address extends AddressRequestBody {
21
21
  country: string;
@@ -886,7 +886,6 @@ declare interface Banner {
886
886
  }
887
887
 
888
888
  declare interface BaseAccountInstrument extends BaseInstrument {
889
- externalId: string;
890
889
  method: string;
891
890
  type: 'account' | 'bank';
892
891
  }
@@ -1470,7 +1469,7 @@ declare interface BoltPaymentInitializeOptions {
1470
1469
  onPaymentSelect?(hasBoltAccount: boolean): void;
1471
1470
  }
1472
1471
 
1473
- declare interface BraintreeAchInstrument extends BaseInstrument {
1472
+ declare interface BraintreeAchInstrument extends BaseAccountInstrument {
1474
1473
  issuer: string;
1475
1474
  accountNumber: string;
1476
1475
  type: 'bank';
@@ -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 | BraintreeAchInstrument;
6620
+ declare type PaymentInstrument = CardInstrument | AccountInstrument;
6621
6621
 
6622
6622
  declare interface PaymentMethod<T = any> {
6623
6623
  id: string;