receipt

package
v0.0.0-...-8659ef1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(mail escol.Mail) bool

Types

type Payment

type Payment struct {
	Method string `json:"method"`
	Date   string `json:"date"`
	Amount int    `json:"amount"`
}

type Receipt

type Receipt struct {
	ShopName    string    `json:"shop_name"`
	TotalAmount int       `json:"total_amount"`
	Payments    []Payment `json:"payments"`

	Subject string `json:"-"`
	Body    string `json:"-"`
}

func Scrape

func Scrape(mail escol.Mail) (*Receipt, error)

Jump to

Keyboard shortcuts

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