digital

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

Overview

Package digital is digital purchases

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(mail escol.Mail) bool

Types

type Receipt

type Receipt struct {
	OrderID     string `json:"order_id"`     // 注文番号
	Subtotal    int    `json:"subtotal"`     // 商品の小計
	UsedPoint   int    `json:"used_point"`   // 消費したAmazonポイント
	TotalAmount int    `json:"total_amount"` // 注文合計
	Title       string `json:"title"`        // 商品のタイトル
	Publisher   string `json:"publisher"`    // 商品の販売者
	Name        string `json:"name"`         // あなたの名前
	Email       string `json:"email"`        // あなたのメールアドレス

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

func Scrape

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

func (*Receipt) OrderDetailURL

func (r *Receipt) OrderDetailURL() string

Jump to

Keyboard shortcuts

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