-
Notifications
You must be signed in to change notification settings - Fork 32
support update paypal accounts & custom params for list operation #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
1 change: 1 addition & 0 deletions
1
src/main/java/com/hyperwallet/clientsdk/model/HyperwalletPaginationOptions.java
This file contains hidden or 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
88 changes: 88 additions & 0 deletions
88
src/main/java/com/hyperwallet/clientsdk/model/HyperwalletUserListOptions.java
This file contains hidden or 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,88 @@ | ||
| package com.hyperwallet.clientsdk.model; | ||
|
|
||
| import java.util.HashMap; | ||
| import java.util.Map; | ||
|
|
||
| public class HyperwalletUserListOptions extends HyperwalletPaginationOptions | ||
| { | ||
| /** | ||
| * Return the user with this particular client-defined identifier. | ||
| */ | ||
| private String clientUserId; | ||
|
|
||
| /** | ||
| * Returns users with this email address. | ||
| */ | ||
| private String email; | ||
|
|
||
| /** | ||
| * Returns users belonging to program specified by the provided token. | ||
| */ | ||
| private String programToken; | ||
|
|
||
| /** | ||
| * Returns users with this account status. | ||
| */ | ||
| private HyperwalletUser.Status status; | ||
|
|
||
| /** | ||
| * The user's verification status. A user may be required to verify their identity after a certain | ||
| * threshold of payments is reached. | ||
| */ | ||
| private HyperwalletUser.VerificationStatus verificationStatus; | ||
|
|
||
| public String getClientUserId() { | ||
| return clientUserId; | ||
| } | ||
|
|
||
| public HyperwalletUserListOptions setClientUserId(String clientUserId) { | ||
| this.clientUserId = clientUserId; | ||
| return this; | ||
| } | ||
|
|
||
| public String getEmail() { | ||
| return email; | ||
| } | ||
|
|
||
| public HyperwalletUserListOptions setEmail(String email) { | ||
| this.email = email; | ||
| return this; | ||
| } | ||
|
|
||
| public String getProgramToken() { | ||
| return programToken; | ||
| } | ||
|
|
||
| public HyperwalletUserListOptions setProgramToken(String programToken) { | ||
| this.programToken = programToken; | ||
| return this; | ||
| } | ||
|
|
||
| public HyperwalletUser.Status getStatus() { | ||
| return status; | ||
| } | ||
|
|
||
| public HyperwalletUserListOptions setStatus(HyperwalletUser.Status status) { | ||
| this.status = status; | ||
| return this; | ||
| } | ||
|
|
||
| public HyperwalletUser.VerificationStatus getVerificationStatus() { | ||
| return verificationStatus; | ||
| } | ||
|
|
||
| public HyperwalletUserListOptions setVerificationStatus(HyperwalletUser.VerificationStatus verificationStatus) { | ||
| this.verificationStatus = verificationStatus; | ||
| return this; | ||
| } | ||
|
|
||
| public Map<String, String> getParameters() { | ||
| return new HashMap<String, String>() {{ | ||
| put("clientUserId", clientUserId); | ||
| put("email", email); | ||
| put("programToken", programToken); | ||
| put("status", status == null ? null : status.name()); | ||
| put("verificationStatus", verificationStatus == null ? null : verificationStatus.name()); | ||
| }}; | ||
| } | ||
| } | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did like @dfreudenberger but I will ask you to stick with the current design. We are planning to do changes on all our server SDKs to support the changes in our REST v4 and I will keep it in mind to implement for all resources.