"use strict";
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;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PurchaseOrderGraph = exports.ProductPurchaseGraph = exports.PurchaseOrder = exports.ProductPurchase = void 0;
const jackson_js_1 = require("jackson-js");
const transaction_1 = require("./transaction");
class ProductPurchase {
}
__decorate([
    (0, jackson_js_1.JsonProperty)()
], ProductPurchase.prototype, "id", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)()
], ProductPurchase.prototype, "sellerSku", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)()
], ProductPurchase.prototype, "quantity", void 0);
exports.ProductPurchase = ProductPurchase;
class PurchaseOrder {
    constructor() {
        this.productPurchases = [];
    }
}
__decorate([
    (0, jackson_js_1.JsonProperty)()
], PurchaseOrder.prototype, "id", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)()
], PurchaseOrder.prototype, "name", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)()
], PurchaseOrder.prototype, "notes", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)(),
    (0, jackson_js_1.JsonClassType)({ type: () => [String] })
], PurchaseOrder.prototype, "vectorType", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)(),
    (0, jackson_js_1.JsonClassType)({ type: () => [String] })
], PurchaseOrder.prototype, "status", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)(),
    (0, jackson_js_1.JsonClassType)({ type: () => [Date] })
], PurchaseOrder.prototype, "createdAt", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)(),
    (0, jackson_js_1.JsonClassType)({ type: () => [Array, [ProductPurchase]] })
], PurchaseOrder.prototype, "productPurchases", void 0);
exports.PurchaseOrder = PurchaseOrder;
class ProductPurchaseGraph extends ProductPurchase {
}
__decorate([
    (0, jackson_js_1.JsonProperty)(),
    (0, jackson_js_1.JsonClassType)({ type: () => [transaction_1.Transaction] })
], ProductPurchaseGraph.prototype, "productionExpense", void 0);
exports.ProductPurchaseGraph = ProductPurchaseGraph;
class PurchaseOrderGraph extends PurchaseOrder {
    constructor() {
        super();
        this.extraExpenses = [];
        this.productPurchases = [];
    }
}
__decorate([
    (0, jackson_js_1.JsonProperty)(),
    (0, jackson_js_1.JsonClassType)({ type: () => [transaction_1.Transaction] })
], PurchaseOrderGraph.prototype, "shippingExpense", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)(),
    (0, jackson_js_1.JsonClassType)({ type: () => [transaction_1.Transaction] })
], PurchaseOrderGraph.prototype, "dutyExpense", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)(),
    (0, jackson_js_1.JsonClassType)({ type: () => [transaction_1.Transaction] })
], PurchaseOrderGraph.prototype, "taxExpense", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)(),
    (0, jackson_js_1.JsonClassType)({ type: () => [Array, [transaction_1.Transaction]] })
], PurchaseOrderGraph.prototype, "extraExpenses", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)(),
    (0, jackson_js_1.JsonClassType)({ type: () => [Array, [ProductPurchaseGraph]] })
], PurchaseOrderGraph.prototype, "productPurchases", void 0);
exports.PurchaseOrderGraph = PurchaseOrderGraph;
//# sourceMappingURL=purchase_order.js.map