package
Version:
v1.39.1
Opens a new window with list of versions in this module.
Published: Jan 4, 2022
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type History interface {
IsHistory()
}
type Product struct {
Upc string `json:"upc"`
}
type Purchase struct {
Product *Product `json:"product"`
Wallet Wallet `json:"wallet"`
}
type Sale struct {
Product *Product `json:"product"`
Rating int `json:"rating"`
}
type User struct {
ID string `json:"id"`
Username string `json:"username"`
History []History `json:"history"`
}
type Wallet interface {
IsWallet()
}
type WalletType1 struct {
Currency string `json:"currency"`
Amount float64 `json:"amount"`
SpecialField1 string `json:"specialField1"`
}
type WalletType2 struct {
Currency string `json:"currency"`
Amount float64 `json:"amount"`
SpecialField2 string `json:"specialField2"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.