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, JsonAlias } from "jackson-js";
export var OfferStatus;
(function (OfferStatus) {
    OfferStatus["ACTIVE"] = "ACTIVE";
    OfferStatus["ISSUE"] = "ISSUE";
    OfferStatus["INACTIVE"] = "INACTIVE";
    OfferStatus["INCOMPLETE"] = "INCOMPLETE";
    OfferStatus["CANCELED"] = "CANCELED";
})(OfferStatus || (OfferStatus = {}));
export class Offer {
    constructor(provider, marketplace, status) {
        this.provider = provider;
        this.marketplace = marketplace;
        this.status = status;
    }
}
__decorate([
    JsonProperty()
], Offer.prototype, "provider", void 0);
__decorate([
    JsonProperty()
], Offer.prototype, "status", void 0);
__decorate([
    JsonProperty()
], Offer.prototype, "marketplace", void 0);
__decorate([
    JsonProperty()
], Offer.prototype, "reason", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [OfferFinance] }),
    JsonAlias({ values: ['finance'] })
], Offer.prototype, "finance", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Array, [OfferFinance]] }),
    JsonAlias({ values: ['financeHistory'] })
], Offer.prototype, "financeHistory", void 0);
export class OfferFinance {
    constructor(tag, date, amount, currency) {
        this.tag = tag;
        this.date = date;
        this.amount = amount;
        this.currency = currency;
    }
}
__decorate([
    JsonProperty()
], OfferFinance.prototype, "tag", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Date] })
], OfferFinance.prototype, "date", void 0);
__decorate([
    JsonProperty()
], OfferFinance.prototype, "amount", void 0);
__decorate([
    JsonProperty()
], OfferFinance.prototype, "currency", void 0);
//# sourceMappingURL=offer.js.map