-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
111 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/main/java/com/gocardless/resources/BankDetailsLookup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.gocardless.resources; | ||
|
||
import java.util.List; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* Represents a bank details lookup resource returned from the API. | ||
* | ||
* Look up the name and reachability of a bank. | ||
*/ | ||
public class BankDetailsLookup { | ||
private BankDetailsLookup() { | ||
// blank to prevent instantiation | ||
} | ||
|
||
private List<AvailableScheme> availableSchemes; | ||
private String bankName; | ||
|
||
/** | ||
* Array of [schemes](#mandates_scheme) supported for this bank account. This will be an empty array | ||
* if the bank account is not reachable by any schemes. | ||
*/ | ||
public List<AvailableScheme> getAvailableSchemes() { | ||
return availableSchemes; | ||
} | ||
|
||
/** | ||
* The name of the bank with which the account is held (if available). | ||
*/ | ||
public String getBankName() { | ||
return bankName; | ||
} | ||
|
||
public enum AvailableScheme { | ||
@SerializedName("bacs") | ||
BACS, @SerializedName("sepa_core") | ||
SEPA_CORE, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.