import * as Options from '../options'; import { Transaction } from '../interfaces'; import { BaseService } from '../infrastructure'; /** * A service for manipulating an order's transactions. */ export declare class Transactions extends BaseService { constructor(shopDomain: string, accessToken: string); private getPath; /** * Creates a new transaction. * @param orderId Id of the order that the transaction will belong to. * @param transaction The transaction being created. */ create(orderId: number, transaction: Partial): Promise; /** * Gets an transaction with the given id. * @param orderId Id of the order that the transaction belongs to. * @param transactionId Id of the transaction being retrieved. * @param options Options for filtering the result. */ get(orderId: number, transactionId: number, options?: Options.TransactionBaseOptions): Promise; /** * Lists up to 250 transactions for the given order. * @param orderId Id of the order that the transactions belong to. * @param options Options for filtering the results. */ list(orderId: number, options?: Options.TransactionListOptions): Promise; /** * Counts the transactions on the given order. * @param orderId Id of the order that the transactions belong to. * @param options Options for filtering the results. */ count(orderId: number): Promise; } export default Transactions;