kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
74 lines • 2.15 kB
JavaScript
;
// Code generated by Kucoin Universal SDK Generator; DO NOT EDIT.
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeleteSubAccountAPIReqBuilder = exports.DeleteSubAccountAPIReq = void 0;
const class_transformer_1 = require("class-transformer");
class DeleteSubAccountAPIReq {
/**
* Private constructor, please use the corresponding static methods to construct the object.
*/
constructor() { }
/**
* Creates a new instance of the `DeleteSubAccountAPIReq` class.
* The builder pattern allows step-by-step construction of a `DeleteSubAccountAPIReq` object.
*/
static builder() {
return new DeleteSubAccountAPIReqBuilder(new DeleteSubAccountAPIReq());
}
/**
* Creates a new instance of the `DeleteSubAccountAPIReq` class with the given data.
*/
static create(data) {
let obj = new DeleteSubAccountAPIReq();
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 DeleteSubAccountAPIReq(), jsonObject);
}
}
exports.DeleteSubAccountAPIReq = DeleteSubAccountAPIReq;
class DeleteSubAccountAPIReqBuilder {
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.DeleteSubAccountAPIReqBuilder = DeleteSubAccountAPIReqBuilder;
//# sourceMappingURL=model_delete_sub_account_api_req.js.map