Class ValidationConstants
Constants for bill validation messages: message keys and field names.
Inheritance
Inherited Members
Namespace: Codecrete.SwissQRBill.Generator
Assembly: Codecrete.SwissQRBill.Core.dll
Syntax
public static class ValidationConstants
Fields
| Improve this Doc View SourceFieldAccount
Field name of the account number.
Declaration
public const string FieldAccount = "account"
Field Value
Type | Description |
---|---|
System.String |
FieldAlternativeSchemes
Field name of the alternative schemes.
Declaration
public const string FieldAlternativeSchemes = "altSchemes"
Field Value
Type | Description |
---|---|
System.String |
FieldAmount
Field name of the amount.
Declaration
public const string FieldAmount = "amount"
Field Value
Type | Description |
---|---|
System.String |
FieldBillInformation
Field name of the bill information.
Declaration
public const string FieldBillInformation = "billInformation"
Field Value
Type | Description |
---|---|
System.String |
FieldCodingType
Field name of the QR bill's coding type.
Declaration
public const string FieldCodingType = "codingType"
Field Value
Type | Description |
---|---|
System.String |
FieldCreditorCountryCode
Field name of the creditor's country code.
Declaration
public const string FieldCreditorCountryCode = "creditor.countryCode"
Field Value
Type | Description |
---|---|
System.String |
FieldCreditorHouseNo
Field name of the creditor's house number.
Declaration
public const string FieldCreditorHouseNo = "creditor.houseNo"
Field Value
Type | Description |
---|---|
System.String |
FieldCreditorName
Field name of the creditor's name.
Declaration
public const string FieldCreditorName = "creditor.name"
Field Value
Type | Description |
---|---|
System.String |
FieldCreditorPostalCode
Field name of the creditor's postal code.
Declaration
public const string FieldCreditorPostalCode = "creditor.postalCode"
Field Value
Type | Description |
---|---|
System.String |
FieldCreditorStreet
Field name of the creditor's street.
Declaration
public const string FieldCreditorStreet = "creditor.street"
Field Value
Type | Description |
---|---|
System.String |
FieldCreditorTown
Field name of the creditor's town.
Declaration
public const string FieldCreditorTown = "creditor.town"
Field Value
Type | Description |
---|---|
System.String |
FieldCurrency
Field name of the currency.
Declaration
public const string FieldCurrency = "currency"
Field Value
Type | Description |
---|---|
System.String |
FieldDebtorCountryCode
Field name of the debtor's country code.
Declaration
public const string FieldDebtorCountryCode = "debtor.countryCode"
Field Value
Type | Description |
---|---|
System.String |
FieldDebtorHouseNo
Field name of the debtor's house number.
Declaration
public const string FieldDebtorHouseNo = "debtor.houseNo"
Field Value
Type | Description |
---|---|
System.String |
FieldDebtorName
Field name of the debtor's name.
Declaration
public const string FieldDebtorName = "debtor.name"
Field Value
Type | Description |
---|---|
System.String |
FieldDebtorPostalCode
Field name of the debtor's postal code.
Declaration
public const string FieldDebtorPostalCode = "debtor.postalCode"
Field Value
Type | Description |
---|---|
System.String |
FieldDebtorStreet
Field name of the debtor's street.
Declaration
public const string FieldDebtorStreet = "debtor.street"
Field Value
Type | Description |
---|---|
System.String |
FieldDebtorTown
Field name of the debtor's town.
Declaration
public const string FieldDebtorTown = "debtor.town"
Field Value
Type | Description |
---|---|
System.String |
FieldQrType
Field name of the QR code type.
Declaration
public const string FieldQrType = "qrText"
Field Value
Type | Description |
---|---|
System.String |
FieldReference
Field name of the reference.
Declaration
public const string FieldReference = "reference"
Field Value
Type | Description |
---|---|
System.String |
FieldReferenceType
Field name of the reference type.
Declaration
public const string FieldReferenceType = "referenceType"
Field Value
Type | Description |
---|---|
System.String |
FieldRootCreditor
Start of field name of the creditor address.
Declaration
public const string FieldRootCreditor = "creditor"
Field Value
Type | Description |
---|---|
System.String |
FieldRootDebtor
Start of field name of the debtor's address.
Declaration
public const string FieldRootDebtor = "debtor"
Field Value
Type | Description |
---|---|
System.String |
FieldTrailer
Field name of the QR bill's trailer ("EPD").
Declaration
public const string FieldTrailer = "trailer"
Field Value
Type | Description |
---|---|
System.String |
FieldUnstructuredMessage
Field name of the unstructured message.
Declaration
public const string FieldUnstructuredMessage = "unstructuredMessage"
Field Value
Type | Description |
---|---|
System.String |
FieldVersion
Field name of the QR bill version.
Declaration
public const string FieldVersion = "version"
Field Value
Type | Description |
---|---|
System.String |
KeyAccountIbanInvalid
Validation message key: IBAN is not valid (incorrect format or check digit)
Declaration
public const string KeyAccountIbanInvalid = "account_iban_invalid"
Field Value
Type | Description |
---|---|
System.String |
KeyAccountIbanNotFromChOrLi
Validation message key: account number should start with "CH" or "LI"
Declaration
public const string KeyAccountIbanNotFromChOrLi = "account_iban_not_from_ch_or_li"
Field Value
Type | Description |
---|---|
System.String |
KeyAdditionalInfoTooLong
Validation message key: Unstructured message and bill information combined exceed the maximum length
Declaration
public const string KeyAdditionalInfoTooLong = "additional_info_too_long"
Field Value
Type | Description |
---|---|
System.String |
KeyAddressTypeConflict
Validation message key: Conflicting fields for both structured and combined elements address type have been used
Declaration
public const string KeyAddressTypeConflict = "address_type_conflict"
Field Value
Type | Description |
---|---|
System.String |
KeyAltSchemeMaxExceeded
Validation message key: The maximum of 2 alternative schemes has been exceeded
Declaration
public const string KeyAltSchemeMaxExceeded = "alt_scheme_max_exceed"
Field Value
Type | Description |
---|---|
System.String |
KeyAmountOutsideValidRange
Validation message key: amount must be between 0.01 and 999999999.99
Declaration
public const string KeyAmountOutsideValidRange = "amount_outside_valid_range"
Field Value
Type | Description |
---|---|
System.String |
KeyBillInfoInvalid
Validation message key: The bill information is invalid (does not start with // or is too short)
Declaration
public const string KeyBillInfoInvalid = "bill_info_invalid"
Field Value
Type | Description |
---|---|
System.String |
KeyCodingTypeUnsupported
Validation message key: Coding type 1 is supported only
Declaration
public const string KeyCodingTypeUnsupported = "coding_type_unsupported"
Field Value
Type | Description |
---|---|
System.String |
KeyCountryCodeInvalid
Validation message key: Country code must consist of two letters
Declaration
public const string KeyCountryCodeInvalid = "country_code_invalid"
Field Value
Type | Description |
---|---|
System.String |
KeyCredRefInvalidUseForQrIban
Validation message key: For payments to a QR-IBAN account, a QR reference is required. An ISO 11649 reference may not be used.
Declaration
public const string KeyCredRefInvalidUseForQrIban = "cred_ref_invalid_use_for_qr_iban"
Field Value
Type | Description |
---|---|
System.String |
KeyCurrencyNotChfOrEur
Validation message key: currency must be "CHF" or "EUR"
Declaration
public const string KeyCurrencyNotChfOrEur = "currency_not_chf_or_eur"
Field Value
Type | Description |
---|---|
System.String |
KeyDataStructureInvalid
Validation message key: Invalid data structure; it must start with "SPC" and consists of 32 to 34 lines of text (with exceptions)
Declaration
public const string KeyDataStructureInvalid = "data_structure_invalid"
Field Value
Type | Description |
---|---|
System.String |
KeyFieldValueClipped
Validation message key: Field has been clipped to not exceed the maximum length
Declaration
public const string KeyFieldValueClipped = "field_value_clipped"
Field Value
Type | Description |
---|---|
System.String |
KeyFieldValueMissing
Validation message key: Field must not be empty
Declaration
public const string KeyFieldValueMissing = "field_value_missing"
Field Value
Type | Description |
---|---|
System.String |
KeyFieldValueTooLong
Validation message key: Field value exceed the maximum length
Declaration
public const string KeyFieldValueTooLong = "field_value_too_long"
Field Value
Type | Description |
---|---|
System.String |
KeyNumberInvalid
Validation message key: Valid number required (nnnnn.nn)
Declaration
public const string KeyNumberInvalid = "number_invalid"
Field Value
Type | Description |
---|---|
System.String |
KeyQrRefInvalidUseForNonQrIban
Validation message key: A QR reference is only allowed for payments to a QR-IBAN account.
Declaration
public const string KeyQrRefInvalidUseForNonQrIban = "qr_ref_invalid_use_for_non_qr_iban"
Field Value
Type | Description |
---|---|
System.String |
KeyQrRefMissing
Validation message key: QR reference is missing; it is mandatory for payments to a QR-IBAN account.
Declaration
public const string KeyQrRefMissing = "qr_ref_missing"
Field Value
Type | Description |
---|---|
System.String |
KeyRefInvalid
Validation message key: The reference is invalid. It is neither a valid QR reference nor a valid ISO 11649 reference.
Declaration
public const string KeyRefInvalid = "ref_invalid"
Field Value
Type | Description |
---|---|
System.String |
KeyRefTypeInvalid
Validation message key: Reference type should be one of "QRR", "SCOR" and "NON" and match the reference.
Declaration
public const string KeyRefTypeInvalid = "ref_type_invalid"
Field Value
Type | Description |
---|---|
System.String |
KeyReplacedUnsupportedCharacters
Validation message key: Unsupported characters have been replaced
Declaration
public const string KeyReplacedUnsupportedCharacters = "replaced_unsupported_characters"
Field Value
Type | Description |
---|---|
System.String |
KeyVersionUnsupported
Validation message key: Version 02.00 is supported only
Declaration
public const string KeyVersionUnsupported = "version_unsupported"
Field Value
Type | Description |
---|---|
System.String |
SubFieldAddressLine1
Relative field of an address' line 1.
Declaration
public const string SubFieldAddressLine1 = ".addressLine1"
Field Value
Type | Description |
---|---|
System.String |
SubFieldAddressLine2
Relative field of an address' line 2.
Declaration
public const string SubFieldAddressLine2 = ".addressLine2"
Field Value
Type | Description |
---|---|
System.String |
SubFieldCountryCode
Relative field of an address' country code.
Declaration
public const string SubFieldCountryCode = ".countryCode"
Field Value
Type | Description |
---|---|
System.String |
SubFieldHouseNo
Relative field of an address' house number.
Declaration
public const string SubFieldHouseNo = ".houseNo"
Field Value
Type | Description |
---|---|
System.String |
SubFieldName
Relative field name of an address' name.
Declaration
public const string SubFieldName = ".name"
Field Value
Type | Description |
---|---|
System.String |
SubFieldPostalCode
Relative field of an address' postal code.
Declaration
public const string SubFieldPostalCode = ".postalCode"
Field Value
Type | Description |
---|---|
System.String |
SubFieldStreet
Relative field of an address' street.
Declaration
public const string SubFieldStreet = ".street"
Field Value
Type | Description |
---|---|
System.String |
SubFieldTown
Relative field of an address' town.
Declaration
public const string SubFieldTown = ".town"
Field Value
Type | Description |
---|---|
System.String |