File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
main/java/com/bitpay/sdk/model/Invoice
test/java/com/bitpay/sdk/model/Invoice Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ public class RefundInfo {
2222
2323 private String _supportRequest ;
2424 private String _currency ;
25+ private String refundRequestEid ;
2526 private Hashtable <String , Double > _amounts ;
2627
2728 /**
@@ -74,6 +75,24 @@ public void setCurrency(String currency) throws BitPayException {
7475 this ._currency = currency ;
7576 }
7677
78+ /**
79+ * Gets Refund Request Eid.
80+ *
81+ * @return Refund Request Eid
82+ */
83+ public String getRefundRequestEid () {
84+ return refundRequestEid ;
85+ }
86+
87+ /**
88+ * Sets Refund Request Eid.
89+ *
90+ * @param refundRequestEid Refund Request Eid
91+ */
92+ public void setRefundRequestEid (String refundRequestEid ) {
93+ this .refundRequestEid = refundRequestEid ;
94+ }
95+
7796 /**
7897 * Gets amounts. For a refunded invoice, this object will contain the crypto currency amount refunded by BitPay
7998 * to the consumer (in the selected transactionCurrency) and the equivalent refunded amount from the invoice
Original file line number Diff line number Diff line change @@ -37,6 +37,19 @@ public void it_should_manipulate_currency() throws BitPayException {
3737 Assertions .assertEquals (expected , testedClass .getCurrency ());
3838 }
3939
40+ @ Test
41+ public void it_should_manipulate_refundRequestEid () {
42+ // given
43+ String expected = "someString" ;
44+ RefundInfo testedClass = this .getTestedClass ();
45+
46+ // when
47+ testedClass .setRefundRequestEid (expected );
48+
49+ // then
50+ Assertions .assertEquals (expected , testedClass .getRefundRequestEid ());
51+ }
52+
4053 @ Test
4154 public void it_should_not_allow_to_set_invalid_currency () {
4255 Assertions .assertThrows (BitPayException .class , () -> {
You can’t perform that action at this time.
0 commit comments