payments

package
v0.0.0-...-3b5fe6f Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(DB *gorm.DB) ([]schema.Payment, error)

All payments

func Create

func Create(DB *gorm.DB, payment *schema.Payment) (*schema.Payment, error)

Create a new payment

func Delete

func Delete(DB *gorm.DB, ID string) error

Delete a payment by ID

func DeleteAll

func DeleteAll(DB *gorm.DB) error

DeleteAll payments

func Get

func Get(DB *gorm.DB, ID string) (*schema.Payment, error)

Get a payment by ID

func SetAll

func SetAll(DB *gorm.DB, payments []schema.Payment) ([]schema.Payment, error)

SetAll payments

func Update

func Update(DB *gorm.DB, ID string, payment *schema.Payment) (*schema.Payment, error)

Update a payment by ID

Types

type ValidationError

type ValidationError struct {
	// contains filtered or unexported fields
}

ValidationError describes the incorrectness of a payment operation

func (*ValidationError) Error

func (e *ValidationError) Error() string

Jump to

Keyboard shortcuts

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