Skip to content

Commit

Permalink
Update product and add types in payments (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-rodriguez-cko authored Dec 17, 2024
1 parent 36a65a9 commit 42f1b63
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/main/java/com/checkout/payments/Product.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@
import lombok.Builder;
import lombok.Data;

import java.time.Instant;

@Data
@Builder
@AllArgsConstructor
public final class Product {

private ProductType type;

private String name;

private Long quantity;
Expand Down Expand Up @@ -47,4 +51,7 @@ public final class Product {

private String sku;

@SerializedName("service_ends_on")
private Instant serviceEndsOn;

}
8 changes: 7 additions & 1 deletion src/main/java/com/checkout/payments/ProductType.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ public enum ProductType {
INVOICE,

@SerializedName("pay_later")
PAY_LATER
PAY_LATER,

@SerializedName("digital")
DIGITAL,

@SerializedName("physical")
PHYSICAL,

}

0 comments on commit 42f1b63

Please sign in to comment.