Skip to content

Commit

Permalink
Merge 31e6c87 into cdf8c7d
Browse files Browse the repository at this point in the history
  • Loading branch information
simrandsingh committed Feb 23, 2021
2 parents cdf8c7d + 31e6c87 commit 6ac2c67
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.hyperwallet.clientsdk.model;

public enum DocumentVerificationReason {
DOCUMENT_EXPIRED("Document in expired"),
DOCUMENT_NOT_RELATED_TO_PROFILE("Document does not match account information"),
DOCUMENT_NOT_READABLE("Document is not readable"),
DOCUMENT_NOT_DECISIVE("Decision cannot be made based on document. Alternative document required"),
DOCUMENT_NOT_COMPLETE("Document is incomplete"),
DOCUMENT_CORRECTION_REQUIRED("Document requires correction"),
DOCUMENT_NOT_VALID_WITH_NOTES("Document is invalid and rejection details are noted on the account"),
DOCUMENT_TYPE_NOT_VALID("Document type is not acceptable");


private final String description;

DocumentVerificationReason(String description) {
this.description = description;
}

public String getDescription() {
return description;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package com.hyperwallet.clientsdk.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class HyperwalletDocumentRejectReason {

private DocumentVerificationReason name;
private String description;

public DocumentVerificationReason getName() {
return name;
}

public void setName(DocumentVerificationReason name) {
this.name = name;
}

public String getDescription() {
return description;
}

public void setDescription(String description) {
this.description = description;
}
}
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
package com.hyperwallet.clientsdk.model;

import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.hyperwallet.clientsdk.util.HyperwalletJsonConfiguration;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
import java.util.Map;

@JsonFilter(HyperwalletJsonConfiguration.INCLUSION_FILTER)
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class
HyperwalletVerificationDocument {
public class HyperwalletVerificationDocument {

private String category;

Expand All @@ -24,6 +22,8 @@

private String country;

private List<HyperwalletDocumentRejectReason> reasons;

public Map<String, String> uploadFiles;

public String getCategory() {
Expand Down Expand Up @@ -90,4 +90,18 @@ public HyperwalletVerificationDocument uploadFiles(Map<String, String> uploadFil
setUploadFiles(uploadFiles);
return this;
}

public List<HyperwalletDocumentRejectReason> getReasons() {
return reasons;
}

public void setReasons(
List<HyperwalletDocumentRejectReason> reasons) {
this.reasons = reasons;
}

public HyperwalletVerificationDocument reasons(List<HyperwalletDocumentRejectReason> reasons) {
setReasons(reasons);
return this;
}
}

0 comments on commit 6ac2c67

Please sign in to comment.