reader

package
v78.5.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 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

CancelAction is the method for the `POST /v1/terminal/readers/{reader}/cancel_action` API.

func Del

Del removes a terminal reader.

func Get

Get returns the details of a terminal reader.

func New

New creates a new terminal reader.

func ProcessPaymentIntent

ProcessPaymentIntent is the method for the `POST /v1/terminal/readers/{reader}/process_payment_intent` API.

func ProcessSetupIntent

ProcessSetupIntent is the method for the `POST /v1/terminal/readers/{reader}/process_setup_intent` API.

func RefundPayment

RefundPayment is the method for the `POST /v1/terminal/readers/{reader}/refund_payment` API.

func SetReaderDisplay

SetReaderDisplay is the method for the `POST /v1/terminal/readers/{reader}/set_reader_display` API.

func Update

Update updates a terminal reader's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /terminal/readers APIs.

func (Client) CancelAction

CancelAction is the method for the `POST /v1/terminal/readers/{reader}/cancel_action` API.

func (Client) Del

Del removes a terminal reader.

func (Client) Get

Get returns the details of a terminal reader.

func (Client) List

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

List returns a list of terminal readers.

func (Client) New

New creates a new terminal reader.

func (Client) ProcessPaymentIntent

ProcessPaymentIntent is the method for the `POST /v1/terminal/readers/{reader}/process_payment_intent` API.

func (Client) ProcessSetupIntent

ProcessSetupIntent is the method for the `POST /v1/terminal/readers/{reader}/process_setup_intent` API.

func (Client) RefundPayment

RefundPayment is the method for the `POST /v1/terminal/readers/{reader}/refund_payment` API.

func (Client) SetReaderDisplay

SetReaderDisplay is the method for the `POST /v1/terminal/readers/{reader}/set_reader_display` API.

func (Client) Update

Update updates a terminal reader's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for terminal readers.

func List

func List(params *stripe.TerminalReaderListParams) *Iter

List returns a list of terminal readers.

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