kucoin-universal-sdk
Version:
Official KuCoin Universal SDK.
136 lines • 4.85 kB
JavaScript
;
// Code generated by Kucoin Universal SDK Generator; DO NOT EDIT.
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetTransferHistoryResp = void 0;
const class_transformer_1 = require("class-transformer");
const common_1 = require("../../../model/common");
class GetTransferHistoryResp {
/**
* Private constructor, please use the corresponding static methods to construct the object.
*/
constructor() {
// @ts-ignore
this.orderId = null;
// @ts-ignore
this.currency = null;
// @ts-ignore
this.amount = null;
// @ts-ignore
this.fromUid = null;
// @ts-ignore
this.fromAccountType = null;
// @ts-ignore
this.fromAccountTag = null;
// @ts-ignore
this.toUid = null;
// @ts-ignore
this.toAccountType = null;
// @ts-ignore
this.toAccountTag = null;
// @ts-ignore
this.status = null;
// @ts-ignore
this.reason = null;
// @ts-ignore
this.createdAt = null;
}
setCommonResponse(response) {
this.commonResponse = response;
}
/**
* 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 GetTransferHistoryResp(), jsonObject);
}
}
exports.GetTransferHistoryResp = GetTransferHistoryResp;
__decorate([
(0, class_transformer_1.Exclude)(),
__metadata("design:type", common_1.RestResponse)
], GetTransferHistoryResp.prototype, "commonResponse", void 0);
(function (GetTransferHistoryResp) {
let FromAccountTypeEnum;
(function (FromAccountTypeEnum) {
/**
*
*/
FromAccountTypeEnum[FromAccountTypeEnum["MAIN"] = 'MAIN'] = "MAIN";
/**
*
*/
FromAccountTypeEnum[FromAccountTypeEnum["TRADE"] = 'TRADE'] = "TRADE";
/**
*
*/
FromAccountTypeEnum[FromAccountTypeEnum["CONTRACT"] = 'CONTRACT'] = "CONTRACT";
/**
*
*/
FromAccountTypeEnum[FromAccountTypeEnum["MARGIN"] = 'MARGIN'] = "MARGIN";
/**
*
*/
FromAccountTypeEnum[FromAccountTypeEnum["ISOLATED"] = 'ISOLATED'] = "ISOLATED";
})(FromAccountTypeEnum = GetTransferHistoryResp.FromAccountTypeEnum || (GetTransferHistoryResp.FromAccountTypeEnum = {}));
let ToAccountTypeEnum;
(function (ToAccountTypeEnum) {
/**
*
*/
ToAccountTypeEnum[ToAccountTypeEnum["MAIN"] = 'MAIN'] = "MAIN";
/**
*
*/
ToAccountTypeEnum[ToAccountTypeEnum["TRADE"] = 'TRADE'] = "TRADE";
/**
*
*/
ToAccountTypeEnum[ToAccountTypeEnum["CONTRACT"] = 'CONTRACT'] = "CONTRACT";
/**
*
*/
ToAccountTypeEnum[ToAccountTypeEnum["MARGIN"] = 'MARGIN'] = "MARGIN";
/**
*
*/
ToAccountTypeEnum[ToAccountTypeEnum["ISOLATED"] = 'ISOLATED'] = "ISOLATED";
})(ToAccountTypeEnum = GetTransferHistoryResp.ToAccountTypeEnum || (GetTransferHistoryResp.ToAccountTypeEnum = {}));
let StatusEnum;
(function (StatusEnum) {
/**
*
*/
StatusEnum[StatusEnum["PROCESSING"] = 'PROCESSING'] = "PROCESSING";
/**
*
*/
StatusEnum[StatusEnum["SUCCESS"] = 'SUCCESS'] = "SUCCESS";
/**
*
*/
StatusEnum[StatusEnum["FAILURE"] = 'FAILURE'] = "FAILURE";
})(StatusEnum = GetTransferHistoryResp.StatusEnum || (GetTransferHistoryResp.StatusEnum = {}));
})(GetTransferHistoryResp || (exports.GetTransferHistoryResp = GetTransferHistoryResp = {}));
//# sourceMappingURL=model_get_transfer_history_resp.js.map