@paypercut/checkout-js 1.3.1 → 1.4.1

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/index.d.ts CHANGED
@@ -488,7 +488,7 @@ interface PaypercutOptions {
488
488
  hostedCheckoutUrl?: string;
489
489
  /** Internal builds only. Production builds ignore this override. */
490
490
  apiUrl?: string;
491
- /** Internal builds only. Ignored by production builds. */
491
+ /** Enables the optional Developer Assistant integration tool. Defaults to false. */
492
492
  developerAssistant?: boolean;
493
493
  }
494
494
  /** Browser-side intent prepared by one Elements group. */
@@ -796,8 +796,8 @@ interface ExpressCheckoutClickEvent {
796
796
  resolve(options?: ExpressCheckoutClickResolveOptions): void;
797
797
  reject(): void;
798
798
  }
799
- /** Current checkout details supplied immediately before a wallet is opened. */
800
- interface ExpressCheckoutClickResolveOptions {
799
+ /** Mutable checkout details for an already mounted Express Checkout Element. */
800
+ interface ExpressCheckoutElementUpdateOptions {
801
801
  lineItems?: ExpressCheckoutLineItem[];
802
802
  emailRequired?: boolean;
803
803
  phoneNumberRequired?: boolean;
@@ -807,13 +807,13 @@ interface ExpressCheckoutClickResolveOptions {
807
807
  shippingRates?: ExpressCheckoutShippingRate[];
808
808
  }
809
809
  /**
810
- * Mutable checkout data for an already mounted Express Checkout Element.
811
- *
812
- * Provider selection, layout, and button styling remain immutable for the
813
- * lifetime of the Element. Commerce state can be replaced before the next
814
- * wallet gesture without remounting the secure component.
810
+ * Current checkout details supplied immediately before a wallet is opened.
811
+ * The amount and wallet details are applied to the same attempt atomically.
815
812
  */
816
- type ExpressCheckoutElementUpdateOptions = ExpressCheckoutClickResolveOptions;
813
+ interface ExpressCheckoutClickResolveOptions extends ExpressCheckoutElementUpdateOptions {
814
+ /** Authoritative order total in the group's currency, in minor units. */
815
+ amount?: number;
816
+ }
817
817
  /** Updated checkout details returned after a wallet address or rate changes. */
818
818
  interface ExpressCheckoutShippingUpdate {
819
819
  /** Recalculated order total in the group's currency, in minor units. */