Skip to content

Commit

Permalink
chore(release): 1.710.1 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-travis-ci committed Feb 13, 2025
1 parent 3e7d7b9 commit 615a909
Show file tree
Hide file tree
Showing 21 changed files with 202 additions and 72 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.710.1](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.710.0...v1.710.1) (2025-02-13)


### Code Refactoring

* **payment:** PAYPAL-2610 moved BraintreePayPalCreditButtonStrategy from core to braintree-integration package ([#2790](https://github.com/bigcommerce/checkout-sdk-js/issues/2790)) ([3e7d7b9](https://github.com/bigcommerce/checkout-sdk-js/commit/3e7d7b999098f5f153ad6a9b5133518bacde77ac))

## [1.710.0](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.709.0...v1.710.0) (2025-02-13)


Expand Down
48 changes: 27 additions & 21 deletions dist/checkout-button.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { Address as Address_2 } from '@bigcommerce/checkout-sdk/payment-integration-api';
import { AmazonPayV2ButtonConfig } from '@bigcommerce/checkout-sdk/amazon-pay-utils';
import { AmazonPayV2ButtonParameters } from '@bigcommerce/checkout-sdk/amazon-pay-utils';
import { BraintreeError as BraintreeError_2 } from '@bigcommerce/checkout-sdk/braintree-utils';
import { BuyNowCartRequestBody as BuyNowCartRequestBody_2 } from '@bigcommerce/checkout-sdk/payment-integration-api';
import { CartSource } from '@bigcommerce/checkout-sdk/payment-integration-api';
import { PaypalStyleOptions as PaypalStyleOptions_2 } from '@bigcommerce/checkout-sdk/braintree-utils';
import { StandardError as StandardError_2 } from '@bigcommerce/checkout-sdk/payment-integration-api';
import { Timeout } from '@bigcommerce/request-sender';
import { createTimeout } from '@bigcommerce/request-sender';

Expand Down Expand Up @@ -67,11 +71,6 @@ declare interface BaseCheckoutButtonInitializeOptions extends CheckoutButtonOpti
* omitted unless you need to support Braintree PayPal.
*/
braintreepaypal?: BraintreePaypalButtonInitializeOptions;
/**
* The options that are required to facilitate Braintree Credit. They can be
* omitted unless you need to support Braintree Credit.
*/
braintreepaypalcredit?: BraintreePaypalCreditButtonInitializeOptions;
/**
* The ID of a container which the checkout button should be inserted.
*/
Expand Down Expand Up @@ -162,49 +161,49 @@ declare interface BraintreePaypalButtonInitializeOptions {
}

declare interface BraintreePaypalCreditButtonInitializeOptions {
/**
* The options that are required to initialize Buy Now functionality.
*/
buyNowInitializeOptions?: {
getBuyNowCartRequestBody?(): BuyNowCartRequestBody_2 | void;
};
/**
* The option that used to initialize a PayPal script with provided currency code.
*/
currencyCode?: string;
/**
* A set of styling options for the checkout button.
*/
style?: Pick<PaypalStyleOptions, 'layout' | 'size' | 'color' | 'label' | 'shape' | 'tagline' | 'fundingicons' | 'height'>;
style?: Pick<PaypalStyleOptions_2, 'layout' | 'size' | 'color' | 'label' | 'shape' | 'tagline' | 'fundingicons' | 'height'>;
/**
* Address to be used for shipping.
* If not provided, it will use the first saved address from the active customer.
*/
shippingAddress?: Address | null;
shippingAddress?: Address_2 | null;
/**
* A callback that gets called if unable to authorize and tokenize payment.
*
* @param error - The error object describing the failure.
*/
onAuthorizeError?(error: BraintreeError | StandardError): void;
onAuthorizeError?(error: BraintreeError_2 | StandardError_2): void;
/**
* A callback that gets called if unable to submit payment.
*
* @param error - The error object describing the failure.
*/
onPaymentError?(error: BraintreeError | StandardError): void;
onPaymentError?(error: BraintreeError_2 | StandardError_2): void;
/**
* A callback that gets called on any error instead of submit payment or authorization errors.
*
* @param error - The error object describing the failure.
*/
onError?(error: BraintreeError | StandardError): void;
onError?(error: BraintreeError_2 | StandardError_2): void;
/**
*
* A callback that gets called when Braintree SDK restricts to render PayPal component.
*
*/
onEligibilityFailure?(): void;
/**
* The option that used to initialize a PayPal script with provided currency code.
*/
currencyCode?: string;
/**
* The options that are required to initialize Buy Now functionality.
*/
buyNowInitializeOptions?: {
getBuyNowCartRequestBody?(): BuyNowCartRequestBody | void;
};
}

/**
Expand All @@ -221,7 +220,7 @@ declare class CheckoutButtonErrorSelector {
getDeinitializeButtonError(methodId?: CheckoutButtonMethodType): Error | undefined;
}

declare type CheckoutButtonInitializeOptions = BaseCheckoutButtonInitializeOptions & WithAmazonPayV2ButtonInitializeOptions & WithApplePayButtonInitializeOptions & WithBoltButtonInitializeOptions & WithGooglePayButtonInitializeOptions & WithPayPalCommerceButtonInitializeOptions & WithPayPalCommerceCreditButtonInitializeOptions & WithPayPalCommerceVenmoButtonInitializeOptions & WithPayPalCommerceAlternativeMethodsButtonInitializeOptions;
declare type CheckoutButtonInitializeOptions = BaseCheckoutButtonInitializeOptions & WithAmazonPayV2ButtonInitializeOptions & WithApplePayButtonInitializeOptions & WithBoltButtonInitializeOptions & WithBraintreePaypalCreditButtonInitializeOptions & WithGooglePayButtonInitializeOptions & WithPayPalCommerceButtonInitializeOptions & WithPayPalCommerceCreditButtonInitializeOptions & WithPayPalCommerceVenmoButtonInitializeOptions & WithPayPalCommerceAlternativeMethodsButtonInitializeOptions;

declare class CheckoutButtonInitializer {
private _store;
Expand Down Expand Up @@ -684,6 +683,13 @@ declare interface WithBoltButtonInitializeOptions {
bolt?: BoltButtonInitializeOptions;
}

declare interface WithBraintreePaypalCreditButtonInitializeOptions {
/**
* The options that are required to initialize Braintree PayPal Credit wallet button on Product and Cart page.
*/
braintreepaypalcredit?: BraintreePaypalCreditButtonInitializeOptions;
}

declare interface WithBuyNowFeature extends AmazonPayV2ButtonConfig {
/**
* The options that are required to initialize Buy Now functionality.
Expand Down
2 changes: 1 addition & 1 deletion dist/checkout-button.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/checkout-button.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/checkout-button.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/checkout-button.umd.js.map

Large diffs are not rendered by default.

70 changes: 50 additions & 20 deletions dist/checkout-sdk.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/// <reference types="applepayjs" />
/// <reference types="grecaptcha" />
/// <reference types="lodash" />
import { Address as Address_2 } from '@bigcommerce/checkout-sdk/payment-integration-api';
import { AmazonPayV2ButtonConfig } from '@bigcommerce/checkout-sdk/amazon-pay-utils';
import { AmazonPayV2ButtonParameters } from '@bigcommerce/checkout-sdk/amazon-pay-utils';
import { BraintreeError } from '@bigcommerce/checkout-sdk/braintree-utils';
Expand All @@ -22,6 +23,7 @@ import { PayPalFastlaneStylesOption } from '@bigcommerce/checkout-sdk/paypal-com
import { PaymentErrorData } from '@bigcommerce/checkout-sdk/payment-integration-api';
import { PaymentErrorResponseBody } from '@bigcommerce/checkout-sdk/payment-integration-api';
import { PaymentProviderCustomer as PaymentProviderCustomerType } from '@bigcommerce/checkout-sdk/payment-integration-api';
import { PaypalStyleOptions as PaypalStyleOptions_2 } from '@bigcommerce/checkout-sdk/braintree-utils';
import { ReadableDataStore } from '@bigcommerce/data-store';
import { RequestOptions as RequestOptions_2 } from '@bigcommerce/request-sender';
import { Response } from '@bigcommerce/request-sender';
Expand Down Expand Up @@ -672,11 +674,6 @@ declare interface BaseCheckoutButtonInitializeOptions extends CheckoutButtonOpti
* omitted unless you need to support Braintree PayPal.
*/
braintreepaypal?: BraintreePaypalButtonInitializeOptions;
/**
* The options that are required to facilitate Braintree Credit. They can be
* omitted unless you need to support Braintree Credit.
*/
braintreepaypalcredit?: BraintreePaypalCreditButtonInitializeOptions;
/**
* The ID of a container which the checkout button should be inserted.
*/
Expand Down Expand Up @@ -1520,52 +1517,70 @@ declare interface BraintreePaypalButtonInitializeOptions {
}

declare interface BraintreePaypalCreditButtonInitializeOptions {
/**
* The options that are required to initialize Buy Now functionality.
*/
buyNowInitializeOptions?: {
getBuyNowCartRequestBody?(): BuyNowCartRequestBody_2 | void;
};
/**
* The option that used to initialize a PayPal script with provided currency code.
*/
currencyCode?: string;
/**
* A set of styling options for the checkout button.
*/
style?: Pick<PaypalStyleOptions, 'layout' | 'size' | 'color' | 'label' | 'shape' | 'tagline' | 'fundingicons' | 'height'>;
style?: Pick<PaypalStyleOptions_2, 'layout' | 'size' | 'color' | 'label' | 'shape' | 'tagline' | 'fundingicons' | 'height'>;
/**
* Address to be used for shipping.
* If not provided, it will use the first saved address from the active customer.
*/
shippingAddress?: Address | null;
shippingAddress?: Address_2 | null;
/**
* A callback that gets called if unable to authorize and tokenize payment.
*
* @param error - The error object describing the failure.
*/
onAuthorizeError?(error: BraintreeError_2 | StandardError): void;
onAuthorizeError?(error: BraintreeError | StandardError_2): void;
/**
* A callback that gets called if unable to submit payment.
*
* @param error - The error object describing the failure.
*/
onPaymentError?(error: BraintreeError_2 | StandardError): void;
onPaymentError?(error: BraintreeError | StandardError_2): void;
/**
* A callback that gets called on any error instead of submit payment or authorization errors.
*
* @param error - The error object describing the failure.
*/
onError?(error: BraintreeError_2 | StandardError): void;
onError?(error: BraintreeError | StandardError_2): void;
/**
*
* A callback that gets called when Braintree SDK restricts to render PayPal component.
*
*/
onEligibilityFailure?(): void;
}

declare interface BraintreePaypalCreditCustomerInitializeOptions {
/**
* The option that used to initialize a PayPal script with provided currency code.
* The ID of a container which the checkout button should be inserted into.
*/
currencyCode?: string;
container: string;
buttonHeight?: number;
/**
* The options that are required to initialize Buy Now functionality.
* A callback that gets called on any error instead of submit payment or authorization errors.
*
* @param error - The error object describing the failure.
*/
buyNowInitializeOptions?: {
getBuyNowCartRequestBody?(): BuyNowCartRequestBody | void;
};
onError?(error: BraintreeError_2 | StandardError): void;
/**
* A callback that gets called when wallet button clicked
*/
onClick?(): void;
}

declare interface BraintreePaypalCreditCustomerInitializeOptions {
declare interface BraintreePaypalCreditCustomerInitializeOptions_2 {
/**
* The ID of a container which the checkout button should be inserted into.
*/
Expand All @@ -1576,7 +1591,7 @@ declare interface BraintreePaypalCreditCustomerInitializeOptions {
*
* @param error - The error object describing the failure.
*/
onError?(error: BraintreeError_2 | StandardError): void;
onError?(error: BraintreeError | StandardError_2): void;
/**
* A callback that gets called when wallet button clicked
*/
Expand Down Expand Up @@ -1942,7 +1957,7 @@ declare interface CheckoutButtonErrorsState {
deinitializeError?: Error;
}

declare type CheckoutButtonInitializeOptions = BaseCheckoutButtonInitializeOptions & WithAmazonPayV2ButtonInitializeOptions & WithApplePayButtonInitializeOptions & WithBoltButtonInitializeOptions & WithGooglePayButtonInitializeOptions & WithPayPalCommerceButtonInitializeOptions & WithPayPalCommerceCreditButtonInitializeOptions & WithPayPalCommerceVenmoButtonInitializeOptions & WithPayPalCommerceAlternativeMethodsButtonInitializeOptions;
declare type CheckoutButtonInitializeOptions = BaseCheckoutButtonInitializeOptions & WithAmazonPayV2ButtonInitializeOptions & WithApplePayButtonInitializeOptions & WithBoltButtonInitializeOptions & WithBraintreePaypalCreditButtonInitializeOptions & WithGooglePayButtonInitializeOptions & WithPayPalCommerceButtonInitializeOptions & WithPayPalCommerceCreditButtonInitializeOptions & WithPayPalCommerceVenmoButtonInitializeOptions & WithPayPalCommerceAlternativeMethodsButtonInitializeOptions;

declare class CheckoutButtonInitializer {
private _store;
Expand Down Expand Up @@ -4473,7 +4488,7 @@ declare interface CustomerGroup {
name: string;
}

declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithAmazonPayV2CustomerInitializeOptions & WithApplePayCustomerInitializeOptions & WithBoltCustomerInitializeOptions & WithBraintreePaypalCustomerInitializeOptions & WithBraintreeFastlaneCustomerInitializeOptions & WithGooglePayCustomerInitializeOptions & WithPayPalCommerceCustomerInitializeOptions & WithPayPalCommerceCreditCustomerInitializeOptions & WithPayPalCommerceVenmoCustomerInitializeOptions & WithPayPalCommerceFastlaneCustomerInitializeOptions & WithStripeUPECustomerInitializeOptions;
declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithAmazonPayV2CustomerInitializeOptions & WithApplePayCustomerInitializeOptions & WithBoltCustomerInitializeOptions & WithBraintreePaypalCustomerInitializeOptions & WithBraintreePaypalCreditCustomerInitializeOptions & WithBraintreeFastlaneCustomerInitializeOptions & WithGooglePayCustomerInitializeOptions & WithPayPalCommerceCustomerInitializeOptions & WithPayPalCommerceCreditCustomerInitializeOptions & WithPayPalCommerceVenmoCustomerInitializeOptions & WithPayPalCommerceFastlaneCustomerInitializeOptions & WithStripeUPECustomerInitializeOptions;

declare interface CustomerPasswordRequirements {
alpha: string;
Expand Down Expand Up @@ -8416,6 +8431,21 @@ declare interface WithBraintreeLocalMethodsPaymentInitializeOptions {
braintreelocalmethods?: BraintreeLocalMethodsPaymentInitializeOptions;
}

declare interface WithBraintreePaypalCreditButtonInitializeOptions {
/**
* The options that are required to initialize Braintree PayPal Credit wallet button on Product and Cart page.
*/
braintreepaypalcredit?: BraintreePaypalCreditButtonInitializeOptions;
}

declare interface WithBraintreePaypalCreditCustomerInitializeOptions {
/**
* The options that are required to initialize the customer step of checkout
* when using Braintree PayPal.
*/
braintreepaypalcredit?: BraintreePaypalCreditCustomerInitializeOptions_2;
}

declare interface WithBraintreePaypalCustomerInitializeOptions {
/**
* The options that are required to initialize the customer step of checkout
Expand Down
2 changes: 1 addition & 1 deletion dist/checkout-sdk.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/checkout-sdk.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/checkout-sdk.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/checkout-sdk.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hosted-form-v2-iframe-host.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/hosted-form-v2-iframe-host.umd.js

Large diffs are not rendered by default.

Loading

0 comments on commit 615a909

Please sign in to comment.