Package com.adyen.model.tapi
Class PrintOutput
- java.lang.Object
-
- com.adyen.model.tapi.PrintOutput
-
public class PrintOutput extends Object
PrintOutput
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DOCUMENT_QUALIFIERstatic StringJSON_PROPERTY_INTEGRATED_PRINT_FLAGstatic StringJSON_PROPERTY_OUTPUT_CONTENTstatic StringJSON_PROPERTY_REQUIRED_SIGNATURE_FLAGstatic StringJSON_PROPERTY_RESPONSE_MODE
-
Constructor Summary
Constructors Constructor Description PrintOutput()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PrintOutputdocumentQualifier(DocumentQualifier documentQualifier)documentQualifierbooleanequals(Object o)Return true if this PrintOutput object is equal to o.static PrintOutputfromJson(String jsonString)Create an instance of PrintOutput given an JSON stringDocumentQualifiergetDocumentQualifier()Get documentQualifierMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.BooleangetIntegratedPrintFlag()Type of the print integrated in other prints.OutputContentgetOutputContent()Get outputContentBooleangetRequiredSignatureFlag()Indicates that the cardholder payment receipt requires a physical signature by the Customer.ResponseModegetResponseMode()Get responseModeinthashCode()PrintOutputincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.PrintOutputintegratedPrintFlag(Boolean integratedPrintFlag)Type of the print integrated in other prints.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.PrintOutputoutputContent(OutputContent outputContent)outputContentPrintOutputrequiredSignatureFlag(Boolean requiredSignatureFlag)Indicates that the cardholder payment receipt requires a physical signature by the Customer.PrintOutputresponseMode(ResponseMode responseMode)responseModevoidsetDocumentQualifier(DocumentQualifier documentQualifier)documentQualifiervoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetIntegratedPrintFlag(Boolean integratedPrintFlag)Type of the print integrated in other prints.voidsetOutputContent(OutputContent outputContent)outputContentvoidsetRequiredSignatureFlag(Boolean requiredSignatureFlag)Indicates that the cardholder payment receipt requires a physical signature by the Customer.voidsetResponseMode(ResponseMode responseMode)responseModeStringtoJson()Convert an instance of PrintOutput to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_DOCUMENT_QUALIFIER
public static final String JSON_PROPERTY_DOCUMENT_QUALIFIER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESPONSE_MODE
public static final String JSON_PROPERTY_RESPONSE_MODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INTEGRATED_PRINT_FLAG
public static final String JSON_PROPERTY_INTEGRATED_PRINT_FLAG
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REQUIRED_SIGNATURE_FLAG
public static final String JSON_PROPERTY_REQUIRED_SIGNATURE_FLAG
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OUTPUT_CONTENT
public static final String JSON_PROPERTY_OUTPUT_CONTENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
documentQualifier
public PrintOutput documentQualifier(DocumentQualifier documentQualifier)
documentQualifier- Parameters:
documentQualifier-- Returns:
- the current
PrintOutputinstance, allowing for method chaining
-
getDocumentQualifier
public DocumentQualifier getDocumentQualifier()
Get documentQualifier- Returns:
- documentQualifier
-
setDocumentQualifier
public void setDocumentQualifier(DocumentQualifier documentQualifier)
documentQualifier- Parameters:
documentQualifier-
-
responseMode
public PrintOutput responseMode(ResponseMode responseMode)
responseMode- Parameters:
responseMode-- Returns:
- the current
PrintOutputinstance, allowing for method chaining
-
getResponseMode
public ResponseMode getResponseMode()
Get responseMode- Returns:
- responseMode
-
setResponseMode
public void setResponseMode(ResponseMode responseMode)
responseMode- Parameters:
responseMode-
-
integratedPrintFlag
public PrintOutput integratedPrintFlag(Boolean integratedPrintFlag)
Type of the print integrated in other prints. Allows a separated printing (paper cut if available), or integration with the sale receipt or other print. If the printing is integrated, the response is always immediate, even if the `ResponseMode` is set to `PrintEnd`.- Parameters:
integratedPrintFlag- Type of the print integrated in other prints. Allows a separated printing (paper cut if available), or integration with the sale receipt or other print. If the printing is integrated, the response is always immediate, even if the `ResponseMode` is set to `PrintEnd`.- Returns:
- the current
PrintOutputinstance, allowing for method chaining
-
getIntegratedPrintFlag
public Boolean getIntegratedPrintFlag()
Type of the print integrated in other prints. Allows a separated printing (paper cut if available), or integration with the sale receipt or other print. If the printing is integrated, the response is always immediate, even if the `ResponseMode` is set to `PrintEnd`.- Returns:
- integratedPrintFlag Type of the print integrated in other prints. Allows a separated printing (paper cut if available), or integration with the sale receipt or other print. If the printing is integrated, the response is always immediate, even if the `ResponseMode` is set to `PrintEnd`.
-
setIntegratedPrintFlag
public void setIntegratedPrintFlag(Boolean integratedPrintFlag)
Type of the print integrated in other prints. Allows a separated printing (paper cut if available), or integration with the sale receipt or other print. If the printing is integrated, the response is always immediate, even if the `ResponseMode` is set to `PrintEnd`.- Parameters:
integratedPrintFlag- Type of the print integrated in other prints. Allows a separated printing (paper cut if available), or integration with the sale receipt or other print. If the printing is integrated, the response is always immediate, even if the `ResponseMode` is set to `PrintEnd`.
-
requiredSignatureFlag
public PrintOutput requiredSignatureFlag(Boolean requiredSignatureFlag)
Indicates that the cardholder payment receipt requires a physical signature by the Customer.- Parameters:
requiredSignatureFlag- Indicates that the cardholder payment receipt requires a physical signature by the Customer.- Returns:
- the current
PrintOutputinstance, allowing for method chaining
-
getRequiredSignatureFlag
public Boolean getRequiredSignatureFlag()
Indicates that the cardholder payment receipt requires a physical signature by the Customer.- Returns:
- requiredSignatureFlag Indicates that the cardholder payment receipt requires a physical signature by the Customer.
-
setRequiredSignatureFlag
public void setRequiredSignatureFlag(Boolean requiredSignatureFlag)
Indicates that the cardholder payment receipt requires a physical signature by the Customer.- Parameters:
requiredSignatureFlag- Indicates that the cardholder payment receipt requires a physical signature by the Customer.
-
outputContent
public PrintOutput outputContent(OutputContent outputContent)
outputContent- Parameters:
outputContent-- Returns:
- the current
PrintOutputinstance, allowing for method chaining
-
getOutputContent
public OutputContent getOutputContent()
Get outputContent- Returns:
- outputContent
-
setOutputContent
public void setOutputContent(OutputContent outputContent)
outputContent- Parameters:
outputContent-
-
includeNullValues
public PrintOutput includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this PrintOutput object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static PrintOutput fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PrintOutput given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PrintOutput
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PrintOutput
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PrintOutput to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-