Package com.adyen.model.tapi
Class PaymentAcquirerData
- java.lang.Object
-
- com.adyen.model.tapi.PaymentAcquirerData
-
public class PaymentAcquirerData extends Object
Data related to the response from the payment Acquirer.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACQUIRER_I_Dstatic StringJSON_PROPERTY_ACQUIRER_P_O_I_I_Dstatic StringJSON_PROPERTY_ACQUIRER_TRANSACTION_I_Dstatic StringJSON_PROPERTY_APPROVAL_CODEstatic StringJSON_PROPERTY_HOST_RECONCILIATION_I_Dstatic StringJSON_PROPERTY_MERCHANT_I_D
-
Constructor Summary
Constructors Constructor Description PaymentAcquirerData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentAcquirerDataacquirerID(Integer acquirerID)Identification of the Acquirer.PaymentAcquirerDataacquirerPOIID(String acquirerPOIID)Identification of the POI for the payment Acquirer.PaymentAcquirerDataacquirerTransactionID(TransactionIDType acquirerTransactionID)acquirerTransactionIDPaymentAcquirerDataapprovalCode(String approvalCode)Code assigned to a transaction approval by the Acquirer.booleanequals(Object o)Return true if this PaymentAcquirerData object is equal to o.static PaymentAcquirerDatafromJson(String jsonString)Create an instance of PaymentAcquirerData given an JSON stringIntegergetAcquirerID()Identification of the Acquirer.StringgetAcquirerPOIID()Identification of the POI for the payment Acquirer.TransactionIDTypegetAcquirerTransactionID()Get acquirerTransactionIDStringgetApprovalCode()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.StringgetHostReconciliationID()Identifier of a reconciliation period with a payment or loyalty host.StringgetMerchantID()Identification of the Merchant for the Acquirer.inthashCode()PaymentAcquirerDatahostReconciliationID(String hostReconciliationID)Identifier of a reconciliation period with a payment or loyalty host.PaymentAcquirerDataincludeNullValues(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.PaymentAcquirerDatamerchantID(String merchantID)Identification of the Merchant for the Acquirer.voidsetAcquirerID(Integer acquirerID)Identification of the Acquirer.voidsetAcquirerPOIID(String acquirerPOIID)Identification of the POI for the payment Acquirer.voidsetAcquirerTransactionID(TransactionIDType acquirerTransactionID)acquirerTransactionIDvoidsetApprovalCode(String approvalCode)Code assigned to a transaction approval by the Acquirer.voidsetHostReconciliationID(String hostReconciliationID)Identifier of a reconciliation period with a payment or loyalty host.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetMerchantID(String merchantID)Identification of the Merchant for the Acquirer.StringtoJson()Convert an instance of PaymentAcquirerData to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACQUIRER_I_D
public static final String JSON_PROPERTY_ACQUIRER_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MERCHANT_I_D
public static final String JSON_PROPERTY_MERCHANT_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACQUIRER_P_O_I_I_D
public static final String JSON_PROPERTY_ACQUIRER_P_O_I_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ACQUIRER_TRANSACTION_I_D
public static final String JSON_PROPERTY_ACQUIRER_TRANSACTION_I_D
- See Also:
- Constant Field Values
-
JSON_PROPERTY_APPROVAL_CODE
public static final String JSON_PROPERTY_APPROVAL_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HOST_RECONCILIATION_I_D
public static final String JSON_PROPERTY_HOST_RECONCILIATION_I_D
- See Also:
- Constant Field Values
-
-
Method Detail
-
acquirerID
public PaymentAcquirerData acquirerID(Integer acquirerID)
Identification of the Acquirer. Identification of the Acquirer when the POI System is multi-acquirer.- Parameters:
acquirerID- Identification of the Acquirer. Identification of the Acquirer when the POI System is multi-acquirer.- Returns:
- the current
PaymentAcquirerDatainstance, allowing for method chaining
-
getAcquirerID
public Integer getAcquirerID()
Identification of the Acquirer. Identification of the Acquirer when the POI System is multi-acquirer.- Returns:
- acquirerID Identification of the Acquirer. Identification of the Acquirer when the POI System is multi-acquirer.
-
setAcquirerID
public void setAcquirerID(Integer acquirerID)
Identification of the Acquirer. Identification of the Acquirer when the POI System is multi-acquirer.- Parameters:
acquirerID- Identification of the Acquirer. Identification of the Acquirer when the POI System is multi-acquirer.
-
merchantID
public PaymentAcquirerData merchantID(String merchantID)
Identification of the Merchant for the Acquirer.- Parameters:
merchantID- Identification of the Merchant for the Acquirer.- Returns:
- the current
PaymentAcquirerDatainstance, allowing for method chaining
-
getMerchantID
public String getMerchantID()
Identification of the Merchant for the Acquirer.- Returns:
- merchantID Identification of the Merchant for the Acquirer.
-
setMerchantID
public void setMerchantID(String merchantID)
Identification of the Merchant for the Acquirer.- Parameters:
merchantID- Identification of the Merchant for the Acquirer.
-
acquirerPOIID
public PaymentAcquirerData acquirerPOIID(String acquirerPOIID)
Identification of the POI for the payment Acquirer.- Parameters:
acquirerPOIID- Identification of the POI for the payment Acquirer.- Returns:
- the current
PaymentAcquirerDatainstance, allowing for method chaining
-
getAcquirerPOIID
public String getAcquirerPOIID()
Identification of the POI for the payment Acquirer.- Returns:
- acquirerPOIID Identification of the POI for the payment Acquirer.
-
setAcquirerPOIID
public void setAcquirerPOIID(String acquirerPOIID)
Identification of the POI for the payment Acquirer.- Parameters:
acquirerPOIID- Identification of the POI for the payment Acquirer.
-
acquirerTransactionID
public PaymentAcquirerData acquirerTransactionID(TransactionIDType acquirerTransactionID)
acquirerTransactionID- Parameters:
acquirerTransactionID-- Returns:
- the current
PaymentAcquirerDatainstance, allowing for method chaining
-
getAcquirerTransactionID
public TransactionIDType getAcquirerTransactionID()
Get acquirerTransactionID- Returns:
- acquirerTransactionID
-
setAcquirerTransactionID
public void setAcquirerTransactionID(TransactionIDType acquirerTransactionID)
acquirerTransactionID- Parameters:
acquirerTransactionID-
-
approvalCode
public PaymentAcquirerData approvalCode(String approvalCode)
Code assigned to a transaction approval by the Acquirer. If available.- Parameters:
approvalCode- Code assigned to a transaction approval by the Acquirer. If available.- Returns:
- the current
PaymentAcquirerDatainstance, allowing for method chaining
-
getApprovalCode
public String getApprovalCode()
Code assigned to a transaction approval by the Acquirer. If available.- Returns:
- approvalCode Code assigned to a transaction approval by the Acquirer. If available.
-
setApprovalCode
public void setApprovalCode(String approvalCode)
Code assigned to a transaction approval by the Acquirer. If available.- Parameters:
approvalCode- Code assigned to a transaction approval by the Acquirer. If available.
-
hostReconciliationID
public PaymentAcquirerData hostReconciliationID(String hostReconciliationID)
Identifier of a reconciliation period with a payment or loyalty host. Allows the assignment of a transaction to the Acquirer reconciliation (or batch).- Parameters:
hostReconciliationID- Identifier of a reconciliation period with a payment or loyalty host. Allows the assignment of a transaction to the Acquirer reconciliation (or batch).- Returns:
- the current
PaymentAcquirerDatainstance, allowing for method chaining
-
getHostReconciliationID
public String getHostReconciliationID()
Identifier of a reconciliation period with a payment or loyalty host. Allows the assignment of a transaction to the Acquirer reconciliation (or batch).- Returns:
- hostReconciliationID Identifier of a reconciliation period with a payment or loyalty host. Allows the assignment of a transaction to the Acquirer reconciliation (or batch).
-
setHostReconciliationID
public void setHostReconciliationID(String hostReconciliationID)
Identifier of a reconciliation period with a payment or loyalty host. Allows the assignment of a transaction to the Acquirer reconciliation (or batch).- Parameters:
hostReconciliationID- Identifier of a reconciliation period with a payment or loyalty host. Allows the assignment of a transaction to the Acquirer reconciliation (or batch).
-
includeNullValues
public PaymentAcquirerData 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 PaymentAcquirerData 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 PaymentAcquirerData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentAcquirerData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentAcquirerData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentAcquirerData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentAcquirerData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-