import { DaffCartShippingInformationServiceInterface } from '@daffodil/cart/driver'
The interface responsible for mediating the interaction of the shipping information of a cart with a given platform.
interface DaffCartShippingInformationServiceInterface<T extends DaffCart = DaffCart> {
get(cartId: T["id"]): Observable<T['shipping_information']>
update(
cartId: T["id"]
shippingInfo: Partial<T["shipping_information"]>
): Observable<Partial<T>>
delete(
cartId: T["id"]
id?: T["shipping_information"]["id"]
): Observable<Partial<T>>
}
ObservableGet the currently selected shipping method of a cart.
| Parameter | cartId: T["id"] |
|---|---|
| Description |
Observable> Update the currently selected shipping method of a cart.
| Parameter | cartId: T["id"] |
|---|---|
| Description |
| Parameter | shippingInfo: Partial |
|---|---|
| Description |
Observable> Remove the currently selected shipping method from a cart.
| Parameter | cartId: T["id"] |
|---|---|
| Description |
| Parameter | id: T["shipping_information"]["id"] |
|---|---|
| Description |