payments

package
v0.0.0-...-5d9960a Latest Latest
Warning

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

Go to latest
Published: May 15, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retrieve

func Retrieve(paymentId string) (*sgo.Payment, *sgo.Error)

Square API Retrieve

Types

type Iter

type Iter struct {
	*sgo.Iter
}

func List

func List(params *sgo.PaymentListParams) (*Iter, *sgo.Error)

Square API List

func (*Iter) Next

func (i *Iter) Next() (*sgo.Payment, *sgo.Error)

takes the next object from sgo.Iter.Next() and convert into *Payment

type Payments

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

func New

func New(backend *sgo.Backend) (*Payments, error)

func (*Payments) List

func (this *Payments) List(params *sgo.PaymentListParams) (*Iter, *sgo.Error)

func (*Payments) Retrieve

func (this *Payments) Retrieve(paymentId string) (*sgo.Payment, *sgo.Error)

Jump to

Keyboard shortcuts

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