pdfType

package
v0.0.0-...-5d5dd80 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeliveryNode

type DeliveryNode struct {
	// contains filtered or unexported fields
}

func NewDeliveryNode

func NewDeliveryNode(logger *zerolog.Logger) *DeliveryNode

func (*DeliveryNode) GeneratePDF

func (d *DeliveryNode) GeneratePDF() (*gofpdf.Fpdf, error)

func (*DeliveryNode) LogError

func (d *DeliveryNode) LogError(err error)

func (*DeliveryNode) SetDataFromRequest

func (d *DeliveryNode) SetDataFromRequest(request *http.Request) (err error)

type FullPersonInfo

type FullPersonInfo struct {
	FullForename string `json:"fullForename"`
	FullSurname  string `json:"fullSurname"`
	CompanyName  string `json:"companyName"`
	NameTitle    string `json:"nameTitle"`
	Address      struct {
		Road             string `json:"road"`
		HouseNumber      string `json:"houseNumber"`
		StreetSupplement string `json:"streetSupplement"`
		ZipCode          string `json:"zipCode"`
		CityName         string `json:"cityName"`
		State            string `json:"state"`
		Country          string `json:"country"`
		CountryCode      string `json:"countryCode"`
	} `json:"address"`
}

type Invoice

type Invoice struct {
	// contains filtered or unexported fields
}

func NewInvoice

func NewInvoice(logger *zerolog.Logger) *Invoice

func (*Invoice) GeneratePDF

func (i *Invoice) GeneratePDF() (*gofpdf.Fpdf, error)

func (*Invoice) LogError

func (i *Invoice) LogError(err error)

func (*Invoice) SetDataFromJson

func (i *Invoice) SetDataFromJson(jsonString string) (err error)

func (*Invoice) SetDataFromRequest

func (i *Invoice) SetDataFromRequest(request *http.Request) (err error)

type PdfMeta

type PdfMeta struct {
	Margin pdfMargin
	Font   pdfFont
}

type PdfType

type PdfType interface {
	SetDataFromJson(jsonString string) (err error)
	SetDataFromRequest(request *http.Request) (err error)
	GeneratePDF() (*gofpdf.Fpdf, error)
	LogError(err error)
	// contains filtered or unexported methods
}

type SenderInfo

type SenderInfo struct {
	Phone         string  `json:"phone"`
	Web           string  `json:"web"`
	Email         string  `json:"email"`
	MimeLogoUrl   string  `json:"mimeLogoUrl"`
	MimeLogoScale float64 `json:"mimeLogoScale"`
	Iban          string  `json:"iban"`
	Bic           string  `json:"bic"`
	TaxNumber     string  `json:"taxNumber"`
	BankName      string  `json:"bankName"`
}

Jump to

Keyboard shortcuts

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