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

io.sphere.client.shop.model.TaxPortion Maven / Gradle / Ivy

There is a newer version: 0.72.1
Show newest version
package io.sphere.client.shop.model;

import io.sphere.client.model.Money;

import javax.annotation.Nonnull;

/** Represents the tax portion amount of a specific tax rate in a {@link TaxedPrice}.
 *
 * 

For example, a 5% tax for gross price of 200 EUR is represented by a TaxPortion(0.05, 10 EUR). */ public class TaxPortion { private double rate; @Nonnull private Money amount; // for JSON deserializer private TaxPortion() {} /** The tax rate of this portion. */ public double getRate() { return rate; } /** The absolute amount this tax portion evaluates to. */ @Nonnull public Money getAmount() { return amount; } @Override public String toString() { return "TaxPortion{" + "rate=" + rate + ", amount=" + amount + '}'; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy