import { Filter } from 'interfaces'; import { ENV } from 'types'; export interface Transaction { id: string; from: string; to: string; amount: string; notes: string; currency: string; type: string; status: string; date: number; countResponses: number; } export interface GetTransactionsResponse { getTransactions: Transaction[]; } export interface GetTransactionsArguments extends Filter { limit: number; page: number; env?: ENV; filter: FilterTransactions; } export interface FilterTransactions { status: string; accountId: string; } export interface GetTransactionDetailsArguments { transactionId: string; env?: ENV; } export interface GetTransactionDetailsResponse { readTransaction: Transaction; } export interface TransferArguments { toOpesId: string; amount: string; notes: string; currency: string; token: string; to?: string; env?: ENV; } export interface TransferResponse { transfer: { id: string; }; } export interface TrackTransactionsArguments { status: string; onMessage: (response: TrackTransactionsResponse) => void; onError: (error: any) => void; } export interface TrackTransactionsResponse { trackTransactions: Transaction; }