reader

package
v80.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package reader provides the /terminal/readers APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CancelAction

Cancels the current reader action.

func Del

Deletes a Reader object.

func Get

Retrieves a Reader object.

func New

Creates a new Reader object.

func ProcessPaymentIntent

Initiates a payment flow on a Reader.

func ProcessSetupIntent

Initiates a setup intent flow on a Reader.

func RefundPayment

Initiates a refund on a Reader

func SetReaderDisplay

Sets reader display to show cart details.

func Update

Updates a Reader 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/readers APIs.

func (Client) CancelAction

Cancels the current reader action.

func (Client) Del

Deletes a Reader object.

func (Client) Get

Retrieves a Reader object.

func (Client) List

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

Returns a list of Reader objects.

func (Client) New

Creates a new Reader object.

func (Client) ProcessPaymentIntent

Initiates a payment flow on a Reader.

func (Client) ProcessSetupIntent

Initiates a setup intent flow on a Reader.

func (Client) RefundPayment

Initiates a refund on a Reader

func (Client) SetReaderDisplay

Sets reader display to show cart details.

func (Client) Update

Updates a Reader 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 readers.

func List

func List(params *stripe.TerminalReaderListParams) *Iter

Returns a list of Reader objects.

func (*Iter) TerminalReader

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

TerminalReader returns the terminal reader which the iterator is currently pointing to.

func (*Iter) TerminalReaderList

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

TerminalReaderList 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