Documentation ¶
Overview ¶
Package location provides the /terminal/locations APIs
Index ¶
- func Del(id string, params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
- func Get(id string, params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
- func New(params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
- func Update(id string, params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
- type Client
- func (c Client) Del(id string, params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
- func (c Client) Get(id string, params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
- func (c Client) List(listParams *stripe.TerminalLocationListParams) *Iter
- func (c Client) New(params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
- func (c Client) Update(id string, params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Del ¶
func Del(id string, params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
Del removes a terminal location.
func Get ¶
func Get(id string, params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
Get returns the details of a terminal location.
func New ¶
func New(params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
New creates a new terminal location.
func Update ¶
func Update(id string, params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
Update updates a terminal location's properties.
Types ¶
type Client ¶
Client is used to invoke /terminal/locations APIs.
func (Client) Del ¶
func (c Client) Del(id string, params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
Del removes a terminal location.
func (Client) Get ¶
func (c Client) Get(id string, params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
Get returns the details of a terminal location.
func (Client) List ¶
func (c Client) List(listParams *stripe.TerminalLocationListParams) *Iter
List returns a list of terminal locations.
func (Client) New ¶
func (c Client) New(params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
New creates a new terminal location.
func (Client) Update ¶
func (c Client) Update(id string, params *stripe.TerminalLocationParams) (*stripe.TerminalLocation, error)
Update updates a terminal location's properties.
type Iter ¶
Iter is an iterator for terminal locations.
func List ¶
func List(params *stripe.TerminalLocationListParams) *Iter
List returns a list of terminal locations.
func (*Iter) TerminalLocation ¶
func (i *Iter) TerminalLocation() *stripe.TerminalLocation
TerminalLocation returns the terminal location which the iterator is currently pointing to.
func (*Iter) TerminalLocationList ¶
func (i *Iter) TerminalLocationList() *stripe.TerminalLocationList
TerminalLocationList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.