Class Retry
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.payments.postpayments.responses.requestapaymentorpayoutresponsecreated.retry.Retry
-
public final class Retry extends java.lang.Objectretry Configuration relating to asynchronous retries
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRetry.RetryBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Retry.RetryBuilderbuilder()booleanequals(java.lang.Object o)java.time.InstantgetEndsOn()A timestamp that details the date on which the retry schedule expires, in ISO 8601 format.java.lang.IntegergetMaxAttempts()Default: 6 The maximum number of authorization retry attempts, excluding the initial authorization.java.time.InstantgetNextAttemptOn()A timestamp of the date on which the next authorization attempt will take place, in ISO 8601 format.inthashCode()voidsetEndsOn(java.time.Instant endsOn)A timestamp that details the date on which the retry schedule expires, in ISO 8601 format.voidsetMaxAttempts(java.lang.Integer maxAttempts)Default: 6 The maximum number of authorization retry attempts, excluding the initial authorization.voidsetNextAttemptOn(java.time.Instant nextAttemptOn)A timestamp of the date on which the next authorization attempt will take place, in ISO 8601 format.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Retry
public Retry()
-
Retry
public Retry(java.lang.Integer maxAttempts, java.time.Instant endsOn, java.time.Instant nextAttemptOn)Creates a newRetryinstance.- Parameters:
maxAttempts- Default: 6 The maximum number of authorization retry attempts, excluding the initial authorization. [Optional] [ 1 .. 15 ]endsOn- A timestamp that details the date on which the retry schedule expires, in ISO 8601 format. [Optional]nextAttemptOn- A timestamp of the date on which the next authorization attempt will take place, in ISO 8601 format. [Optional]
-
-
Method Detail
-
builder
public static Retry.RetryBuilder builder()
-
getMaxAttempts
public java.lang.Integer getMaxAttempts()
Default: 6 The maximum number of authorization retry attempts, excluding the initial authorization. [Optional] [ 1 .. 15 ]
-
getEndsOn
public java.time.Instant getEndsOn()
A timestamp that details the date on which the retry schedule expires, in ISO 8601 format. [Optional]
-
getNextAttemptOn
public java.time.Instant getNextAttemptOn()
A timestamp of the date on which the next authorization attempt will take place, in ISO 8601 format. [Optional]
-
setMaxAttempts
public void setMaxAttempts(java.lang.Integer maxAttempts)
Default: 6 The maximum number of authorization retry attempts, excluding the initial authorization. [Optional] [ 1 .. 15 ]
-
setEndsOn
public void setEndsOn(java.time.Instant endsOn)
A timestamp that details the date on which the retry schedule expires, in ISO 8601 format. [Optional]
-
setNextAttemptOn
public void setNextAttemptOn(java.time.Instant nextAttemptOn)
A timestamp of the date on which the next authorization attempt will take place, in ISO 8601 format. [Optional]
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-