@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
12 lines (10 loc) • 467 B
text/typescript
import Http from '../Http'
import { IOrderResult } from '../interfaces/Order'
import { IQuery } from '../interfaces/Query'
import { IToken } from '../interfaces/Token'
import { Routes } from '../routes'
export default class Order extends Http {
public async status(token: IToken, orderNumber: string, params: IQuery = {}): Promise<IOrderResult> {
return await this.spreeResponse('get', Routes.orderStatusPath(orderNumber), token, params) as IOrderResult
}
}