Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPaymentRequestAlreadyExists = errors.New("payment request record already exists") ErrPaymentRequestNotFound = errors.New("no payment request records could be found") )
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct { Id uint64 Intent string // Payment fields DestinationTokenAccount *string ExchangeCurrency *string NativeAmount *float64 ExchangeRate *float64 Quantity *uint64 // Login fields Domain *string IsVerified bool CreatedAt time.Time }
Currently, the model supports payment, login, or both.
todo: Refactor to a structure similar to intent as we add more request use cases.
func (*Record) RequiresPayment ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.