Package com.adyen.model.payment
Class AdditionalDataRetry
- java.lang.Object
-
- com.adyen.model.payment.AdditionalDataRetry
-
public class AdditionalDataRetry extends Object
AdditionalDataRetry
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBERstatic StringJSON_PROPERTY_RETRY_ORDER_ATTEMPT_NUMBERstatic StringJSON_PROPERTY_RETRY_SKIP_RETRY
-
Constructor Summary
Constructors Constructor Description AdditionalDataRetry()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this AdditionalDataRetry object is equal to o.static AdditionalDataRetryfromJson(String jsonString)Create an instance of AdditionalDataRetry given an JSON stringStringgetRetryChainAttemptNumber()The number of times the transaction (not order) has been retried between different payment service providers.StringgetRetryOrderAttemptNumber()The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field.StringgetRetrySkipRetry()The Boolean value indicating whether Adyen should skip or retry this transaction, if possible.inthashCode()AdditionalDataRetryretryChainAttemptNumber(String retryChainAttemptNumber)The number of times the transaction (not order) has been retried between different payment service providers.AdditionalDataRetryretryOrderAttemptNumber(String retryOrderAttemptNumber)The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field.AdditionalDataRetryretrySkipRetry(String retrySkipRetry)The Boolean value indicating whether Adyen should skip or retry this transaction, if possible.voidsetRetryChainAttemptNumber(String retryChainAttemptNumber)The number of times the transaction (not order) has been retried between different payment service providers.voidsetRetryOrderAttemptNumber(String retryOrderAttemptNumber)The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field.voidsetRetrySkipRetry(String retrySkipRetry)The Boolean value indicating whether Adyen should skip or retry this transaction, if possible.StringtoJson()Convert an instance of AdditionalDataRetry to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER
public static final String JSON_PROPERTY_RETRY_CHAIN_ATTEMPT_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RETRY_ORDER_ATTEMPT_NUMBER
public static final String JSON_PROPERTY_RETRY_ORDER_ATTEMPT_NUMBER
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RETRY_SKIP_RETRY
public static final String JSON_PROPERTY_RETRY_SKIP_RETRY
- See Also:
- Constant Field Values
-
-
Method Detail
-
retryChainAttemptNumber
public AdditionalDataRetry retryChainAttemptNumber(String retryChainAttemptNumber)
The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together.- Parameters:
retryChainAttemptNumber-- Returns:
- the current
AdditionalDataRetryinstance, allowing for method chaining
-
getRetryChainAttemptNumber
public String getRetryChainAttemptNumber()
The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together.- Returns:
- retryChainAttemptNumber
-
setRetryChainAttemptNumber
public void setRetryChainAttemptNumber(String retryChainAttemptNumber)
The number of times the transaction (not order) has been retried between different payment service providers. For instance, the `chainAttemptNumber` set to 2 means that this transaction has been recently tried on another provider before being sent to Adyen. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together.- Parameters:
retryChainAttemptNumber-
-
retryOrderAttemptNumber
public AdditionalDataRetry retryOrderAttemptNumber(String retryOrderAttemptNumber)
The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together.- Parameters:
retryOrderAttemptNumber-- Returns:
- the current
AdditionalDataRetryinstance, allowing for method chaining
-
getRetryOrderAttemptNumber
public String getRetryOrderAttemptNumber()
The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together.- Returns:
- retryOrderAttemptNumber
-
setRetryOrderAttemptNumber
public void setRetryOrderAttemptNumber(String retryOrderAttemptNumber)
The index of the attempt to bill a particular order, which is identified by the `merchantOrderReference` field. For example, if a recurring transaction fails and is retried one day later, then the order number for these attempts would be 1 and 2, respectively. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together.- Parameters:
retryOrderAttemptNumber-
-
retrySkipRetry
public AdditionalDataRetry retrySkipRetry(String retrySkipRetry)
The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together.- Parameters:
retrySkipRetry-- Returns:
- the current
AdditionalDataRetryinstance, allowing for method chaining
-
getRetrySkipRetry
public String getRetrySkipRetry()
The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together.- Returns:
- retrySkipRetry
-
setRetrySkipRetry
public void setRetrySkipRetry(String retrySkipRetry)
The Boolean value indicating whether Adyen should skip or retry this transaction, if possible. > If you submit `retry.chainAttemptNumber`, `retry.orderAttemptNumber`, and `retry.skipRetry` values, we also recommend you provide the `merchantOrderReference` to facilitate linking payment attempts together.- Parameters:
retrySkipRetry-
-
equals
public boolean equals(Object o)
Return true if this AdditionalDataRetry object is equal to o.
-
fromJson
public static AdditionalDataRetry fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AdditionalDataRetry given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AdditionalDataRetry
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AdditionalDataRetry
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AdditionalDataRetry to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-