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

io.sphere.sdk.cartdiscounts.DiscountedLineItemPrice Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.Base;

import javax.money.MonetaryAmount;
import java.util.List;

public class DiscountedLineItemPrice extends Base {
    private final MonetaryAmount value;
    private final List includedDiscounts;

    @JsonCreator
    private DiscountedLineItemPrice(final MonetaryAmount value, final List includedDiscounts) {
        this.includedDiscounts = includedDiscounts;
        this.value = value;
    }

    public static DiscountedLineItemPrice of(final MonetaryAmount money, final List includedDiscounts) {
        return new DiscountedLineItemPrice(money, includedDiscounts);
    }

    public List getIncludedDiscounts() {
        return includedDiscounts;
    }

    public MonetaryAmount getValue() {
        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy