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

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

The newest version!
package io.sphere.sdk.carts;

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

import javax.money.MonetaryAmount;

@JsonDeserialize(as = ExternalLineItemTotalPriceImpl.class)
public interface ExternalLineItemTotalPrice {
    MonetaryAmount getPrice();

    MonetaryAmount getTotalPrice();

    static ExternalLineItemTotalPrice ofPriceAndTotalPrice(final MonetaryAmount price, final MonetaryAmount totalPrice) {
        return new ExternalLineItemTotalPriceImpl(price, totalPrice);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy