File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
src/main/java/com/checkout/payments Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 5
5
import lombok .Builder ;
6
6
import lombok .Data ;
7
7
8
+ import java .time .Instant ;
9
+
8
10
@ Data
9
11
@ Builder
10
12
@ AllArgsConstructor
11
13
public final class Product {
12
14
15
+ private ProductType type ;
16
+
13
17
private String name ;
14
18
15
19
private Long quantity ;
@@ -47,4 +51,7 @@ public final class Product {
47
51
48
52
private String sku ;
49
53
54
+ @ SerializedName ("service_ends_on" )
55
+ private Instant serviceEndsOn ;
56
+
50
57
}
Original file line number Diff line number Diff line change @@ -38,6 +38,12 @@ public enum ProductType {
38
38
INVOICE ,
39
39
40
40
@ SerializedName ("pay_later" )
41
- PAY_LATER
41
+ PAY_LATER ,
42
+
43
+ @ SerializedName ("digital" )
44
+ DIGITAL ,
45
+
46
+ @ SerializedName ("physical" )
47
+ PHYSICAL ,
42
48
43
49
}
You can’t perform that action at this time.
0 commit comments