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: 2.16.0
Show newest version
package io.sphere.sdk.carts;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

import javax.annotation.Nullable;
import javax.money.MonetaryAmount;

@JsonDeserialize(as = TaxPortionImpl.class)
public interface TaxPortion {

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

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

    Double getRate();

    MonetaryAmount getAmount();

    @Nullable
    String getName();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy