package de.votian.services.dto;

import de.votian.services.entity.Job;
import de.votian.services.entity.JobPrice;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class JobPricingResultDto {

    private Job job;
    private List<JobPrice> prices = new ArrayList<>();
    private List<JobTourServiceDraftRowDto> tourServices = new ArrayList<>();
    private BigDecimal discountRate;
    private BigDecimal selfServiceDiscount;
    private BigDecimal baseServicePrice;
    private BigDecimal automaticStreetServicePrice;
    private boolean servicePriceDiscountApplied;

    public Job getJob() {
        return job;
    }

    public void setJob(Job job) {
        this.job = job;
    }

    public List<JobPrice> getPrices() {
        return prices;
    }

    public void setPrices(List<JobPrice> prices) {
        this.prices = prices != null ? prices : new ArrayList<>();
    }

    public List<JobTourServiceDraftRowDto> getTourServices() {
        return tourServices;
    }

    public void setTourServices(List<JobTourServiceDraftRowDto> tourServices) {
        this.tourServices = tourServices != null ? tourServices : new ArrayList<>();
    }

    public BigDecimal getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(BigDecimal discountRate) {
        this.discountRate = discountRate;
    }

    public BigDecimal getSelfServiceDiscount() {
        return selfServiceDiscount;
    }

    public void setSelfServiceDiscount(BigDecimal selfServiceDiscount) {
        this.selfServiceDiscount = selfServiceDiscount;
    }

    public BigDecimal getBaseServicePrice() {
        return baseServicePrice;
    }

    public void setBaseServicePrice(BigDecimal baseServicePrice) {
        this.baseServicePrice = baseServicePrice;
    }

    public BigDecimal getAutomaticStreetServicePrice() {
        return automaticStreetServicePrice;
    }

    public void setAutomaticStreetServicePrice(BigDecimal automaticStreetServicePrice) {
        this.automaticStreetServicePrice = automaticStreetServicePrice;
    }

    public boolean isServicePriceDiscountApplied() {
        return servicePriceDiscountApplied;
    }

    public void setServicePriceDiscountApplied(boolean servicePriceDiscountApplied) {
        this.servicePriceDiscountApplied = servicePriceDiscountApplied;
    }
}
