Documentation
¶
Overview ¶
Package notification provides the Notification type for notifications in the version:
2.x
Index ¶
- Constants
- type Notification
- func (n *Notification) HashFunc() func() hash.Hash
- func (n *Notification) Identification() string
- func (n *Notification) Message() ([]byte, error)
- func (n *Notification) Reader() io.ReadCloser
- func (n *Notification) SetTransactions(tl payment.PaymentTransactionList)
- func (n *Notification) Sign(timestamp time.Time, nonce string, secret []byte) error
Constants ¶
View Source
const (
PaymentNotificationVersion = "2.0.0-alpha"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type Notification struct { Version string PaymentId payment.PaymentID Ident string Amount int64 `json:",string"` Subunits int8 `json:",string"` DecimalAmount string Currency string Country string `json:",omitempty"` PaymentMethodId int64 `json:",string,omitempty"` Locale string `json:",omitempty"` Balance payment.Balance `json:",omitempty"` Status string `json:",omitempty"` TransactionTimestamp int64 `json:",string,omitempty"` Metadata map[string]string `json:",omitempty"` Timestamp int64 `json:",string"` Nonce string `json:",omitempty"` Signature string `json:",omitempty"` }
PaymentNotification represents a notification for connected systems about the state of a payment
func (*Notification) HashFunc ¶
func (n *Notification) HashFunc() func() hash.Hash
func (*Notification) Identification ¶
func (n *Notification) Identification() string
func (*Notification) Message ¶
func (n *Notification) Message() ([]byte, error)
func (*Notification) Reader ¶
func (n *Notification) Reader() io.ReadCloser
func (*Notification) SetTransactions ¶
func (n *Notification) SetTransactions(tl payment.PaymentTransactionList)
Click to show internal directories.
Click to hide internal directories.