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

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy