/* tslint:disable */ /* eslint-disable */ /** * Fireblocks API * Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com) * * The version of the OpenAPI document: 1.6.2 * Contact: developers@fireblocks.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ // May contain unused imports in some cases // @ts-ignore import { SmartTransferTicketTerm } from './smart-transfer-ticket-term'; /** * Data object with result data * @export * @interface SmartTransferTicket */ export interface SmartTransferTicket { /** * Unique id of Smart Transfer ticket * @type {string} * @memberof SmartTransferTicket */ 'id': string; /** * Kind of Smart Transfer. Can be either `ASYNC` or `DVP` * @type {string} * @memberof SmartTransferTicket */ 'type': SmartTransferTicketTypeEnum; /** * Current status of Smart Transfer ticket * @type {string} * @memberof SmartTransferTicket */ 'status': SmartTransferTicketStatusEnum; /** * ID of network profile that created ticket * @type {string} * @memberof SmartTransferTicket */ 'createdByNetworkId': string; /** * Name of network profile that created ticket * @type {string} * @memberof SmartTransferTicket */ 'createdByNetworkIdName': string; /** * Date and time at which the ticket is created. * @type {string} * @memberof SmartTransferTicket */ 'createdAt': string; /** * Date and time of last ticket update. * @type {string} * @memberof SmartTransferTicket */ 'updatedAt': string; /** * Direction of Smart Transfer. * @type {string} * @memberof SmartTransferTicket */ 'direction'?: SmartTransferTicketDirectionEnum; /** * Current status of DVP execution * @type {string} * @memberof SmartTransferTicket */ 'dvpExecutionStatus'?: SmartTransferTicketDvpExecutionStatusEnum; /** * ID of network profile that created order * @type {string} * @memberof SmartTransferTicket */ 'orderCreatedByNetworkId'?: string; /** * Ticket terms (legs) * @type {Array} * @memberof SmartTransferTicket */ 'terms'?: Array; /** * Number of hours for expiration.This data is valid only it ticket not in DRAFT state and it will be used to calculate expiresAt value * @type {number} * @memberof SmartTransferTicket */ 'expiresIn'?: number; /** * Date and time at which the ticket will expire if no funding is performed. * @type {string} * @memberof SmartTransferTicket */ 'expiresAt'?: string; /** * Date and time when ticket is submitted. * @type {string} * @memberof SmartTransferTicket */ 'submittedAt'?: string; /** * Date and time when ticket is expired. * @type {string} * @memberof SmartTransferTicket */ 'expiredAt'?: string; /** * Date and time when ticket is canceled. * @type {string} * @memberof SmartTransferTicket */ 'canceledAt'?: string; /** * Date and time when ticket is fulfilled. * @type {string} * @memberof SmartTransferTicket */ 'fulfilledAt'?: string; /** * External Ref ID for Smart Transfer ticket. * @type {string} * @memberof SmartTransferTicket */ 'externalRefId'?: string; /** * Note * @type {string} * @memberof SmartTransferTicket */ 'note'?: string; /** * Name of network profile that canceled ticket * @type {string} * @memberof SmartTransferTicket */ 'canceledByNetworkIdName'?: string; /** * * @type {boolean} * @memberof SmartTransferTicket */ 'canceledByMe'?: boolean; /** * * @type {boolean} * @memberof SmartTransferTicket */ 'createdByMe'?: boolean; } export const SmartTransferTicketTypeEnum = { Async: 'ASYNC', Dvp: 'DVP' } as const; export type SmartTransferTicketTypeEnum = typeof SmartTransferTicketTypeEnum[keyof typeof SmartTransferTicketTypeEnum]; export const SmartTransferTicketStatusEnum = { Draft: 'DRAFT', PendingApproval: 'PENDING_APPROVAL', Open: 'OPEN', InSettlement: 'IN_SETTLEMENT', Fulfilled: 'FULFILLED', Expired: 'EXPIRED', Canceled: 'CANCELED' } as const; export type SmartTransferTicketStatusEnum = typeof SmartTransferTicketStatusEnum[keyof typeof SmartTransferTicketStatusEnum]; export const SmartTransferTicketDirectionEnum = { Exchange: 'EXCHANGE', Send: 'SEND', Receive: 'RECEIVE', Intermediate: 'INTERMEDIATE' } as const; export type SmartTransferTicketDirectionEnum = typeof SmartTransferTicketDirectionEnum[keyof typeof SmartTransferTicketDirectionEnum]; export const SmartTransferTicketDvpExecutionStatusEnum = { Started: 'STARTED', CreatingOrder: 'CREATING_ORDER', OrderCreated: 'ORDER_CREATED', Fulfilling: 'FULFILLING', FulfillingOrderFailed: 'FULFILLING_ORDER_FAILED', CreatingOrderFailed: 'CREATING_ORDER_FAILED', Fulfilled: 'FULFILLED' } as const; export type SmartTransferTicketDvpExecutionStatusEnum = typeof SmartTransferTicketDvpExecutionStatusEnum[keyof typeof SmartTransferTicketDvpExecutionStatusEnum];