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 { JsonClassType, JsonProperty } from "jackson-js";
import { FinancialEntry } from "../../dto/financial_entry";
export class OrderItemFinancial {
    constructor(orderItemId, rootEntity) {
        this.orderItemId = orderItemId;
        this.rootEntity = rootEntity;
        this.financialEntries = [];
    }
}
__decorate([
    JsonProperty()
], OrderItemFinancial.prototype, "orderItemId", void 0);
__decorate([
    JsonProperty()
], OrderItemFinancial.prototype, "rootEntity", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Array, [FinancialEntry]] })
], OrderItemFinancial.prototype, "financialEntries", void 0);
export class OrderFinancial {
    constructor(orderId, provider) {
        this.provider = provider;
        this.orderId = orderId;
        this.orderItems = [];
    }
    push(item) {
        this.orderItems.push(item);
    }
}
__decorate([
    JsonProperty()
], OrderFinancial.prototype, "orderId", void 0);
__decorate([
    JsonProperty()
], OrderFinancial.prototype, "provider", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Array, [OrderItemFinancial]] })
], OrderFinancial.prototype, "orderItems", void 0);
//# sourceMappingURL=financial.js.map