Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class HyperwalletPayment extends HyperwalletBaseMonitor {
private String token;
private String status;
private String reasonCode;
private String reasonCodeDescription;
private Date createdOn;
private String amount;
private String currency;
Expand Down Expand Up @@ -345,4 +346,25 @@ public HyperwalletPayment clearLinks() {
this.links = null;
return this;
}

public String getReasonCodeDescription() {
return reasonCodeDescription;
}

public void setReasonCodeDescription(String reasonCodeDescription) {
addField("reasonCodeDescription", reasonCodeDescription);
this.reasonCodeDescription = reasonCodeDescription;
}

public HyperwalletPayment reasonCodeDescription(String reasonCodeDescription) {
addField("reasonCodeDescription", reasonCodeDescription);
this.reasonCodeDescription = reasonCodeDescription;
return this;
}

public HyperwalletPayment clearReasonCodeDescription() {
clearField("reasonCodeDescription");
this.reasonCodeDescription = null;
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public enum Status {
private String notes;
private List<HyperwalletLink> links;

private String statusCode;
private String statusCodeDescription;

public String getToken() {
return token;
}
Expand Down Expand Up @@ -187,4 +190,46 @@ public HyperwalletStatusTransition clearLinks() {
this.links = null;
return this;
}

public String getStatusCode() {
return statusCode;
}

public void setStatusCode(String statusCode) {
addField("statusCode", statusCode);
this.statusCode = statusCode;
}

public HyperwalletStatusTransition statusCode(String statusCode) {
addField("statusCode", statusCode);
this.statusCode = statusCode;
return this;
}

public HyperwalletStatusTransition clearStatusCode() {
clearField("statusCode");
this.statusCode = null;
return this;
}

public String getStatusCodeDescription() {
return statusCodeDescription;
}

public void setStatusCodeDescription(String statusCodeDescription) {
addField("statusCodeDescription", statusCodeDescription);
this.statusCodeDescription = statusCodeDescription;
}

public HyperwalletStatusTransition statusCodeDescription(String statusCodeDescription) {
addField("statusCodeDescription", statusCodeDescription);
this.statusCodeDescription = statusCodeDescription;
return this;
}

public HyperwalletStatusTransition clearStatusCodeDescription() {
clearField("statusCodeDescription");
this.statusCodeDescription = null;
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ protected HyperwalletPayment createBaseModel() {
.status("COMPLETED")
.token("test-token")
.reasonCode("PAYEE_ACCOUNT_LIMITATION")
.reasonCodeDescription("The recipient's account is currently under limitation. Any payments made to "
+ "this account will be on hold until the issue is resolved. Funds will be returned to your "
+ "account if the limitation is not resolved within 30 days of the sent payout.")
.createdOn(new Date())
.amount("15.99")
.currency("test-currency")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ protected HyperwalletStatusTransition createBaseModel() {
.toStatus(HyperwalletStatusTransition.Status.ACTIVATED)
.createdOn(new Date())
.notes("test-notes")
.statusCodeDescription("test-status-code-description")
.statusCode("test-status-code")
.links(hyperwalletLinkList);
return transition;
}
Expand Down
Loading