1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package de.kaiserpfalzedv.services.sms77.model;
19
20 import java.io.Serializable;
21
22 import com.fasterxml.jackson.annotation.JsonInclude;
23
24 import jakarta.validation.constraints.NotNull;
25 import jakarta.validation.constraints.Size;
26 import lombok.AllArgsConstructor;
27 import lombok.EqualsAndHashCode;
28 import lombok.Getter;
29 import lombok.NoArgsConstructor;
30 import lombok.ToString;
31 import lombok.experimental.SuperBuilder;
32 import lombok.extern.jackson.Jacksonized;
33
34
35
36
37
38
39
40 @Jacksonized
41 @SuperBuilder(toBuilder = true)
42 @AllArgsConstructor
43 @NoArgsConstructor
44 @Getter
45 @ToString(onlyExplicitlyIncluded = true)
46 @EqualsAndHashCode(onlyExplicitlyIncluded = true)
47 @JsonInclude(JsonInclude.Include.NON_ABSENT)
48 public class Balance implements Serializable {
49 private static final long serialVersionUID = 0L;
50
51 @Size(max = 5)
52 private String currency;
53
54 @NotNull
55 private Double amount;
56 }