GitHub

DaffCartShippingAddressServiceInterface

import { DaffCartShippingAddressServiceInterface } from '@daffodil/cart/driver'

The interface responsible for managing the shipping address of a cart.

interface DaffCartShippingAddressServiceInterface<T extends DaffCart = DaffCart> {
  get(cartId: T["id"]): Observable<T['shipping_address']>
  update(
    cartId: T["id"]
    address: Partial<T["shipping_address"]>
  ): Observable<Partial<T>>
}

() Methods

get
Observable<T['shipping_address']>

Retrieve the shipping address of a cart.

Parameters
ParametercartId: T["id"]
Description
update
Observable<Partial<T>>

Update the shipping address of a cart.

Parameters
ParametercartId: T["id"]
Description
Parameteraddress: Partial
Description