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

Adds hostReference field to the Cancel and Refund model #160

Merged
merged 2 commits into from
Nov 13, 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
9 changes: 9 additions & 0 deletions src/main/java/com/iyzipay/model/Cancel.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class Cancel extends IyzipayResource {
private String connectorName;
private String authCode;
private String hostReference;
private String cancelHostReference;

public static Cancel create(CreateCancelRequest request, Options options) {
String path = "/payment/cancel";
Expand Down Expand Up @@ -72,4 +73,12 @@ public String getHostReference() {
public void setHostReference(String hostReference) {
this.hostReference = hostReference;
}

public String getCancelHostReference() {
return cancelHostReference;
}

public void setCancelHostReference(String cancelHostReference) {
this.cancelHostReference = cancelHostReference;
}
}
8 changes: 8 additions & 0 deletions src/main/java/com/iyzipay/model/Refund.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class Refund extends IyzipayResource {
private String connectorName;
private String authCode;
private String hostReference;
private String refundHostReference;

public static Refund create(CreateRefundRequest request, Options options) {
String path = "/payment/refund";
Expand Down Expand Up @@ -81,4 +82,11 @@ public String getHostReference() {
public void setHostReference(String hostReference) {
this.hostReference = hostReference;
}
public String getRefundHostReference() {
return refundHostReference;
}

public void setRefundHostReference(String refundHostReference) {
this.refundHostReference = refundHostReference;
}
}
Loading