GitHub

DaffMagentoCartCustomerShippingAddressService

import { DaffMagentoCartCustomerShippingAddressService } from '@daffodil/cart-customer/driver/magento'

A service for making Magento GraphQL queries for a cart's shipping address.

@Injectable()
class DaffMagentoCartCustomerShippingAddressService implements DaffCartShippingAddressServiceInterface {
  get(cartId: string): Observable<DaffCartAddress>
  update(
    cartId: string
    address: Partial<DaffCartAddress>
  ): Observable<Partial<DaffCart>>
}

() Methods

get
Observable<DaffCartAddress>

Retrieve the shipping address of a cart.

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

Update the shipping address of a cart.

Parameters
ParametercartId: string
Description
Parameteraddress: Partial<DaffCartAddress>
Description