GitHub

DaffMagentoCartShippingInformationService

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

A service for making Magento GraphQL queries for carts.

@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>>
}

() Methods

get
Observable<DaffCartShippingRate>

Get the currently selected shipping method of a cart.

Parameters
ParametercartId: string
Description
update
Observable<Partial<DaffCart>>

Update the currently selected shipping method of a cart.

Parameters
ParametercartId: string
Description
ParametershippingInfo: Partial<DaffCartShippingRate>
Description
delete
Observable<Partial<DaffCart>>

Remove the currently selected shipping method from a cart.

Parameters
ParametercartId: string
Description
Parameterid: string
Description