Skip to content

Instantly share code, notes, and snippets.

@khannedy
Created July 8, 2017 11:12
Show Gist options
  • Save khannedy/c752a90a0cafe4cbdb12938d8309bd50 to your computer and use it in GitHub Desktop.
Save khannedy/c752a90a0cafe4cbdb12938d8309bd50 to your computer and use it in GitHub Desktop.
package com.idspring.commandpattern.service;
import com.idspring.commandpattern.entity.Cart;
import com.idspring.commandpattern.model.service.AddProductToCartRequest;
import com.idspring.commandpattern.model.service.CreateNewCartRequest;
import com.idspring.commandpattern.service.command.RemoveProductFromCartCommand;
import reactor.core.publisher.Mono;
/**
* @author Eko Kurniawan Khannedy
* @since 08/07/17
*/
public interface CartService {
Mono<Cart> createNewCart(CreateNewCartRequest request);
Mono<Cart> removeProductFromCart(RemoveProductFromCartCommand request);
Mono<Cart> addProductToCart(AddProductToCartRequest request);
Mono<Cart> updateProductInCart(AddProductToCartRequest request);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment