GitHub

DaffMagentoCartShippingInformationService

Service

import { DaffMagentoCartShippingInformationService } from '@daffodil/cart/driver/magento'

A service for making Magento GraphQL queries for carts.

@Injectable()
class DaffMagentoCartShippingInformationService implements DaffCartShippingInformationServiceInterface {
  get(cartId: string): any
  update(
    cartId: string
    shippingInfo: Partial<DaffCartShippingRate>
  ): any
  delete(
    cartId: string
    id?: string
  ): any
}

() Methods

get
any

Get the currently selected shipping method of a cart.

Parameters
ParametercartId: string
Description
update
any

Update the currently selected shipping method of a cart.

Parameters
ParametercartId: string
Description
ParametershippingInfo: Partial<DaffCartShippingRate>
Description
delete
any

Remove the currently selected shipping method from a cart.

Parameters
ParametercartId: string
Description
Parameterid: string
Description