Show / Hide Table of Contents

Class ValidationConstants

Constants for bill validation messages: message keys and field names.

Inheritance
object
ValidationConstants
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Codecrete.SwissQRBill.Generator
Assembly: Codecrete.SwissQRBill.Core.dll
Syntax
public static class ValidationConstants

Fields

| Edit this page View Source

FieldAccount

Field name of the account number.

Declaration
public const string FieldAccount = "account"
Field Value
Type Description
string
| Edit this page View Source

FieldAlternativeSchemes

Field name of the alternative schemes.

Declaration
public const string FieldAlternativeSchemes = "altSchemes"
Field Value
Type Description
string
| Edit this page View Source

FieldAmount

Field name of the amount.

Declaration
public const string FieldAmount = "amount"
Field Value
Type Description
string
| Edit this page View Source

FieldBillInformation

Field name of the bill information.

Declaration
public const string FieldBillInformation = "billInformation"
Field Value
Type Description
string
| Edit this page View Source

FieldCodingType

Field name of the QR bill's coding type.

Declaration
public const string FieldCodingType = "codingType"
Field Value
Type Description
string
| Edit this page View Source

FieldCreditorCountryCode

Field name of the creditor's country code.

Declaration
public const string FieldCreditorCountryCode = "creditor.countryCode"
Field Value
Type Description
string
| Edit this page View Source

FieldCreditorHouseNo

Field name of the creditor's house number.

Declaration
public const string FieldCreditorHouseNo = "creditor.houseNo"
Field Value
Type Description
string
| Edit this page View Source

FieldCreditorName

Field name of the creditor's name.

Declaration
public const string FieldCreditorName = "creditor.name"
Field Value
Type Description
string
| Edit this page View Source

FieldCreditorPostalCode

Field name of the creditor's postal code.

Declaration
public const string FieldCreditorPostalCode = "creditor.postalCode"
Field Value
Type Description
string
| Edit this page View Source

FieldCreditorStreet

Field name of the creditor's street.

Declaration
public const string FieldCreditorStreet = "creditor.street"
Field Value
Type Description
string
| Edit this page View Source

FieldCreditorTown

Field name of the creditor's town.

Declaration
public const string FieldCreditorTown = "creditor.town"
Field Value
Type Description
string
| Edit this page View Source

FieldCurrency

Field name of the currency.

Declaration
public const string FieldCurrency = "currency"
Field Value
Type Description
string
| Edit this page View Source

FieldDebtorCountryCode

Field name of the debtor's country code.

Declaration
public const string FieldDebtorCountryCode = "debtor.countryCode"
Field Value
Type Description
string
| Edit this page View Source

FieldDebtorHouseNo

Field name of the debtor's house number.

Declaration
public const string FieldDebtorHouseNo = "debtor.houseNo"
Field Value
Type Description
string
| Edit this page View Source

FieldDebtorName

Field name of the debtor's name.

Declaration
public const string FieldDebtorName = "debtor.name"
Field Value
Type Description
string
| Edit this page View Source

FieldDebtorPostalCode

Field name of the debtor's postal code.

Declaration
public const string FieldDebtorPostalCode = "debtor.postalCode"
Field Value
Type Description
string
| Edit this page View Source

FieldDebtorStreet

Field name of the debtor's street.

Declaration
public const string FieldDebtorStreet = "debtor.street"
Field Value
Type Description
string
| Edit this page View Source

FieldDebtorTown

Field name of the debtor's town.

Declaration
public const string FieldDebtorTown = "debtor.town"
Field Value
Type Description
string
| Edit this page View Source

FieldQrType

Field name of the QR code type.

Declaration
public const string FieldQrType = "qrText"
Field Value
Type Description
string
| Edit this page View Source

FieldReference

Field name of the reference.

Declaration
public const string FieldReference = "reference"
Field Value
Type Description
string
| Edit this page View Source

FieldReferenceType

Field name of the reference type.

Declaration
public const string FieldReferenceType = "referenceType"
Field Value
Type Description
string
| Edit this page View Source

FieldRootCreditor

Start of field name of the creditor address.

Declaration
public const string FieldRootCreditor = "creditor"
Field Value
Type Description
string
| Edit this page View Source

FieldRootDebtor

Start of field name of the debtor's address.

Declaration
public const string FieldRootDebtor = "debtor"
Field Value
Type Description
string
| Edit this page View Source

FieldTrailer

Field name of the QR bill's trailer ("EPD").

Declaration
public const string FieldTrailer = "trailer"
Field Value
Type Description
string
| Edit this page View Source

FieldUnstructuredMessage

Field name of the unstructured message.

Declaration
public const string FieldUnstructuredMessage = "unstructuredMessage"
Field Value
Type Description
string
| Edit this page View Source

FieldVersion

Field name of the QR bill version.

Declaration
public const string FieldVersion = "version"
Field Value
Type Description
string
| Edit this page View Source

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
string
| Edit this page View Source

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
string
| Edit this page View Source

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
string
| Edit this page View Source

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
string
| Edit this page View Source

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
string
| Edit this page View Source

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
string
| Edit this page View Source

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
string
| Edit this page View Source

KeyCodingTypeUnsupported

Validation message key: Coding type 1 is supported only

Declaration
public const string KeyCodingTypeUnsupported = "coding_type_unsupported"
Field Value
Type Description
string
| Edit this page View Source

KeyCountryCodeInvalid

Validation message key: Country code must consist of two letters

Declaration
public const string KeyCountryCodeInvalid = "country_code_invalid"
Field Value
Type Description
string
| Edit this page View Source

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
string
| Edit this page View Source

KeyCurrencyNotChfOrEur

Validation message key: currency must be "CHF" or "EUR"

Declaration
public const string KeyCurrencyNotChfOrEur = "currency_not_chf_or_eur"
Field Value
Type Description
string
| Edit this page View Source

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
string
| Edit this page View Source

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
string
| Edit this page View Source

KeyFieldValueMissing

Validation message key: Field must not be empty

Declaration
public const string KeyFieldValueMissing = "field_value_missing"
Field Value
Type Description
string
| Edit this page View Source

KeyFieldValueTooLong

Validation message key: Field value exceed the maximum length

Declaration
public const string KeyFieldValueTooLong = "field_value_too_long"
Field Value
Type Description
string
| Edit this page View Source

KeyNumberInvalid

Validation message key: Valid number required (nnnnn.nn)

Declaration
public const string KeyNumberInvalid = "number_invalid"
Field Value
Type Description
string
| Edit this page View Source

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
string
| Edit this page View Source

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
string
| Edit this page View Source

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
string
| Edit this page View Source

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
string
| Edit this page View Source

KeyReplacedUnsupportedCharacters

Validation message key: Unsupported characters have been replaced

Declaration
public const string KeyReplacedUnsupportedCharacters = "replaced_unsupported_characters"
Field Value
Type Description
string
| Edit this page View Source

KeyVersionUnsupported

Validation message key: Version 02.00 is supported only

Declaration
public const string KeyVersionUnsupported = "version_unsupported"
Field Value
Type Description
string
| Edit this page View Source

SubFieldAddressLine1

Relative field of an address' line 1.

Declaration
public const string SubFieldAddressLine1 = ".addressLine1"
Field Value
Type Description
string
| Edit this page View Source

SubFieldAddressLine2

Relative field of an address' line 2.

Declaration
public const string SubFieldAddressLine2 = ".addressLine2"
Field Value
Type Description
string
| Edit this page View Source

SubFieldCountryCode

Relative field of an address' country code.

Declaration
public const string SubFieldCountryCode = ".countryCode"
Field Value
Type Description
string
| Edit this page View Source

SubFieldHouseNo

Relative field of an address' house number.

Declaration
public const string SubFieldHouseNo = ".houseNo"
Field Value
Type Description
string
| Edit this page View Source

SubFieldName

Relative field name of an address' name.

Declaration
public const string SubFieldName = ".name"
Field Value
Type Description
string
| Edit this page View Source

SubFieldPostalCode

Relative field of an address' postal code.

Declaration
public const string SubFieldPostalCode = ".postalCode"
Field Value
Type Description
string
| Edit this page View Source

SubFieldStreet

Relative field of an address' street.

Declaration
public const string SubFieldStreet = ".street"
Field Value
Type Description
string
| Edit this page View Source

SubFieldTown

Relative field of an address' town.

Declaration
public const string SubFieldTown = ".town"
Field Value
Type Description
string
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX