GitHub

DaffMagentoCartShippingInformationService

A service for making Magento GraphQL queries for carts.

import { DaffMagentoCartShippingInformationService } from '@daffodil/cart/driver/magento'
@Injectable()
class DaffMagentoCartShippingInformationService implements DaffCartShippingInformationServiceInterface {
  get(cartId: string): Observable<DaffCartShippingRate>
  update(
    cartId: string
    shippingInfo: Partial<DaffCartShippingRate>
  ): Observable<Partial<DaffCart>>
  delete(
    cartId: string
    id?: string
  ): Observable<Partial<DaffCart>>
}

Properties

Name Type Description
get Observable<DaffCartShippingRate>

Get the currently selected shipping method of a cart.

update Observable<Partial<DaffCart>>

Update the currently selected shipping method of a cart.

delete Observable<Partial<DaffCart>>

Remove the currently selected shipping method from a cart.