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;
};
import { JsonProperty, JsonClassType } from "jackson-js";
import { Transaction } from "./transaction";
export class ProductPurchase {
}
__decorate([
    JsonProperty()
], ProductPurchase.prototype, "id", void 0);
__decorate([
    JsonProperty()
], ProductPurchase.prototype, "bin", void 0);
__decorate([
    JsonProperty()
], ProductPurchase.prototype, "quantity", void 0);
export class PurchaseOrder {
    constructor() {
        this.productPurchases = [];
    }
}
__decorate([
    JsonProperty()
], PurchaseOrder.prototype, "id", void 0);
__decorate([
    JsonProperty()
], PurchaseOrder.prototype, "name", void 0);
__decorate([
    JsonProperty()
], PurchaseOrder.prototype, "notes", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [String] })
], PurchaseOrder.prototype, "vectorType", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [String] })
], PurchaseOrder.prototype, "status", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Date] })
], PurchaseOrder.prototype, "createdAt", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Array, [ProductPurchase]] })
], PurchaseOrder.prototype, "productPurchases", void 0);
export class ProductPurchaseGraph extends ProductPurchase {
}
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Transaction] })
], ProductPurchaseGraph.prototype, "productionExpense", void 0);
export class PurchaseOrderGraph extends PurchaseOrder {
    constructor() {
        super();
        this.extraExpenses = [];
        this.productPurchases = [];
    }
}
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Transaction] })
], PurchaseOrderGraph.prototype, "shippingExpense", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Transaction] })
], PurchaseOrderGraph.prototype, "dutyExpense", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Transaction] })
], PurchaseOrderGraph.prototype, "taxExpense", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Array, [Transaction]] })
], PurchaseOrderGraph.prototype, "extraExpenses", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Array, [ProductPurchaseGraph]] })
], PurchaseOrderGraph.prototype, "productPurchases", void 0);
//# sourceMappingURL=purchase_order.js.map