import { OrderDetails } from '../models/OrderDetails'; import { MarketplaceLineItem } from '../models/MarketplaceLineItem'; import { MarketplaceOrder } from '../models/MarketplaceOrder'; import { Order } from '../models/Order'; import { ListPage } from '../models/ListPage'; import { RequiredDeep } from '../models/RequiredDeep'; import { ListArgs } from '../models/ListArgs'; export default class Orders { private impersonating; /** * @ignore * not part of public api, don't include in generated docs */ constructor(); /** * @param orderID ID of the order. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ GetOrderDetails(orderID: string, accessToken?: string): Promise>; /** * @param orderID ID of the order. * @param marketplaceLineItem Required fields: ProductID, Quantity * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ UpsertLineItem(orderID: string, marketplaceLineItem: MarketplaceLineItem, accessToken?: string): Promise>; /** * @param orderID ID of the order. * @param promoCode Promo code of the marketplace order. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ AddPromotion(orderID: string, promoCode: string, accessToken?: string): Promise>; /** * @param orderID ID of the order. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ ListShipmentsWithItems(orderID: string, accessToken?: string): Promise; /** * @param orderID ID of the order. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ AcknowledgeQuoteOrder(orderID: string, accessToken?: string): Promise>; /** * @param locationID ID of the location. * @param options.search Word or phrase to search for. * @param options.searchOn Comma-delimited list of fields to search on. * @param options.sortBy Comma-delimited list of fields to sort by. * @param options.page Page of results to return. Default: 1 * @param options.pageSize Number of results to return per page. Default: 20, max: 100. * @param options.filters An object whose keys match the model, and the values are the values to filter by * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ ListLocationOrders(locationID: string, options?: ListArgs, accessToken?: string): Promise>>; /** * @param orderID ID of the order. * @param accessToken Provide an alternative token to the one stored in the sdk instance (useful for impersonation). */ RequestReturnEmail(orderID: string, accessToken?: string): Promise; /** * @description * enables impersonation by calling the subsequent method with the stored impersonation token * * @example * Orders.As().List() // lists Orders using the impersonated users' token */ As(): this; }