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) - added JSONIgnore for Products intra community supply, reverse charge and invoice's isValid (which rather means isComplete, by the way)
- 917?
2.19.0 2.19.0
======= =======

View File

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

View File

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