io.sphere.sdk.taxcategories.TaxRate Maven / Gradle / Ivy
package io.sphere.sdk.taxcategories;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.neovisionaries.i18n.CountryCode;
import java.util.Optional;
@JsonDeserialize(as=TaxRateImpl.class)
public interface TaxRate {
/**
* The id is created by the backend, so will only be present if fetched from the backend.
* @return the id or absent
*/
Optional getId();
String getName();
double getAmount();
boolean isIncludedInPrice();
CountryCode getCountry();
Optional getState();
public static TaxRate of(final String name, final double amount, final boolean includedInPrice, final CountryCode country) {
return TaxRateBuilder.of(name, amount, includedInPrice, country).build();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy