View Javadoc
1   package com.srv4pos.server.api.posplus;
2   
3   import org.springframework.roo.addon.javabean.RooJavaBean;
4   import org.springframework.roo.addon.json.RooJson;
5   import org.springframework.roo.addon.tostring.RooToString;
6   
7   import javax.validation.constraints.Min;
8   import javax.validation.constraints.NotNull;
9   import java.util.Date;
10  import java.util.Map;
11  
12  /**
13   * Represents information about pos plus control unit.
14   * <p>User: Kirill, Date: 22.02.14 12:15</p>
15   */
16  @RooJavaBean
17  @RooToString
18  @RooJson(deepSerialize = true)
19  public class KdInfo {
20  
21      @Min(0)
22      private long brutto;
23  
24      /**
25       * The key - tax value. The value - the sum. E.g. 20.12 SEK splitted between 12.05 SEK for VAT 6% and 10.07 SEK for VAT 12%
26       * will do {'6': 1205, '12': 1007}
27       */
28      @NotNull
29      private Map<Integer, Long> vatRateToSum;
30      private boolean refund;
31      @NotNull
32      private PrintType printType;
33  
34      /**
35       * Autoincrement receipt number within one POS terminal.
36       */
37      private int receiptNumber;
38      @NotNull
39      private Date date;
40  }