diff --git a/src/main/java/com/bitpay/sdk/model/invoice/Invoice.java b/src/main/java/com/bitpay/sdk/model/invoice/Invoice.java index ac751d23..28d970f2 100644 --- a/src/main/java/com/bitpay/sdk/model/invoice/Invoice.java +++ b/src/main/java/com/bitpay/sdk/model/invoice/Invoice.java @@ -66,7 +66,7 @@ public class Invoice { protected String exceptionStatus = ModelConfiguration.DEFAULT_NON_SENT_VALUE; protected Integer targetConfirmations; protected List transactions; - protected List> refundAddresses; + protected List> refundAddresses; protected Boolean refundAddressRequestPending; protected String buyerProvidedEmail = ModelConfiguration.DEFAULT_NON_SENT_VALUE; protected InvoiceBuyerProvidedInfo invoiceBuyerProvidedInfo; @@ -1169,7 +1169,7 @@ public void setTargetConfirmations(final Integer targetConfirmations) { * @return the refund addresses */ @JsonIgnore - public List> getRefundAddresses() { + public List> getRefundAddresses() { return this.refundAddresses; } @@ -1180,7 +1180,7 @@ public List> getRefundAddresses() { * @param refundAddresses the refund addresses */ @JsonProperty("refundAddresses") - public void setRefundAddresses(final List> refundAddresses) { + public void setRefundAddresses(final List> refundAddresses) { this.refundAddresses = refundAddresses; } diff --git a/src/main/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddresses.java b/src/main/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddress.java similarity index 95% rename from src/main/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddresses.java rename to src/main/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddress.java index 5fdc56e7..9a6cdd2a 100644 --- a/src/main/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddresses.java +++ b/src/main/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddress.java @@ -7,7 +7,7 @@ import java.time.ZonedDateTime; -public class InvoiceRefundAddresses { +public class InvoiceRefundAddress { protected String type; protected ZonedDateTime date; diff --git a/src/test/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddressesTest.java b/src/test/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddressTest.java similarity index 71% rename from src/test/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddressesTest.java rename to src/test/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddressTest.java index 3982977a..f3dbce5e 100644 --- a/src/test/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddressesTest.java +++ b/src/test/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddressTest.java @@ -9,12 +9,12 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -public class InvoiceRefundAddressesTest { +public class InvoiceRefundAddressTest { @Test public void it_should_manipulate_type() { String expected = "exampleType"; - InvoiceRefundAddresses testedClass = this.getTestedClass(); + InvoiceRefundAddress testedClass = this.getTestedClass(); testedClass.setType(expected); Assertions.assertSame(expected, testedClass.getType()); @@ -23,7 +23,7 @@ public void it_should_manipulate_type() { @Test public void it_should_manipulate_date() { ZonedDateTime expected = ZonedDateTime.now(); - InvoiceRefundAddresses testedClass = this.getTestedClass(); + InvoiceRefundAddress testedClass = this.getTestedClass(); testedClass.setDate(expected); Assertions.assertSame(expected, testedClass.getDate()); @@ -32,7 +32,7 @@ public void it_should_manipulate_date() { @Test public void it_should_manipulate_tag() { Integer expected = 123; - InvoiceRefundAddresses testedClass = this.getTestedClass(); + InvoiceRefundAddress testedClass = this.getTestedClass(); testedClass.setTag(expected); Assertions.assertSame(expected, testedClass.getTag()); @@ -41,13 +41,13 @@ public void it_should_manipulate_tag() { @Test public void it_should_manipulate_email() { String expected = "example@email.com"; - InvoiceRefundAddresses testedClass = this.getTestedClass(); + InvoiceRefundAddress testedClass = this.getTestedClass(); testedClass.setEmail(expected); Assertions.assertSame(expected, testedClass.getEmail()); } - private InvoiceRefundAddresses getTestedClass() { - return new InvoiceRefundAddresses(); + private InvoiceRefundAddress getTestedClass() { + return new InvoiceRefundAddress(); } } diff --git a/src/test/java/com/bitpay/sdk/model/invoice/InvoiceTest.java b/src/test/java/com/bitpay/sdk/model/invoice/InvoiceTest.java index ecd42551..050b2690 100644 --- a/src/test/java/com/bitpay/sdk/model/invoice/InvoiceTest.java +++ b/src/test/java/com/bitpay/sdk/model/invoice/InvoiceTest.java @@ -350,7 +350,7 @@ public void it_should_manipulate_transactions() { @Test public void it_should_manipulate_refundAddresses() { - List> expected = new ArrayList>(); + List> expected = new ArrayList>(); Invoice testedClass = this.getTestedClass(); testedClass.setRefundAddresses(expected);