import { APP_ID } from '~/constants/api.constants';
import { BaseInput } from '~/core/entities/input/baseInput';

export class WarehouseItemReservationInsert extends BaseInput {
    /* tslint:disable variable-name */
    ID_Login: string;
    ID: number;
    ID_Unit: number;
    ID_User: number;
    ID_Warehouse: number;
    ID_WarehouseItem: number;
    ID_UnitOrigin: number;
    EstimatedStartDate: string;
    EstimatedEndDate: string;
    Person: string;
    Phone: string;
    Email: string;

    wrapper: string;

    /* tslint:enable variable-name */

    constructor(appId = APP_ID, loginId = null, unitId = null, userId = null, warehouseId = null, warItemId = null, unitOrigId = null,
                startDate = null, endDate = undefined, person = null, phone = null, email = null) {
        super(appId);
        this.ID_Login = loginId;
        this.ID = 1;
        this.ID_Unit = unitId;
        this.ID_User = userId;
        this.ID_Warehouse = warehouseId;
        this.ID_WarehouseItem = warItemId;
        this.ID_UnitOrigin = unitOrigId;
        this.EstimatedStartDate = startDate;
        this.EstimatedEndDate = endDate;
        this.Person = person;
        this.Phone = phone;
        this.Email = email;

        this.wrapper = 'warehouseItemReservation';
    }
}
