@hydro-protocol/hydro-client-js
Version:
Javascript SDK for the Hydro API
16 lines (15 loc) • 472 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var Order_1 = require("./Order");
/**
* A paginated list of orders
*/
var OrderList = /** @class */ (function () {
function OrderList(json) {
this.totalPages = json.totalPages;
this.currentPage = json.currentPage;
this.orders = json.orders.map(function (order) { return new Order_1.Order(order); });
}
return OrderList;
}());
exports.OrderList = OrderList;