diff --git a/src/main/java/com/gocardless/resources/BillingRequest.java b/src/main/java/com/gocardless/resources/BillingRequest.java index 51a076ad..36d0ee74 100644 --- a/src/main/java/com/gocardless/resources/BillingRequest.java +++ b/src/main/java/com/gocardless/resources/BillingRequest.java @@ -265,6 +265,7 @@ private Action() { // blank to prevent instantiation } + private List availableCountryCodes; private List availableCurrencies; private BankAuthorisation bankAuthorisation; private CollectCustomerDetails collectCustomerDetails; @@ -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 getAvailableCountryCodes() { + return availableCountryCodes; + } + /** * List of currencies the current mandate supports */ @@ -1252,6 +1261,7 @@ private PaymentRequest() { private Links links; private Map metadata; private String reference; + private Boolean retryIfPossible; private String scheme; /** @@ -1322,6 +1332,19 @@ public String getReference() { return reference; } + /** + * On failure, automatically retry the payment using + * intelligent retries. + * Default is false. + *

+ * Important: To be able to use intelligent retries, Success+ needs to be + * enabled in GoCardless dashboard. + *

+ */ + public Boolean getRetryIfPossible() { + return retryIfPossible; + } + /** * (Optional) A scheme used for Open Banking payments. Currently * faster_payments is supported in the UK (GBP) and diff --git a/src/main/java/com/gocardless/resources/BillingRequestWithAction.java b/src/main/java/com/gocardless/resources/BillingRequestWithAction.java index 71a9e295..8cb501cc 100644 --- a/src/main/java/com/gocardless/resources/BillingRequestWithAction.java +++ b/src/main/java/com/gocardless/resources/BillingRequestWithAction.java @@ -468,6 +468,7 @@ private Action() { // blank to prevent instantiation } + private List availableCountryCodes; private List availableCurrencies; private BankAuthorisation bankAuthorisation; private CollectCustomerDetails collectCustomerDetails; @@ -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 getAvailableCountryCodes() { + return availableCountryCodes; + } + /** * List of currencies the current mandate supports */ @@ -1465,6 +1474,7 @@ private PaymentRequest() { private Links links; private Map metadata; private String reference; + private Boolean retryIfPossible; private String scheme; /** @@ -1536,6 +1546,20 @@ public String getReference() { return reference; } + /** + * On failure, automatically retry the payment using + * intelligent + * retries. Default is false. + *

+ * Important: To be able to use intelligent retries, Success+ needs to + * be enabled in GoCardless + * dashboard. + *

+ */ + public Boolean getRetryIfPossible() { + return retryIfPossible; + } + /** * (Optional) A scheme used for Open Banking payments. Currently * faster_payments is supported in the UK (GBP) and