json ignore more elements
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user