zumokit
Version:
ZumoKit is a Wallet as a Service SDK
43 lines (42 loc) • 1.73 kB
TypeScript
import Decimal from 'decimal.js';
import { CustodyOrderType, CustodyOrderStatus, CustodyOrderJSON } from '../interfaces';
export declare class CustodyOrder {
/** @internal */
json: CustodyOrderJSON;
/** Identifier */
id: string;
/** Custody order type. */
type: CustodyOrderType;
/** Custody order status. */
status: CustodyOrderStatus;
/** Custody order amount, null if not known yet. */
amount: Decimal | null;
/** Flag indicating if fees are included in order amount. */
feeInAmount: boolean;
/** Estimated custody order fees. */
estimatedFees: Decimal | null;
/** Actual custody order fees, null if not known yet. */
fees: Decimal | null;
/** Crypto addresses from which funds where received, if any. */
fromAddresses: Array<string> | null;
/** Debit {@link Account Account} identifier, if applicable. */
fromAccountId: string | null;
/** Debit account's user identifier, if applicable. */
fromUserId: string | null;
/** Debit account's user integrator identifier, if applicable. */
fromUserIntegratorId: string | null;
/** Destination crypto address, if applicable. */
toAddress: string | null;
/** Credit {@link Account Account} identifier, if applicable. */
toAccountId: string | null;
/** Credit account's user identifier, if applicable. */
toUserId: string | null;
/** Credit account's user integrator identifier, if applicable. */
toUserIntegratorId: string | null;
/** Epoch timestamp when custody order was created. */
createdAt: number;
/** Epoch timestamp when custody order was updated. */
updatedAt: number;
/** @internal */
constructor(json: CustodyOrderJSON);
}