UNPKG

kucoin-universal-sdk

Version:
83 lines 3.13 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.BatchAddOrdersSyncReqBuilder = exports.BatchAddOrdersSyncReq = void 0; const class_transformer_1 = require("class-transformer"); const model_batch_add_orders_sync_order_list_1 = require("./model_batch_add_orders_sync_order_list"); class BatchAddOrdersSyncReq { /** * Private constructor, please use the corresponding static methods to construct the object. */ constructor() { // @ts-ignore this.orderList = null; } /** * Creates a new instance of the `BatchAddOrdersSyncReq` class. * The builder pattern allows step-by-step construction of a `BatchAddOrdersSyncReq` object. */ static builder() { return new BatchAddOrdersSyncReqBuilder(new BatchAddOrdersSyncReq()); } /** * Creates a new instance of the `BatchAddOrdersSyncReq` class with the given data. */ static create(data) { let obj = new BatchAddOrdersSyncReq(); obj.orderList = data.orderList; 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 BatchAddOrdersSyncReq(), jsonObject); } } exports.BatchAddOrdersSyncReq = BatchAddOrdersSyncReq; __decorate([ (0, class_transformer_1.Type)(() => model_batch_add_orders_sync_order_list_1.BatchAddOrdersSyncOrderList), __metadata("design:type", Array) ], BatchAddOrdersSyncReq.prototype, "orderList", void 0); class BatchAddOrdersSyncReqBuilder { constructor(obj) { this.obj = obj; this.obj = obj; } /** * Order List */ setOrderList(value) { this.obj.orderList = value; return this; } /** * Get the final object. */ build() { return this.obj; } } exports.BatchAddOrdersSyncReqBuilder = BatchAddOrdersSyncReqBuilder; //# sourceMappingURL=model_batch_add_orders_sync_req.js.map