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