Skip to content

Commit

Permalink
Adds hostReference field to the Cancel and Refund model (#160)
Browse files Browse the repository at this point in the history
* Adds `refundHostReference` field to the Refund model

* Adds `cancelHostReference` field to the Cancel model
  • Loading branch information
tuncerergin authored Nov 13, 2024
1 parent 3b6bd81 commit 6320b33
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
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;
}
}

0 comments on commit 6320b33

Please sign in to comment.