Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/main/java/com/gocardless/resources/BillingRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ private Action() {
// blank to prevent instantiation
}

private List<String> availableCountryCodes;
private List<String> availableCurrencies;
private BankAuthorisation bankAuthorisation;
private CollectCustomerDetails collectCustomerDetails;
Expand All @@ -275,6 +276,14 @@ private Action() {
private Status status;
private Type type;

/**
* List of country codes supported for collecting bank account details, for the
* collect_bank_account action
*/
public List<String> getAvailableCountryCodes() {
return availableCountryCodes;
}

/**
* List of currencies the current mandate supports
*/
Expand Down Expand Up @@ -1252,6 +1261,7 @@ private PaymentRequest() {
private Links links;
private Map<String, String> metadata;
private String reference;
private Boolean retryIfPossible;
private String scheme;

/**
Expand Down Expand Up @@ -1322,6 +1332,19 @@ public String getReference() {
return reference;
}

/**
* On failure, automatically retry the payment using
* <a href="https://developer.gocardless.com/success-plus/overview">intelligent retries</a>.
* Default is <code>false</code>.
* <p class="notice">
* <strong>Important</strong>: To be able to use intelligent retries, Success+ needs to be
* enabled in <a href="https://manage.gocardless.com/success-plus">GoCardless dashboard</a>.
* </p>
*/
public Boolean getRetryIfPossible() {
return retryIfPossible;
}

/**
* (Optional) A scheme used for Open Banking payments. Currently
* <code>faster_payments</code> is supported in the UK (GBP) and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ private Action() {
// blank to prevent instantiation
}

private List<String> availableCountryCodes;
private List<String> availableCurrencies;
private BankAuthorisation bankAuthorisation;
private CollectCustomerDetails collectCustomerDetails;
Expand All @@ -478,6 +479,14 @@ private Action() {
private Status status;
private Type type;

/**
* List of country codes supported for collecting bank account details, for the
* collect_bank_account action
*/
public List<String> getAvailableCountryCodes() {
return availableCountryCodes;
}

/**
* List of currencies the current mandate supports
*/
Expand Down Expand Up @@ -1465,6 +1474,7 @@ private PaymentRequest() {
private Links links;
private Map<String, String> metadata;
private String reference;
private Boolean retryIfPossible;
private String scheme;

/**
Expand Down Expand Up @@ -1536,6 +1546,20 @@ public String getReference() {
return reference;
}

/**
* On failure, automatically retry the payment using
* <a href="https://developer.gocardless.com/success-plus/overview">intelligent
* retries</a>. Default is <code>false</code>.
* <p class="notice">
* <strong>Important</strong>: To be able to use intelligent retries, Success+ needs to
* be enabled in <a href="https://manage.gocardless.com/success-plus">GoCardless
* dashboard</a>.
* </p>
*/
public Boolean getRetryIfPossible() {
return retryIfPossible;
}

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