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"]): any
update(
cartId: T["id"]
shippingInfo: Partial<T["shipping_information"]>
): any
delete(
cartId: T["id"]
id?: T["shipping_information"]["id"]
): any
}
anyGet the currently selected shipping method of a cart.
| Parameter | cartId: T["id"] |
|---|---|
| Description |
anyUpdate the currently selected shipping method of a cart.
| Parameter | cartId: T["id"] |
|---|---|
| Description |
| Parameter | shippingInfo: Partial |
|---|---|
| Description |
anyRemove the currently selected shipping method from a cart.
| Parameter | cartId: T["id"] |
|---|---|
| Description |
| Parameter | id: T["shipping_information"]["id"] |
|---|---|
| Description |