file

package
v72.122.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package file provides the /files APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.FileParams) (*stripe.File, error)

Get returns the details of a file.

func New

func New(params *stripe.FileParams) (*stripe.File, error)

New creates a new file.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /files APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.FileParams) (*stripe.File, error)

Get returns the details of a file.

func (Client) List

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

List returns a list of files.

func (Client) New

func (c Client) New(params *stripe.FileParams) (*stripe.File, error)

New creates a new file.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for files.

func List

func List(params *stripe.FileListParams) *Iter

List returns a list of files.

func (*Iter) File

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

File returns the file which the iterator is currently pointing to.

func (*Iter) FileList

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

FileList 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