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 } from "jackson-js";
import { FinancialEntryType } from "./financial_entry_type";
import { OrderItemStatus } from "./order";
import { Return } from "./return";
import { Product } from "./product";
export class FinancialSaleEntry {
}
__decorate([
    JsonProperty()
], FinancialSaleEntry.prototype, "amount", void 0);
__decorate([
    JsonProperty()
], FinancialSaleEntry.prototype, "currency", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [FinancialEntryType] })
], FinancialSaleEntry.prototype, "financialEntryType", void 0);
export class Sale {
}
__decorate([
    JsonProperty()
], Sale.prototype, "id", void 0);
__decorate([
    JsonProperty()
], Sale.prototype, "provider", void 0);
__decorate([
    JsonProperty()
], Sale.prototype, "fulfillmentChannel", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Date] })
], Sale.prototype, "purchaseDate", void 0);
__decorate([
    JsonProperty()
], Sale.prototype, "quantity", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Array, [SaleOrderItem]] })
], Sale.prototype, "items", void 0);
__decorate([
    JsonProperty()
], Sale.prototype, "quantityReturned", void 0);
__decorate([
    JsonProperty()
], Sale.prototype, "status", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Object] })
], Sale.prototype, "buyer", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Object] })
], Sale.prototype, "shippingAddress", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Object] })
], Sale.prototype, "attributes", void 0);
__decorate([
    JsonProperty()
], Sale.prototype, "marketplace", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Array, [FinancialSaleEntry]] })
], Sale.prototype, "entries", void 0);
export class SalesList {
}
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Array, [Sale]] })
], SalesList.prototype, "sales", void 0);
__decorate([
    JsonProperty()
], SalesList.prototype, "totalCount", void 0);
export class SaleOrderItem {
}
__decorate([
    JsonProperty()
], SaleOrderItem.prototype, "id", void 0);
__decorate([
    JsonProperty()
], SaleOrderItem.prototype, "sellerSku", void 0);
__decorate([
    JsonProperty()
], SaleOrderItem.prototype, "productId", void 0);
__decorate([
    JsonProperty()
], SaleOrderItem.prototype, "currentStatus", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Product] })
], SaleOrderItem.prototype, "product", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Array, [OrderItemStatus]] || [OrderItemStatus] })
], SaleOrderItem.prototype, "statusHistory", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Array, [FinancialSaleEntry]] })
], SaleOrderItem.prototype, "entries", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Return] })
], SaleOrderItem.prototype, "return", void 0);
export class SalesOrderItemList {
}
__decorate([
    JsonProperty()
], SalesOrderItemList.prototype, "orderId", void 0);
__decorate([
    JsonProperty(),
    JsonClassType({ type: () => [Array, [SaleOrderItem]] })
], SalesOrderItemList.prototype, "items", void 0);
__decorate([
    JsonProperty()
], SalesOrderItemList.prototype, "totalCount", void 0);
//# sourceMappingURL=sale.js.map