UNPKG

kucoin-universal-sdk

Version:
61 lines 1.93 kB
"use strict"; // Code generated by Kucoin Universal SDK Generator; DO NOT EDIT. Object.defineProperty(exports, "__esModule", { value: true }); exports.GetDepositAddressV3Data = void 0; const class_transformer_1 = require("class-transformer"); class GetDepositAddressV3Data { /** * Private constructor, please use the corresponding static methods to construct the object. */ constructor() { // @ts-ignore this.address = null; // @ts-ignore this.memo = null; // @ts-ignore this.chainId = null; // @ts-ignore this.to = null; // @ts-ignore this.expirationDate = null; // @ts-ignore this.currency = null; // @ts-ignore this.contractAddress = null; // @ts-ignore this.chainName = null; } /** * Convert the object to a JSON string. */ toJson() { return JSON.stringify((0, class_transformer_1.instanceToPlain)(this)); } /** * Create an object from a JSON string. */ static fromJson(input) { return this.fromObject(JSON.parse(input)); } /** * Create an object from Js Object. */ static fromObject(jsonObject) { return (0, class_transformer_1.plainToClassFromExist)(new GetDepositAddressV3Data(), jsonObject); } } exports.GetDepositAddressV3Data = GetDepositAddressV3Data; (function (GetDepositAddressV3Data) { let ToEnum; (function (ToEnum) { /** * Funding account */ ToEnum[ToEnum["MAIN"] = 'MAIN'] = "MAIN"; /** * Spot account */ ToEnum[ToEnum["TRADE"] = 'TRADE'] = "TRADE"; })(ToEnum = GetDepositAddressV3Data.ToEnum || (GetDepositAddressV3Data.ToEnum = {})); })(GetDepositAddressV3Data || (exports.GetDepositAddressV3Data = GetDepositAddressV3Data = {})); //# sourceMappingURL=model_get_deposit_address_v3_data.js.map