qr

package
v0.0.0-...-ee15e7f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 8 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL