GitHub

DaffCartBillingAddressServiceInterface

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

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

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

() Methods

get
Observable<T['billing_address']>

Retrieve the billing address of a cart

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

Update the billing address of a cart

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