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