From 4f564193aef1e81919d90fa638c1ce1490a78c07 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 11 Jun 2021 16:53:19 +0200 Subject: [PATCH] WIP --- .../kafka/payment/transfer/TransferBean.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 transfer/src/main/java/de/juplo/kafka/payment/transfer/TransferBean.java diff --git a/transfer/src/main/java/de/juplo/kafka/payment/transfer/TransferBean.java b/transfer/src/main/java/de/juplo/kafka/payment/transfer/TransferBean.java new file mode 100644 index 0000000..498fb69 --- /dev/null +++ b/transfer/src/main/java/de/juplo/kafka/payment/transfer/TransferBean.java @@ -0,0 +1,25 @@ +package de.juplo.kafka.payment.transfer; + +import lombok.Builder; +import lombok.Data; + +import javax.validation.constraints.NotNull; +import java.util.UUID; + + +/** + * Simple DTO used by the REST interface + */ +@Data +@Builder +public class TransferBean +{ + @NotNull(message = "Cannot be null") + private UUID id; + @NotNull(message = "Cannot be null") + private long payer; + @NotNull(message = "Cannot be null") + private long payee; + @NotNull(message = "Cannot be null") + private int amount; +} -- 2.20.1