deprecate correctly

This commit is contained in:
Jochen Stärk
2026-01-08 14:32:37 +01:00
parent 6c5f84b55b
commit 3f433c6868
2 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,12 @@
- 990
- 859
- 992
- 994
- 999
- 997
- 1000
- deprecate itemTotalAllowances instead of itemAllowances oder itemCharges
-
2.21.0 2.21.0
======= =======
2025-12-18 2025-12-18

View File

@@ -44,7 +44,6 @@ public interface IZUGFeRDExportableItem extends IAbsoluteValueProvider{
* item level discounts * item level discounts
* @return array of the discounts on a single item * @return array of the discounts on a single item
*/ */
@Deprecated
default IZUGFeRDAllowanceCharge[] getItemAllowances() { default IZUGFeRDAllowanceCharge[] getItemAllowances() {
if (getProduct()!=null) { if (getProduct()!=null) {
return getProduct().getAllowances(); return getProduct().getAllowances();
@@ -56,7 +55,6 @@ public interface IZUGFeRDExportableItem extends IAbsoluteValueProvider{
* item level price additions * item level price additions
* @return array of the additional charges on the item * @return array of the additional charges on the item
*/ */
@Deprecated
default IZUGFeRDAllowanceCharge[] getItemCharges() { default IZUGFeRDAllowanceCharge[] getItemCharges() {
if (getProduct()!=null) { if (getProduct()!=null) {
return getProduct().getCharges(); return getProduct().getCharges();
@@ -103,6 +101,7 @@ public interface IZUGFeRDExportableItem extends IAbsoluteValueProvider{
BigDecimal getPrice(); BigDecimal getPrice();
@Override @Override
@Deprecated
default BigDecimal getValue() { default BigDecimal getValue() {
return getPrice(); return getPrice();
} }
@@ -181,6 +180,7 @@ public interface IZUGFeRDExportableItem extends IAbsoluteValueProvider{
* *
* @return the real item lecel SpecifiedTradeAllowanceCharges * @return the real item lecel SpecifiedTradeAllowanceCharges
*/ */
@Deprecated
default IZUGFeRDAllowanceCharge[] getItemTotalAllowances() { default IZUGFeRDAllowanceCharge[] getItemTotalAllowances() {
return null; return null;
} }