Package com.adyen.model.tapi
Class PaymentReceipt
- java.lang.Object
-
- com.adyen.model.tapi.PaymentReceipt
-
public class PaymentReceipt extends Object
Customer or Merchant payment receipt. If the payment receipts are printed by the Sale system and the POI or the Sale does not implement the Print exchange (Basic profile).
-
-
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_FLAG
-
Constructor Summary
Constructors Constructor Description PaymentReceipt()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentReceiptdocumentQualifier(DocumentQualifier documentQualifier)documentQualifierbooleanequals(Object o)Return true if this PaymentReceipt object is equal to o.static PaymentReceiptfromJson(String jsonString)Create an instance of PaymentReceipt 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 to other prints.OutputContentgetOutputContent()Get outputContentBooleangetRequiredSignatureFlag()Indicate that the cardholder payment receipt requires a physical signature by the Customer.inthashCode()PaymentReceiptincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.PaymentReceiptintegratedPrintFlag(Boolean integratedPrintFlag)Type of the print integrated to other prints.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.PaymentReceiptoutputContent(OutputContent outputContent)outputContentPaymentReceiptrequiredSignatureFlag(Boolean requiredSignatureFlag)Indicate that the cardholder payment receipt requires a physical signature by the Customer.voidsetDocumentQualifier(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 to other prints.voidsetOutputContent(OutputContent outputContent)outputContentvoidsetRequiredSignatureFlag(Boolean requiredSignatureFlag)Indicate that the cardholder payment receipt requires a physical signature by the Customer.StringtoJson()Convert an instance of PaymentReceipt 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_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 PaymentReceipt documentQualifier(DocumentQualifier documentQualifier)
documentQualifier- Parameters:
documentQualifier-- Returns:
- the current
PaymentReceiptinstance, allowing for method chaining
-
getDocumentQualifier
public DocumentQualifier getDocumentQualifier()
Get documentQualifier- Returns:
- documentQualifier
-
setDocumentQualifier
public void setDocumentQualifier(DocumentQualifier documentQualifier)
documentQualifier- Parameters:
documentQualifier-
-
integratedPrintFlag
public PaymentReceipt integratedPrintFlag(Boolean integratedPrintFlag)
Type of the print integrated to other prints.- Parameters:
integratedPrintFlag- Type of the print integrated to other prints.- Returns:
- the current
PaymentReceiptinstance, allowing for method chaining
-
getIntegratedPrintFlag
public Boolean getIntegratedPrintFlag()
Type of the print integrated to other prints.- Returns:
- integratedPrintFlag Type of the print integrated to other prints.
-
setIntegratedPrintFlag
public void setIntegratedPrintFlag(Boolean integratedPrintFlag)
Type of the print integrated to other prints.- Parameters:
integratedPrintFlag- Type of the print integrated to other prints.
-
requiredSignatureFlag
public PaymentReceipt requiredSignatureFlag(Boolean requiredSignatureFlag)
Indicate that the cardholder payment receipt requires a physical signature by the Customer.- Parameters:
requiredSignatureFlag- Indicate that the cardholder payment receipt requires a physical signature by the Customer.- Returns:
- the current
PaymentReceiptinstance, allowing for method chaining
-
getRequiredSignatureFlag
public Boolean getRequiredSignatureFlag()
Indicate that the cardholder payment receipt requires a physical signature by the Customer.- Returns:
- requiredSignatureFlag Indicate that the cardholder payment receipt requires a physical signature by the Customer.
-
setRequiredSignatureFlag
public void setRequiredSignatureFlag(Boolean requiredSignatureFlag)
Indicate that the cardholder payment receipt requires a physical signature by the Customer.- Parameters:
requiredSignatureFlag- Indicate that the cardholder payment receipt requires a physical signature by the Customer.
-
outputContent
public PaymentReceipt outputContent(OutputContent outputContent)
outputContent- Parameters:
outputContent-- Returns:
- the current
PaymentReceiptinstance, allowing for method chaining
-
getOutputContent
public OutputContent getOutputContent()
Get outputContent- Returns:
- outputContent
-
setOutputContent
public void setOutputContent(OutputContent outputContent)
outputContent- Parameters:
outputContent-
-
includeNullValues
public PaymentReceipt 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 PaymentReceipt 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 PaymentReceipt fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentReceipt given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentReceipt
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentReceipt
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentReceipt to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-