Package net.codecrete.qrbill.generator
Class ValidationConstants
java.lang.Object
net.codecrete.qrbill.generator.ValidationConstants
Constants for bill validation messages: message keys and field names.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Field name of the account numberstatic final String
Field name of the alternative schemesstatic final String
Field name of the amountstatic final String
Field name of the bill informationstatic final String
Field name of the QR bill's coding typestatic final String
Field name of the creditor's country codestatic final String
Field name of the creditor's house numberstatic final String
Field name of the creditor's namestatic final String
Field name of the creditor's postal coddestatic final String
Field name of the creditor's streetstatic final String
Field name of the creditor's townstatic final String
Field name of the currencystatic final String
Field name of the debtor's country codestatic final String
Field name of the debtor's house numberstatic final String
Field name of the debtor's namestatic final String
Field name of the debtor's postal codestatic final String
Field name of the debtor's streetstatic final String
Field name of the debtor's townstatic final String
Field name of the QR code typestatic final String
Field name of the referencestatic final String
Field name of the reference typestatic final String
Field name of the QR bill's trailer ("EPD")static final String
Field name of the unstructured messagestatic final String
Field name of the QR bill versionstatic final String
Start of field name of the creditor addressstatic final String
Start of field name of the debtor's addressstatic final String
Validation message key: IBAN is not valid (incorrect format or check digit)static final String
Validation message key: account number should start with "CH" or "LI"static final String
Validation message key: Unstructured message and bill information combined exceed the maximum lengthstatic final String
Validation message key: Conflicting fields for both structured and combined elements address type have been usedstatic final String
Validation message key: The maximum of 2 alternative schemes has been exceededstatic final String
Validation message key: amount must be between 0.01 and 999999999.99static final String
Validation message key: The bill information is invalid (does not start with // or is too short)static final String
Validation message key: Coding type 1 is supported onlystatic final String
Validation message key: Country code must consist of two lettersstatic final String
Validation message key: For payments to a QR-IBAN account, a QR reference is required.static final String
Validation message key: currency must be "CHF" or "EUR"static final String
Validation message key: Invalid data structure; it must start with "SPC" and consists of 32 to 34 lines of text (with exceptions)static final String
Validation message key: Field has been clipped to not exceed the maximum lengthstatic final String
Validation message key: Field must not be emptystatic final String
Validation message key: Field value exceed the maximum lengthstatic final String
Validation message key: Valid number required (nnnnn.nn)static final String
Validation message key: A QR reference is only allowed for payments to a QR-IBAN account.static final String
Validation message key: QR reference is missing; it is mandatory for payments to a QR-IBAN account.static final String
Validation message key: The reference is invalid.static final String
Validation message key: Reference type should be one of "QRR", "SCOR" and "NON" and match the reference.static final String
Validation message key: Unsupported characters have been replacedstatic final String
Validation message key: Version 02.00 is supported onlystatic final String
Relative field of an address' line 1static final String
Relative field of an address' line 2static final String
Relative field of an address' country codestatic final String
Relative field of an address' house numberstatic final String
Relative field name of an address' namestatic final String
Relative field of an address' postal codestatic final String
Relative field of an address' streetstatic final String
Relative field of an address' town -
Method Summary
-
Field Details
-
KEY_CURRENCY_NOT_CHF_OR_EUR
Validation message key: currency must be "CHF" or "EUR"- See Also:
-
KEY_AMOUNT_OUTSIDE_VALID_RANGE
Validation message key: amount must be between 0.01 and 999999999.99- See Also:
-
KEY_ACCOUNT_IBAN_NOT_FROM_CH_OR_LI
Validation message key: account number should start with "CH" or "LI"- See Also:
-
KEY_ACCOUNT_IBAN_INVALID
Validation message key: IBAN is not valid (incorrect format or check digit)- See Also:
-
KEY_REF_INVALID
Validation message key: The reference is invalid. It is neither a valid QR reference nor a valid ISO 11649 reference.- See Also:
-
KEY_QR_REF_MISSING
Validation message key: QR reference is missing; it is mandatory for payments to a QR-IBAN account.- See Also:
-
KEY_CRED_REF_INVALID_USE_FOR_QR_IBAN
Validation message key: For payments to a QR-IBAN account, a QR reference is required. An ISO 11649 reference may not be used.- See Also:
-
KEY_QR_REF_INVALID_USE_FOR_NON_QR_IBAN
Validation message key: A QR reference is only allowed for payments to a QR-IBAN account.- See Also:
-
KEY_REF_TYPE_INVALID
Validation message key: Reference type should be one of "QRR", "SCOR" and "NON" and match the reference.- See Also:
-
KEY_FIELD_VALUE_MISSING
Validation message key: Field must not be empty- See Also:
-
KEY_ADDRESS_TYPE_CONFLICT
Validation message key: Conflicting fields for both structured and combined elements address type have been used- See Also:
-
KEY_COUNTRY_CODE_INVALID
Validation message key: Country code must consist of two letters- See Also:
-
KEY_FIELD_VALUE_CLIPPED
Validation message key: Field has been clipped to not exceed the maximum length- See Also:
-
KEY_FIELD_VALUE_TOO_LONG
Validation message key: Field value exceed the maximum length- See Also:
-
KEY_ADDITIONAL_INFO_TOO_LONG
Validation message key: Unstructured message and bill information combined exceed the maximum length- See Also:
-
KEY_REPLACED_UNSUPPORTED_CHARACTERS
Validation message key: Unsupported characters have been replaced- See Also:
-
KEY_DATA_STRUCTURE_INVALID
Validation message key: Invalid data structure; it must start with "SPC" and consists of 32 to 34 lines of text (with exceptions)- See Also:
-
KEY_VERSION_UNSUPPORTED
Validation message key: Version 02.00 is supported only- See Also:
-
KEY_CODING_TYPE_UNSUPPORTED
Validation message key: Coding type 1 is supported only- See Also:
-
KEY_NUMBER_INVALID
Validation message key: Valid number required (nnnnn.nn)- See Also:
-
KEY_ALT_SCHEME_MAX_EXCEEDED
Validation message key: The maximum of 2 alternative schemes has been exceeded- See Also:
-
KEY_BILL_INFO_INVALID
Validation message key: The bill information is invalid (does not start with // or is too short)- See Also:
-
SUBFIELD_NAME
Relative field name of an address' name- See Also:
-
SUBFIELD_ADDRESS_LINE_1
Relative field of an address' line 1- See Also:
-
SUBFIELD_ADDRESS_LINE_2
Relative field of an address' line 2- See Also:
-
SUBFIELD_STREET
Relative field of an address' street- See Also:
-
SUBFIELD_HOUSE_NO
Relative field of an address' house number- See Also:
-
SUBFIELD_POSTAL_CODE
Relative field of an address' postal code- See Also:
-
SUBFIELD_TOWN
Relative field of an address' town- See Also:
-
SUBFIELD_COUNTRY_CODE
Relative field of an address' country code- See Also:
-
FIELD_QR_TYPE
Field name of the QR code type- See Also:
-
FIELD_VERSION
Field name of the QR bill version- See Also:
-
FIELD_CODING_TYPE
Field name of the QR bill's coding type- See Also:
-
FIELD_TRAILER
Field name of the QR bill's trailer ("EPD")- See Also:
-
FIELD_CURRENCY
Field name of the currency- See Also:
-
FIELD_AMOUNT
Field name of the amount- See Also:
-
FIELD_ACCOUNT
Field name of the account number- See Also:
-
FIELD_REFERENCE_TYPE
Field name of the reference type- See Also:
-
FIELD_REFERENCE
Field name of the reference- See Also:
-
FIELDROOT_CREDITOR
Start of field name of the creditor address- See Also:
-
FIELD_CREDITOR_NAME
Field name of the creditor's name- See Also:
-
FIELD_CREDITOR_STREET
Field name of the creditor's street- See Also:
-
FIELD_CREDITOR_HOUSE_NO
Field name of the creditor's house number- See Also:
-
FIELD_CREDITOR_POSTAL_CODE
Field name of the creditor's postal codde- See Also:
-
FIELD_CREDITOR_TOWN
Field name of the creditor's town- See Also:
-
FIELD_CREDITOR_COUNTRY_CODE
Field name of the creditor's country code- See Also:
-
FIELD_UNSTRUCTURED_MESSAGE
Field name of the unstructured message- See Also:
-
FIELD_BILL_INFORMATION
Field name of the bill information- See Also:
-
FIELD_ALTERNATIVE_SCHEMES
Field name of the alternative schemes- See Also:
-
FIELDROOT_DEBTOR
Start of field name of the debtor's address- See Also:
-
FIELD_DEBTOR_NAME
Field name of the debtor's name- See Also:
-
FIELD_DEBTOR_STREET
Field name of the debtor's street- See Also:
-
FIELD_DEBTOR_HOUSE_NO
Field name of the debtor's house number- See Also:
-
FIELD_DEBTOR_POSTAL_CODE
Field name of the debtor's postal code- See Also:
-
FIELD_DEBTOR_TOWN
Field name of the debtor's town- See Also:
-
FIELD_DEBTOR_COUNTRY_CODE
Field name of the debtor's country code- See Also:
-