payments

package
v0.0.0-...-6740b9f Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Payments

type Payments struct {
	AppEngineContext appengine.Context
	Storage          *Storage
}

func NewPayments

func NewPayments(appEngineContext appengine.Context) *Payments

func (*Payments) Create

func (self *Payments) Create(payment *t.Payment) error

func (*Payments) Delete

func (self *Payments) Delete(id t.PaymentId) error

func (*Payments) Find

func (self *Payments) Find(id t.PaymentId) (t.Payment, error)

func (*Payments) FindAll

func (self *Payments) FindAll(status t.PaymentStatus) (t.Payments, error)

func (*Payments) FindAllActive

func (self *Payments) FindAllActive() (t.Payments, error)

func (*Payments) FindAllByOverviewId

func (self *Payments) FindAllByOverviewId(overviewId t.OverviewId) (t.Payments, error)

func (*Payments) FindAllByUserId

func (self *Payments) FindAllByUserId(userId t.UserId) (t.Payments, error)

func (*Payments) FindMulti

func (self *Payments) FindMulti(ids t.PaymentIds) (t.Payments, error)

func (*Payments) Update

func (self *Payments) Update(payment t.Payment) (t.Payment, error)

type Storage

type Storage struct {
	AppEngineContext appengine.Context
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(appEngineContext appengine.Context) *Storage

func (*Storage) Delete

func (self *Storage) Delete(id t.PaymentId) error

func (*Storage) Find

func (self *Storage) Find(id t.PaymentId) (t.Payment, error)

func (*Storage) FindAllActive

func (self *Storage) FindAllActive() (t.Payments, error)

func (*Storage) FindAllByOverviewId

func (self *Storage) FindAllByOverviewId(overviewId t.OverviewId) (t.Payments, error)

func (*Storage) FindAllByStatus

func (self *Storage) FindAllByStatus(status t.PaymentStatus) (t.Payments, error)

func (*Storage) FindAllByUserId

func (self *Storage) FindAllByUserId(userId t.UserId) (t.Payments, error)

func (*Storage) FindMulti

func (self *Storage) FindMulti(ids t.PaymentIds) (t.Payments, error)

func (*Storage) Save

func (self *Storage) Save(payment *t.Payment) error

func (*Storage) Update

func (self *Storage) Update(payment t.Payment) (t.Payment, error)

Jump to

Keyboard shortcuts

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