location

package
v81.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package location provides the /terminal/locations APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

Deletes a Location object.

func Get

Retrieves a Location object.

func New

Creates a new Location object. For further details, including which address fields are required in each country, see the [Manage locations](https://stripe.com/docs/terminal/fleet/locations) guide.

func Update

Updates a Location object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /terminal/locations APIs.

func (Client) Del

Deletes a Location object.

func (Client) Get

Retrieves a Location object.

func (Client) List

func (c Client) List(listParams *stripe.TerminalLocationListParams) *Iter

Returns a list of Location objects.

func (Client) New

Creates a new Location object. For further details, including which address fields are required in each country, see the [Manage locations](https://stripe.com/docs/terminal/fleet/locations) guide.

func (Client) Update

Updates a Location object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for terminal locations.

func List

func List(params *stripe.TerminalLocationListParams) *Iter

Returns a list of Location objects.

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.

Jump to

Keyboard shortcuts

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