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>>
}
ObservableRetrieve the billing address of a cart
| Parameter | cartId: T["id"] |
|---|---|
| Description |
Observable> Update the billing address of a cart
| Parameter | cartId: T["id"] |
|---|---|
| Description |
| Parameter | address: Partial |
|---|---|
| Description |