pancake-client-sdk
Version:
Official TypeScript SDK for Pancake POS API
39 lines (38 loc) • 934 B
TypeScript
import { Order, OrderListParams, CreateOrderRequest } from '../types/order';
import { BaseResource } from './base';
export declare class OrderResource extends BaseResource {
/**
* Get list of orders
*/
list(params?: OrderListParams): Promise<{
data: Order[];
}>;
/**
* Get order by ID
*/
getById(orderId: string): Promise<Order>;
/**
* Create new order
*/
create(data: CreateOrderRequest): Promise<Order>;
/**
* Update order
*/
update(orderId: string, data: Partial<Order>): Promise<Order>;
/**
* Get order print URL
*/
getPrintUrl(orderId: string): Promise<{
url: string;
}>;
/**
* Get order confirmation URL
*/
getConfirmationUrl(orderId: string): Promise<{
url: string;
}>;
/**
* Get order advanced promotions
*/
getAdvancedPromotions(orderId: string): Promise<any>;
}