com.liferay.commerce.discount.internal.target.ApplyToSubtotalCommerceDiscountTarget Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.commerce.discount.service
Show all versions of com.liferay.commerce.discount.service
Liferay Commerce Discount Service
The 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.discount.internal.target;
import com.liferay.commerce.discount.constants.CommerceDiscountConstants;
import com.liferay.commerce.discount.target.CommerceDiscountTarget;
import org.osgi.service.component.annotations.Component;
/**
* @author Marco Leo
* @author Alessio Antonio Rendina
*/
@Component(
property = {
"commerce.discount.target.key=" + CommerceDiscountConstants.TARGET_SUBTOTAL,
"commerce.discount.target.order:Integer=40"
},
service = CommerceDiscountTarget.class
)
public class ApplyToSubtotalCommerceDiscountTarget
extends BaseCommerceDiscountTarget {
@Override
public String getKey() {
return CommerceDiscountConstants.TARGET_SUBTOTAL;
}
@Override
public Type getType() {
return Type.APPLY_TO_SUBTOTAL;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy