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

io.sphere.sdk.cartdiscounts.DiscountedLineItemPriceForQuantity 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;

public class DiscountedLineItemPriceForQuantity extends Base {
    private final Long quantity;
    private final DiscountedLineItemPrice discountedPrice;

    @JsonCreator
    private DiscountedLineItemPriceForQuantity(final DiscountedLineItemPrice discountedPrice, final Long quantity) {
        this.discountedPrice = discountedPrice;
        this.quantity = quantity;
    }

    public static DiscountedLineItemPriceForQuantity of(final DiscountedLineItemPrice discountedLineItemPrice, final long quantity) {
        return new DiscountedLineItemPriceForQuantity(discountedLineItemPrice, quantity);
    }

    public DiscountedLineItemPrice getDiscountedPrice() {
        return discountedPrice;
    }

    public Long getQuantity() {
        return quantity;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy