import * as Options from '../options'; import { BaseService } from '../infrastructure'; import { Discount } from '../interfaces'; /** * A service for manipulating Shopify discounts. */ export declare class Discounts extends BaseService { constructor(shopDomain: string, accessToken: string); /** * Creates a new discount. */ create(discount: Partial): Promise; /** * Gets a list of up to 250 of the shop's discounts. * @param options Options for filtering the results. */ list(options?: Options.DiscountListOptions): Promise; /** * Retrieves the discount with the given id. * @param options Options for filtering the results. */ get(id: number): Promise; /** * Enables a discount. */ enable(id: number): Promise; /** * Disable a discount. */ disable(id: number): Promise; /** * Deletes the discount with the given id. */ delete(id: number): Promise; } export default Discounts;