import { DaffMagentoCartShippingInformationService } from '@daffodil/cart/driver/magento'
A service for making Magento GraphQL queries for carts.
@Injectable()
class DaffMagentoCartShippingInformationService implements DaffCartShippingInformationServiceInterface {
get(cartId: string): Observable<DaffCartShippingRate>
update(
cartId: string
shippingInfo: Partial<DaffCartShippingRate>
): Observable<Partial<DaffCart>>
delete(
cartId: string
id?: string
): Observable<Partial<DaffCart>>
}
Observable<DaffCartShippingRate>
Get the currently selected shipping method of a cart.
Parameter | cartId: string |
---|---|
Description |
Observable<Partial<DaffCart>>
Update the currently selected shipping method of a cart.
Parameter | cartId: string |
---|---|
Description |
Parameter | shippingInfo: Partial<DaffCartShippingRate> |
---|---|
Description |
Observable<Partial<DaffCart>>
Remove the currently selected shipping method from a cart.
Parameter | cartId: string |
---|---|
Description |
Parameter | id: string |
---|---|
Description |