@bigcommerce/checkout-sdk 1.510.0 → 1.512.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.
@@ -8,6 +8,7 @@ import { CreditCardPaymentInitializeOptions } from '@bigcommerce/checkout-sdk/cr
8
8
  import { HostedFormOptions as HostedFormOptions_2 } from '@bigcommerce/checkout-sdk/payment-integration-api';
9
9
  import { LoadingIndicatorStyles } from '@bigcommerce/checkout-sdk/ui';
10
10
  import { Omit as Omit_2 } from '@bigcommerce/checkout-sdk/payment-integration-api';
11
+ import { PayPalCommerceConnectStylesOption } from '@bigcommerce/checkout-sdk/paypal-commerce-utils';
11
12
  import { RequestOptions as RequestOptions_2 } from '@bigcommerce/request-sender';
12
13
  import { Response } from '@bigcommerce/request-sender';
13
14
  import { StandardError as StandardError_2 } from '@bigcommerce/checkout-sdk/payment-integration-api';
@@ -4834,7 +4835,7 @@ declare interface CustomerGroup {
4834
4835
  name: string;
4835
4836
  }
4836
4837
 
4837
- declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithApplePayCustomerInitializeOptions & WithBoltCustomerInitializeOptions & WithBraintreePaypalCustomerInitializeOptions & WithGooglePayCustomerInitializeOptions & WithPayPalCommerceCustomerInitializeOptions & WithPayPalCommerceCreditCustomerInitializeOptions & WithPayPalCommerceVenmoCustomerInitializeOptions;
4838
+ declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithApplePayCustomerInitializeOptions & WithBoltCustomerInitializeOptions & WithBraintreePaypalCustomerInitializeOptions & WithGooglePayCustomerInitializeOptions & WithPayPalCommerceCustomerInitializeOptions & WithPayPalCommerceCreditCustomerInitializeOptions & WithPayPalCommerceVenmoCustomerInitializeOptions & WithPayPalCommerceAcceleratedCheckoutCustomerInitializeOptions;
4838
4839
 
4839
4840
  declare interface CustomerPasswordRequirements {
4840
4841
  alpha: string;
@@ -6501,6 +6502,56 @@ declare interface PayPalBuyNowInitializeOptions {
6501
6502
  getBuyNowCartRequestBody(): BuyNowCartRequestBody_2;
6502
6503
  }
6503
6504
 
6505
+ /**
6506
+ * A set of options that are optional to initialize the PayPalCommerce Accelerated Checkout customer strategy
6507
+ * that are responsible for PayPalCommerce Accelerated Checkout components styling and initialization
6508
+ *
6509
+ * ```js
6510
+ * service.initializeCustomer({
6511
+ * methodId: 'paypalcommerceacceleratedcheckout',
6512
+ * paypalcommerceacceleratedcheckout: {
6513
+ * styles: {
6514
+ * root: {
6515
+ * backgroundColorPrimary: 'transparent',
6516
+ * errorColor: '#C40B0B',
6517
+ * fontFamily: 'Montserrat, Helvetica, Arial, sans-serif',
6518
+ * },
6519
+ * input: {
6520
+ * borderRadius: '0.25rem',
6521
+ * borderColor: '#9E9E9E',
6522
+ * focusBorderColor: '#4496F6',
6523
+ * },
6524
+ * toggle: {
6525
+ * colorPrimary: '#0F005E',
6526
+ * colorSecondary: '#ffffff',
6527
+ * },
6528
+ * text: {
6529
+ * body: {
6530
+ * color: '#222222',
6531
+ * fontSize: '1rem',
6532
+ * },
6533
+ * caption: {
6534
+ * color: '#515151',
6535
+ * fontSize: '0.875rem',
6536
+ * },
6537
+ * },
6538
+ * branding: 'light',
6539
+ * },
6540
+ * },
6541
+ * });
6542
+ * ```
6543
+ */
6544
+ declare interface PayPalCommerceAcceleratedCheckoutCustomerInitializeOptions {
6545
+ /**
6546
+ * Is a stylisation options for customizing PayPal Connect components
6547
+ *
6548
+ * Note: the styles for all PayPalCommerce Accelerated Checkout strategies should be the same,
6549
+ * because they will be provided to PayPal library only for the first strategy initialization
6550
+ * no matter what strategy was initialised first
6551
+ */
6552
+ styles?: PayPalCommerceConnectStylesOption;
6553
+ }
6554
+
6504
6555
  declare interface PayPalCommerceAlternativeMethodsButtonOptions {
6505
6556
  /**
6506
6557
  * Alternative payment method id what used for initialization PayPal button as funding source.
@@ -8417,6 +8468,10 @@ declare interface WithMolliePaymentInitializeOptions {
8417
8468
  mollie?: MolliePaymentInitializeOptions;
8418
8469
  }
8419
8470
 
8471
+ declare interface WithPayPalCommerceAcceleratedCheckoutCustomerInitializeOptions {
8472
+ paypalcommerceacceleratedcheckout?: PayPalCommerceAcceleratedCheckoutCustomerInitializeOptions;
8473
+ }
8474
+
8420
8475
  declare interface WithPayPalCommerceAlternativeMethodsButtonInitializeOptions {
8421
8476
  paypalcommercealternativemethods?: PayPalCommerceAlternativeMethodsButtonOptions;
8422
8477
  }