Documentation ¶
Overview ¶
Package qrbill implements the Swiss QR-bill standard.
More specifically, the most recent standard version at the time of writing was the Swiss Payment Standards 2019 Swiss Implementation Guidelines QR-bill Version 2.1, to be found at:
https://www.six-group.com/dam/download/banking-services/standardization/qr-bill/ig-qr-bill-v2.1-en.pdf (English) https://www.six-group.com/dam/download/banking-services/standardization/qr-bill/ig-qr-bill-v2.1-de.pdf (German)
Note ¶
QRR and SCOR references are not yet implemented.
Index ¶
Constants ¶
const ( // QRType is an unambiguous indicator for the Swiss QR Code. Fixed value. QRType = "SPC" // Swiss Payments Code // Version contains the version of the specifications (Implementation // Guidelines) in use on the date on which the Swiss QR Code was // created. The first two positions indicate the main version, the following // two positions the sub-version. Fixed value. Version = "0200" // Version 2.0 // CodingType is the character set code. Fixed value. CodingType = "1" // UTF-8 restricted to the Latin character set // Trailer is an unambiguous indicator for the end of payment data. Fixed // value. Trailer = "EPD" // End Payment Data )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { AdrTp AddressType Name string // Name, max 70. chars, first name + last name, or company name StrtNmOrAdrLine1 string // Street or address line 1 BldgNbOrAdrLine2 string // Building number or address line 2 PstCd string // Postal code, max 16 chars, must be provided without a country code prefix TwnNm string // Town, max. 35 chars Ctry string // Country, two-digit country code according to ISO 3166-1 }
type AddressType ¶
type AddressType string
AddressType corresponds to AdrTp in ISO20022.
const ( AddressTypeStructured AddressType = "S" AddressTypeCombined AddressType = "K" )
type Bill ¶
type Bill struct {
// contains filtered or unexported fields
}
func (*Bill) EncodeToEPS ¶ added in v0.1.7
func (*Bill) EncodeToPDF ¶ added in v0.1.7
func (*Bill) EncodeToSVG ¶
func (*Bill) EncodeToString ¶ added in v0.1.10
type Image ¶ added in v0.1.7
Image represents a PDF image object containing a DIN A4-sized page scanned with 600dpi (i.e. into 4960x7016 pixels).
type QRCH ¶
type QRCH struct { Header QRCHHeader // Header CdtrInf QRCHCdtrInf // Creditor information (Account / Payable to) UltmtCdtr Address // (must not be filled in, for Future Use) CcyAmt QRCHCcyAmt // Paymount amount information UltmtDbtr Address // Ultimate Debtor RmtInf QRCHRmtInf // Payment reference }
type QRCHCcyAmt ¶
func (QRCHCcyAmt) Validate ¶ added in v0.1.10
func (a QRCHCcyAmt) Validate() QRCHCcyAmt
type QRCHCdtrInf ¶
type QRCHHeader ¶
type QRCHRmtInf ¶
type QRCHRmtInf struct { Tp string // Reference type Ref string // Reference AddInf QRCHRmtInfAddInf // Additional information }
type QRCHRmtInfAddInf ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
internal
|
|
pdf
Package pdf implements a minimal PDF 1.7 writer, just functional enough to create a PDF file containing a QR code encoded as rectangles.
|
Package pdf implements a minimal PDF 1.7 writer, just functional enough to create a PDF file containing a QR code encoded as rectangles. |