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"]): any
update(
cartId: T["id"]
address: Partial<T["billing_address"]>
): any
}
anyRetrieve the billing address of a cart
| Parameter | cartId: T["id"] |
|---|---|
| Description |
anyUpdate the billing address of a cart
| Parameter | cartId: T["id"] |
|---|---|
| Description |
| Parameter | address: Partial |
|---|---|
| Description |