-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEV-30004 adds refund v2 and threeds auth v2 response signature (#162)
* DEV-30004 adds refund v2 and threeds auth v2 response signature * DEV-30004 adds refund v2 and threeds auth v2 response signature * DEV-30004 adds refund v2 and threeds auth v2 response signature * DEV-30004 adds response signature to refund and refund v2 --------- Co-authored-by: Abdurrahman Basgoynuk <abdurrahman.basgoynuk@iyzico.com>
- Loading branch information
1 parent
0ad7ce3
commit b578e08
Showing
6 changed files
with
159 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/main/java/com/iyzipay/request/CreateRefundV2Request.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.iyzipay.request; | ||
|
||
import com.iyzipay.Request; | ||
import com.iyzipay.ToStringRequestBuilder; | ||
|
||
import java.math.BigDecimal; | ||
|
||
public class CreateRefundV2Request extends Request { | ||
|
||
private String paymentId; | ||
private BigDecimal price; | ||
private String ip; | ||
|
||
|
||
public String getPaymentId() { | ||
return paymentId; | ||
} | ||
|
||
public void setPaymentId(String paymentId) { | ||
this.paymentId = paymentId; | ||
} | ||
|
||
public BigDecimal getPrice() { | ||
return price; | ||
} | ||
|
||
public void setPrice(BigDecimal price) { | ||
this.price = price; | ||
} | ||
|
||
public String getIp() { | ||
return ip; | ||
} | ||
|
||
public void setIp(String ip) { | ||
this.ip = ip; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return new ToStringRequestBuilder(this) | ||
.appendSuper(super.toString()) | ||
.append("paymentId", paymentId) | ||
.append("price", price) | ||
.append("ip", ip) | ||
.toString(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/test/java/com/iyzipay/functional/StandardBaseTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.iyzipay.functional; | ||
|
||
import com.iyzipay.Options; | ||
import org.junit.Before; | ||
|
||
public abstract class StandardBaseTest { | ||
|
||
Options options; | ||
|
||
@Before | ||
public void setUp() { | ||
options = new Options(); | ||
options.setApiKey("sandbox-qBDJ5ttcxbXNNzLZ02WmkiKtHH3ADONj"); | ||
options.setSecretKey("sandbox-HfB5nGM5CRAGdtAijxZ8xHlqYkvN1B0p"); | ||
options.setBaseUrl("https://sandbox-api.iyzipay.com"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters