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