@bigcommerce/checkout-sdk 1.383.2 → 1.384.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 +31 -1
- 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/dist/internal-mappers.d.ts +1 -0
- package/docs/README.md +3 -1
- package/docs/interfaces/BraintreeLocalMethods.md +76 -0
- package/docs/interfaces/DigitalItem.md +11 -0
- package/docs/interfaces/LineItem.md +7 -0
- package/docs/interfaces/PhysicalItem.md +11 -0
- package/docs/interfaces/WithBraintreeLocalMethodsPaymentInitializeOptions.md +15 -0
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -1574,6 +1574,31 @@ declare interface BraintreeFormOptions {
|
|
|
1574
1574
|
onEnter?(data: BraintreeFormFieldEnterEventData): void;
|
|
1575
1575
|
}
|
|
1576
1576
|
|
|
1577
|
+
declare interface BraintreeLocalMethods {
|
|
1578
|
+
/**
|
|
1579
|
+
* The CSS selector of a container where the payment widget should be inserted into.
|
|
1580
|
+
*/
|
|
1581
|
+
container: string;
|
|
1582
|
+
/**
|
|
1583
|
+
* Text that will be displayed on lpm button
|
|
1584
|
+
*/
|
|
1585
|
+
buttonText: string;
|
|
1586
|
+
/**
|
|
1587
|
+
* A callback right before render Smart Payment Button that gets called when
|
|
1588
|
+
* This callback can be used to hide the standard submit button.
|
|
1589
|
+
*/
|
|
1590
|
+
onRenderButton?(): void;
|
|
1591
|
+
/**
|
|
1592
|
+
* A callback for submitting payment form that gets called
|
|
1593
|
+
* when buyer approved PayPal account.
|
|
1594
|
+
*/
|
|
1595
|
+
submitForm?(): void;
|
|
1596
|
+
/**
|
|
1597
|
+
* A callback for displaying error popup. This callback requires error object as parameter.
|
|
1598
|
+
*/
|
|
1599
|
+
onError(error: unknown): void;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1577
1602
|
/**
|
|
1578
1603
|
* A set of options that are required to initialize the Braintree payment
|
|
1579
1604
|
* method. You need to provide the options if you want to support 3D Secure
|
|
@@ -5563,6 +5588,7 @@ declare interface LineItem {
|
|
|
5563
5588
|
couponAmount: number;
|
|
5564
5589
|
listPrice: number;
|
|
5565
5590
|
salePrice: number;
|
|
5591
|
+
retailPrice: number;
|
|
5566
5592
|
comparisonPrice: number;
|
|
5567
5593
|
extendedListPrice: number;
|
|
5568
5594
|
extendedSalePrice: number;
|
|
@@ -6615,7 +6641,7 @@ declare interface PayPalInstrument extends BaseAccountInstrument {
|
|
|
6615
6641
|
method: 'paypal';
|
|
6616
6642
|
}
|
|
6617
6643
|
|
|
6618
|
-
declare type PaymentInitializeOptions = BasePaymentInitializeOptions & WithAdyenV2PaymentInitializeOptions & WithAdyenV3PaymentInitializeOptions & WithApplePayPaymentInitializeOptions & WithBoltPaymentInitializeOptions & WithBraintreePaypalAchPaymentInitializeOptions & WithCreditCardPaymentInitializeOptions & WithPayPalCommercePaymentInitializeOptions & WithPayPalCommerceCreditPaymentInitializeOptions & WithPayPalCommerceVenmoPaymentInitializeOptions & WithPayPalCommerceAlternativeMethodsPaymentInitializeOptions & WithPayPalCommerceCreditCardsPaymentInitializeOptions & WithSquareV2PaymentInitializeOptions;
|
|
6644
|
+
declare type PaymentInitializeOptions = BasePaymentInitializeOptions & WithAdyenV2PaymentInitializeOptions & WithAdyenV3PaymentInitializeOptions & WithApplePayPaymentInitializeOptions & WithBoltPaymentInitializeOptions & WithBraintreePaypalAchPaymentInitializeOptions & WithBraintreeLocalMethodsPaymentInitializeOptions & WithCreditCardPaymentInitializeOptions & WithPayPalCommercePaymentInitializeOptions & WithPayPalCommerceCreditPaymentInitializeOptions & WithPayPalCommerceVenmoPaymentInitializeOptions & WithPayPalCommerceAlternativeMethodsPaymentInitializeOptions & WithPayPalCommerceCreditCardsPaymentInitializeOptions & WithSquareV2PaymentInitializeOptions;
|
|
6619
6645
|
|
|
6620
6646
|
declare type PaymentInstrument = CardInstrument | AccountInstrument;
|
|
6621
6647
|
|
|
@@ -7787,6 +7813,10 @@ declare interface WithBoltPaymentInitializeOptions {
|
|
|
7787
7813
|
bolt?: BoltPaymentInitializeOptions;
|
|
7788
7814
|
}
|
|
7789
7815
|
|
|
7816
|
+
declare interface WithBraintreeLocalMethodsPaymentInitializeOptions {
|
|
7817
|
+
braintreelocalmethods?: BraintreeLocalMethods;
|
|
7818
|
+
}
|
|
7819
|
+
|
|
7790
7820
|
declare interface WithBraintreePaypalAchPaymentInitializeOptions {
|
|
7791
7821
|
/**
|
|
7792
7822
|
* The options that are required to initialize the Braintree ACH payment
|