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

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

There is a newer version: 1.0.0-M12
Show newest version
package io.sphere.sdk.carts;

import io.sphere.sdk.models.Base;

import javax.money.MonetaryAmount;

public class TaxPortion extends Base {
    private final double rate;
    private final MonetaryAmount amount;

    private TaxPortion(final double rate, final MonetaryAmount amount) {
        this.rate = rate;
        this.amount = amount;
    }

    public static TaxPortion of(final double rate, final MonetaryAmount amount) {
        return new TaxPortion(rate, amount);
    }

    public double getRate() {
        return rate;
    }

    public MonetaryAmount getAmount() {
        return amount;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy