-
Namespaces
-
-
Classes
-
- Constructor
- Properties
- Methods
-
- Constructor
- Method
-
- Constructor
- Method
-
-
-
-
Classes
-
- Constructor
- Property
- Method
- Getter
-
- Constructor
- Property
- Method
- Getter
-
-
-
-
Type aliases
-
-
-
Functions
- isQRIBAN(iban)
- isIBANValid(iban)
- formatIBAN(iban)
- isQRReference(reference)
- isQRReferenceValid(reference)
- isSCORReference(reference)
- isSCORReferenceValid(reference)
- calculateSCORReferenceChecksum(reference)
- calculateQRReferenceChecksum(reference)
- formatQRReference(reference)
- formatSCORReference(reference)
- formatReference(reference)
- formatAmount(amount)
- mm2pt(millimeters)
- pt2mm(points)
- mm2px(millimeters)
- px2mm(pixels)
- getReferenceType(reference)
-
-
-
Classes
-
- Property
-
-
-
Defined in: src/bundle/index.ts
Defined in: src/pdf/swissqrbill.ts
The SwissQRBill class creates the Payment Part with the QR Code. It can be attached to any PDFKit document instance
using the attachTo
method.
const data = {
amount: 1994.75,
creditor: {
account: "CH44 3199 9123 0008 8901 2",
address: "Musterstrasse",
buildingNumber: 7,
city: "Musterstadt",
country: "CH",
name: "SwissQRBill",
zip: 1234
},
currency: "CHF",
debtor: {
address: "Musterstrasse",
buildingNumber: 1,
city: "Musterstadt",
country: "CH",
name: "Peter Muster",
zip: 1234
},
reference: "21 00000 00003 13947 14300 09017"
};
const pdf = new PDFDocument({ autoFirstPage: false });
const qrBill = new SwissQRBill(data);
const stream = createWriteStream("qr-bill.pdf");
qrBill.attachTo(pdf);
pdf.pipe(stream);
pdf.end();
Defined in: src/pdf/swissqrbill.ts
- data
Data
The data to be used for the QR Bill. - options
PDFOptions
Options to define how the QR Bill should be rendered.optional
ValidationError
Throws an error if the data is invalid.
Creates a new SwissQRBill instance.
public
static
readonly
Defined in: src/pdf/swissqrbill.ts
The horizontal size of the QR Bill.
public
static
readonly
Defined in: src/pdf/swissqrbill.ts
The vertical size of the QR Bill.
public
Defined in: src/pdf/swissqrbill.ts
- doc
PDFDocument
The PDFKit instance. - x
number
The horizontal position in points where the QR Bill will be placed.optional
Default:0
- y
number
The vertical position in points where the QR Bill will be placed.optional
Default:number
void
Attaches the QR-Bill to a PDFKit document instance. It will create a new page with the size of the QR-Slip if not enough space is left on the current page.
public
static
Defined in: src/pdf/swissqrbill.ts
- doc
PDFDocument
The PDFKit document instance. - xPosition
number
The horizontal position where the QR Bill will be placed. - yPosition
number
The vertical position where the QR Bill will be placed.
boolean
true
if there is enough space, otherwise false
Checks whether there is enough space on the current page to add the QR Bill.
Defined in: src/pdf/swissqrcode.ts
Defined in: src/pdf/swissqrcode.ts
- data
Data
The data to be encoded in the QR code. - size
number
The size of the QR code in mm.optional
Default:46
ValidationError
Throws an error if the data is invalid.
Creates a Swiss QR Code.
public
Defined in: src/pdf/swissqrcode.ts
- doc
PDFDocument
The PDF document to attach the Swiss QR Code to. - x
number
The horizontal position in points where the Swiss QR Code will be placed.optional
Default:number
- y
number
The vertical position in points where the Swiss QR Code will be placed.optional
Default:number
void
Attaches the Swiss QR Code to a PDF document.
Defined in: src/pdf/table.ts
The Table class is used to create tables for PDFKit documents. A table can be attached to any PDFKit document instance
using the attachTo
method.
const tableData = {
rows: [
{
backgroundColor: "#ECF0F1",
columns: [
{
text: "Row 1 cell 1"
}, {
text: "Row 1 cell 2"
}, {
text: "Row 1 cell 3"
}
]
}, {
columns: [
{
text: "Row 2 cell 1"
}, {
text: "Row 2 cell 2"
}, {
text: "Row 2 cell 3"
}
]
}
]
};
const pdf = new PDFDocument();
const table = new Table(tableData);
const stream = createWriteStream("table.pdf");
table.attachTo(pdf);
pdf.pipe(stream);
pdf.end();
Defined in: src/pdf/table.ts
- data
PDFTable
The rows and columns for the table.
Table
The Table instance.
Creates a new Table instance.
public
Defined in: src/pdf/table.ts
- doc
PDFDocument
The PDFKit document instance. - x
number
The horizontal position in points where the table be placed.optional
Default:number
- y
number
The vertical position in points where the table will be placed.optional
Default:number
void
Error
Throws an error if no table rows are provided.
Attaches the table to a PDFKit document instance beginning on the current page. It will create a new page with for every row that no longer fits on a page.
Defined in: src/pdf/table.ts
union
-
tuple
-
tuple
Can be used to set the color of the border of a table, row or column.
Defined in: src/pdf/table.ts
union
-
tuple
-
tuple
Can be used to set the width of the border of a table, row or column.
Defined in: src/pdf/table.ts
union
-
tuple
-
tuple
Can be used to set the padding of a table cell.
Defined in: src/pdf/table.ts
-
pdf.rows
Array
Table rows. -
pdf.align
"center"
|"left"
|"right"
Horizontal alignment of texts inside the table.optional
-
pdf.backgroundColor
string
Background color of the table.optional
-
pdf.borderColor
PDFBorderColor
The colors of the border.optional
-
pdf.borderWidth
PDFBorderWidth
Width of the borders of the row.optional
-
pdf.fontName
string
Font of the text inside the table.optional
-
pdf.fontSize
number
Font size of the text inside the table.optional
-
pdf.padding
PDFPadding
Cell padding of the table cells.optional
-
pdf.textColor
string
Text color of texts inside table.optional
-
pdf.textOptions
TextOptions
Same as text PDFKit text options.optional
-
pdf.verticalAlign
"bottom"
|"center"
|"top"
Vertical alignment of texts inside the table.optional
-
pdf.width
number
Width of whole table.optional
Defined in: src/pdf/table.ts
-
pdf.columns
Array
Table columns. -
pdf.align
"center"
|"left"
|"right"
Horizontal alignment of texts inside the row.optional
-
pdf.backgroundColor
string
Background color of the row.optional
-
pdf.borderColor
PDFBorderColor
The colors of the border.optional
-
pdf.borderWidth
PDFBorderWidth
Width of the borders of the row.optional
-
pdf.fontName
string
Font of the text inside the row.optional
-
pdf.fontSize
number
Font size of the text inside the row.optional
-
pdf.header
boolean
A header row gets inserted automatically on new pages. Only one header row is allowed.optional
-
pdf.height
number
Height of the row. Overrides minHeight and maxHeight.optional
-
pdf.maxHeight
number
Maximum height of the row.optional
-
pdf.minHeight
number
Minimum height of the row.optional
-
pdf.padding
PDFPadding
Cell padding of the table cells inside the row.optional
-
pdf.textColor
string
Text color of texts inside the row.optional
-
pdf.textOptions
TextOptions
Same as text PDFKit text options.optional
-
pdf.verticalAlign
"bottom"
|"center"
|"top"
Vertical alignment of texts inside the row.optional
Defined in: src/pdf/table.ts
- pdf.text
boolean
|number
|string
Cell text. - pdf.align
"center"
|"left"
|"right"
Horizontal alignment of the text inside the cell.optional
- pdf.backgroundColor
string
Background color of the cell.optional
- pdf.borderColor
PDFBorderColor
The colors of the border.optional
- pdf.borderWidth
PDFBorderWidth
Width of the borders of the row.optional
- pdf.fontName
string
Font of the text inside the cell.optional
- pdf.fontSize
number
Font size of the text inside the cell.optional
- pdf.padding
PDFPadding
Cell padding of the table cell.optional
- pdf.textColor
string
Text color of texts inside the cell.optional
- pdf.textOptions
TextOptions
Same as text PDFKit text options.optional
- pdf.verticalAlign
"bottom"
|"center"
|"top"
Vertical alignment of the text inside the cell.optional
- pdf.width
number
Width of the cell.optional
Defined in: src/bundle/index.ts
Defined in: src/svg/swissqrbill.ts
The SwissQRBill class creates the Payment Part with the QR Code as an SVG.
const data = {
amount: 1994.75,
creditor: {
account: "CH44 3199 9123 0008 8901 2",
address: "Musterstrasse",
buildingNumber: 7,
city: "Musterstadt",
country: "CH",
name: "SwissQRBill",
zip: 1234
},
currency: "CHF",
debtor: {
address: "Musterstrasse",
buildingNumber: 1,
city: "Musterstadt",
country: "CH",
name: "Peter Muster",
zip: 1234
},
reference: "21 00000 00003 13947 14300 09017"
};
const svg = new SwissQRBill(data);
writeFileSync("qr-bill.svg", svg.toString());
Defined in: src/svg/swissqrbill.ts
- data
Data
- options
SVGOptions
optional
public
Defined in: src/svg/swissqrbill.ts
SVG
public
Defined in: src/svg/swissqrbill.ts
string
The outerHTML of the SVG.
Outputs the SVG as a string.
public
Defined in: src/svg/swissqrbill.ts
SVGElement
The SVG element.
Returns the SVG element.
Defined in: src/svg/swissqrcode.ts
Defined in: src/svg/swissqrcode.ts
- data
Data
The data to be encoded in the QR code. - size
number
The size of the QR code in mm.optional
Default:46
ValidationError
Throws an error if the data is invalid.
Creates a Swiss QR Code.
public
Defined in: src/svg/swissqrcode.ts
SVG
public
Defined in: src/svg/swissqrcode.ts
string
The outerHTML of the SVG element.
Outputs the SVG as a string.
public
Defined in: src/svg/swissqrcode.ts
SVGElement
The SVG element.
Returns the SVG element.
Defined in: src/bundle/index.ts
Defined in: src/shared/types.ts
"DE"
| "EN"
| "FR"
| "IT"
Defined in: src/shared/types.ts
"Arial"
| "Frutiger"
| "Helvetica"
| "Liberation Sans"
Defined in: src/shared/types.ts
"CHF"
| "EUR"
Defined in: src/shared/types.ts
-
types.creditor
Creditor
Creditor related data. -
types.currency
"CHF"
|"EUR"
The currency to be used. 3 characters.. -
types.additionalInformation
string
Additional information. Max 140 characters..Bill information contain coded information for automated booking of the payment. The data is not forwarded with the payment.
optional
-
types.amount
number
The amount. Max. 12 digits..optional
-
types.av1
string
Alternative scheme. Max. 100 characters..Parameter character chain of the alternative scheme according to the syntax definition in the “Alternative scheme” section.
optional
-
types.av2
string
Alternative scheme. Max. 100 characters..Parameter character chain of the alternative scheme according to the syntax definition in the “Alternative scheme” section.
optional
-
types.debtor
Debtor
Debtor related data.optional
-
types.message
string
A message. Max. 140 characters..Message can be used to indicate the payment purpose or for additional textual information about payments with a structured reference.
optional
-
types.reference
string
A reference number. Max 27 characters..QR-IBAN: Maximum 27 characters. Must be filled if a QR-IBAN is used. Creditor Reference (ISO 11649): Maximum 25 characters.
optional
Defined in: src/shared/types.ts
- types.address
string
Address. Max 70 characters.. - types.city
string
City. Max 35 characters.. - types.country
string
Country code. 2 characters.. - types.name
string
Name. Max. 70 characters.. - types.zip
number
|string
Postal code. Max 16 characters.. - types.buildingNumber
number
|string
Building number. Max 16 characters..optional
Defined in: src/shared/types.ts
- types.address
string
Address. Max 70 characters.. - types.city
string
City. Max 35 characters.. - types.country
string
Country code. 2 characters.. - types.name
string
Name. Max. 70 characters.. - types.zip
number
|string
Postal code. Max 16 characters.. - types.buildingNumber
number
|string
Building number. Max 16 characters..optional
- types.account
string
The IBAN. 21 characters..
Defined in: src/shared/types.ts
-
types.fontName
"Arial"
|"Frutiger"
|"Helvetica"
|"Liberation Sans"
Font used for the QR-Bill. Fonts other than Helvetica must be registered in the PDFKit document. http://pdfkit.org/docs/text.html#fonts .optional
Example:
// Register the font pdf.registerFont("Liberation-Sans", "path/to/LiberationSans-Regular.ttf"); pdf.registerFont("Liberation-Sans-Bold", "path/to/LiberationSans-Bold.ttf"); const qrBill = new SwissQRBill(data, { fontName: "Liberation-Sans" });
-
types.language
"DE"
|"EN"
|"FR"
|"IT"
The language with which the bill is rendered.optional
-
types.outlines
boolean
Whether you want render the outlines. This option may be disabled if you use perforated paper.optional
-
types.scissors
boolean
Whether you want to show the scissors icons or the textSeparate before paying in
optional
-
types.separate
boolean
Whether you want to show the textSeparate before paying in
optional
Defined in: src/shared/types.ts
-
types.fontName
"Arial"
|"Frutiger"
|"Helvetica"
|"Liberation Sans"
Font used for the QR-Bill. Fonts other than Helvetica must be registered in the PDFKit document. http://pdfkit.org/docs/text.html#fonts .optional
Example:
// Register the font pdf.registerFont("Liberation-Sans", "path/to/LiberationSans-Regular.ttf"); pdf.registerFont("Liberation-Sans-Bold", "path/to/LiberationSans-Bold.ttf"); const qrBill = new SwissQRBill(data, { fontName: "Liberation-Sans" });
-
types.language
"DE"
|"EN"
|"FR"
|"IT"
The language with which the bill is rendered.optional
-
types.outlines
boolean
Whether you want render the outlines. This option may be disabled if you use perforated paper.optional
-
types.scissors
boolean
Whether you want to show the scissors icons or the textSeparate before paying in
optional
Defined in: src/bundle/index.ts
Defined in: src/shared/utils.ts
- iban
string
The IBAN to be checked.
boolean
true
if the given IBAN is a QR-IBAN and false
Checks whether the given iban is a QR-IBAN or not.
Defined in: src/shared/utils.ts
- iban
string
The IBAN to be checked.
boolean
true
if the checksum of the given IBAN is valid and false
Validates the given IBAN.
Defined in: src/shared/utils.ts
- iban
string
The IBAN to be formatted.
string
The formatted IBAN.
Formats the given IBAN according the specifications to be easily readable.
Defined in: src/shared/utils.ts
- reference
string
The Reference to be checked.
boolean
true
if the given reference is a QR-Reference and false
Checks whether the given reference is a QR-Reference or not.
The QR-Reference is a 27 digits long string containing only digits. The last digit is the checksum.
Defined in: src/shared/utils.ts
- reference
string
The reference to be checked.
boolean
true
if the given reference is valid and false
Validates the given QR-Reference.
Defined in: src/shared/utils.ts
- reference
string
The Reference to be checked.
boolean
true
if the given reference is a SCOR-Reference and false
Checks whether the given reference is a SCOR-Reference or not.
The SCOR-Reference is an alphanumeric string beginning with 'RF' and containing a 2 digit checksum and a max 21 digits long reference.
Defined in: src/shared/utils.ts
- reference
string
The reference to be checked.
boolean
true
if the given reference is valid and false
Validates the given SCOR-Reference.
Defined in: src/shared/utils.ts
- reference
string
The max 21 digits long reference (without the "RF" and the 2 digit checksum) whose checksum should be calculated.
string
The calculated checksum as 2 digit string.
Calculates the checksum according to the ISO 11649 standard.
Defined in: src/shared/utils.ts
- reference
string
The 26 digits long reference (without the checksum) whose checksum should be calculated.
string
The calculated checksum.
Calculates the checksum according the specifications.
Defined in: src/shared/utils.ts
- reference
string
The QR-Reference to be formatted.
string
The formatted QR-Reference.
Formats the given QR-Reference according the specifications to be easily readable.
Defined in: src/shared/utils.ts
- reference
string
The SCOR-Reference to be formatted.
string
The formatted SCOR-Reference.
Formats the given SCOR-Reference according the specifications to be easily readable.
Defined in: src/shared/utils.ts
- reference
string
The reference to be formatted.
string
The formatted reference.
Detects the type of the given reference and formats it according the specifications to be easily readable.
Defined in: src/shared/utils.ts
- amount
number
Containing the amount to be formatted.
string
The formatted amount.
Formats the given amount according the specifications to be easily readable.
Defined in: src/shared/utils.ts
- millimeters
number
The millimeters you want to convert to points.
number
The converted millimeters in points.
Converts millimeters to points.
Defined in: src/shared/utils.ts
- points
number
The points you want to convert to millimeters.
number
The converted points in millimeters.
Converts points to millimeters.
Defined in: src/shared/utils.ts
- millimeters
number
The millimeters you want to convert to pixels.
number
The converted millimeters in pixels.
Converts millimeters to pixels.
Defined in: src/shared/utils.ts
- pixels
number
Containing the pixels you want to convert to millimeters.
number
The converted pixels in millimeters.
Converts pixels to millimeters.
Defined in: src/shared/utils.ts
"NON"
| "QRR"
| "SCOR"
The type of the given reference.
Detects the type of the given reference.
Defined in: src/bundle/index.ts
Defined in: src/shared/errors.ts
A ValidationError
is thrown when the data provided to swissqrbill is invalid.
public
Defined in: src/shared/errors.ts
union
"ACCOUNT_IS_QR_IBAN_BUT_REFERENCE_IS_MISSING"
"ACCOUNT_IS_QR_IBAN_BUT_REFERENCE_IS_REGULAR"
"ACCOUNT_IS_REGULAR_IBAN_BUT_REFERENCE_IS_QR"
"ACCOUNT_LENGTH_IS_INVALID"
"ADDITIONAL_INFORMATION_LENGTH_IS_INVALID"
"ADDITIONAL_INFORMATION_TYPE_IS_INVALID"
"ALTERNATIVE_SCHEME_LENGTH_IS_INVALID"
"ALTERNATIVE_SCHEME_TYPE_IS_INVALID"
"AMOUNT_LENGTH_IS_INVALID"
"AMOUNT_TYPE_IS_INVALID"
"CREDITOR_ACCOUNT_COUNTRY_IS_INVALID"
"CREDITOR_ACCOUNT_IS_INVALID"
"CREDITOR_ACCOUNT_IS_UNDEFINED"
"CREDITOR_ADDRESS_IS_UNDEFINED"
"CREDITOR_ADDRESS_LENGTH_IS_INVALID"
"CREDITOR_ADDRESS_TYPE_IS_INVALID"
"CREDITOR_BUILDING_NUMBER_LENGTH_IS_INVALID"
"CREDITOR_BUILDING_NUMBER_TYPE_IS_INVALID"
"CREDITOR_CITY_IS_UNDEFINED"
"CREDITOR_CITY_LENGTH_IS_INVALID"
"CREDITOR_CITY_TYPE_IS_INVALID"
"CREDITOR_COUNTRY_IS_UNDEFINED"
"CREDITOR_COUNTRY_LENGTH_IS_INVALID"
"CREDITOR_COUNTRY_TYPE_IS_INVALID"
"CREDITOR_IS_UNDEFINED"
"CREDITOR_NAME_IS_UNDEFINED"
"CREDITOR_NAME_LENGTH_IS_INVALID"
"CREDITOR_NAME_TYPE_IS_INVALID"
"CREDITOR_ZIP_IS_UNDEFINED"
"CREDITOR_ZIP_LENGTH_IS_INVALID"
"CREDITOR_ZIP_TYPE_IS_INVALID"
"CURRENCY_IS_UNDEFINED"
"CURRENCY_LENGTH_IS_INVALID"
"CURRENCY_STRING_IS_INVALID"
"CURRENCY_TYPE_IS_INVALID"
"DEBTOR_ADDRESS_IS_UNDEFINED"
"DEBTOR_ADDRESS_LENGTH_IS_INVALID"
"DEBTOR_ADDRESS_TYPE_IS_INVALID"
"DEBTOR_BUILDING_NUMBER_LENGTH_IS_INVALID"
"DEBTOR_BUILDING_NUMBER_TYPE_IS_INVALID"
"DEBTOR_CITY_IS_UNDEFINED"
"DEBTOR_CITY_LENGTH_IS_INVALID"
"DEBTOR_CITY_TYPE_IS_INVALID"
"DEBTOR_COUNTRY_IS_UNDEFINED"
"DEBTOR_COUNTRY_LENGTH_IS_INVALID"
"DEBTOR_COUNTRY_TYPE_IS_INVALID"
"DEBTOR_IS_UNDEFINED"
"DEBTOR_NAME_IS_UNDEFINED"
"DEBTOR_NAME_LENGTH_IS_INVALID"
"DEBTOR_NAME_TYPE_IS_INVALID"
"DEBTOR_ZIP_IS_UNDEFINED"
"DEBTOR_ZIP_LENGTH_IS_INVALID"
"DEBTOR_ZIP_TYPE_IS_INVALID"
"MESSAGE_AND_ADDITIONAL_INFORMATION_LENGTH_IS_INVALID"
"MESSAGE_LENGTH_IS_INVALID"
"MESSAGE_TYPE_IS_INVALID"
"QR_REFERENCE_IS_INVALID"
"QR_REFERENCE_LENGTH_IS_INVALID"
"REFERENCE_TYPE_IS_INVALID"
"REGULAR_REFERENCE_LENGTH_IS_INVALID"
A stable error code that can be used to identify the error programmatically.
Defined in: src/shared/errors.ts
- ACCOUNT_IS_QR_IBAN_BUT_REFERENCE_IS_MISSING
"If there is no reference, a conventional IBAN must be used."
- ACCOUNT_IS_QR_IBAN_BUT_REFERENCE_IS_REGULAR
"QR-IBAN requires the use of a QR-Reference."
- ACCOUNT_IS_REGULAR_IBAN_BUT_REFERENCE_IS_QR
"QR-Reference requires the use of a QR-IBAN."
- ACCOUNT_LENGTH_IS_INVALID
"The provided IBAN number '{iban}' is either too long or too short."
- ADDITIONAL_INFORMATION_LENGTH_IS_INVALID
"Additional information must be a maximum of 140 characters."
- ADDITIONAL_INFORMATION_TYPE_IS_INVALID
"Additional information must be a string."
- ALTERNATIVE_SCHEME_LENGTH_IS_INVALID
"{scheme} must be a maximum of 100 characters."
- ALTERNATIVE_SCHEME_TYPE_IS_INVALID
"{scheme} must be a string."
- AMOUNT_LENGTH_IS_INVALID
"Amount must be a maximum of 12 digits."
- AMOUNT_TYPE_IS_INVALID
"Amount must be a number."
- CREDITOR_ACCOUNT_COUNTRY_IS_INVALID
"Only CH and LI IBAN numbers are allowed."
- CREDITOR_ACCOUNT_IS_INVALID
"The provided IBAN number '{iban}' is not valid."
- CREDITOR_ACCOUNT_IS_UNDEFINED
"Creditor account cannot be undefined."
- CREDITOR_ADDRESS_IS_UNDEFINED
"Creditor address cannot be undefined."
- CREDITOR_ADDRESS_LENGTH_IS_INVALID
"Creditor address must be a maximum of 70 characters."
- CREDITOR_ADDRESS_TYPE_IS_INVALID
"Creditor address TYPE must be a string."
- CREDITOR_BUILDING_NUMBER_LENGTH_IS_INVALID
"Creditor buildingNumber must be a maximum of 16 characters."
- CREDITOR_BUILDING_NUMBER_TYPE_IS_INVALID
"Creditor buildingNumber must be either a string or a number."
- CREDITOR_CITY_IS_UNDEFINED
"Creditor city cannot be undefined."
- CREDITOR_CITY_LENGTH_IS_INVALID
"Creditor city must be a maximum of 35 characters."
- CREDITOR_CITY_TYPE_IS_INVALID
"Creditor city must be a string."
- CREDITOR_COUNTRY_IS_UNDEFINED
"Creditor country cannot be undefined."
- CREDITOR_COUNTRY_LENGTH_IS_INVALID
"Creditor country must be 2 characters."
- CREDITOR_COUNTRY_TYPE_IS_INVALID
"Creditor country must be a string."
- CREDITOR_IS_UNDEFINED
"Creditor cannot be undefined."
- CREDITOR_NAME_IS_UNDEFINED
"Creditor name cannot be undefined."
- CREDITOR_NAME_LENGTH_IS_INVALID
"Creditor name must be a maximum of 70 characters."
- CREDITOR_NAME_TYPE_IS_INVALID
"Creditor name must be a string."
- CREDITOR_ZIP_IS_UNDEFINED
"Creditor zip cannot be undefined."
- CREDITOR_ZIP_LENGTH_IS_INVALID
"Creditor zip must be a maximum of 16 characters."
- CREDITOR_ZIP_TYPE_IS_INVALID
"Creditor zip must be either a string or a number."
- CURRENCY_IS_UNDEFINED
"Currency cannot be undefined."
- CURRENCY_LENGTH_IS_INVALID
"Currency must be a length of 3 characters."
- CURRENCY_STRING_IS_INVALID
"Currency must be either 'CHF' or 'EUR'"
- CURRENCY_TYPE_IS_INVALID
"Currency must be a string."
- DEBTOR_ADDRESS_IS_UNDEFINED
"Debtor address cannot be undefined."
- DEBTOR_ADDRESS_LENGTH_IS_INVALID
"Debtor address must be a maximum of 70 characters."
- DEBTOR_ADDRESS_TYPE_IS_INVALID
"Debtor address TYPE must be a string."
- DEBTOR_BUILDING_NUMBER_LENGTH_IS_INVALID
"Debtor buildingNumber must be a maximum of 16 characters."
- DEBTOR_BUILDING_NUMBER_TYPE_IS_INVALID
"Debtor buildingNumber must be either a string or a number."
- DEBTOR_CITY_IS_UNDEFINED
"Debtor city cannot be undefined."
- DEBTOR_CITY_LENGTH_IS_INVALID
"Debtor city must be a maximum of 35 characters."
- DEBTOR_CITY_TYPE_IS_INVALID
"Debtor city must be a string."
- DEBTOR_COUNTRY_IS_UNDEFINED
"Debtor country cannot be undefined."
- DEBTOR_COUNTRY_LENGTH_IS_INVALID
"Debtor country must be 2 characters."
- DEBTOR_COUNTRY_TYPE_IS_INVALID
"Debtor country must be a string."
- DEBTOR_IS_UNDEFINED
"Debtor cannot be undefined."
- DEBTOR_NAME_IS_UNDEFINED
"Debtor name cannot be undefined."
- DEBTOR_NAME_LENGTH_IS_INVALID
"Debtor name must be a maximum of 70 characters."
- DEBTOR_NAME_TYPE_IS_INVALID
"Debtor name must be a string."
- DEBTOR_ZIP_IS_UNDEFINED
"Debtor zip cannot be undefined."
- DEBTOR_ZIP_LENGTH_IS_INVALID
"Debtor zip must be a maximum of 16 characters."
- DEBTOR_ZIP_TYPE_IS_INVALID
"Debtor zip must be either a string or a number."
- MESSAGE_AND_ADDITIONAL_INFORMATION_LENGTH_IS_INVALID
"Message and additionalInformation combined must be a maximum of 140 characters."
- MESSAGE_LENGTH_IS_INVALID
"Message must be a maximum of 140 characters."
- MESSAGE_TYPE_IS_INVALID
"Message must be a string."
- QR_REFERENCE_IS_INVALID
"The provided QR-Reference '{reference}' is not valid."
- QR_REFERENCE_LENGTH_IS_INVALID
"QR-Reference must be a must be exactly 27 characters."
- REFERENCE_TYPE_IS_INVALID
"Reference must be a string."
- REGULAR_REFERENCE_LENGTH_IS_INVALID
"Creditor reference must be a maximum of 25 characters."