@bigcommerce/checkout-sdk 1.943.2 → 1.944.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.
Files changed (32) hide show
  1. package/dist/cjs/checkout-button.js +1 -1
  2. package/dist/cjs/checkout-sdk-essential.js +1 -1
  3. package/dist/cjs/checkout-sdk.js +1 -1
  4. package/dist/cjs/hosted-form-v2-iframe-host.js +1 -1
  5. package/dist/cjs/integrations/amazon-pay.js +1 -1
  6. package/dist/cjs/integrations/bigcommerce-payments.js +1 -1
  7. package/dist/cjs/integrations/braintree.js +1 -1
  8. package/dist/cjs/integrations/google-pay.js +1 -1
  9. package/dist/cjs/integrations/klarna.js +1 -1
  10. package/dist/cjs/integrations/paypal-commerce.js +1 -1
  11. package/dist/cjs/integrations/paypal-commerce.js.map +1 -1
  12. package/dist/cjs/integrations/paypal-express.js +1 -1
  13. package/dist/cjs/integrations/zip.js +1 -1
  14. package/dist/cjs/wallet-button.js +1 -1
  15. package/dist/cjs/wallet-button.js.map +1 -1
  16. package/dist/esm/checkout-button.js +1 -1
  17. package/dist/esm/checkout-sdk-essential.js +1 -1
  18. package/dist/esm/checkout-sdk.js +1 -1
  19. package/dist/esm/hosted-form-v2-iframe-host.js +1 -1
  20. package/dist/esm/integrations/amazon-pay.js +1 -1
  21. package/dist/esm/integrations/bigcommerce-payments.js +1 -1
  22. package/dist/esm/integrations/braintree.js +1 -1
  23. package/dist/esm/integrations/google-pay.js +1 -1
  24. package/dist/esm/integrations/klarna.js +1 -1
  25. package/dist/esm/integrations/paypal-commerce.js +1 -1
  26. package/dist/esm/integrations/paypal-commerce.js.map +1 -1
  27. package/dist/esm/integrations/paypal-express.js +1 -1
  28. package/dist/esm/integrations/zip.js +1 -1
  29. package/dist/esm/wallet-button.js +1 -1
  30. package/dist/esm/wallet-button.js.map +1 -1
  31. package/dist/types/integrations/paypal-commerce.d.ts +26 -0
  32. package/package.json +1 -1
@@ -887,6 +887,24 @@ declare class PayPalCommerceCreditPaymentStrategy implements PaymentStrategy {
887
887
  private renderMessages;
888
888
  }
889
889
 
890
+ declare interface PayPalCommerceCreditWalletInitializeOptions {
891
+ cartId: string;
892
+ currency: {
893
+ code: string;
894
+ };
895
+ initializationData: string;
896
+ clientToken: string;
897
+ }
898
+
899
+ declare class PayPalCommerceCreditWalletStrategy implements CheckoutButtonStrategy {
900
+ private paypalCommerceHeadlessWalletButtonService;
901
+ constructor(paypalCommerceHeadlessWalletButtonService: PaypalCommerceWalletService);
902
+ initialize(options: CheckoutButtonInitializeOptions & WithPayPalCommerceCreditWalletInitializeOptions): Promise<void>;
903
+ deinitialize(): Promise<void>;
904
+ private renderButton;
905
+ private mapOrderDetailsToBillingAddress;
906
+ }
907
+
890
908
  /**
891
909
  * A set of options that are required to initialize the customer step of
892
910
  * checkout to support PayPalCommerce.
@@ -2032,6 +2050,10 @@ declare interface WithPayPalCommerceCreditPaymentInitializeOptions {
2032
2050
  paypalcommercecredit?: PayPalCommerceCreditPaymentInitializeOptions;
2033
2051
  }
2034
2052
 
2053
+ declare interface WithPayPalCommerceCreditWalletInitializeOptions {
2054
+ paypalcommercepaypalcredit?: PayPalCommerceCreditWalletInitializeOptions;
2055
+ }
2056
+
2035
2057
  declare interface WithPayPalCommerceCustomerInitializeOptions {
2036
2058
  /**
2037
2059
  * The options that are required to initialize the customer step of checkout
@@ -2097,6 +2119,10 @@ export declare const createPayPalCommerceCreditPaymentStrategy: import("@bigcomm
2097
2119
  id: string;
2098
2120
  }>;
2099
2121
 
2122
+ export declare const createPayPalCommerceCreditWalletStrategy: import("@bigcommerce/checkout-sdk/payment-integration-api").ResolvableModule<WalletPaymentButtonStrategyFactory<PayPalCommerceCreditWalletStrategy>, {
2123
+ id: string;
2124
+ }>;
2125
+
2100
2126
  export declare const createPayPalCommerceCustomerStrategy: import("@bigcommerce/checkout-sdk/payment-integration-api").ResolvableModule<CustomerStrategyFactory<PayPalCommerceCustomerStrategy>, {
2101
2127
  id: string;
2102
2128
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/checkout-sdk",
3
- "version": "1.943.2",
3
+ "version": "1.944.0",
4
4
  "description": "BigCommerce Checkout JavaScript SDK",
5
5
  "license": "MIT",
6
6
  "main": "dist/cjs/checkout-sdk.js",