File tree 2 files changed +45
-0
lines changed
src/main/java/com/messagebird/objects
2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 108
108
<version >2.21.0</version >
109
109
<scope >test</scope >
110
110
</dependency >
111
+ <dependency >
112
+ <groupId >org.jetbrains</groupId >
113
+ <artifactId >annotations</artifactId >
114
+ <version >13.0</version >
115
+ </dependency >
111
116
</dependencies >
112
117
113
118
<distributionManagement >
Original file line number Diff line number Diff line change 1
1
package com .messagebird .objects ;
2
2
3
+ import org .jetbrains .annotations .Nullable ;
4
+
3
5
import java .io .Serializable ;
4
6
import java .math .BigInteger ;
5
7
import java .util .Date ;
@@ -260,6 +262,8 @@ static public class Items implements Serializable {
260
262
private BigInteger recipient ;
261
263
private String status ;
262
264
private Date statusDatetime ;
265
+ @ Nullable
266
+ private Price price ;
263
267
264
268
public Items () {
265
269
}
@@ -270,6 +274,7 @@ public String toString() {
270
274
"recipient=" + recipient +
271
275
", status='" + status + '\'' +
272
276
", statusDatetime=" + statusDatetime +
277
+ ", price=" + price +
273
278
"}" ;
274
279
}
275
280
@@ -300,6 +305,41 @@ public Date getStatusDatetime() {
300
305
return statusDatetime ;
301
306
}
302
307
308
+ public Price getPrice () {
309
+ return price ;
310
+ }
311
+
312
+ }
313
+
314
+ /**
315
+ * Response price of items
316
+ */
317
+ static public class Price implements Serializable {
318
+
319
+ private static final long serialVersionUID = -4104837036540050532L ;
320
+
321
+ private float amount ;
322
+ private String currency ;
323
+
324
+ public Price () {
325
+ }
326
+
327
+ @ Override
328
+ public String toString () {
329
+ return "Price{" +
330
+ "amount=" + amount +
331
+ ", currency=" + currency +
332
+ "}" ;
333
+ }
334
+
335
+ public float getAmount () {
336
+ return amount ;
337
+ }
338
+
339
+ public String getCurrency () {
340
+ return currency ;
341
+ }
342
+
303
343
}
304
344
}
305
345
You can’t perform that action at this time.
0 commit comments