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

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

There is a newer version: 1.0.0-M26
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;

public class TaxedPrice extends Base {
    private final MonetaryAmount totalNet;
    private final MonetaryAmount totalGross;
    private final List taxPortions;

    @JsonCreator
    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