Documentation ¶
Index ¶
Constants ¶
View Source
const ( SWISS_CROSS_FILE = "graphics/CH-Kreuz_7mm.png" QR_TYPE = "SPC" // Swiss Payment Code VERSION = "0200" // Version 2.0.0 UTF8 = 1 CODING_TYPE = UTF8 ADDRESS_TYPE_STRUCTURED = "S" ADDRESS_TYPE_COMBINED = "K" // CountryCode ISO 3166-1 COUNTRY_SWITZERLAND = "CH" COUNTRY_LICHTENSTEIN = "LI" CURRENCY_SWISS_FRANCS = "CHF" CURRENCY_EURO = "EUR" REFERENCE_TYPE_NO_REF = "NON" REFERENCE_TYPE_CREDITOR = "SCOR" REFERENCE_TYPE_QR = "QRR" TRAILER = "EPD" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SwissBillQr ¶
type SwissBillQr struct { QRType string Version string CodingType int // issuer parts Issuer *specs.AccountDetails FinalBeneficiary *specs.AccountDetails }
func NewSwissBillQr ¶
func NewSwissBillQr(issuer *specs.AccountDetails) *SwissBillQr
func (*SwissBillQr) GetSwissPaymentQR ¶
func (s *SwissBillQr) GetSwissPaymentQR(receipt *specs.AccountDetails, billingDetails *specs.BillingDetails, outFile string)
Click to show internal directories.
Click to hide internal directories.