GitHub

DaffCartAddressServiceInterface

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

The interface responsible for managing the address of a cart.

interface DaffCartAddressServiceInterface<T extends DaffCart = DaffCart> {
  update(
    cartId: T["id"]
    address: Partial<T["shipping_address"]> | Partial<T["billing_address"]>
  ): Observable<Partial<T>>
}

() Methods

update
Observable<Partial<T>>

Update the billing and shipping address of a cart

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