import * as Options from '../options'; import { BaseService } from '../infrastructure'; import { Charge } from '../interfaces'; /** * A service for manipulating Shopify's ApplicationCharge API. */ export declare class Charges extends BaseService { constructor(shopDomain: string, accessToken: string); /** * Creates a new charge. */ create(charge: Partial): Promise; /** * Gets a charge with the given id. * @param id The id of the charge to get. * @param options Options for filtering the result. */ get(id: number, options?: Options.FieldOptions): Promise; /** * Retrieves a list of all past and present charges. * @param options Options for filtering the result. */ list(options?: Options.ListOptions & Options.DateOptions & Options.FieldOptions): Promise; /** * Activates a charge. Can only be activated if the charge's status is "accepted". * @param id The id of the charge to activate. */ activate(id: number): Promise; } export default Charges;