Skip to content

Commit

Permalink
Changes generated by c8939115bd6320568f3249ee7926eee8aface132
Browse files Browse the repository at this point in the history
  • Loading branch information
gocardless-ci-robot[bot] committed Oct 11, 2024
1 parent 16f04b8 commit 771110d
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/main/java/com/gocardless/services/BillingRequestService.java
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,26 @@ public BillingRequestCreateRequest withPaymentRequestReference(String reference)
return this;
}

/**
* On failure, automatically retry payments using [intelligent
* retries](#success-intelligent-retries). Default is `false`.
* <p class="notice">
* <strong>Important</strong>: To be able to use intelligent retries, Success+ needs to be
* enabled in [GoCardless dashboard](https://manage.gocardless.com/success-plus).
* </p>
* <p class="notice">
* <strong>Important</strong>: This is not applicable to IBP and VRP payments.
* </p>
*/
public BillingRequestCreateRequest withPaymentRequestRetryIfPossible(
Boolean retryIfPossible) {
if (paymentRequest == null) {
paymentRequest = new PaymentRequest();
}
paymentRequest.withRetryIfPossible(retryIfPossible);
return this;
}

/**
* (Optional) A scheme used for Open Banking payments. Currently `faster_payments` is
* supported in the UK (GBP) and `sepa_credit_transfer` and `sepa_instant_credit_transfer`
Expand Down Expand Up @@ -909,6 +929,7 @@ public static class PaymentRequest {
private FundsSettlement fundsSettlement;
private Map<String, String> metadata;
private String reference;
private Boolean retryIfPossible;
private String scheme;

/**
Expand Down Expand Up @@ -981,6 +1002,22 @@ public PaymentRequest withReference(String reference) {
return this;
}

/**
* On failure, automatically retry payments using [intelligent
* retries](#success-intelligent-retries). Default is `false`.
* <p class="notice">
* <strong>Important</strong>: To be able to use intelligent retries, Success+ needs to
* be enabled in [GoCardless dashboard](https://manage.gocardless.com/success-plus).
* </p>
* <p class="notice">
* <strong>Important</strong>: This is not applicable to IBP and VRP payments.
* </p>
*/
public PaymentRequest withRetryIfPossible(Boolean retryIfPossible) {
this.retryIfPossible = retryIfPossible;
return this;
}

/**
* (Optional) A scheme used for Open Banking payments. Currently `faster_payments` is
* supported in the UK (GBP) and `sepa_credit_transfer` and
Expand Down

0 comments on commit 771110d

Please sign in to comment.