io.sphere.sdk.carts.TaxedPriceImpl Maven / Gradle / Ivy
The newest version!
package io.sphere.sdk.carts;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.Base;
import javax.money.MonetaryAmount;
import java.util.List;
final class TaxedPriceImpl extends Base implements TaxedPrice {
private final MonetaryAmount totalNet;
private final MonetaryAmount totalGross;
private final List taxPortions;
@JsonCreator
TaxedPriceImpl(final MonetaryAmount totalNet, final MonetaryAmount totalGross, final List taxPortions) {
this.totalNet = totalNet;
this.totalGross = totalGross;
this.taxPortions = taxPortions;
}
public MonetaryAmount getTotalNet() {
return totalNet;
}
public MonetaryAmount getTotalGross() {
return totalGross;
}
public List getTaxPortions() {
return taxPortions;
}
}