orders.js 770 B

123456789101112131415161718192021
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.Orders = void 0;
  4. const order_1 = require("../models/order");
  5. const base_collection_1 = require("./base_collection");
  6. class Orders extends base_collection_1.BaseCollection {
  7. static rootElementName = "orders";
  8. static prefixURI = "teams/{!:team_id}/orders/{:id}";
  9. static elementClass = order_1.Order;
  10. list(request_params) {
  11. return this.doList(request_params);
  12. }
  13. create(order_params, request_params) {
  14. return this.doCreate(order_params, request_params, this.populateObjectFromJsonRoot);
  15. }
  16. get(order_id, request_params) {
  17. return this.doGet(order_id, request_params);
  18. }
  19. }
  20. exports.Orders = Orders;
  21. //# sourceMappingURL=orders.js.map