Skip to content

Commit d369f8e

Browse files
authored
Merge pull request #277 from mwarzybok-sumoheavy/feature/SP-883
SP-883 Fix class name InvoiceRefundAddresses to InvoiceRefundAddress
2 parents 6a0e210 + 9637229 commit d369f8e

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/main/java/com/bitpay/sdk/model/invoice/Invoice.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public class Invoice {
6666
protected String exceptionStatus = ModelConfiguration.DEFAULT_NON_SENT_VALUE;
6767
protected Integer targetConfirmations;
6868
protected List<InvoiceTransaction> transactions;
69-
protected List<Map<String, InvoiceRefundAddresses>> refundAddresses;
69+
protected List<Map<String, InvoiceRefundAddress>> refundAddresses;
7070
protected Boolean refundAddressRequestPending;
7171
protected String buyerProvidedEmail = ModelConfiguration.DEFAULT_NON_SENT_VALUE;
7272
protected InvoiceBuyerProvidedInfo invoiceBuyerProvidedInfo;
@@ -1169,7 +1169,7 @@ public void setTargetConfirmations(final Integer targetConfirmations) {
11691169
* @return the refund addresses
11701170
*/
11711171
@JsonIgnore
1172-
public List<Map<String, InvoiceRefundAddresses>> getRefundAddresses() {
1172+
public List<Map<String, InvoiceRefundAddress>> getRefundAddresses() {
11731173
return this.refundAddresses;
11741174
}
11751175

@@ -1180,7 +1180,7 @@ public List<Map<String, InvoiceRefundAddresses>> getRefundAddresses() {
11801180
* @param refundAddresses the refund addresses
11811181
*/
11821182
@JsonProperty("refundAddresses")
1183-
public void setRefundAddresses(final List<Map<String, InvoiceRefundAddresses>> refundAddresses) {
1183+
public void setRefundAddresses(final List<Map<String, InvoiceRefundAddress>> refundAddresses) {
11841184
this.refundAddresses = refundAddresses;
11851185
}
11861186

src/main/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddresses.java renamed to src/main/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddress.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import java.time.ZonedDateTime;
99

10-
public class InvoiceRefundAddresses {
10+
public class InvoiceRefundAddress {
1111

1212
protected String type;
1313
protected ZonedDateTime date;

src/test/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddressesTest.java renamed to src/test/java/com/bitpay/sdk/model/invoice/InvoiceRefundAddressTest.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
import org.junit.jupiter.api.Assertions;
1010
import org.junit.jupiter.api.Test;
1111

12-
public class InvoiceRefundAddressesTest {
12+
public class InvoiceRefundAddressTest {
1313

1414
@Test
1515
public void it_should_manipulate_type() {
1616
String expected = "exampleType";
17-
InvoiceRefundAddresses testedClass = this.getTestedClass();
17+
InvoiceRefundAddress testedClass = this.getTestedClass();
1818

1919
testedClass.setType(expected);
2020
Assertions.assertSame(expected, testedClass.getType());
@@ -23,7 +23,7 @@ public void it_should_manipulate_type() {
2323
@Test
2424
public void it_should_manipulate_date() {
2525
ZonedDateTime expected = ZonedDateTime.now();
26-
InvoiceRefundAddresses testedClass = this.getTestedClass();
26+
InvoiceRefundAddress testedClass = this.getTestedClass();
2727

2828
testedClass.setDate(expected);
2929
Assertions.assertSame(expected, testedClass.getDate());
@@ -32,7 +32,7 @@ public void it_should_manipulate_date() {
3232
@Test
3333
public void it_should_manipulate_tag() {
3434
Integer expected = 123;
35-
InvoiceRefundAddresses testedClass = this.getTestedClass();
35+
InvoiceRefundAddress testedClass = this.getTestedClass();
3636

3737
testedClass.setTag(expected);
3838
Assertions.assertSame(expected, testedClass.getTag());
@@ -41,13 +41,13 @@ public void it_should_manipulate_tag() {
4141
@Test
4242
public void it_should_manipulate_email() {
4343
String expected = "[email protected]";
44-
InvoiceRefundAddresses testedClass = this.getTestedClass();
44+
InvoiceRefundAddress testedClass = this.getTestedClass();
4545

4646
testedClass.setEmail(expected);
4747
Assertions.assertSame(expected, testedClass.getEmail());
4848
}
4949

50-
private InvoiceRefundAddresses getTestedClass() {
51-
return new InvoiceRefundAddresses();
50+
private InvoiceRefundAddress getTestedClass() {
51+
return new InvoiceRefundAddress();
5252
}
5353
}

src/test/java/com/bitpay/sdk/model/invoice/InvoiceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public void it_should_manipulate_transactions() {
350350

351351
@Test
352352
public void it_should_manipulate_refundAddresses() {
353-
List<Map<String, InvoiceRefundAddresses>> expected = new ArrayList<Map<String, InvoiceRefundAddresses>>();
353+
List<Map<String, InvoiceRefundAddress>> expected = new ArrayList<Map<String, InvoiceRefundAddress>>();
354354
Invoice testedClass = this.getTestedClass();
355355

356356
testedClass.setRefundAddresses(expected);

0 commit comments

Comments
 (0)