Package com.adyen.model.payments
Class AdditionalDataRetry
- java.lang.Object
-
- com.adyen.model.payments.AdditionalDataRetry
-
public class AdditionalDataRetry extends Object
AdditionalDataRetry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdditionalDataRetry.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_RETRY_CHAIN_ATTEMPT_NUMBERstatic StringSERIALIZED_NAME_RETRY_ORDER_ATTEMPT_NUMBERstatic StringSERIALIZED_NAME_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)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)AdditionalDataRetryretryOrderAttemptNumber(String retryOrderAttemptNumber)AdditionalDataRetryretrySkipRetry(String retrySkipRetry)voidsetRetryChainAttemptNumber(String retryChainAttemptNumber)voidsetRetryOrderAttemptNumber(String retryOrderAttemptNumber)voidsetRetrySkipRetry(String retrySkipRetry)StringtoJson()Convert an instance of AdditionalDataRetry to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_RETRY_CHAIN_ATTEMPT_NUMBER
public static final String SERIALIZED_NAME_RETRY_CHAIN_ATTEMPT_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RETRY_ORDER_ATTEMPT_NUMBER
public static final String SERIALIZED_NAME_RETRY_ORDER_ATTEMPT_NUMBER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RETRY_SKIP_RETRY
public static final String SERIALIZED_NAME_RETRY_SKIP_RETRY
- See Also:
- Constant Field Values
-
-
Method Detail
-
retryChainAttemptNumber
public AdditionalDataRetry retryChainAttemptNumber(String retryChainAttemptNumber)
-
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)
-
retryOrderAttemptNumber
public AdditionalDataRetry retryOrderAttemptNumber(String retryOrderAttemptNumber)
-
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)
-
retrySkipRetry
public AdditionalDataRetry retrySkipRetry(String retrySkipRetry)
-
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)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to AdditionalDataRetry
-
fromJson
public static AdditionalDataRetry fromJson(String jsonString) throws IOException
Create an instance of AdditionalDataRetry given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AdditionalDataRetry
- Throws:
IOException- if the JSON string is invalid with respect to AdditionalDataRetry
-
toJson
public String toJson()
Convert an instance of AdditionalDataRetry to an JSON string- Returns:
- JSON string
-
-