location

package
v68.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 3 Imported by: 48

Documentation

Overview

Package location provides API functions related to terminal locations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

Del removes a location.

func Get

Get returns the details of a terminal location.

func New

New creates a new terminal location.

func Update

Update updates a terminal location.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invokte /terminal/locations APIs

func (Client) Del

Del removes a location.

func (Client) Get

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 location.

func (Client) New

New creates a new terminal location.

func (Client) Update

Update updates a terminal location.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for terminal locations.

func List

func List(params *stripe.TerminalLocationListParams) *Iter

List returns a list of terminal location.

func (*Iter) TerminalLocation

func (i *Iter) TerminalLocation() *stripe.TerminalLocation

TerminalLocation returns the terminal location which the iterator is currently pointing to.

Jump to

Keyboard shortcuts

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