Created
July 8, 2017 11:12
-
-
Save khannedy/c752a90a0cafe4cbdb12938d8309bd50 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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