UNPKG

kucoin-universal-sdk

Version:
117 lines 4.39 kB
"use strict"; // 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.GetWithdrawalHistoryByIdResp = void 0; const class_transformer_1 = require("class-transformer"); const common_1 = require("../../../model/common"); class GetWithdrawalHistoryByIdResp { /** * Private constructor, please use the corresponding static methods to construct the object. */ constructor() { // @ts-ignore this.id = null; // @ts-ignore this.uid = null; // @ts-ignore this.currency = null; // @ts-ignore this.chainId = null; // @ts-ignore this.chainName = null; // @ts-ignore this.currencyName = null; // @ts-ignore this.status = null; // @ts-ignore this.failureReason = null; // @ts-ignore this.address = null; // @ts-ignore this.memo = null; // @ts-ignore this.isInner = null; // @ts-ignore this.amount = null; // @ts-ignore this.fee = null; // @ts-ignore this.remark = null; // @ts-ignore this.createdAt = null; // @ts-ignore this.cancelType = null; // @ts-ignore this.returnStatus = null; // @ts-ignore this.returnCurrency = 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 GetWithdrawalHistoryByIdResp(), jsonObject); } } exports.GetWithdrawalHistoryByIdResp = GetWithdrawalHistoryByIdResp; __decorate([ (0, class_transformer_1.Exclude)(), __metadata("design:type", common_1.RestResponse) ], GetWithdrawalHistoryByIdResp.prototype, "commonResponse", void 0); (function (GetWithdrawalHistoryByIdResp) { let CancelTypeEnum; (function (CancelTypeEnum) { /** * Cancellable */ CancelTypeEnum[CancelTypeEnum["CANCELABLE"] = 'CANCELABLE'] = "CANCELABLE"; /** * Cancelling */ CancelTypeEnum[CancelTypeEnum["CANCELING"] = 'CANCELING'] = "CANCELING"; /** * Non-Cancellable */ CancelTypeEnum[CancelTypeEnum["NON_CANCELABLE"] = 'NON_CANCELABLE'] = "NON_CANCELABLE"; })(CancelTypeEnum = GetWithdrawalHistoryByIdResp.CancelTypeEnum || (GetWithdrawalHistoryByIdResp.CancelTypeEnum = {})); let ReturnStatusEnum; (function (ReturnStatusEnum) { /** * No returned */ ReturnStatusEnum[ReturnStatusEnum["NOT_RETURN"] = 'NOT_RETURN'] = "NOT_RETURN"; /** * To be returned */ ReturnStatusEnum[ReturnStatusEnum["PROCESSING"] = 'PROCESSING'] = "PROCESSING"; /** * Returned */ ReturnStatusEnum[ReturnStatusEnum["SUCCESS"] = 'SUCCESS'] = "SUCCESS"; })(ReturnStatusEnum = GetWithdrawalHistoryByIdResp.ReturnStatusEnum || (GetWithdrawalHistoryByIdResp.ReturnStatusEnum = {})); })(GetWithdrawalHistoryByIdResp || (exports.GetWithdrawalHistoryByIdResp = GetWithdrawalHistoryByIdResp = {})); //# sourceMappingURL=model_get_withdrawal_history_by_id_resp.js.map