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