Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 42f1b63

Browse files
authoredDec 17, 2024··
Update product and add types in payments (#458)
1 parent 36a65a9 commit 42f1b63

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
 

‎src/main/java/com/checkout/payments/Product.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@
55
import lombok.Builder;
66
import lombok.Data;
77

8+
import java.time.Instant;
9+
810
@Data
911
@Builder
1012
@AllArgsConstructor
1113
public 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
}

‎src/main/java/com/checkout/payments/ProductType.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)
Please sign in to comment.