UNPKG

@spartacus/core

Version:

Spartacus - the core framework

20 lines (19 loc) 548 B
import { Observable } from 'rxjs'; export declare abstract class CartVoucherAdapter { /** * Abstract method used to apply voucher to cart * * @param userId * @param cartId * @param voucherId */ abstract add(userId: string, cartId: string, voucherId: string): Observable<{}>; /** * Abstract method used to remove voucher from cart * * @param userId * @param cartId * @param voucherId */ abstract remove(userId: string, cartId: string, voucherId: string): Observable<{}>; }