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