@bigcommerce/checkout-sdk 1.675.0 → 1.675.2

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.
@@ -809,11 +809,6 @@ declare interface BasePaymentInitializeOptions extends PaymentRequestOptions {
809
809
  * They can be omitted unless you need to support PayPal Express.
810
810
  */
811
811
  paypalexpress?: PaypalExpressPaymentInitializeOptions;
812
- /**
813
- * The options that are required to initialize the Square payment method.
814
- * They can be omitted unless you need to support Square.
815
- */
816
- square?: SquarePaymentInitializeOptions;
817
812
  }
818
813
 
819
814
  declare interface BillingAddress extends Address {
@@ -6052,12 +6047,6 @@ declare interface MutationObserverWindow extends Window {
6052
6047
  MutationObserver: MutationObeserverCreator;
6053
6048
  }
6054
6049
 
6055
- declare interface NonceGenerationError {
6056
- type: string;
6057
- message: string;
6058
- field: string;
6059
- }
6060
-
6061
6050
  declare interface NonceInstrument {
6062
6051
  nonce: string;
6063
6052
  shouldSaveInstrument?: boolean;
@@ -7639,92 +7628,6 @@ declare interface SpamProtectionOptions extends RequestOptions_2 {
7639
7628
  containerId: string;
7640
7629
  }
7641
7630
 
7642
- /**
7643
- * Configures any form element provided by Square payment.
7644
- */
7645
- declare interface SquareFormElement {
7646
- /**
7647
- * The ID of the container which the form element should insert into.
7648
- */
7649
- elementId: string;
7650
- /**
7651
- * The placeholder text to use for the form element, if provided.
7652
- */
7653
- placeholder?: string;
7654
- }
7655
-
7656
- /**
7657
- * A set of options that are required to initialize the Square payment method.
7658
- *
7659
- * Once Square payment is initialized, credit card form fields, provided by the
7660
- * payment provider as iframes, will be inserted into the current page. These
7661
- * options provide a location and styling for each of the form fields.
7662
- *
7663
- * ```html
7664
- * <!-- These containers are where the hosted (iframed) credit card fields will be inserted -->
7665
- * <div id="card-number"></div>
7666
- * <div id="card-name"></div>
7667
- * <div id="card-expiry"></div>
7668
- * <div id="card-code"></div>
7669
- * ```
7670
- *
7671
- * ```js
7672
- * service.initializePayment({
7673
- * methodId: 'squarev2',
7674
- * square: {
7675
- * cardNumber: {
7676
- * elementId: 'card-number',
7677
- * },
7678
- * cvv: {
7679
- * elementId: 'card-code',
7680
- * },
7681
- * expirationDate: {
7682
- * elementId: 'card-expiry',
7683
- * },
7684
- * postalCode: {
7685
- * elementId: 'card-code',
7686
- * },
7687
- * },
7688
- * });
7689
- * ```
7690
- */
7691
- declare interface SquarePaymentInitializeOptions {
7692
- /**
7693
- * The location to insert the credit card number form field.
7694
- */
7695
- cardNumber: SquareFormElement;
7696
- /**
7697
- * The location to insert the CVV form field.
7698
- */
7699
- cvv: SquareFormElement;
7700
- /**
7701
- * The location to insert the expiration date form field.
7702
- */
7703
- expirationDate: SquareFormElement;
7704
- /**
7705
- * The location to insert the postal code form field.
7706
- */
7707
- postalCode: SquareFormElement;
7708
- /**
7709
- * The CSS class to apply to all form fields.
7710
- */
7711
- inputClass?: string;
7712
- /**
7713
- * The set of CSS styles to apply to all form fields.
7714
- */
7715
- inputStyles?: Array<{
7716
- [key: string]: string;
7717
- }>;
7718
- /**
7719
- * A callback that gets called when the customer selects a payment option.
7720
- */
7721
- onPaymentSelect?(): void;
7722
- /**
7723
- * A callback that gets called when an error occurs in the card nonce generation
7724
- */
7725
- onError?(errors?: NonceGenerationError[]): void;
7726
- }
7727
-
7728
7631
  /**
7729
7632
  * A set of options that are required to initialize the Square payment method.
7730
7633
  *