Skip to content
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

misc(payment): Add reasonCode to HyperwalletPayment #212

Merged
merged 2 commits into from
Jul 4, 2024
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 @@ -16,7 +16,7 @@ public class HyperwalletPayment extends HyperwalletBaseMonitor {

private String token;
private String status;

private String reasonCode;
private Date createdOn;
private Double amount;
private String currency;
Expand Down Expand Up @@ -73,6 +73,27 @@ public HyperwalletPayment clearStatus() {
return this;
}

public String getReasonCode() {
return this.reasonCode;
}

public void setReasonCode(String reasonCode) {
addField("reasonCode", reasonCode);
this.reasonCode = reasonCode;
}

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

public HyperwalletPayment clearReasonCode() {
clearField("reasonCode");
reasonCode = null;
return this;
}

public String getClientPaymentId() {
return clientPaymentId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ protected HyperwalletPayment createBaseModel() {
payment
.status("COMPLETED")
.token("test-token")
.reasonCode("PAYEE_ACCOUNT_LIMITATION")
.createdOn(new Date())
.amount(15.99)
.currency("test-currency")
Expand Down