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

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

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.cartdiscounts;

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

import javax.money.MonetaryAmount;

final class DiscountedLineItemPortionImpl extends Base implements DiscountedLineItemPortion {
    private final Reference discount;
    private final MonetaryAmount discountedAmount;

    @JsonCreator
    DiscountedLineItemPortionImpl(final Reference discount, final MonetaryAmount discountedAmount) {
        this.discount = discount;
        this.discountedAmount = discountedAmount;
    }

    public Reference getDiscount() {
        return discount;
    }

    public MonetaryAmount getDiscountedAmount() {
        return discountedAmount;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy