public class Context extends java.lang.Object implements java.io.Serializable
Grouping of the properties of the message.
Constructor and Description |
---|
Context()
Instantiates a new context.
|
Context(ConformanceLevel conformanceLevel)
Instantiates a new context with a latest ZUGFeRD profile version.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBusinessProcess()
Gets the business process.
|
Profile |
getGuideline()
Gets the guideline or profile of the invoice
|
boolean |
isTest()
Checks if that invoice is for test purposes only and should not be processed in the target system.
|
Context |
setBusinessProcess(java.lang.String businessProcess)
Sets the business process.
|
Context |
setGuideline(Profile guideline)
Sets the guideline or profile of the invoice
|
Context |
setNotTest()
Flags the invoice such that it should be processed in the target system.
|
Context |
setTest()
Flags the invoice such that it should not be processed in the target system.
|
public Context()
Instantiates a new context.
public Context(ConformanceLevel conformanceLevel)
Instantiates a new context with a latest ZUGFeRD profile version.
conformanceLevel
- the profile@Extended public java.lang.String getBusinessProcess()
Gets the business process.
production Materials, other Materials, freight Invoices
@Basic @NotNull public Profile getGuideline()
Gets the guideline or profile of the invoice
urn:ferd:CrossIndustryDocument:invoice:1p0:extended
@Basic public boolean isTest()
Checks if that invoice is for test purposes only and should not be processed in the target system.
false
public Context setBusinessProcess(java.lang.String businessProcess)
Sets the business process.
production Materials, other Materials, freight Invoices
businessProcess
- the new business processpublic Context setGuideline(Profile guideline)
Sets the guideline or profile of the invoice
urn:ferd:CrossIndustryDocument:invoice:1p0:extended
guideline
- the new profilepublic Context setNotTest()
Flags the invoice such that it should be processed in the target system.
The sales tax liability does arise. This flag is used in particular in the introductory period of new business relationships.
false
Copyright © 2014-2018 Konik.io. All Rights Reserved.