View Javadoc
1   /*
2    * Copyright (c) 2023. Roland T. Lichti, Kaiserpfalz EDV-Service.
3    *
4    * This program is free software: you can redistribute it and/or modify
5    * it under the terms of the GNU General Public License as published by
6    * the Free Software Foundation, either version 3 of the License, or
7    * (at your option) any later version.
8    *
9    * This program is distributed in the hope that it will be useful,
10   * but WITHOUT ANY WARRANTY; without even the implied warranty of
11   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   * GNU General Public License for more details.
13   *
14   * You should have received a copy of the GNU General Public License
15   * along with this program.  If not, see <https://www.gnu.org/licenses/>.
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   * <p>Sms -- .</p>
36   *
37   * @author rlichti {@literal <rlichti@kaiserpfalz-edv.de>}
38   * @since 1.0.0  2023-01-21
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  }