/
CommerceOrderItem.java
120 lines (91 loc) · 3.83 KB
/
CommerceOrderItem.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
/**
* 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.model;
import com.liferay.portal.kernel.annotation.ImplementationClassName;
import com.liferay.portal.kernel.model.PersistedModel;
import com.liferay.portal.kernel.util.Accessor;
import org.osgi.annotation.versioning.ProviderType;
/**
* The extended model interface for the CommerceOrderItem service. Represents a row in the "CommerceOrderItem" database table, with each column mapped to a property of this class.
*
* @author Alessio Antonio Rendina
* @see CommerceOrderItemModel
* @generated
*/
@ImplementationClassName(
"com.liferay.commerce.model.impl.CommerceOrderItemImpl"
)
@ProviderType
public interface CommerceOrderItem
extends CommerceOrderItemModel, PersistedModel {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this interface directly. Add methods to <code>com.liferay.commerce.model.impl.CommerceOrderItemImpl</code> and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/
public static final Accessor<CommerceOrderItem, Long>
COMMERCE_ORDER_ITEM_ID_ACCESSOR =
new Accessor<CommerceOrderItem, Long>() {
@Override
public Long get(CommerceOrderItem commerceOrderItem) {
return commerceOrderItem.getCommerceOrderItemId();
}
@Override
public Class<Long> getAttributeClass() {
return Long.class;
}
@Override
public Class<CommerceOrderItem> getTypeClass() {
return CommerceOrderItem.class;
}
};
public com.liferay.commerce.product.model.CPInstance fetchCPInstance();
public com.liferay.commerce.product.model.CPMeasurementUnit
fetchCPMeasurementUnit();
public com.liferay.commerce.product.model.CProduct fetchCProduct();
public java.util.List<CommerceOrderItem> getChildCommerceOrderItems();
public CommerceOrder getCommerceOrder()
throws com.liferay.portal.kernel.exception.PortalException;
public com.liferay.commerce.product.model.CPDefinition getCPDefinition()
throws com.liferay.portal.kernel.exception.PortalException;
public long getCPDefinitionId();
/**
* @deprecated As of Athanasius (7.3.x)
*/
@Deprecated
public com.liferay.commerce.product.model.CPInstance getCPInstance()
throws com.liferay.portal.kernel.exception.PortalException;
/**
* @deprecated As of Athanasius (7.3.x)
*/
@Deprecated
public com.liferay.commerce.product.model.CProduct getCProduct()
throws com.liferay.portal.kernel.exception.PortalException;
public com.liferay.commerce.currency.model.CommerceMoney
getDiscountAmountMoney()
throws com.liferay.portal.kernel.exception.PortalException;
public com.liferay.commerce.currency.model.CommerceMoney
getDiscountWithTaxAmountMoney()
throws com.liferay.portal.kernel.exception.PortalException;
public com.liferay.commerce.currency.model.CommerceMoney
getFinalPriceMoney()
throws com.liferay.portal.kernel.exception.PortalException;
public com.liferay.commerce.currency.model.CommerceMoney
getFinalPriceWithTaxAmountMoney()
throws com.liferay.portal.kernel.exception.PortalException;
public long getParentCommerceOrderItemCPDefinitionId();
public com.liferay.commerce.currency.model.CommerceMoney
getPromoPriceMoney()
throws com.liferay.portal.kernel.exception.PortalException;
public com.liferay.commerce.currency.model.CommerceMoney
getPromoPriceWithTaxAmountMoney()
throws com.liferay.portal.kernel.exception.PortalException;
public com.liferay.commerce.currency.model.CommerceMoney getUnitPriceMoney()
throws com.liferay.portal.kernel.exception.PortalException;
public com.liferay.commerce.currency.model.CommerceMoney
getUnitPriceWithTaxAmountMoney()
throws com.liferay.portal.kernel.exception.PortalException;
public boolean hasParentCommerceOrderItem();
}