"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.LotUnit = exports.LotUnitLotId = exports.LotUnitLotIdSerializer = void 0;
const jackson_js_1 = require("jackson-js");
class LotUnitLotIdSerializer {
    static serialize(t) {
        return t === null || t === void 0 ? void 0 : t.id;
    }
    static deserialize(o) {
        return o ? new LotUnitLotId(o) : undefined;
    }
}
exports.LotUnitLotIdSerializer = LotUnitLotIdSerializer;
let LotUnitLotId = class LotUnitLotId {
    constructor(id) {
        this.id = id;
    }
};
__decorate([
    (0, jackson_js_1.JsonProperty)()
], LotUnitLotId.prototype, "id", void 0);
LotUnitLotId = __decorate([
    (0, jackson_js_1.JsonSerialize)({ using: LotUnitLotIdSerializer.serialize }),
    (0, jackson_js_1.JsonDeserialize)({ using: LotUnitLotIdSerializer.deserialize })
], LotUnitLotId);
exports.LotUnitLotId = LotUnitLotId;
class LotUnit {
    constructor() {
        this.dependencies = [];
    }
}
__decorate([
    (0, jackson_js_1.JsonProperty)()
], LotUnit.prototype, "id", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)()
], LotUnit.prototype, "sellerSku", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)()
], LotUnit.prototype, "orderId", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)()
], LotUnit.prototype, "provider", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)()
], LotUnit.prototype, "free", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)({ required: false }),
    (0, jackson_js_1.JsonClassType)({ type: () => [LotUnitLotId] })
], LotUnit.prototype, "lotId", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)(),
    (0, jackson_js_1.JsonClassType)({ type: () => [Array, [String]] })
], LotUnit.prototype, "dependencies", void 0);
__decorate([
    (0, jackson_js_1.JsonProperty)(),
    (0, jackson_js_1.JsonClassType)({ type: () => [Date] })
], LotUnit.prototype, "shippedAt", void 0);
exports.LotUnit = LotUnit;
//# sourceMappingURL=lot_unit.js.map