File tree Expand file tree Collapse file tree 7 files changed +38
-0
lines changed
generator/src/main/java/net/codecrete/qrbill/generator Expand file tree Collapse file tree 7 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,23 @@ public enum Type {
4545
4646 private static final long serialVersionUID = -8833174154173397772L ;
4747
48+ /** Address type */
4849 private Type type = Type .UNDETERMINED ;
50+ /** Name of person or company */
4951 private String name ;
52+ /** Address line 1 */
5053 private String addressLine1 ;
54+ /** Address line 2 */
5155 private String addressLine2 ;
56+ /** Street */
5257 private String street ;
58+ /** House or building number */
5359 private String houseNo ;
60+ /** Postal code */
5461 private String postalCode ;
62+ /** Town */
5563 private String town ;
64+ /** ISO country code */
5665 private String countryCode ;
5766
5867 /**
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ public class AlternativeScheme implements Serializable {
1717
1818 private static final long serialVersionUID = -8304082204378228870L ;
1919
20+ /** Scheme name */
2021 private String name ;
22+ /** Payment instruction */
2123 private String instruction ;
2224
2325 /**
Original file line number Diff line number Diff line change @@ -42,17 +42,29 @@ public enum Version {
4242 V2_0
4343 }
4444
45+ /** Version of QR bill standard */
4546 private Version version = Version .V2_0 ;
47+ /** Payment amount */
4648 private BigDecimal amount = null ;
49+ /** Payment currency (ISO code) */
4750 private String currency = "CHF" ;
51+ /** Creditor's account number */
4852 private String account = null ;
53+ /** Creditor address */
4954 private Address creditor = new Address ();
55+ /** Payment reference type */
5056 private String referenceType = REFERENCE_TYPE_NO_REF ;
57+ /** Payment reference (number) */
5158 private String reference = null ;
59+ /** Debtor address */
5260 private Address debtor = null ;
61+ /** Unstructured message */
5362 private String unstructuredMessage = null ;
63+ /** Structured bill information */
5464 private String billInformation = null ;
65+ /** Alternative schemes */
5566 private AlternativeScheme [] alternativeSchemes = null ;
67+ /** Bill format */
5668 private BillFormat format = new BillFormat ();
5769
5870 /**
Original file line number Diff line number Diff line change @@ -22,13 +22,21 @@ public class BillFormat implements Serializable {
2222
2323 private static final long serialVersionUID = -2874086922578292745L ;
2424
25+ /** Output size */
2526 private OutputSize outputSize = OutputSize .QR_BILL_ONLY ;
27+ /** Language */
2628 private Language language = Language .EN ;
29+ /** Separator type */
2730 private SeparatorType separatorType = SeparatorType .DASHED_LINE_WITH_SCISSORS ;
31+ /** Font family */
2832 private String fontFamily = "Helvetica,Arial,\" Liberation Sans\" " ;
33+ /** Graphics format */
2934 private GraphicsFormat graphicsFormat = GraphicsFormat .SVG ;
35+ /** Resolution, in dpi */
3036 private int resolution = 144 ;
37+ /** Left margin, in mm */
3138 private double marginLeft = DEFAULT_MARGIN_WIDTH ;
39+ /** Right margin, in mm */
3240 private double marginRight = DEFAULT_MARGIN_WIDTH ;
3341
3442 /**
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ public class QRBillValidationError extends RuntimeException {
1313
1414 private static final long serialVersionUID = -959460901342010774L ;
1515
16+ /** Validation result */
1617 private final ValidationResult validationResult ;
1718
1819 /**
Original file line number Diff line number Diff line change @@ -36,9 +36,13 @@ public enum Type {
3636 ERROR
3737 }
3838
39+ /** Message type */
3940 private Type type ;
41+ /** Affected data field */
4042 private String field ;
43+ /** Message key */
4144 private String messageKey ;
45+ /** Message parameters for placeholders */
4246 private String [] messageParameters ;
4347
4448 /**
Original file line number Diff line number Diff line change @@ -23,7 +23,9 @@ public class ValidationResult implements Serializable {
2323 private static final long serialVersionUID = -791181851684443602L ;
2424 private static final List <ValidationMessage > EMPTY_LIST = Collections .emptyList ();
2525
26+ /** Validation messages */
2627 private List <ValidationMessage > validationMessages ;
28+ /** Cleaned bill data */
2729 private Bill cleanedBill ;
2830
2931 /**
You can’t perform that action at this time.
0 commit comments