service

package
v0.0.0-...-fd9055f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL