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

io.sphere.sdk.carts.TaxedPriceImpl Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy