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

io.sphere.sdk.carts.ExternalLineItemTotalPriceImpl 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;

final class ExternalLineItemTotalPriceImpl extends Base implements ExternalLineItemTotalPrice {
    private final MonetaryAmount price;
    private final MonetaryAmount totalPrice;

    @JsonCreator
    public ExternalLineItemTotalPriceImpl(final MonetaryAmount price, final MonetaryAmount totalPrice) {
        this.price = price;
        this.totalPrice = totalPrice;
    }

    @Override
    public MonetaryAmount getPrice() {
        return price;
    }

    @Override
    public MonetaryAmount getTotalPrice() {
        return totalPrice;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy