@bigcommerce/checkout-sdk 1.539.0 → 1.541.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 +56 -55
- 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/{PayPalCommerceAcceleratedCheckoutCustomerInitializeOptions.md → PayPalCommerceFastlaneCustomerInitializeOptions.md} +11 -11
- package/docs/interfaces/WithPayPalCommerceFastlaneCustomerInitializeOptions.md +15 -0
- package/package.json +1 -1
- package/docs/interfaces/WithPayPalCommerceAcceleratedCheckoutCustomerInitializeOptions.md +0 -15
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { LoadingIndicatorStyles } from '@bigcommerce/checkout-sdk/ui';
|
|
|
14
14
|
import { Observable } from 'rxjs';
|
|
15
15
|
import { Omit as Omit_2 } from '@bigcommerce/checkout-sdk/payment-integration-api';
|
|
16
16
|
import { PayPalCommerceConnectStylesOption } from '@bigcommerce/checkout-sdk/paypal-commerce-utils';
|
|
17
|
+
import { PayPalFastlaneStylesOption } from '@bigcommerce/checkout-sdk/paypal-commerce-utils';
|
|
17
18
|
import { PaymentErrorData } from '@bigcommerce/checkout-sdk/payment-integration-api';
|
|
18
19
|
import { PaymentErrorResponseBody } from '@bigcommerce/checkout-sdk/payment-integration-api';
|
|
19
20
|
import { PaymentProviderCustomer as PaymentProviderCustomerType } from '@bigcommerce/checkout-sdk/payment-integration-api';
|
|
@@ -4983,7 +4984,7 @@ declare interface CustomerGroup {
|
|
|
4983
4984
|
name: string;
|
|
4984
4985
|
}
|
|
4985
4986
|
|
|
4986
|
-
declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithApplePayCustomerInitializeOptions & WithBoltCustomerInitializeOptions & WithBraintreePaypalCustomerInitializeOptions & WithGooglePayCustomerInitializeOptions & WithPayPalCommerceCustomerInitializeOptions & WithPayPalCommerceCreditCustomerInitializeOptions & WithPayPalCommerceVenmoCustomerInitializeOptions &
|
|
4987
|
+
declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithApplePayCustomerInitializeOptions & WithBoltCustomerInitializeOptions & WithBraintreePaypalCustomerInitializeOptions & WithGooglePayCustomerInitializeOptions & WithPayPalCommerceCustomerInitializeOptions & WithPayPalCommerceCreditCustomerInitializeOptions & WithPayPalCommerceVenmoCustomerInitializeOptions & WithPayPalCommerceFastlaneCustomerInitializeOptions & WithStripeUPECustomerInitializeOptions;
|
|
4987
4988
|
|
|
4988
4989
|
declare interface CustomerPasswordRequirements {
|
|
4989
4990
|
alpha: string;
|
|
@@ -7087,56 +7088,6 @@ declare interface PayPalBuyNowInitializeOptions {
|
|
|
7087
7088
|
getBuyNowCartRequestBody(): BuyNowCartRequestBody_2;
|
|
7088
7089
|
}
|
|
7089
7090
|
|
|
7090
|
-
/**
|
|
7091
|
-
* A set of options that are optional to initialize the PayPalCommerce Accelerated Checkout customer strategy
|
|
7092
|
-
* that are responsible for PayPalCommerce Accelerated Checkout components styling and initialization
|
|
7093
|
-
*
|
|
7094
|
-
* ```js
|
|
7095
|
-
* service.initializeCustomer({
|
|
7096
|
-
* methodId: 'paypalcommerceacceleratedcheckout',
|
|
7097
|
-
* paypalcommerceacceleratedcheckout: {
|
|
7098
|
-
* styles: {
|
|
7099
|
-
* root: {
|
|
7100
|
-
* backgroundColorPrimary: 'transparent',
|
|
7101
|
-
* errorColor: '#C40B0B',
|
|
7102
|
-
* fontFamily: 'Montserrat, Helvetica, Arial, sans-serif',
|
|
7103
|
-
* },
|
|
7104
|
-
* input: {
|
|
7105
|
-
* borderRadius: '0.25rem',
|
|
7106
|
-
* borderColor: '#9E9E9E',
|
|
7107
|
-
* focusBorderColor: '#4496F6',
|
|
7108
|
-
* },
|
|
7109
|
-
* toggle: {
|
|
7110
|
-
* colorPrimary: '#0F005E',
|
|
7111
|
-
* colorSecondary: '#ffffff',
|
|
7112
|
-
* },
|
|
7113
|
-
* text: {
|
|
7114
|
-
* body: {
|
|
7115
|
-
* color: '#222222',
|
|
7116
|
-
* fontSize: '1rem',
|
|
7117
|
-
* },
|
|
7118
|
-
* caption: {
|
|
7119
|
-
* color: '#515151',
|
|
7120
|
-
* fontSize: '0.875rem',
|
|
7121
|
-
* },
|
|
7122
|
-
* },
|
|
7123
|
-
* branding: 'light',
|
|
7124
|
-
* },
|
|
7125
|
-
* },
|
|
7126
|
-
* });
|
|
7127
|
-
* ```
|
|
7128
|
-
*/
|
|
7129
|
-
declare interface PayPalCommerceAcceleratedCheckoutCustomerInitializeOptions {
|
|
7130
|
-
/**
|
|
7131
|
-
* Is a stylisation options for customizing PayPal Connect components
|
|
7132
|
-
*
|
|
7133
|
-
* Note: the styles for all PayPalCommerce Accelerated Checkout strategies should be the same,
|
|
7134
|
-
* because they will be provided to PayPal library only for the first strategy initialization
|
|
7135
|
-
* no matter what strategy was initialised first
|
|
7136
|
-
*/
|
|
7137
|
-
styles?: PayPalCommerceConnectStylesOption;
|
|
7138
|
-
}
|
|
7139
|
-
|
|
7140
7091
|
/**
|
|
7141
7092
|
* A set of options that are required to initialize the PayPalCommerce Accelerated Checkout payment
|
|
7142
7093
|
* method for presenting on the page.
|
|
@@ -7598,6 +7549,56 @@ declare interface PayPalCommerceCustomerInitializeOptions {
|
|
|
7598
7549
|
onClick?(): void;
|
|
7599
7550
|
}
|
|
7600
7551
|
|
|
7552
|
+
/**
|
|
7553
|
+
* A set of options that are optional to initialize the PayPalCommerce Fastlane customer strategy
|
|
7554
|
+
* that are responsible for PayPalCommerce Fastlane components styling and initialization
|
|
7555
|
+
*
|
|
7556
|
+
* ```js
|
|
7557
|
+
* service.initializeCustomer({
|
|
7558
|
+
* methodId: 'paypalcommerceacceleratedcheckout', // PayPalCommerce Fastlane has 'paypalcommerceacceleratedcheckout' method id
|
|
7559
|
+
* paypalcommercefastlane: {
|
|
7560
|
+
* styles: {
|
|
7561
|
+
* root: {
|
|
7562
|
+
* backgroundColorPrimary: 'transparent',
|
|
7563
|
+
* errorColor: '#C40B0B',
|
|
7564
|
+
* fontFamily: 'Montserrat, Helvetica, Arial, sans-serif',
|
|
7565
|
+
* },
|
|
7566
|
+
* input: {
|
|
7567
|
+
* borderRadius: '0.25rem',
|
|
7568
|
+
* borderColor: '#9E9E9E',
|
|
7569
|
+
* focusBorderColor: '#4496F6',
|
|
7570
|
+
* },
|
|
7571
|
+
* toggle: {
|
|
7572
|
+
* colorPrimary: '#0F005E',
|
|
7573
|
+
* colorSecondary: '#ffffff',
|
|
7574
|
+
* },
|
|
7575
|
+
* text: {
|
|
7576
|
+
* body: {
|
|
7577
|
+
* color: '#222222',
|
|
7578
|
+
* fontSize: '1rem',
|
|
7579
|
+
* },
|
|
7580
|
+
* caption: {
|
|
7581
|
+
* color: '#515151',
|
|
7582
|
+
* fontSize: '0.875rem',
|
|
7583
|
+
* },
|
|
7584
|
+
* },
|
|
7585
|
+
* branding: 'light',
|
|
7586
|
+
* },
|
|
7587
|
+
* },
|
|
7588
|
+
* });
|
|
7589
|
+
* ```
|
|
7590
|
+
*/
|
|
7591
|
+
declare interface PayPalCommerceFastlaneCustomerInitializeOptions {
|
|
7592
|
+
/**
|
|
7593
|
+
* Is a stylisation options for customizing PayPal Fastlane components
|
|
7594
|
+
*
|
|
7595
|
+
* Note: the styles for all PayPalCommerce Fastlane strategies should be the same,
|
|
7596
|
+
* because they will be provided to PayPal library only for the first strategy initialization
|
|
7597
|
+
* no matter which strategy was initialised first
|
|
7598
|
+
*/
|
|
7599
|
+
styles?: PayPalFastlaneStylesOption;
|
|
7600
|
+
}
|
|
7601
|
+
|
|
7601
7602
|
declare interface PayPalCommerceFieldsStyleOptions {
|
|
7602
7603
|
variables?: {
|
|
7603
7604
|
fontFamily?: string;
|
|
@@ -9311,10 +9312,6 @@ declare interface WithMolliePaymentInitializeOptions {
|
|
|
9311
9312
|
mollie?: MolliePaymentInitializeOptions;
|
|
9312
9313
|
}
|
|
9313
9314
|
|
|
9314
|
-
declare interface WithPayPalCommerceAcceleratedCheckoutCustomerInitializeOptions {
|
|
9315
|
-
paypalcommerceacceleratedcheckout?: PayPalCommerceAcceleratedCheckoutCustomerInitializeOptions;
|
|
9316
|
-
}
|
|
9317
|
-
|
|
9318
9315
|
declare interface WithPayPalCommerceAcceleratedCheckoutPaymentInitializeOptions {
|
|
9319
9316
|
paypalcommerceacceleratedcheckout?: PayPalCommerceAcceleratedCheckoutPaymentInitializeOptions;
|
|
9320
9317
|
}
|
|
@@ -9358,6 +9355,10 @@ declare interface WithPayPalCommerceCustomerInitializeOptions {
|
|
|
9358
9355
|
paypalcommerce?: PayPalCommerceCustomerInitializeOptions;
|
|
9359
9356
|
}
|
|
9360
9357
|
|
|
9358
|
+
declare interface WithPayPalCommerceFastlaneCustomerInitializeOptions {
|
|
9359
|
+
paypalcommercefastlane?: PayPalCommerceFastlaneCustomerInitializeOptions;
|
|
9360
|
+
}
|
|
9361
|
+
|
|
9361
9362
|
declare interface WithPayPalCommercePaymentInitializeOptions {
|
|
9362
9363
|
paypalcommerce?: PayPalCommercePaymentInitializeOptions;
|
|
9363
9364
|
}
|