GitHub

DaffCartStoreCreditMagentoService

import { DaffCartStoreCreditMagentoService } from '@daffodil/cart-store-credit/driver/magento'

A service for making Magento GraphQL queries for carts.

@Injectable()
class DaffCartStoreCreditMagentoService implements DaffCartStoreCreditDriverInterface {
  apply(cartId: string): Observable<DaffCartWithStoreCredit>
  remove(cartId: string): Observable<DaffCartWithStoreCredit>
}

() Methods

apply
Observable<DaffCartWithStoreCredit>

Apply store credit to the cart.

Parameters
ParametercartId: string
Description
remove
Observable<DaffCartWithStoreCredit>

Remove store credit from the cart.

Parameters
ParametercartId: string
Description