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 { JsonAlias, JsonClassType, JsonProperty } from "jackson-js";
import { Offer } from "./offer";
export var ItemCondition;
(function (ItemCondition) {
    ItemCondition["NEW"] = "NEW";
    ItemCondition["USED"] = "USED";
})(ItemCondition || (ItemCondition = {}));
export var ItemVariant;
(function (ItemVariant) {
    ItemVariant["PARENT"] = "PARENT";
    ItemVariant["CHILD"] = "CHILD";
})(ItemVariant || (ItemVariant = {}));
export class Item {
    constructor(sellerSku, providerId, condition) {
        this.sellerSku = sellerSku;
        this.providerId = providerId;
        this.condition = condition;
    }
}
__decorate([
    JsonProperty()
], Item.prototype, "sellerSku", void 0);
__decorate([
    JsonProperty()
], Item.prototype, "providerId", void 0);
__decorate([
    JsonProperty()
], Item.prototype, "condition", void 0);
__decorate([
    JsonProperty()
], Item.prototype, "variant", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [ItemSummary] }),
    JsonAlias({ values: ["summary", "description"] })
], Item.prototype, "summary", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Array, [Offer]] })
], Item.prototype, "offers", void 0);
export class ItemSummary {
    constructor(image, description, brand, parentProviderId) {
        this.image = image;
        this.description = description;
        this.brand = brand;
        this.parentProviderId = parentProviderId;
    }
}
__decorate([
    JsonProperty()
], ItemSummary.prototype, "brand", void 0);
__decorate([
    JsonProperty()
], ItemSummary.prototype, "parentProviderId", void 0);
__decorate([
    JsonProperty()
], ItemSummary.prototype, "image", void 0);
__decorate([
    JsonProperty()
], ItemSummary.prototype, "description", void 0);
//# sourceMappingURL=item.js.map