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

25 lines (21 loc) 656 B
import { JsonApiDocument, JsonApiListResponse } from './JsonApi' import { IRelationships } from './Relationships' import { ResultResponse } from './ResultResponse' export interface ShippingMethodAttr extends JsonApiDocument { type: string id: string, attributes: { number: string, free: boolean, final_price: string, display_final_price: string, tracking_url: string, state: string, shipped_at: Date }, relationships: IRelationships } export interface IShippingMethods extends JsonApiListResponse { data: ShippingMethodAttr[] } export interface IShippingMethodsResult extends ResultResponse<IShippingMethods> { }