json ignore more elements

This commit is contained in:
jstaerk
2025-08-20 16:32:30 +02:00
parent 7813f2db59
commit 4876c3180a
3 changed files with 9 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
- added JSONIgnore for Products intra community supply, reverse charge and invoice's isValid (which rather means isComplete, by the way)
- 917?
2.19.0
=======

View File

@@ -394,24 +394,29 @@ public class Invoice implements IExportableTransaction {
return this;
}
@JsonIgnore
@Override
public String getOwnStreet() {
return sender.getStreet();
}
@JsonIgnore
@Override
public String getOwnZIP() {
return sender.getZIP();
}
@JsonIgnore
@Override
public String getOwnLocation() {
return sender.getLocation();
}
@JsonIgnore
@Override
public String getOwnCountry() {
return sender.getCountry();

View File

@@ -34,6 +34,7 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.mustangproject.FileAttachment;
import org.mustangproject.IncludedNote;
import org.mustangproject.ReferencedDocument;
@@ -181,6 +182,7 @@ public interface IExportableTransaction {
*
* @return Tax ID (not VAT ID) of the sender
*/
@JsonIgnore
default String getOwnTaxID() {
if (getSender() != null) {
return getSender().getTaxID();
@@ -194,6 +196,7 @@ public interface IExportableTransaction {
*
* @return VAT ID (Umsatzsteueridentifikationsnummer) of the sender
*/
@JsonIgnore
default String getOwnVATID() {
if (getSender() != null) {
return getSender().getVATID();