import { e as ApplyPointsLimitEnvelope, a as ApplyPointsLimitResponse } from './interfaces-loyalty-v1-earn-points-limit-provider.public-oWAos2yU.js'; export { b as AlternativeUri, A as ApplyPointsLimitRequest, C as Context, E as EarnPointsLimitProviderConfig, c as IdentificationData, d as IdentificationDataIdOneOf, I as IdentityType, L as LoyaltyAccount, P as Points, S as SpiBaseUri } from './interfaces-loyalty-v1-earn-points-limit-provider.public-oWAos2yU.js'; import '@wix/sdk-types'; /** * Returns the number of loyalty points the contact may earn from the order * after applying the limit logic. * * Wix calls this method when a contact is about to earn loyalty points from * a paid eCommerce order, after any points-adjustment logic has run. The * method runs for orders placed through Wix Stores, Wix Bookings, and other * apps that use the Wix eCommerce checkout. It doesn't run for points earned * through other triggers, such as Wix Automations actions. * * Wix uses the returned `adjustedPointsToEarn` value as the final number of * points to assign for the order. When the returned value is `0`, an earn * attempt is recorded in the contact's loyalty activity history and no * points are assigned. * * **Error handling:** If the implementation returns an error or times out, * Wix logs the failure and assigns `pointsToEarn` unchanged. No retries are * performed at the service plugin layer. */ declare function applyPointsLimit(payload: ApplyPointsLimitEnvelope): ApplyPointsLimitResponse | Promise; export { ApplyPointsLimitEnvelope, ApplyPointsLimitResponse, applyPointsLimit };