All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.taxcategories.TaxRateImpl Maven / Gradle / Ivy

There is a newer version: 1.0.0-M12
Show newest version
package io.sphere.sdk.taxcategories;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.neovisionaries.i18n.CountryCode;
import io.sphere.sdk.models.Base;

import java.util.Optional;

class TaxRateImpl extends Base implements TaxRate {
    private final Optional id;
    private final String name;
    private final double amount;
    private final boolean includedInPrice;
    private final CountryCode country;
    private final Optional state;

    @JsonCreator
    TaxRateImpl(final Optional id, final String name, final double amount, final boolean includedInPrice,
                final CountryCode country, final Optional state) {
        this.id = id;
        this.name = name;
        this.amount = amount;
        this.includedInPrice = includedInPrice;
        this.country = country;
        this.state = state;
    }

    @Override
    public Optional getId() {
        return id;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public double getAmount() {
        return amount;
    }

    @Override
    public boolean isIncludedInPrice() {
        return includedInPrice;
    }

    @Override
    public CountryCode getCountry() {
        return country;
    }

    @Override
    public Optional getState() {
        return state;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy