file

package
v68.7.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package file provides the file related 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 file 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.

Jump to

Keyboard shortcuts

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