Package com.adyen.model.tapi
Class LoyaltyAcquirerData
- java.lang.Object
-
- com.adyen.model.tapi.LoyaltyAcquirerData
-
public class LoyaltyAcquirerData extends Object
LoyaltyAcquirerData
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_APPROVAL_CODEstatic StringJSON_PROPERTY_HOST_RECONCILIATION_I_Dstatic StringJSON_PROPERTY_LOYALTY_ACQUIRER_I_Dstatic StringJSON_PROPERTY_LOYALTY_TRANSACTION_I_D
-
Constructor Summary
Constructors Constructor Description LoyaltyAcquirerData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LoyaltyAcquirerDataapprovalCode(String approvalCode)Code assigned to a transaction approval by the Acquirer.booleanequals(Object o)Return true if this LoyaltyAcquirerData object is equal to o.static LoyaltyAcquirerDatafromJson(String jsonString)Create an instance of LoyaltyAcquirerData given an JSON stringStringgetApprovalCode()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.StringgetLoyaltyAcquirerID()Identification of the loyalty Acquirer.TransactionIDTypegetLoyaltyTransactionID()Get loyaltyTransactionIDinthashCode()LoyaltyAcquirerDatahostReconciliationID(String hostReconciliationID)Identifier of a reconciliation period with a payment or loyalty host.LoyaltyAcquirerDataincludeNullValues(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.LoyaltyAcquirerDataloyaltyAcquirerID(String loyaltyAcquirerID)Identification of the loyalty Acquirer.LoyaltyAcquirerDataloyaltyTransactionID(TransactionIDType loyaltyTransactionID)loyaltyTransactionIDvoidsetApprovalCode(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.voidsetLoyaltyAcquirerID(String loyaltyAcquirerID)Identification of the loyalty Acquirer.voidsetLoyaltyTransactionID(TransactionIDType loyaltyTransactionID)loyaltyTransactionIDStringtoJson()Convert an instance of LoyaltyAcquirerData to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_LOYALTY_ACQUIRER_I_D
public static final String JSON_PROPERTY_LOYALTY_ACQUIRER_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_LOYALTY_TRANSACTION_I_D
public static final String JSON_PROPERTY_LOYALTY_TRANSACTION_I_D
- 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
-
loyaltyAcquirerID
public LoyaltyAcquirerData loyaltyAcquirerID(String loyaltyAcquirerID)
Identification of the loyalty Acquirer.- Parameters:
loyaltyAcquirerID- Identification of the loyalty Acquirer.- Returns:
- the current
LoyaltyAcquirerDatainstance, allowing for method chaining
-
getLoyaltyAcquirerID
public String getLoyaltyAcquirerID()
Identification of the loyalty Acquirer.- Returns:
- loyaltyAcquirerID Identification of the loyalty Acquirer.
-
setLoyaltyAcquirerID
public void setLoyaltyAcquirerID(String loyaltyAcquirerID)
Identification of the loyalty Acquirer.- Parameters:
loyaltyAcquirerID- Identification of the loyalty Acquirer.
-
approvalCode
public LoyaltyAcquirerData approvalCode(String approvalCode)
Code assigned to a transaction approval by the Acquirer. Could be an identifier of the approved transaction for the Acquirer. This data element is conditional for the Loyalty Acquirers. Used in the PaymentRequest request for a referral.- Parameters:
approvalCode- Code assigned to a transaction approval by the Acquirer. Could be an identifier of the approved transaction for the Acquirer. This data element is conditional for the Loyalty Acquirers. Used in the PaymentRequest request for a referral.- Returns:
- the current
LoyaltyAcquirerDatainstance, allowing for method chaining
-
getApprovalCode
public String getApprovalCode()
Code assigned to a transaction approval by the Acquirer. Could be an identifier of the approved transaction for the Acquirer. This data element is conditional for the Loyalty Acquirers. Used in the PaymentRequest request for a referral.- Returns:
- approvalCode Code assigned to a transaction approval by the Acquirer. Could be an identifier of the approved transaction for the Acquirer. This data element is conditional for the Loyalty Acquirers. Used in the PaymentRequest request for a referral.
-
setApprovalCode
public void setApprovalCode(String approvalCode)
Code assigned to a transaction approval by the Acquirer. Could be an identifier of the approved transaction for the Acquirer. This data element is conditional for the Loyalty Acquirers. Used in the PaymentRequest request for a referral.- Parameters:
approvalCode- Code assigned to a transaction approval by the Acquirer. Could be an identifier of the approved transaction for the Acquirer. This data element is conditional for the Loyalty Acquirers. Used in the PaymentRequest request for a referral.
-
loyaltyTransactionID
public LoyaltyAcquirerData loyaltyTransactionID(TransactionIDType loyaltyTransactionID)
loyaltyTransactionID- Parameters:
loyaltyTransactionID-- Returns:
- the current
LoyaltyAcquirerDatainstance, allowing for method chaining
-
getLoyaltyTransactionID
public TransactionIDType getLoyaltyTransactionID()
Get loyaltyTransactionID- Returns:
- loyaltyTransactionID
-
setLoyaltyTransactionID
public void setLoyaltyTransactionID(TransactionIDType loyaltyTransactionID)
loyaltyTransactionID- Parameters:
loyaltyTransactionID-
-
hostReconciliationID
public LoyaltyAcquirerData 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
LoyaltyAcquirerDatainstance, 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 LoyaltyAcquirerData 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 LoyaltyAcquirerData 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 LoyaltyAcquirerData fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of LoyaltyAcquirerData given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltyAcquirerData
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to LoyaltyAcquirerData
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of LoyaltyAcquirerData to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-