UNPKG

@spree/storefront-api-v2-sdk

Version:

Node module to easily integrate your JavaScript or TypeScript application with Spree API V2. You can create an entirely custom Storefront in JS/TS with this package including one page checkout, Single Page Apps, PWAs and so on

23 lines (18 loc) 408 B
import { IQuery } from '../Query' export interface AddItem extends IQuery { variant_id: string quantity: number, options?: { [key: string]: string } } export interface SetQuantity extends IQuery { line_item_id: string quantity: number } export interface CouponCode extends IQuery { coupon_code: string } export interface EstimateShippingMethods extends IQuery { country_iso: string }