UNPKG

kucoin-universal-sdk

Version:
66 lines 2.04 kB
"use strict"; // Code generated by Kucoin Universal SDK Generator; DO NOT EDIT. Object.defineProperty(exports, "__esModule", { value: true }); exports.GetSpotActualFeeReqBuilder = exports.GetSpotActualFeeReq = void 0; const class_transformer_1 = require("class-transformer"); class GetSpotActualFeeReq { /** * Private constructor, please use the corresponding static methods to construct the object. */ constructor() { } /** * Creates a new instance of the `GetSpotActualFeeReq` class. * The builder pattern allows step-by-step construction of a `GetSpotActualFeeReq` object. */ static builder() { return new GetSpotActualFeeReqBuilder(new GetSpotActualFeeReq()); } /** * Creates a new instance of the `GetSpotActualFeeReq` class with the given data. */ static create(data) { let obj = new GetSpotActualFeeReq(); obj.symbols = data.symbols; 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 GetSpotActualFeeReq(), jsonObject); } } exports.GetSpotActualFeeReq = GetSpotActualFeeReq; class GetSpotActualFeeReqBuilder { constructor(obj) { this.obj = obj; this.obj = obj; } /** * Trading pair (optional; you can inquire fee rates of 10 trading pairs each time at most) */ setSymbols(value) { this.obj.symbols = value; return this; } /** * Get the final object. */ build() { return this.obj; } } exports.GetSpotActualFeeReqBuilder = GetSpotActualFeeReqBuilder; //# sourceMappingURL=model_get_spot_actual_fee_req.js.map