Class AdditionalDataRetry


  • public class AdditionalDataRetry
    extends Object
    AdditionalDataRetry
    • 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
      • openapiRequiredFields

        public static HashSet<String> openapiRequiredFields
    • Constructor Detail

      • AdditionalDataRetry

        public AdditionalDataRetry()
    • Method Detail

      • 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)
      • 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)
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates 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