UNPKG

@niur/google-admanager-api

Version:
29 lines 933 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OrderService = void 0; class OrderService { constructor(client) { this._client = client; } async createOrders(orders) { return this._client.createOrders({ orders }); } async getOrdersByStatement(filterStatement) { return this._client.getOrdersByStatement({ filterStatement, }); } async performOrderAction(orderAction, filterStatement) { return this._client.performOrderAction({ orderAction: Object.assign({ attributes: { 'xsi:type': orderAction.constructor.name, } }, orderAction.buildAttributes()), filterStatement, }); } async updateOrders(orders) { return this._client.updateOrders({ orders }); } } exports.OrderService = OrderService; //# sourceMappingURL=order.service.js.map