Namespace Codecrete.SwissQRBill.Generator
Classes
Address
Address of creditor or debtor.
You can either set street, house number, postal code and town (type structured address) or address line 1 and 2 (type combined address elements). The type is automatically set once any of these fields is set. Before setting the fields, the address type is undetermined. If fields of both types are set, the address type becomes conflicting. Name and country code must always be set unless all fields are empty.
Banks will no longer accept payments using the combined address elements starting November 21, 2025. Therefore, it is recommended to use structured addresses immediately.
AlternativeScheme
Alternative payment scheme instructions
Bill
QR bill data
BillFormat
Formatting properties for QR bill.
BillTextFormatter
Formats text on a QR bill.
The resulting text often contains multiple lines, e.g. for addresses.These line breaks a represented by a line feed character(U+000A). Long lines might require additional line breaks to fit into the given text boxes.These additional line breaks are not included in the resulting text.
Payments
Field validations related to Swiss Payment standards.
QRBill
Generates Swiss QR bill payment part.
Can also validate the bill data and encode and decode the text embedded in the QR code.
QRBillGenerationException
Exception thrown if the bill could not be generated.
If the bill data is not valid, a QRBillValidationException exception is thrown instead.
QRBillValidationException
Exception thrown if the bill data is not valid.
SpsCharacterSetExtension
Extensions methods for SpsCharacterSet
StringExtensions
Extension methods for System.String.
SwicoBillInformation
Bill information (according to Swico S1) for automated processing of invoices.
Swico S1 (see http://swiss-qr-invoice.org/downloads/qr-bill-s1-syntax-de.pdf) is one of the supported standards for adding structured billing information to a QR bill (in the field StrdBkgInf).
ValidationConstants
Constants for bill validation messages: message keys and field names.
ValidationMessage
QR bill validation message.
ValidationResult
The validation result, consisting of a list of validation messages and flags indicating the validation state.
Structs
Payments.CleaningResult
Result of cleaning a string
Enums
Address.AddressType
Address type
Bill.QrBillStandardVersion
QR bill standard version
Bill.QrDataSeparator
Allowed line separators for separating the data fields in the text represented by the QR code (according to the Swiss Implementation Guidelines for the QR-bill, § 4.1.4 Separator element)
GraphicsFormat
Graphics format of generated QR bill.
Language
QR bill language
OutputSize
The output size of the QR bill or QR code.
SeparatorType
Separator type above and between payment part and receipt.
SpsCharacterSet
Swiss Payment Standard character set.
The character set defines the allowed characters in the various payment fields.
ValidationMessage.MessageType
The type of validation message.