-
Notifications
You must be signed in to change notification settings - Fork 32
Feature/dtonbwtwo 132 add rejection reasons java sdk #123
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
Merged
simrandsingh
merged 8 commits into
master
from
feature/DTONBWTWO-132-add-rejection-reasons-java-sdk
Mar 2, 2021
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
675cabe
Initial commit. DTONBWTWO-132
simrandsingh 31e6c87
Update DocumentVerificationReason. DTONBWTWO-132
simrandsingh 5a5df4f
Updated unit tests. DTONBWTWO-132
simrandsingh 6325756
Addressed PR comments. DTONBWTWO-132
simrandsingh 955a1ee
Fix test. DTONBWTWO-132
simrandsingh 5d4bb2f
Addressed PR comments and added IT tests. DTONBWTWO-132
simrandsingh d79d45b
Addressed a minor PR comment. DTONBWTWO-132
simrandsingh bd223a3
Removed ununsed variable and an extra semicolon. DTONBWTWO-132
simrandsingh 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
44 changes: 44 additions & 0 deletions
44
src/main/java/com/hyperwallet/clientsdk/model/HyperwalletVerificationDocumentReason.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,44 @@ | ||
package com.hyperwallet.clientsdk.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonFilter; | ||
import com.hyperwallet.clientsdk.util.HyperwalletJsonConfiguration; | ||
|
||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlRootElement; | ||
|
||
@JsonFilter(HyperwalletJsonConfiguration.INCLUSION_FILTER) | ||
@XmlRootElement | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
public class HyperwalletVerificationDocumentReason { | ||
|
||
private RejectReason name; | ||
private String description; | ||
|
||
public enum RejectReason { | ||
DOCUMENT_EXPIRED, | ||
DOCUMENT_NOT_RELATED_TO_PROFILE, | ||
DOCUMENT_NOT_READABLE, | ||
DOCUMENT_NOT_DECISIVE, | ||
DOCUMENT_NOT_COMPLETE, | ||
DOCUMENT_CORRECTION_REQUIRED, | ||
DOCUMENT_NOT_VALID_WITH_NOTES, | ||
DOCUMENT_TYPE_NOT_VALID; | ||
} | ||
|
||
public RejectReason getName() { | ||
return name; | ||
} | ||
|
||
public void setName(RejectReason name) { | ||
this.name = name; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
} |
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
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
2 changes: 2 additions & 0 deletions
2
src/test/resources/integration/uploadStakeholderDocumentsInvalidStatus-request.txt
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,2 @@ | ||
curl -X "PUT" "https://api.sandbox.hyperwallet.com/rest/v4/users/usr-490848fb-8e1f-4f7c-9a18-a5b7a372e602/business-stakeholders/stk-e08f13b8-0e54-43d2-a587-67d513633275" \ | ||
-u testuser@12345678:myAccPassw0rd \ |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.