com.logicommerce.sdk.services.AbandonedCartService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
SDK for developing Logicommerce plugins.
package com.logicommerce.sdk.services;
import com.logicommerce.sdk.models.Cart;
/**
* Interface to be able to implement the abandoned cart service.
* Convert the abandoned carts to sales by sending timed email
* after they abandoned the shopping cart.
*
* @author Logicommerce
* @since 1.0.18
*/
public interface AbandonedCartService extends PluginService {
/**
* This method is called when a cart is abandoned.
*
* @param cart a {@link com.logicommerce.sdk.models.Cart Cart} object
* @see com.logicommerce.sdk.models.Cart Cart
* @since 1.0.18
* @throws com.logicommerce.sdk.services.PluginServiceException if any.
*/
void abandon(Cart cart) throws PluginServiceException;
/**
* This method is called when a abandoned cart is recovered.
*
* @param cart a {@link com.logicommerce.sdk.models.Cart Cart} object
* @see com.logicommerce.sdk.models.Cart Cart
* @since 1.0.18
* @throws com.logicommerce.sdk.services.PluginServiceException if any.
*/
void recover(Cart cart) throws PluginServiceException;
/**
* This method is called when a abandoned cart is finally removed.
*
* @param cart a {@link com.logicommerce.sdk.models.Cart Cart} object
* @see com.logicommerce.sdk.models.Cart Cart
* @since 1.0.18
* @throws com.logicommerce.sdk.services.PluginServiceException if any.
*/
void remove(Cart cart) throws PluginServiceException;
}