Skip to content
Open
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
2 changes: 1 addition & 1 deletion src/main/java/com/gocardless/resources/Balance.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public BalanceType getBalanceType() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. Currently
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. Currently
* "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
*/
public Currency getCurrency() {
Expand Down
21 changes: 11 additions & 10 deletions src/main/java/com/gocardless/resources/BillingRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ public Integer getAppFee() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. Currently
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. Currently
* "USD" and "CAD" are supported.
*/
public String getCurrency() {
Expand Down Expand Up @@ -894,7 +894,7 @@ public Constraints getConstraints() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
*/
public String getCurrency() {
return currency;
Expand Down Expand Up @@ -1110,8 +1110,9 @@ public Alignment getAlignment() {
}

/**
* (Optional) The maximum number of payments that can be collected in this periodic
* limit.
* The maximum number of payments that can be collected in this periodic limit.
* _Note:_ Only supported for the PayTo scheme, where it is required.
*
*/
public Integer getMaxPayments() {
return maxPayments;
Expand Down Expand Up @@ -1213,7 +1214,7 @@ public Integer getAppFee() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. `GBP` and
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. `GBP` and
* `EUR` supported; `GBP` with your customers in the UK and for `EUR` with your customers in
* supported Eurozone countries only.
*/
Expand Down Expand Up @@ -1407,7 +1408,7 @@ public String getId() {
}

/**
* [ISO 639-1](http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) code. Used as the
* [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) code. Used as the
* language for notification emails sent by GoCardless if your organisation does not
* send its own (see [compliance requirements](#appendix-compliance-requirements)).
* Currently only "en", "fr", "de", "pt", "es", "it", "nl", "da", "nb", "sl", "sv" are
Expand Down Expand Up @@ -1503,7 +1504,7 @@ public String getBankName() {

/**
* [ISO 3166-1 alpha-2
* code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements).
* code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements).
* Defaults to the country code of the `iban` if supplied, otherwise is required.
*/
public String getCountryCode() {
Expand All @@ -1519,7 +1520,7 @@ public String getCreatedAt() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
* Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
*/
public String getCurrency() {
Expand Down Expand Up @@ -1634,7 +1635,7 @@ public String getCity() {

/**
* [ISO 3166-1 alpha-2
* code.](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
* code.](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
*/
public String getCountryCode() {
return countryCode;
Expand Down Expand Up @@ -1760,7 +1761,7 @@ public Integer getCount() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. Currently
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. Currently
* "USD" and "CAD" are supported.
*/
public String getCurrency() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public String getCompanyName() {

/**
* [ISO 3166-1 alpha-2
* code.](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
* code.](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
*/
public String getCountryCode() {
return countryCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public MandateRequestConstraints getMandateRequestConstraints() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
*/
public String getMandateRequestCurrency() {
return mandateRequestCurrency;
Expand Down Expand Up @@ -158,9 +158,9 @@ public String getPaymentRequestAmount() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. `GBP` and `EUR`
* supported; `GBP` with your customers in the UK and for `EUR` with your customers in supported
* Eurozone countries only.
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. `GBP` and
* `EUR` supported; `GBP` with your customers in the UK and for `EUR` with your customers in
* supported Eurozone countries only.
*/
public String getPaymentRequestCurrency() {
return paymentRequestCurrency;
Expand Down Expand Up @@ -313,8 +313,9 @@ public Alignment getAlignment() {
}

/**
* (Optional) The maximum number of payments that can be collected in this periodic
* limit.
* The maximum number of payments that can be collected in this periodic limit. _Note:_
* Only supported for the PayTo scheme, where it is required.
*
*/
public Integer getMaxPayments() {
return maxPayments;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ public Integer getAppFee() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
* Currently "USD" and "CAD" are supported.
*/
public String getCurrency() {
Expand Down Expand Up @@ -1098,7 +1098,7 @@ public Constraints getConstraints() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
*/
public String getCurrency() {
return currency;
Expand Down Expand Up @@ -1319,8 +1319,9 @@ public Alignment getAlignment() {
}

/**
* (Optional) The maximum number of payments that can be collected in this
* periodic limit.
* The maximum number of payments that can be collected in this periodic limit.
* _Note:_ Only supported for the PayTo scheme, where it is required.
*
*/
public Integer getMaxPayments() {
return maxPayments;
Expand Down Expand Up @@ -1422,7 +1423,7 @@ public Integer getAppFee() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. `GBP`
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. `GBP`
* and `EUR` supported; `GBP` with your customers in the UK and for `EUR` with your
* customers in supported Eurozone countries only.
*/
Expand Down Expand Up @@ -1617,7 +1618,7 @@ public String getId() {
}

/**
* [ISO 639-1](http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) code. Used as
* [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) code. Used as
* the language for notification emails sent by GoCardless if your organisation does
* not send its own (see [compliance
* requirements](#appendix-compliance-requirements)). Currently only "en", "fr",
Expand Down Expand Up @@ -1714,7 +1715,7 @@ public String getBankName() {

/**
* [ISO 3166-1 alpha-2
* code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements).
* code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements).
* Defaults to the country code of the `iban` if supplied, otherwise is required.
*/
public String getCountryCode() {
Expand All @@ -1730,7 +1731,7 @@ public String getCreatedAt() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
* Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are
* supported.
*/
Expand Down Expand Up @@ -1846,7 +1847,7 @@ public String getCity() {

/**
* [ISO 3166-1 alpha-2
* code.](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
* code.](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
*/
public String getCountryCode() {
return countryCode;
Expand Down Expand Up @@ -1973,7 +1974,7 @@ public Integer getCount() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code.
* Currently "USD" and "CAD" are supported.
*/
public String getCurrency() {
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/gocardless/resources/Creditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public String getCity() {

/**
* [ISO 3166-1 alpha-2
* code.](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
* code.](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
*/
public String getCountryCode() {
return countryCode;
Expand Down Expand Up @@ -119,10 +119,10 @@ public Boolean getCustomPaymentPagesEnabled() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) code for the currency in which
* amounts will be paid out (after foreign exchange). Currently "AUD", "CAD", "DKK", "EUR",
* "GBP", "NZD", "SEK" and "USD" are supported. Present only if payouts will be (or were) made
* via foreign exchange.
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) code for the currency in
* which amounts will be paid out (after foreign exchange). Currently "AUD", "CAD", "DKK",
* "EUR", "GBP", "NZD", "SEK" and "USD" are supported. Present only if payouts will be (or were)
* made via foreign exchange.
*/
public FxPayoutCurrency getFxPayoutCurrency() {
return fxPayoutCurrency;
Expand Down Expand Up @@ -396,7 +396,7 @@ public String getCity() {

/**
* [ISO 3166-1 alpha-2
* code.](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
* code.](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
*/
public String getCountryCode() {
return countryCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public String getBankName() {

/**
* [ISO 3166-1 alpha-2
* code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements).
* code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements).
* Defaults to the country code of the `iban` if supplied, otherwise is required.
*/
public String getCountryCode() {
Expand All @@ -86,7 +86,7 @@ public String getCreatedAt() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. Currently
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. Currently
* "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
*/
public String getCurrency() {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/gocardless/resources/Customer.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public String getCompanyName() {

/**
* [ISO 3166-1 alpha-2
* code.](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
* code.](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
*/
public String getCountryCode() {
return countryCode;
Expand Down Expand Up @@ -124,7 +124,7 @@ public String getId() {
}

/**
* [ISO 639-1](http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) code. Used as the language
* [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) code. Used as the language
* for notification emails sent by GoCardless if your organisation does not send its own (see
* [compliance requirements](#appendix-compliance-requirements)). Currently only "en", "fr",
* "de", "pt", "es", "it", "nl", "da", "nb", "sl", "sv" are supported. If this is not provided,
Expand Down
13 changes: 11 additions & 2 deletions src/main/java/com/gocardless/resources/CustomerBankAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ private CustomerBankAccount() {
private String id;
private Links links;
private Map<String, String> metadata;
private Boolean trustedRecipient;

/**
* Name of the account holder, as known by the bank. The full name provided when the customer is
Expand Down Expand Up @@ -81,7 +82,7 @@ public String getBankName() {

/**
* [ISO 3166-1 alpha-2
* code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements).
* code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements).
* Defaults to the country code of the `iban` if supplied, otherwise is required.
*/
public String getCountryCode() {
Expand All @@ -96,7 +97,7 @@ public String getCreatedAt() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. Currently
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. Currently
* "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
*/
public String getCurrency() {
Expand Down Expand Up @@ -129,6 +130,14 @@ public Map<String, String> getMetadata() {
return metadata;
}

/**
* Whether this customer bank account is registered as a trusted recipient for Outbound
* Payments. Only present when the feature is enabled for the organisation.
*/
public Boolean getTrustedRecipient() {
return trustedRecipient;
}

public enum AccountType {
@SerializedName("savings")
SAVINGS, @SerializedName("checking")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public String getCreatedAt() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. Currently
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. Currently
* "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
*/
public Currency getCurrency() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/gocardless/resources/Institution.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public Boolean getAutocompletesCollectBankAccount() {

/**
* [ISO
* 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
* 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
* alpha-2 code. The country code of the institution. If nothing is provided, institutions with
* the country code 'GB' are returned by default.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public String getCreatedAt() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. Currently
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency code. Currently
* "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
*/
public Currency getCurrency() {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/gocardless/resources/OutboundPayment.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public String getCreatedAt() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency. Currently only "GBP"
* is supported.
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency. Currently only
* "GBP" is supported.
*/
public Currency getCurrency() {
return currency;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public String getCreatedAt() {
}

/**
* [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency. Currently only "GBP"
* is supported.
* [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) currency. Currently only
* "GBP" is supported.
*/
public Currency getCurrency() {
return currency;
Expand Down
Loading