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 55import lombok .Builder ;
66import lombok .Data ;
77
8+ import java .time .Instant ;
9+
810@ Data
911@ Builder
1012@ AllArgsConstructor
1113public final class Product {
1214
15+ private ProductType type ;
16+
1317 private String name ;
1418
1519 private Long quantity ;
@@ -47,4 +51,7 @@ public final class Product {
4751
4852 private String sku ;
4953
54+ @ SerializedName ("service_ends_on" )
55+ private Instant serviceEndsOn ;
56+
5057}
Original file line number Diff line number Diff line change @@ -38,6 +38,12 @@ public enum ProductType {
3838 INVOICE ,
3939
4040 @ SerializedName ("pay_later" )
41- PAY_LATER
41+ PAY_LATER ,
42+
43+ @ SerializedName ("digital" )
44+ DIGITAL ,
45+
46+ @ SerializedName ("physical" )
47+ PHYSICAL ,
4248
4349}
You can’t perform that action at this time.
0 commit comments