Package com.adyen.model.tapi
Class TransactionStatusRequest
- java.lang.Object
-
- com.adyen.model.tapi.TransactionStatusRequest
-
public class TransactionStatusRequest extends Object
Content of the TransactionStatus Request message. It conveys Information requested for status of the last or current Payment, Loyalty or Reversal transaction.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_DOCUMENT_QUALIFIERstatic StringJSON_PROPERTY_MESSAGE_REFERENCEstatic StringJSON_PROPERTY_RECEIPT_REPRINT_FLAG
-
Constructor Summary
Constructors Constructor Description TransactionStatusRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionStatusRequestaddDocumentQualifierItem(DocumentQualifier documentQualifierItem)TransactionStatusRequestdocumentQualifier(List<DocumentQualifier> documentQualifier)Qualification of the document to print to the Cashier or the Customer.booleanequals(Object o)Return true if this TransactionStatusRequest object is equal to o.static TransactionStatusRequestfromJson(String jsonString)Create an instance of TransactionStatusRequest given an JSON stringList<DocumentQualifier>getDocumentQualifier()Qualification of the document to print to the Cashier or the Customer.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.MessageReferencegetMessageReference()Get messageReferenceBooleangetReceiptReprintFlag()Request to reprint the POI receipt(s).inthashCode()TransactionStatusRequestincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.TransactionStatusRequestmessageReference(MessageReference messageReference)messageReferenceTransactionStatusRequestreceiptReprintFlag(Boolean receiptReprintFlag)Request to reprint the POI receipt(s).voidsetDocumentQualifier(List<DocumentQualifier> documentQualifier)Qualification of the document to print to the Cashier or the Customer.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMessageReference(MessageReference messageReference)messageReferencevoidsetReceiptReprintFlag(Boolean receiptReprintFlag)Request to reprint the POI receipt(s).StringtoJson()Convert an instance of TransactionStatusRequest to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_MESSAGE_REFERENCE
public static final String JSON_PROPERTY_MESSAGE_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RECEIPT_REPRINT_FLAG
public static final String JSON_PROPERTY_RECEIPT_REPRINT_FLAG
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DOCUMENT_QUALIFIER
public static final String JSON_PROPERTY_DOCUMENT_QUALIFIER
- See Also:
- Constant Field Values
-
-
Method Detail
-
messageReference
public TransactionStatusRequest messageReference(MessageReference messageReference)
messageReference- Parameters:
messageReference-- Returns:
- the current
TransactionStatusRequestinstance, allowing for method chaining
-
getMessageReference
public MessageReference getMessageReference()
Get messageReference- Returns:
- messageReference
-
setMessageReference
public void setMessageReference(MessageReference messageReference)
messageReference- Parameters:
messageReference-
-
receiptReprintFlag
public TransactionStatusRequest receiptReprintFlag(Boolean receiptReprintFlag)
Request to reprint the POI receipt(s). Allows reprinting a receipt with a `TransactionStatus` message- Parameters:
receiptReprintFlag- Request to reprint the POI receipt(s). Allows reprinting a receipt with a `TransactionStatus` message- Returns:
- the current
TransactionStatusRequestinstance, allowing for method chaining
-
getReceiptReprintFlag
public Boolean getReceiptReprintFlag()
Request to reprint the POI receipt(s). Allows reprinting a receipt with a `TransactionStatus` message- Returns:
- receiptReprintFlag Request to reprint the POI receipt(s). Allows reprinting a receipt with a `TransactionStatus` message
-
setReceiptReprintFlag
public void setReceiptReprintFlag(Boolean receiptReprintFlag)
Request to reprint the POI receipt(s). Allows reprinting a receipt with a `TransactionStatus` message- Parameters:
receiptReprintFlag- Request to reprint the POI receipt(s). Allows reprinting a receipt with a `TransactionStatus` message
-
documentQualifier
public TransactionStatusRequest documentQualifier(List<DocumentQualifier> documentQualifier)
Qualification of the document to print to the Cashier or the Customer. Allows the manager of the printer, Sale or POI Terminal, to send the information to a particular physical printer or to use the paper type accordingly. Possible values: * **CashierReceipt** * **CustomerReceipt** * **Document** * **Journal** * **SaleReceipt** * **Voucher**- Parameters:
documentQualifier- Qualification of the document to print to the Cashier or the Customer. Allows the manager of the printer, Sale or POI Terminal, to send the information to a particular physical printer or to use the paper type accordingly. Possible values: * **CashierReceipt** * **CustomerReceipt** * **Document** * **Journal** * **SaleReceipt** * **Voucher**- Returns:
- the current
TransactionStatusRequestinstance, allowing for method chaining
-
addDocumentQualifierItem
public TransactionStatusRequest addDocumentQualifierItem(DocumentQualifier documentQualifierItem)
-
getDocumentQualifier
public List<DocumentQualifier> getDocumentQualifier()
Qualification of the document to print to the Cashier or the Customer. Allows the manager of the printer, Sale or POI Terminal, to send the information to a particular physical printer or to use the paper type accordingly. Possible values: * **CashierReceipt** * **CustomerReceipt** * **Document** * **Journal** * **SaleReceipt** * **Voucher**- Returns:
- documentQualifier Qualification of the document to print to the Cashier or the Customer. Allows the manager of the printer, Sale or POI Terminal, to send the information to a particular physical printer or to use the paper type accordingly. Possible values: * **CashierReceipt** * **CustomerReceipt** * **Document** * **Journal** * **SaleReceipt** * **Voucher**
-
setDocumentQualifier
public void setDocumentQualifier(List<DocumentQualifier> documentQualifier)
Qualification of the document to print to the Cashier or the Customer. Allows the manager of the printer, Sale or POI Terminal, to send the information to a particular physical printer or to use the paper type accordingly. Possible values: * **CashierReceipt** * **CustomerReceipt** * **Document** * **Journal** * **SaleReceipt** * **Voucher**- Parameters:
documentQualifier- Qualification of the document to print to the Cashier or the Customer. Allows the manager of the printer, Sale or POI Terminal, to send the information to a particular physical printer or to use the paper type accordingly. Possible values: * **CashierReceipt** * **CustomerReceipt** * **Document** * **Journal** * **SaleReceipt** * **Voucher**
-
includeNullValues
public TransactionStatusRequest 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 TransactionStatusRequest 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 TransactionStatusRequest fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TransactionStatusRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TransactionStatusRequest
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TransactionStatusRequest
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TransactionStatusRequest to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-