 1 package buckpal.application.port.in;
 2
 3 public record SendMoneyCommand(
 4         @NotNull AccountId sourceAccountId,
 5         @NotNull AccountId targetAccountId,
 6         @NotNull @PositiveMoney Money money) {
 7
 8     public SendMoneyCommand(
 9             AccountId sourceAccountId,
10             AccountId targetAccountId,
11             Money money) {
12         this.sourceAccountId = sourceAccountId;
13         this.targetAccountId = targetAccountId;
14         this.money = money;
15         Validator.validate(this);
16     }
17 }
