Package com.adyen.model.tapi
Class OriginalPOITransaction
- java.lang.Object
-
- com.adyen.model.tapi.OriginalPOITransaction
-
public class OriginalPOITransaction extends Object
Identification of a previous POI transaction. In the Payment Request message, it allows using the card of a previous CardAcquisition or Payment request.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACQUIRER_I_Dstatic StringJSON_PROPERTY_AMOUNT_VALUEstatic StringJSON_PROPERTY_APPROVAL_CODEstatic StringJSON_PROPERTY_HOST_TRANSACTION_I_Dstatic StringJSON_PROPERTY_P_O_I_I_Dstatic StringJSON_PROPERTY_PO_I_TRANSACTION_I_Dstatic StringJSON_PROPERTY_REUSE_CARD_DATA_FLAGstatic StringJSON_PROPERTY_SALE_I_D
-
Constructor Summary
Constructors Constructor Description OriginalPOITransaction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OriginalPOITransactionacquirerID(Integer acquirerID)Identification of the Acquirer.OriginalPOITransactionamountValue(BigDecimal amountValue)Value of an amount.OriginalPOITransactionapprovalCode(String approvalCode)Code assigned to a transaction approval by the Acquirer.booleanequals(Object o)Return true if this OriginalPOITransaction object is equal to o.static OriginalPOITransactionfromJson(String jsonString)Create an instance of OriginalPOITransaction given an JSON stringIntegergetAcquirerID()Identification of the Acquirer.BigDecimalgetAmountValue()Value of an amount. minimum: 0.0 maximum: 99999999.999999StringgetApprovalCode()Code assigned to a transaction approval by the Acquirer.Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.TransactionIDTypegetHostTransactionID()Get hostTransactionIDStringgetPOIID()Identification of a payment terminal for the NEXO SaletoPOI protocol.TransactionIDTypegetPoITransactionID()Get poITransactionIDBooleangetReuseCardDataFlag()Indicates if the card data has to be retrieved from a previous transaction.StringgetSaleID()Identification of a Sale System for the NEXO SaletoPOI protocol.inthashCode()OriginalPOITransactionhostTransactionID(TransactionIDType hostTransactionID)hostTransactionIDOriginalPOITransactionincludeNullValues(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.OriginalPOITransactionPOIID(String POIID)Identification of a payment terminal for the NEXO SaletoPOI protocol.OriginalPOITransactionpoITransactionID(TransactionIDType poITransactionID)poITransactionIDOriginalPOITransactionreuseCardDataFlag(Boolean reuseCardDataFlag)Indicates if the card data has to be retrieved from a previous transaction.OriginalPOITransactionsaleID(String saleID)Identification of a Sale System for the NEXO SaletoPOI protocol.voidsetAcquirerID(Integer acquirerID)Identification of the Acquirer.voidsetAmountValue(BigDecimal amountValue)Value of an amount.voidsetApprovalCode(String approvalCode)Code assigned to a transaction approval by the Acquirer.voidsetHostTransactionID(TransactionIDType hostTransactionID)hostTransactionIDvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPOIID(String POIID)Identification of a payment terminal for the NEXO SaletoPOI protocol.voidsetPoITransactionID(TransactionIDType poITransactionID)poITransactionIDvoidsetReuseCardDataFlag(Boolean reuseCardDataFlag)Indicates if the card data has to be retrieved from a previous transaction.voidsetSaleID(String saleID)Identification of a Sale System for the NEXO SaletoPOI protocol.StringtoJson()Convert an instance of OriginalPOITransaction to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_SALE_I_D
public static final String JSON_PROPERTY_SALE_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_P_O_I_I_D
public static final String JSON_PROPERTY_P_O_I_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PO_I_TRANSACTION_I_D
public static final String JSON_PROPERTY_PO_I_TRANSACTION_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REUSE_CARD_DATA_FLAG
public static final String JSON_PROPERTY_REUSE_CARD_DATA_FLAG
- See Also:
- Constant Field Values
-
JSON_PROPERTY_APPROVAL_CODE
public static final String JSON_PROPERTY_APPROVAL_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACQUIRER_I_D
public static final String JSON_PROPERTY_ACQUIRER_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AMOUNT_VALUE
public static final String JSON_PROPERTY_AMOUNT_VALUE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HOST_TRANSACTION_I_D
public static final String JSON_PROPERTY_HOST_TRANSACTION_I_D
- See Also:
- Constant Field Values
-
-
Method Detail
-
saleID
public OriginalPOITransaction saleID(String saleID)
Identification of a Sale System for the NEXO SaletoPOI protocol.- Parameters:
saleID- Identification of a Sale System for the NEXO SaletoPOI protocol.- Returns:
- the current
OriginalPOITransactioninstance, allowing for method chaining
-
getSaleID
public String getSaleID()
Identification of a Sale System for the NEXO SaletoPOI protocol.- Returns:
- saleID Identification of a Sale System for the NEXO SaletoPOI protocol.
-
setSaleID
public void setSaleID(String saleID)
Identification of a Sale System for the NEXO SaletoPOI protocol.- Parameters:
saleID- Identification of a Sale System for the NEXO SaletoPOI protocol.
-
POIID
public OriginalPOITransaction POIID(String POIID)
Identification of a payment terminal for the NEXO SaletoPOI protocol. If original transaction is coming from another POI.- Parameters:
POIID- Identification of a payment terminal for the NEXO SaletoPOI protocol. If original transaction is coming from another POI.- Returns:
- the current
OriginalPOITransactioninstance, allowing for method chaining
-
getPOIID
public String getPOIID()
Identification of a payment terminal for the NEXO SaletoPOI protocol. If original transaction is coming from another POI.- Returns:
- POIID Identification of a payment terminal for the NEXO SaletoPOI protocol. If original transaction is coming from another POI.
-
setPOIID
public void setPOIID(String POIID)
Identification of a payment terminal for the NEXO SaletoPOI protocol. If original transaction is coming from another POI.- Parameters:
POIID- Identification of a payment terminal for the NEXO SaletoPOI protocol. If original transaction is coming from another POI.
-
poITransactionID
public OriginalPOITransaction poITransactionID(TransactionIDType poITransactionID)
poITransactionID- Parameters:
poITransactionID-- Returns:
- the current
OriginalPOITransactioninstance, allowing for method chaining
-
getPoITransactionID
public TransactionIDType getPoITransactionID()
Get poITransactionID- Returns:
- poITransactionID
-
setPoITransactionID
public void setPoITransactionID(TransactionIDType poITransactionID)
poITransactionID- Parameters:
poITransactionID-
-
reuseCardDataFlag
public OriginalPOITransaction reuseCardDataFlag(Boolean reuseCardDataFlag)
Indicates if the card data has to be retrieved from a previous transaction.- Parameters:
reuseCardDataFlag- Indicates if the card data has to be retrieved from a previous transaction.- Returns:
- the current
OriginalPOITransactioninstance, allowing for method chaining
-
getReuseCardDataFlag
public Boolean getReuseCardDataFlag()
Indicates if the card data has to be retrieved from a previous transaction.- Returns:
- reuseCardDataFlag Indicates if the card data has to be retrieved from a previous transaction.
-
setReuseCardDataFlag
public void setReuseCardDataFlag(Boolean reuseCardDataFlag)
Indicates if the card data has to be retrieved from a previous transaction.- Parameters:
reuseCardDataFlag- Indicates if the card data has to be retrieved from a previous transaction.
-
approvalCode
public OriginalPOITransaction approvalCode(String approvalCode)
Code assigned to a transaction approval by the Acquirer. If referral.- Parameters:
approvalCode- Code assigned to a transaction approval by the Acquirer. If referral.- Returns:
- the current
OriginalPOITransactioninstance, allowing for method chaining
-
getApprovalCode
public String getApprovalCode()
Code assigned to a transaction approval by the Acquirer. If referral.- Returns:
- approvalCode Code assigned to a transaction approval by the Acquirer. If referral.
-
setApprovalCode
public void setApprovalCode(String approvalCode)
Code assigned to a transaction approval by the Acquirer. If referral.- Parameters:
approvalCode- Code assigned to a transaction approval by the Acquirer. If referral.
-
acquirerID
public OriginalPOITransaction acquirerID(Integer acquirerID)
Identification of the Acquirer. Restrict to the Acquirer if present.- Parameters:
acquirerID- Identification of the Acquirer. Restrict to the Acquirer if present.- Returns:
- the current
OriginalPOITransactioninstance, allowing for method chaining
-
getAcquirerID
public Integer getAcquirerID()
Identification of the Acquirer. Restrict to the Acquirer if present.- Returns:
- acquirerID Identification of the Acquirer. Restrict to the Acquirer if present.
-
setAcquirerID
public void setAcquirerID(Integer acquirerID)
Identification of the Acquirer. Restrict to the Acquirer if present.- Parameters:
acquirerID- Identification of the Acquirer. Restrict to the Acquirer if present.
-
amountValue
public OriginalPOITransaction amountValue(BigDecimal amountValue)
Value of an amount.- Parameters:
amountValue- Value of an amount.- Returns:
- the current
OriginalPOITransactioninstance, allowing for method chaining
-
getAmountValue
public BigDecimal getAmountValue()
Value of an amount. minimum: 0.0 maximum: 99999999.999999- Returns:
- amountValue Value of an amount.
-
setAmountValue
public void setAmountValue(BigDecimal amountValue)
Value of an amount.- Parameters:
amountValue- Value of an amount.
-
hostTransactionID
public OriginalPOITransaction hostTransactionID(TransactionIDType hostTransactionID)
hostTransactionID- Parameters:
hostTransactionID-- Returns:
- the current
OriginalPOITransactioninstance, allowing for method chaining
-
getHostTransactionID
public TransactionIDType getHostTransactionID()
Get hostTransactionID- Returns:
- hostTransactionID
-
setHostTransactionID
public void setHostTransactionID(TransactionIDType hostTransactionID)
hostTransactionID- Parameters:
hostTransactionID-
-
includeNullValues
public OriginalPOITransaction 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 OriginalPOITransaction 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 OriginalPOITransaction fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of OriginalPOITransaction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of OriginalPOITransaction
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to OriginalPOITransaction
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of OriginalPOITransaction to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-