UNPKG

kucoin-universal-sdk

Version:
86 lines (85 loc) 2.52 kB
import { Serializable } from '../../../internal/interfaces/serializable'; export declare class FuturesAccountTransferInReq implements Serializable { /** * Currency, including XBT, USDT... */ currency: string; /** * Amount to be transferred in */ amount: number; /** * Payment account type, including MAIN, TRADE */ payAccountType: FuturesAccountTransferInReq.PayAccountTypeEnum; /** * Private constructor, please use the corresponding static methods to construct the object. */ private constructor(); /** * Creates a new instance of the `FuturesAccountTransferInReq` class. * The builder pattern allows step-by-step construction of a `FuturesAccountTransferInReq` object. */ static builder(): FuturesAccountTransferInReqBuilder; /** * Creates a new instance of the `FuturesAccountTransferInReq` class with the given data. */ static create(data: { /** * Currency, including XBT, USDT... */ currency: string; /** * Amount to be transferred in */ amount: number; /** * Payment account type, including MAIN, TRADE */ payAccountType: FuturesAccountTransferInReq.PayAccountTypeEnum; }): FuturesAccountTransferInReq; /** * Convert the object to a JSON string. */ toJson(): string; /** * Create an object from a JSON string. */ static fromJson(input: string): FuturesAccountTransferInReq; /** * Create an object from Js Object. */ static fromObject(jsonObject: Object): FuturesAccountTransferInReq; } export declare namespace FuturesAccountTransferInReq { enum PayAccountTypeEnum { /** * */ MAIN, /** * */ TRADE } } export declare class FuturesAccountTransferInReqBuilder { readonly obj: FuturesAccountTransferInReq; constructor(obj: FuturesAccountTransferInReq); /** * Currency, including XBT, USDT... */ setCurrency(value: string): FuturesAccountTransferInReqBuilder; /** * Amount to be transferred in */ setAmount(value: number): FuturesAccountTransferInReqBuilder; /** * Payment account type, including MAIN, TRADE */ setPayAccountType(value: FuturesAccountTransferInReq.PayAccountTypeEnum): FuturesAccountTransferInReqBuilder; /** * Get the final object. */ build(): FuturesAccountTransferInReq; }