@bigcommerce/checkout-sdk 1.459.0 → 1.460.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.
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +59 -14
- 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 +1 -1
- package/docs/interfaces/BraintreeAcceleratedCheckoutPaymentInitializeOptions.md +46 -2
- package/docs/interfaces/BraintreeAcceleratedCheckoutShippingInitializeOptions.md +33 -0
- package/docs/interfaces/ShippingInitializeOptions.md +1 -1
- package/package.json +1 -1
- package/docs/interfaces/BraintreeAcceleratedCheckoutInitializeOptions.md +0 -20
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="applepayjs" />
|
|
2
2
|
import { BlueSnapDirectEcpInstrument } from '@bigcommerce/checkout-sdk/payment-integration-api';
|
|
3
|
+
import { BraintreeConnectStylesOption } from '@bigcommerce/checkout-sdk/braintree-utils';
|
|
3
4
|
import { BraintreeError as BraintreeError_2 } from '@bigcommerce/checkout-sdk/braintree-utils';
|
|
4
5
|
import { BuyNowCartRequestBody as BuyNowCartRequestBody_2 } from '@bigcommerce/checkout-sdk/payment-integration-api';
|
|
5
6
|
import { CardClassSelectors } from '@square/web-payments-sdk-types';
|
|
@@ -1549,17 +1550,6 @@ declare interface BraintreeAcceleratedCheckoutCustomer {
|
|
|
1549
1550
|
instruments?: CardInstrument[];
|
|
1550
1551
|
}
|
|
1551
1552
|
|
|
1552
|
-
/**
|
|
1553
|
-
* A set of options that are required to initialize the shipping step of
|
|
1554
|
-
* checkout in order to support Braintree Accelerated Checkout.
|
|
1555
|
-
*/
|
|
1556
|
-
declare interface BraintreeAcceleratedCheckoutInitializeOptions {
|
|
1557
|
-
/**
|
|
1558
|
-
* The identifier of the payment method.
|
|
1559
|
-
*/
|
|
1560
|
-
methodId: string;
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
1553
|
/**
|
|
1564
1554
|
* A set of options that are required to initialize the Braintree Accelerated Checkout payment
|
|
1565
1555
|
* method for presenting on the page.
|
|
@@ -1575,16 +1565,71 @@ declare interface BraintreeAcceleratedCheckoutInitializeOptions {
|
|
|
1575
1565
|
* service.initializePayment({
|
|
1576
1566
|
* methodId: 'braintreeacceleratedcheckout',
|
|
1577
1567
|
* braintreeacceleratedcheckout: {
|
|
1578
|
-
* onInit: (renderPayPalComponentMethod) => renderPayPalComponentMethod('#container-id')
|
|
1568
|
+
* onInit: (renderPayPalComponentMethod) => renderPayPalComponentMethod('#container-id'),
|
|
1569
|
+
* styles: {
|
|
1570
|
+
* root: {
|
|
1571
|
+
* backgroundColorPrimary: 'transparent',
|
|
1572
|
+
* errorColor: '#C40B0B',
|
|
1573
|
+
* fontFamily: 'Montserrat, Helvetica, Arial, sans-serif',
|
|
1574
|
+
* },
|
|
1575
|
+
* input: {
|
|
1576
|
+
* borderRadius: '0.25rem',
|
|
1577
|
+
* borderColor: '#9E9E9E',
|
|
1578
|
+
* focusBorderColor: '#4496F6',
|
|
1579
|
+
* },
|
|
1580
|
+
* toggle: {
|
|
1581
|
+
* colorPrimary: '#0F005E',
|
|
1582
|
+
* colorSecondary: '#ffffff',
|
|
1583
|
+
* },
|
|
1584
|
+
* text: {
|
|
1585
|
+
* body: {
|
|
1586
|
+
* color: '#222222',
|
|
1587
|
+
* fontSize: '1rem',
|
|
1588
|
+
* },
|
|
1589
|
+
* caption: {
|
|
1590
|
+
* color: '#515151',
|
|
1591
|
+
* fontSize: '0.875rem',
|
|
1592
|
+
* },
|
|
1593
|
+
* },
|
|
1594
|
+
* branding: 'light',
|
|
1595
|
+
* },
|
|
1579
1596
|
* },
|
|
1580
1597
|
* });
|
|
1581
1598
|
* ```
|
|
1582
1599
|
*/
|
|
1583
1600
|
declare interface BraintreeAcceleratedCheckoutPaymentInitializeOptions {
|
|
1584
1601
|
/**
|
|
1585
|
-
*
|
|
1602
|
+
* Is a callback that takes the CSS selector of a container
|
|
1603
|
+
* where the PayPal Connect form should be inserted into.
|
|
1586
1604
|
*/
|
|
1587
1605
|
onInit?: (renderPayPalComponentMethod: (container: string) => void) => void;
|
|
1606
|
+
/**
|
|
1607
|
+
* Is a stylisation options for customizing PayPal Connect components
|
|
1608
|
+
*
|
|
1609
|
+
* Note: the styles for all Braintree Accelerated Checkout strategies should be the same,
|
|
1610
|
+
* because they will be provided to PayPal library only for the first strategy initialization
|
|
1611
|
+
* no matter what strategy was initialised first
|
|
1612
|
+
*/
|
|
1613
|
+
styles?: BraintreeConnectStylesOption;
|
|
1614
|
+
}
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* A set of options that are required to initialize the shipping step of
|
|
1618
|
+
* checkout in order to support Braintree Accelerated Checkout.
|
|
1619
|
+
*/
|
|
1620
|
+
declare interface BraintreeAcceleratedCheckoutShippingInitializeOptions {
|
|
1621
|
+
/**
|
|
1622
|
+
* The identifier of the payment method.
|
|
1623
|
+
*/
|
|
1624
|
+
methodId: string;
|
|
1625
|
+
/**
|
|
1626
|
+
* Is a stylisation options for customizing PayPal Connect components
|
|
1627
|
+
*
|
|
1628
|
+
* Note: the styles for all Braintree Accelerated Checkout strategies should be the same,
|
|
1629
|
+
* because they will be provided to PayPal library only for the first strategy initialization
|
|
1630
|
+
* no matter what strategy was initialised first
|
|
1631
|
+
*/
|
|
1632
|
+
styles?: BraintreeConnectStylesOption;
|
|
1588
1633
|
}
|
|
1589
1634
|
|
|
1590
1635
|
declare interface BraintreeError extends Error {
|
|
@@ -7303,7 +7348,7 @@ declare interface ShippingInitializeOptions<T = {}> extends ShippingRequestOptio
|
|
|
7303
7348
|
* The options that are required to initialize the shipping step of checkout
|
|
7304
7349
|
* when using Braintree Accelerated Checkout.
|
|
7305
7350
|
*/
|
|
7306
|
-
braintreeacceleratedcheckout?:
|
|
7351
|
+
braintreeacceleratedcheckout?: BraintreeAcceleratedCheckoutShippingInitializeOptions;
|
|
7307
7352
|
}
|
|
7308
7353
|
|
|
7309
7354
|
declare interface ShippingOption {
|