Class ValidationConstants

java.lang.Object
net.codecrete.qrbill.generator.ValidationConstants

public class ValidationConstants extends Object
Constants for bill validation messages: message keys and field names.
  • Field Details

    • KEY_CURRENCY_NOT_CHF_OR_EUR

      public static final String KEY_CURRENCY_NOT_CHF_OR_EUR
      Validation message key: currency must be "CHF" or "EUR"
      See Also:
    • KEY_AMOUNT_OUTSIDE_VALID_RANGE

      public static final String 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

      public static final String 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

      public static final String KEY_ACCOUNT_IBAN_INVALID
      Validation message key: IBAN is not valid (incorrect format or check digit)
      See Also:
    • KEY_REF_INVALID

      public static final String 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

      public static final String 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

      public static final String 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

      public static final String 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

      public static final String 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

      public static final String KEY_FIELD_VALUE_MISSING
      Validation message key: Field must not be empty
      See Also:
    • KEY_ADDRESS_TYPE_CONFLICT

      public static final String 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

      public static final String KEY_COUNTRY_CODE_INVALID
      Validation message key: Country code must consist of two letters
      See Also:
    • KEY_FIELD_VALUE_CLIPPED

      public static final String KEY_FIELD_VALUE_CLIPPED
      Validation message key: Field has been clipped to not exceed the maximum length
      See Also:
    • KEY_FIELD_VALUE_TOO_LONG

      public static final String KEY_FIELD_VALUE_TOO_LONG
      Validation message key: Field value exceed the maximum length
      See Also:
    • KEY_ADDITIONAL_INFO_TOO_LONG

      public static final String KEY_ADDITIONAL_INFO_TOO_LONG
      Validation message key: Unstructured message and bill information combined exceed the maximum length
      See Also:
    • KEY_REPLACED_UNSUPPORTED_CHARACTERS

      public static final String KEY_REPLACED_UNSUPPORTED_CHARACTERS
      Validation message key: Unsupported characters have been replaced
      See Also:
    • KEY_DATA_STRUCTURE_INVALID

      public static final String 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

      public static final String KEY_VERSION_UNSUPPORTED
      Validation message key: Version 02.00 is supported only
      See Also:
    • KEY_CODING_TYPE_UNSUPPORTED

      public static final String KEY_CODING_TYPE_UNSUPPORTED
      Validation message key: Coding type 1 is supported only
      See Also:
    • KEY_NUMBER_INVALID

      public static final String KEY_NUMBER_INVALID
      Validation message key: Valid number required (nnnnn.nn)
      See Also:
    • KEY_ALT_SCHEME_MAX_EXCEEDED

      public static final String KEY_ALT_SCHEME_MAX_EXCEEDED
      Validation message key: The maximum of 2 alternative schemes has been exceeded
      See Also:
    • KEY_BILL_INFO_INVALID

      public static final String KEY_BILL_INFO_INVALID
      Validation message key: The bill information is invalid (does not start with // or is too short)
      See Also:
    • SUBFIELD_NAME

      public static final String SUBFIELD_NAME
      Relative field name of an address' name
      See Also:
    • SUBFIELD_ADDRESS_LINE_1

      public static final String SUBFIELD_ADDRESS_LINE_1
      Relative field of an address' line 1
      See Also:
    • SUBFIELD_ADDRESS_LINE_2

      public static final String SUBFIELD_ADDRESS_LINE_2
      Relative field of an address' line 2
      See Also:
    • SUBFIELD_STREET

      public static final String SUBFIELD_STREET
      Relative field of an address' street
      See Also:
    • SUBFIELD_HOUSE_NO

      public static final String SUBFIELD_HOUSE_NO
      Relative field of an address' house number
      See Also:
    • SUBFIELD_POSTAL_CODE

      public static final String SUBFIELD_POSTAL_CODE
      Relative field of an address' postal code
      See Also:
    • SUBFIELD_TOWN

      public static final String SUBFIELD_TOWN
      Relative field of an address' town
      See Also:
    • SUBFIELD_COUNTRY_CODE

      public static final String SUBFIELD_COUNTRY_CODE
      Relative field of an address' country code
      See Also:
    • FIELD_QR_TYPE

      public static final String FIELD_QR_TYPE
      Field name of the QR code type
      See Also:
    • FIELD_VERSION

      public static final String FIELD_VERSION
      Field name of the QR bill version
      See Also:
    • FIELD_CODING_TYPE

      public static final String FIELD_CODING_TYPE
      Field name of the QR bill's coding type
      See Also:
    • FIELD_TRAILER

      public static final String FIELD_TRAILER
      Field name of the QR bill's trailer ("EPD")
      See Also:
    • FIELD_CURRENCY

      public static final String FIELD_CURRENCY
      Field name of the currency
      See Also:
    • FIELD_AMOUNT

      public static final String FIELD_AMOUNT
      Field name of the amount
      See Also:
    • FIELD_ACCOUNT

      public static final String FIELD_ACCOUNT
      Field name of the account number
      See Also:
    • FIELD_REFERENCE_TYPE

      public static final String FIELD_REFERENCE_TYPE
      Field name of the reference type
      See Also:
    • FIELD_REFERENCE

      public static final String FIELD_REFERENCE
      Field name of the reference
      See Also:
    • FIELDROOT_CREDITOR

      public static final String FIELDROOT_CREDITOR
      Start of field name of the creditor address
      See Also:
    • FIELD_CREDITOR_NAME

      public static final String FIELD_CREDITOR_NAME
      Field name of the creditor's name
      See Also:
    • FIELD_CREDITOR_STREET

      public static final String FIELD_CREDITOR_STREET
      Field name of the creditor's street
      See Also:
    • FIELD_CREDITOR_HOUSE_NO

      public static final String FIELD_CREDITOR_HOUSE_NO
      Field name of the creditor's house number
      See Also:
    • FIELD_CREDITOR_POSTAL_CODE

      public static final String FIELD_CREDITOR_POSTAL_CODE
      Field name of the creditor's postal codde
      See Also:
    • FIELD_CREDITOR_TOWN

      public static final String FIELD_CREDITOR_TOWN
      Field name of the creditor's town
      See Also:
    • FIELD_CREDITOR_COUNTRY_CODE

      public static final String FIELD_CREDITOR_COUNTRY_CODE
      Field name of the creditor's country code
      See Also:
    • FIELD_UNSTRUCTURED_MESSAGE

      public static final String FIELD_UNSTRUCTURED_MESSAGE
      Field name of the unstructured message
      See Also:
    • FIELD_BILL_INFORMATION

      public static final String FIELD_BILL_INFORMATION
      Field name of the bill information
      See Also:
    • FIELD_ALTERNATIVE_SCHEMES

      public static final String FIELD_ALTERNATIVE_SCHEMES
      Field name of the alternative schemes
      See Also:
    • FIELDROOT_DEBTOR

      public static final String FIELDROOT_DEBTOR
      Start of field name of the debtor's address
      See Also:
    • FIELD_DEBTOR_NAME

      public static final String FIELD_DEBTOR_NAME
      Field name of the debtor's name
      See Also:
    • FIELD_DEBTOR_STREET

      public static final String FIELD_DEBTOR_STREET
      Field name of the debtor's street
      See Also:
    • FIELD_DEBTOR_HOUSE_NO

      public static final String FIELD_DEBTOR_HOUSE_NO
      Field name of the debtor's house number
      See Also:
    • FIELD_DEBTOR_POSTAL_CODE

      public static final String FIELD_DEBTOR_POSTAL_CODE
      Field name of the debtor's postal code
      See Also:
    • FIELD_DEBTOR_TOWN

      public static final String FIELD_DEBTOR_TOWN
      Field name of the debtor's town
      See Also:
    • FIELD_DEBTOR_COUNTRY_CODE

      public static final String FIELD_DEBTOR_COUNTRY_CODE
      Field name of the debtor's country code
      See Also: