import * as Options from "../options"; import { BaseService } from "../infrastructure"; import { DraftOrder } from "../interfaces"; /** * A service for manipulating Shopify draft orders. */ export declare class DraftOrders extends BaseService { constructor(shopDomain: string, accessToken: string); /** * Creates a new draft order. */ create(order: Partial, useCustomerDefaultAddress?: boolean): Promise; /** * Updates the draft order with the given id. */ update(id: number, order: Partial): Promise; /** * Gets a list of up to 250 of the shop's draft orders. * @param options Options for filtering the results. */ list(options?: Options.ListOptions): Promise; /** * Counts the draft orders on the shop. */ count(options?: any): Promise; /** * Retrieves the draft order with the given id. */ get(id: number): Promise; /** * Deletes the draft order with the given id. */ delete(id: number): Promise; /** * Completes the draft order, transitioning it to a full order. */ complete(id: number, paymentPending?: boolean): Promise; } export default DraftOrders;