@lystech/core 3.0.141 → 3.0.142

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
@@ -987,7 +987,7 @@ export declare type PackageUpdateEvent = {
987
987
 
988
988
  export declare function PastOrdersPage({ billUID, onCollectionInvitationClick }: Props_3): JSX.Element;
989
989
 
990
- export declare function PaypalCheckout({ products, promoCodes, shippingOptionId, onOrderCreated, onOrderComplete, onShipppingOptionsChange: onShippingOptionsChangeEvent, onInstrumentDeclined, onError, }: Props_7): JSX.Element;
990
+ export declare function PaypalCheckout({ products, promoCodes, shippingOptionId, intent, useStoreCredit, onOrderCreated, onOrderComplete, onShipppingOptionsChange: onShippingOptionsChangeEvent, onInstrumentDeclined, onError, }: Props_7): JSX.Element;
991
991
 
992
992
  export declare type PaypalInfoType = {
993
993
  clientId: string;
@@ -1243,6 +1243,15 @@ declare type Props_7 = {
1243
1243
  promoCodes?: string[];
1244
1244
  /** Option de livraison choisie dans le panier (devient celle de l'ordre PayPal). */
1245
1245
  shippingOptionId?: number | string | null;
1246
+ /**
1247
+ * « capture » (défaut) : prélevé au paiement. « authorize » : la boutique
1248
+ * prélève à l'envoi — PayPal RETIENT les fonds, Lystech prélève plus tard.
1249
+ * Vient de GET /shop/payment-methods (paypalIntent) : le SDK et l'ordre
1250
+ * doivent avoir le même intent, sinon PayPal refuse l'approbation.
1251
+ */
1252
+ intent?: "capture" | "authorize";
1253
+ /** Crédit boutique appliqué au panier : PayPal ne prend que le reste. */
1254
+ useStoreCredit?: boolean;
1246
1255
  onOrderCreated?: (orderId: string) => void;
1247
1256
  onOrderComplete?: (orderId: string) => void;
1248
1257
  onShipppingOptionsChange?: (orderId: string, selectedShippingOption: {