GitHub

DaffCartStoreCreditMagentoService

A service for making Magento GraphQL queries for carts.

import { DaffCartStoreCreditMagentoService } from '@daffodil/cart-store-credit/driver/magento'
@Injectable()
class DaffCartStoreCreditMagentoService implements DaffCartStoreCreditDriverInterface {
  apply(cartId: string): Observable<DaffCartWithStoreCredit>
  remove(cartId: string): Observable<DaffCartWithStoreCredit>
}

Properties

Name Type Description
apply Observable<DaffCartWithStoreCredit>

Apply store credit to the cart.

remove Observable<DaffCartWithStoreCredit>

Remove store credit from the cart.