UNPKG

kucoin-universal-sdk

Version:
89 lines 2.77 kB
"use strict"; // Code generated by Kucoin Universal SDK Generator; DO NOT EDIT. Object.defineProperty(exports, "__esModule", { value: true }); exports.GetBasicFeeReqBuilder = exports.GetBasicFeeReq = void 0; const class_transformer_1 = require("class-transformer"); class GetBasicFeeReq { /** * Private constructor, please use the corresponding static methods to construct the object. */ constructor() { /** * Currency type: 0-crypto currency, 1-fiat currency. Default is 0-crypto currency */ this.currencyType = GetBasicFeeReq.CurrencyTypeEnum._0; } /** * Creates a new instance of the `GetBasicFeeReq` class. * The builder pattern allows step-by-step construction of a `GetBasicFeeReq` object. */ static builder() { return new GetBasicFeeReqBuilder(new GetBasicFeeReq()); } /** * Creates a new instance of the `GetBasicFeeReq` class with the given data. */ static create(data) { let obj = new GetBasicFeeReq(); if (data.currencyType) { obj.currencyType = data.currencyType; } else { obj.currencyType = GetBasicFeeReq.CurrencyTypeEnum._0; } return obj; } /** * 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 GetBasicFeeReq(), jsonObject); } } exports.GetBasicFeeReq = GetBasicFeeReq; (function (GetBasicFeeReq) { let CurrencyTypeEnum; (function (CurrencyTypeEnum) { /** * cryptocurrency */ CurrencyTypeEnum[CurrencyTypeEnum["_0"] = 0] = "_0"; /** * fiat currency */ CurrencyTypeEnum[CurrencyTypeEnum["_1"] = 1] = "_1"; })(CurrencyTypeEnum = GetBasicFeeReq.CurrencyTypeEnum || (GetBasicFeeReq.CurrencyTypeEnum = {})); })(GetBasicFeeReq || (exports.GetBasicFeeReq = GetBasicFeeReq = {})); class GetBasicFeeReqBuilder { constructor(obj) { this.obj = obj; this.obj = obj; } /** * Currency type: 0-crypto currency, 1-fiat currency. Default is 0-crypto currency */ setCurrencyType(value) { this.obj.currencyType = value; return this; } /** * Get the final object. */ build() { return this.obj; } } exports.GetBasicFeeReqBuilder = GetBasicFeeReqBuilder; //# sourceMappingURL=model_get_basic_fee_req.js.map