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