UNPKG

kucoin-universal-sdk

Version:
66 lines 2.08 kB
"use strict"; // Code generated by Kucoin Universal SDK Generator; DO NOT EDIT. Object.defineProperty(exports, "__esModule", { value: true }); exports.GetFuturesActualFeeReqBuilder = exports.GetFuturesActualFeeReq = void 0; const class_transformer_1 = require("class-transformer"); class GetFuturesActualFeeReq { /** * Private constructor, please use the corresponding static methods to construct the object. */ constructor() { } /** * Creates a new instance of the `GetFuturesActualFeeReq` class. * The builder pattern allows step-by-step construction of a `GetFuturesActualFeeReq` object. */ static builder() { return new GetFuturesActualFeeReqBuilder(new GetFuturesActualFeeReq()); } /** * Creates a new instance of the `GetFuturesActualFeeReq` class with the given data. */ static create(data) { let obj = new GetFuturesActualFeeReq(); obj.symbol = data.symbol; 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 GetFuturesActualFeeReq(), jsonObject); } } exports.GetFuturesActualFeeReq = GetFuturesActualFeeReq; class GetFuturesActualFeeReqBuilder { constructor(obj) { this.obj = obj; this.obj = obj; } /** * The unique identity of the trading pair; will not change even if the trading pair is renamed */ setSymbol(value) { this.obj.symbol = value; return this; } /** * Get the final object. */ build() { return this.obj; } } exports.GetFuturesActualFeeReqBuilder = GetFuturesActualFeeReqBuilder; //# sourceMappingURL=model_get_futures_actual_fee_req.js.map