Documentation
¶
Index ¶
- func CreatePayment(s store.Store, pp *presentation.Payment) (*presentation.Payment, error)
- func DeletePayment(s store.Store, eid presentation.Entity) (*presentation.Payment, error)
- func ListPayments(s store.Store) ([]*presentation.Payment, error)
- func LoadPayment(s store.Store, eid presentation.Entity) (*presentation.Payment, error)
- func SavePayment(s store.Store, pp *presentation.Payment) (*presentation.Payment, error)
- func UpdatePayment(s store.Store, pp *presentation.Payment) (*presentation.Payment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePayment ¶
func CreatePayment(s store.Store, pp *presentation.Payment) (*presentation.Payment, error)
CreatePayment creates a new payment and saves it to the store The payment must be valid The ID and Version will be overwritten.
func DeletePayment ¶
func DeletePayment(s store.Store, eid presentation.Entity) (*presentation.Payment, error)
DeletePayment removes the payment from the store and returns the removed payment
func ListPayments ¶
func ListPayments(s store.Store) ([]*presentation.Payment, error)
ListPayments removes the payment from the store and returns the removed payment
func LoadPayment ¶
func LoadPayment(s store.Store, eid presentation.Entity) (*presentation.Payment, error)
LoadPayment loads the version of the payment from the store. A version of 0 retrieves the latest version
func SavePayment ¶
func SavePayment(s store.Store, pp *presentation.Payment) (*presentation.Payment, error)
SavePayment writes the complete payment to the store
func UpdatePayment ¶
func UpdatePayment(s store.Store, pp *presentation.Payment) (*presentation.Payment, error)
UpdatePayment patches the attributes of the payment with the attributes in the payment provided
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.