WIP
authorKai Moritz <kai@juplo.de>
Fri, 11 Jun 2021 15:05:05 +0000 (17:05 +0200)
committerKai Moritz <kai@juplo.de>
Fri, 11 Jun 2021 15:05:05 +0000 (17:05 +0200)
transfer/src/main/java/de/juplo/kafka/payment/transfer/Transfer.java [new file with mode: 0644]

diff --git a/transfer/src/main/java/de/juplo/kafka/payment/transfer/Transfer.java b/transfer/src/main/java/de/juplo/kafka/payment/transfer/Transfer.java
new file mode 100644 (file)
index 0000000..38673d1
--- /dev/null
@@ -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 Transfer
+{
+  @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;
+}