Skip to content

Commit 3f433c6

Browse files
committed
deprecate correctly
1 parent 6c5f84b commit 3f433c6

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

History.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
- 990
2+
- 859
3+
- 992
4+
- 994
5+
- 999
6+
- 997
7+
- 1000
8+
- deprecate itemTotalAllowances instead of itemAllowances oder itemCharges
9+
-
110
2.21.0
211
=======
312
2025-12-18

library/src/main/java/org/mustangproject/ZUGFeRD/IZUGFeRDExportableItem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public interface IZUGFeRDExportableItem extends IAbsoluteValueProvider{
4444
* item level discounts
4545
* @return array of the discounts on a single item
4646
*/
47-
@Deprecated
4847
default IZUGFeRDAllowanceCharge[] getItemAllowances() {
4948
if (getProduct()!=null) {
5049
return getProduct().getAllowances();
@@ -56,7 +55,6 @@ default IZUGFeRDAllowanceCharge[] getItemAllowances() {
5655
* item level price additions
5756
* @return array of the additional charges on the item
5857
*/
59-
@Deprecated
6058
default IZUGFeRDAllowanceCharge[] getItemCharges() {
6159
if (getProduct()!=null) {
6260
return getProduct().getCharges();
@@ -103,6 +101,7 @@ default String getBuyerOrderReferencedDocumentLineID() {
103101
BigDecimal getPrice();
104102

105103
@Override
104+
@Deprecated
106105
default BigDecimal getValue() {
107106
return getPrice();
108107
}
@@ -181,6 +180,7 @@ default Date getDetailedDeliveryPeriodTo() {
181180
*
182181
* @return the real item lecel SpecifiedTradeAllowanceCharges
183182
*/
183+
@Deprecated
184184
default IZUGFeRDAllowanceCharge[] getItemTotalAllowances() {
185185
return null;
186186
}

0 commit comments

Comments
 (0)