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

com.liferay.commerce.price.CommerceOrderItemPrice Maven / Gradle / Ivy

There is a newer version: 87.0.0
Show newest version
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.commerce.price;

import com.liferay.commerce.currency.model.CommerceMoney;

import java.math.BigDecimal;

/**
 * @author Riccardo Alberti
 */
public class CommerceOrderItemPrice {

	public CommerceOrderItemPrice(CommerceMoney unitPrice) {
		_unitPrice = unitPrice;
	}

	public CommerceMoney getDiscountAmount() {
		return _discountAmount;
	}

	public BigDecimal getDiscountPercentage() {
		return _discountPercentage;
	}

	public BigDecimal getDiscountPercentageLevel1() {
		return _discountPercentageLevel1;
	}

	public BigDecimal getDiscountPercentageLevel2() {
		return _discountPercentageLevel2;
	}

	public BigDecimal getDiscountPercentageLevel3() {
		return _discountPercentageLevel3;
	}

	public BigDecimal getDiscountPercentageLevel4() {
		return _discountPercentageLevel4;
	}

	public CommerceMoney getFinalPrice() {
		return _finalPrice;
	}

	public CommerceMoney getPromoPrice() {
		return _promoPrice;
	}

	public CommerceMoney getUnitPrice() {
		return _unitPrice;
	}

	public boolean isPriceOnApplication() {
		return _priceOnApplication;
	}

	public void setDiscountAmount(CommerceMoney discountAmount) {
		_discountAmount = discountAmount;
	}

	public void setDiscountPercentage(BigDecimal discountPercentage) {
		_discountPercentage = discountPercentage;
	}

	public void setDiscountPercentageLevel1(
		BigDecimal discountPercentageLevel1) {

		_discountPercentageLevel1 = discountPercentageLevel1;
	}

	public void setDiscountPercentageLevel2(
		BigDecimal discountPercentageLevel2) {

		_discountPercentageLevel2 = discountPercentageLevel2;
	}

	public void setDiscountPercentageLevel3(
		BigDecimal discountPercentageLevel3) {

		_discountPercentageLevel3 = discountPercentageLevel3;
	}

	public void setDiscountPercentageLevel4(
		BigDecimal discountPercentageLevel4) {

		_discountPercentageLevel4 = discountPercentageLevel4;
	}

	public void setFinalPrice(CommerceMoney finalPrice) {
		_finalPrice = finalPrice;
	}

	public void setPriceOnApplication(boolean priceOnApplication) {
		_priceOnApplication = priceOnApplication;
	}

	public void setPromoPrice(CommerceMoney promoPrice) {
		_promoPrice = promoPrice;
	}

	public void setUnitPrice(CommerceMoney unitPrice) {
		_unitPrice = unitPrice;
	}

	private CommerceMoney _discountAmount;
	private BigDecimal _discountPercentage;
	private BigDecimal _discountPercentageLevel1;
	private BigDecimal _discountPercentageLevel2;
	private BigDecimal _discountPercentageLevel3;
	private BigDecimal _discountPercentageLevel4;
	private CommerceMoney _finalPrice;
	private boolean _priceOnApplication;
	private CommerceMoney _promoPrice;
	private CommerceMoney _unitPrice;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy