json ignoring some attributes
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
- added JSONIgnore for Products intra community supply, reverse charge and invoice's isValid (which rather means isComplete, by the way)
|
||||||
|
|
||||||
2.19.0
|
2.19.0
|
||||||
=======
|
=======
|
||||||
2025-08-12
|
2025-08-12
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ package org.mustangproject;
|
|||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
import org.mustangproject.ZUGFeRD.*;
|
import org.mustangproject.ZUGFeRD.*;
|
||||||
import org.mustangproject.ZUGFeRD.model.DocumentCodeTypeConstants;
|
import org.mustangproject.ZUGFeRD.model.DocumentCodeTypeConstants;
|
||||||
@@ -754,6 +755,7 @@ public class Invoice implements IExportableTransaction {
|
|||||||
* checks if all required items are set in order to be able to export it
|
* checks if all required items are set in order to be able to export it
|
||||||
* @return true if all required items are set
|
* @return true if all required items are set
|
||||||
*/
|
*/
|
||||||
|
@JsonIgnore
|
||||||
public boolean isValid() {
|
public boolean isValid() {
|
||||||
return (dueDate != null) && (sender != null) && (sender.getTaxID() != null) && (sender.getVATID() != null) && (recipient != null);
|
return (dueDate != null) && (sender != null) && (sender.getTaxID() != null) && (sender.getVATID() != null) && (recipient != null);
|
||||||
//contact
|
//contact
|
||||||
|
|||||||
@@ -214,11 +214,14 @@ public class Product implements IZUGFeRDExportableProduct {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
@Override
|
@Override
|
||||||
public boolean isReverseCharge() {
|
public boolean isReverseCharge() {
|
||||||
return isReverseCharge;
|
return isReverseCharge;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@JsonIgnore
|
||||||
@Override
|
@Override
|
||||||
public boolean isIntraCommunitySupply() {
|
public boolean isIntraCommunitySupply() {
|
||||||
return isIntraCommunitySupply;
|
return isIntraCommunitySupply;
|
||||||
|
|||||||
Reference in New Issue
Block a user