Documentation
¶
Index ¶
Constants ¶
View Source
const DateFmt = "2006-01-02"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Article ¶
type Article struct { Brand string Name string // not translated Hide bool ImageLink string ID string // for <details> and #anchor Alert map[string]string Description map[string]string Variants []Variant }
func (Article) TranslateAlert ¶
only supports langs which exist as Alert key, TODO: language.Matcher
type Catalog ¶
type Catalog []Category
func (Catalog) GroupOrder ¶
func (catalog Catalog) GroupOrder(order Order) []OrderedArticle
groups order by article
func (Catalog) Products ¶
func (catalog Catalog) Products() []productfeed.Product
assumes that catalog contains every article exactly once
type DeliveredItem ¶
type Delivery ¶
type Delivery []DeliveredItem
type OrderRow ¶
type OrderedArticle ¶
type OrderedArticle struct { Article Variants []OrderedVariant }
type OrderedVariant ¶
type Purchase ¶
type Purchase struct { ID string AccessKey string PaymentKey string Status Status NotifyProto string NotifyAddr string Ordered Order Delivered Delivery CreateDate string // yyyy-mm-dd DeleteDate string // yyyy-mm-dd CountryCode string // EU country }
func (*Purchase) GetUnfulfilled ¶
func (*Purchase) Underdelivered ¶
type Status ¶
type Status string
const ( StatusNew Status = "new" // unpaid StatusPaymentProcessing Status = "processing" // e.g. btcpay: "InvoiceProcessing Webhook: Triggers when an invoice is fully paid, but doesn't have the required amount of confirmations on the blockchain yet according to your store's settings." StatusUnderdelivered Status = "underdelivered" // payment settled, but we had not had enough items on stock StatusFinalized Status = "finalized" // payment settled, codes delivered )
type Stock ¶
func (Stock) OnDemandOnly ¶
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
Package userdb implements a very simple, read-only user database.
|
Package userdb implements a very simple, read-only user database. |
Click to show internal directories.
Click to hide internal directories.