Skip to content

Commit 34f4ac2

Browse files
SP-737 Type Review: Java
1 parent 381703f commit 34f4ac2

File tree

7 files changed

+28
-22
lines changed

7 files changed

+28
-22
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
99

1010
/**
11+
* Buyer Fields.
12+
*
1113
* @see <a href="https://developer.bitpay.com/reference/notifications-invoices">Invoice Webhook</a>
1214
*/
1315
@JsonIgnoreProperties(ignoreUnknown = true)

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import java.util.Hashtable;
1212

1313
/**
14+
* Invoice Webhook.
15+
*
1416
* @see <a href="https://developer.bitpay.com/reference/notifications-invoices">Invoice Webhook</a>
1517
*/
1618
@JsonIgnoreProperties(ignoreUnknown = true)
@@ -106,15 +108,15 @@ public void setExceptionStatus(String exceptionStatus) {
106108
}
107109

108110
public BuyerFields getBuyerFields() {
109-
return buyerFields;
111+
return this.buyerFields;
110112
}
111113

112114
public void setBuyerFields(BuyerFields buyerFields) {
113115
this.buyerFields = buyerFields;
114116
}
115117

116118
public Hashtable<String, BigInteger> getPaymentSubtotals() {
117-
return paymentSubtotals;
119+
return this.paymentSubtotals;
118120
}
119121

120122
public void setPaymentSubtotals(Hashtable<String, BigInteger> paymentSubtotals) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ public void setWbtc(MinerFeesItem wbtc) {
288288
*/
289289
@JsonIgnore
290290
public MinerFeesItem getMatic() {
291-
return matic;
291+
return this.matic;
292292
}
293293

294294
/**
@@ -308,7 +308,7 @@ public void setMatic(MinerFeesItem matic) {
308308
*/
309309
@JsonIgnore
310310
public MinerFeesItem getUsdcM() {
311-
return usdcM;
311+
return this.usdcM;
312312
}
313313

314314
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ public void setWbtcM(SupportedTransactionCurrency wbtcM) {
450450
*/
451451
@JsonIgnore
452452
public SupportedTransactionCurrency getShibM() {
453-
return shibM;
453+
return this.shibM;
454454
}
455455

456456
/**

src/main/java/com/bitpay/sdk/model/payout/PayoutWebhook.java

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
package com.bitpay.sdk.model.payout;
77

8+
import com.fasterxml.jackson.annotation.JsonSetter;
89
import java.math.BigDecimal;
910
import java.time.ZonedDateTime;
1011
import java.util.Hashtable;
@@ -27,7 +28,7 @@ class PayoutWebhook {
2728
protected String email;
2829
protected String reference;
2930
protected String label;
30-
protected String notificationURL;
31+
protected String notificationUrl;
3132
protected String notificationEmail;
3233
protected ZonedDateTime effectiveDate;
3334
protected ZonedDateTime requestDate;
@@ -115,48 +116,49 @@ public void setLabel(String label) {
115116
this.label = label;
116117
}
117118

118-
public String getNotificationURL() {
119-
return this.notificationURL;
119+
public String getNotificationUrl() {
120+
return this.notificationUrl;
120121
}
121122

122-
public void setNotificationURL(String notificationURL) {
123-
this.notificationURL = notificationURL;
123+
@JsonSetter("notificationURL")
124+
public void setNotificationUrl(String notificationUrl) {
125+
this.notificationUrl = notificationUrl;
124126
}
125127

126128
public String getNotificationEmail() {
127-
return notificationEmail;
129+
return this.notificationEmail;
128130
}
129131

130132
public void setNotificationEmail(String notificationEmail) {
131133
this.notificationEmail = notificationEmail;
132134
}
133135

134136
public ZonedDateTime getEffectiveDate() {
135-
return effectiveDate;
137+
return this.effectiveDate;
136138
}
137139

138140
public void setEffectiveDate(ZonedDateTime effectiveDate) {
139141
this.effectiveDate = effectiveDate;
140142
}
141143

142144
public ZonedDateTime getRequestDate() {
143-
return requestDate;
145+
return this.requestDate;
144146
}
145147

146148
public void setRequestDate(ZonedDateTime requestDate) {
147149
this.requestDate = requestDate;
148150
}
149151

150152
public String getStatus() {
151-
return status;
153+
return this.status;
152154
}
153155

154156
public void setStatus(String status) {
155157
this.status = status;
156158
}
157159

158160
public List<PayoutTransaction> getTransactions() {
159-
return transactions;
161+
return this.transactions;
160162
}
161163

162164
public void setTransactions(List<PayoutTransaction> transactions) {

src/main/java/com/bitpay/sdk/model/payout/RecipientWebhook.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,39 +22,39 @@ class RecipientWebhook {
2222
protected String shopperId;
2323

2424
public String getEmail() {
25-
return email;
25+
return this.email;
2626
}
2727

2828
public void setEmail(String email) {
2929
this.email = email;
3030
}
3131

3232
public String getLabel() {
33-
return label;
33+
return this.label;
3434
}
3535

3636
public void setLabel(String label) {
3737
this.label = label;
3838
}
3939

4040
public String getStatus() {
41-
return status;
41+
return this.status;
4242
}
4343

4444
public void setStatus(String status) {
4545
this.status = status;
4646
}
4747

4848
public String getId() {
49-
return id;
49+
return this.id;
5050
}
5151

5252
public void setId(String id) {
5353
this.id = id;
5454
}
5555

5656
public String getShopperId() {
57-
return shopperId;
57+
return this.shopperId;
5858
}
5959

6060
public void setShopperId(String shopperId) {

src/test/java/com/bitpay/sdk/model/payout/PayoutWebhookTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ public void testManipulateLabel() {
104104
public void testManipulateNotificationURL() {
105105
PayoutWebhook testedClass = this.getTestedClass();
106106
String expected = "someValue";
107-
testedClass.setNotificationURL(expected);
107+
testedClass.setNotificationUrl(expected);
108108

109-
Assertions.assertSame(expected, testedClass.getNotificationURL());
109+
Assertions.assertSame(expected, testedClass.getNotificationUrl());
110110
}
111111

112112
@Test

0 commit comments

Comments
 (0)