UNPKG

kucoin-universal-sdk

Version:
74 lines 2.11 kB
"use strict"; // Code generated by Kucoin Universal SDK Generator; DO NOT EDIT. Object.defineProperty(exports, "__esModule", { value: true }); exports.GetSubAccountAPIReqBuilder = exports.GetSubAccountAPIReq = void 0; const class_transformer_1 = require("class-transformer"); class GetSubAccountAPIReq { /** * Private constructor, please use the corresponding static methods to construct the object. */ constructor() { } /** * Creates a new instance of the `GetSubAccountAPIReq` class. * The builder pattern allows step-by-step construction of a `GetSubAccountAPIReq` object. */ static builder() { return new GetSubAccountAPIReqBuilder(new GetSubAccountAPIReq()); } /** * Creates a new instance of the `GetSubAccountAPIReq` class with the given data. */ static create(data) { let obj = new GetSubAccountAPIReq(); obj.uid = data.uid; obj.apiKey = data.apiKey; 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 GetSubAccountAPIReq(), jsonObject); } } exports.GetSubAccountAPIReq = GetSubAccountAPIReq; class GetSubAccountAPIReqBuilder { constructor(obj) { this.obj = obj; this.obj = obj; } /** * Sub-account UID */ setUid(value) { this.obj.uid = value; return this; } /** * Sub-account apiKey */ setApiKey(value) { this.obj.apiKey = value; return this; } /** * Get the final object. */ build() { return this.obj; } } exports.GetSubAccountAPIReqBuilder = GetSubAccountAPIReqBuilder; //# sourceMappingURL=model_get_sub_account_api_req.js.map