import { AxiosResponse } from 'axios'; import { Config } from './config'; import Request from './request'; import { CasdoorResponse } from './util'; import { Payment } from './payment'; export interface Order { owner: string; name: string; createdTime?: string; updateTime?: string; displayName?: string; products?: string[]; productInfos?: ProductInfo[]; user?: string; payment?: string; price?: number; currency?: string; state?: string; message?: string; couponName?: string; couponDiscount?: number; } export interface ProductInfo { owner?: string; name: string; createdTime?: string; displayName?: string; image?: string; detail?: string; price?: number; currency?: string; isRecharge?: boolean; quantity?: number; pricingName?: string; planName?: string; } export declare class OrderSDK { private config; private readonly request; constructor(config: Config, request: Request); getOrders(): Promise, any>>; getPaginationOrders(p: number, pageSize: number, queryMap?: Record): Promise, any>>; getOrder(name: string): Promise, any>>; getUserOrders(userName: string): Promise, any>>; placeOrder(productInfos: ProductInfo[], userName?: string): Promise, any>>; payOrder(orderName: string, providerName: string): Promise, any>>; buyProduct(name: string, providerName: string, userName?: string): Promise, any>>; cancelOrder(name: string): Promise, any>>; modifyOrder(method: string, order: Order, columns?: string[], params?: Record): Promise, any>>; addOrder(order: Order): Promise, any>>; updateOrder(order: Order): Promise, any>>; deleteOrder(order: Order): Promise, any>>; }