zumokit
Version:
ZumoKit is a Wallet as a Service SDK
38 lines (37 loc) • 1.41 kB
TypeScript
import { Decimal } from 'decimal.js';
import { Dictionary, CurrencyCode, TransactionDirection, TransactionAmountJSON } from '../interfaces';
/**
* Transaction amount details.
* <p>
* See {@link Transaction}.
* */
export declare class TransactionAmount {
/** @internal */
json: TransactionAmountJSON;
/** Direction, either 'SENT' or 'RECEIVED'. */
direction: TransactionDirection;
/** User id or null if it is external user. */
userId: string | null;
/** User integrator id or null if it is external user. */
userIntegratorId: string | null;
/** Account id or null if it is external user. */
accountId: string | null;
/** Amount in transaction currency or null if transaction is Ethereum contract deploy. */
amount: Decimal | null;
/** Amount in fiat currencies at the time of the transaction submission. */
fiatAmount: Dictionary<CurrencyCode, number> | null;
/** Blockchain address or null. */
address: string | null;
/** Indicates if this amount represents change amount. */
isChange: boolean;
/** Fiat account number or null. */
accountNumber: string | null;
/** Fiat account sort code or null. */
sortCode: string | null;
/** Fiat account BIC or null. */
bic: string | null;
/** Fiat account IBAN or null. */
iban: string | null;
/** @internal */
constructor(json: TransactionAmountJSON);
}