import { AxiosPromise } from "axios"; import { BaseApi } from "./base"; import { OrderApiInterface as IGenerated } from "../../openapi/api"; import { IContext } from "../context"; import { ApiField, SecondaryTransaction, TransactionResponse, OrderResponse } from "../models"; declare type OrderParams = ApiField<"region"> & ApiField<"storeId"> & ApiField<"orderId">; declare type SecondaryTxOrderParams = ApiField<"region"> & ApiField<"orderId"> & ApiField<"payload", SecondaryTransaction>; interface IWrapper { /** * Use this query to get the current state of an existing order. * @summary Retrieve the state of an order * @param {OrderParams} params * @throws {RequiredError} */ orderInquiry(params: OrderParams): AxiosPromise; /** * Use this for Returns and post auth of an existing order. Partial Returns are allowed. * @param {SecondaryTxOrderParams} params * @throws {RequiredError} */ secondaryTransaction(params: SecondaryTxOrderParams): AxiosPromise; } declare class Wrapper extends BaseApi implements IWrapper { constructor(context: IContext); orderInquiry(params: OrderParams): AxiosPromise; secondaryTransaction(params: SecondaryTxOrderParams): AxiosPromise; } export { IWrapper as IOrderApi }; export { Wrapper as OrderApi }; export { OrderParams }; export { SecondaryTxOrderParams };