fileupload

package
v17.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package fileupload provides the file upload related APIs

Index

Constants

View Source
const (
	DisputeEvidenceFile stripe.FileUploadPurpose = "dispute_evidence"
	IdentityDocFile     stripe.FileUploadPurpose = "identity_document"
)

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.FileUploadParams) (*stripe.FileUpload, error)

Get returns the details of a file upload. For more details see https://stripe.com/docs/api#retrieve_file_upload.

func New

New POSTs new file uploads. For more details see https://stripe.com/docs/api#create_file_upload.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke file upload APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.FileUploadParams) (*stripe.FileUpload, error)

func (Client) List

func (c Client) List(params *stripe.FileUploadListParams) *Iter

func (Client) New

func (c Client) New(params *stripe.FileUploadParams) (*stripe.FileUpload, error)

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for lists of FileUploads. The embedded Iter carries methods with it; see its documentation for details.

func List

func List(params *stripe.FileUploadListParams) *Iter

List returns a list of file uploads. For more details see https://stripe.com/docs/api#list_file_uploads.

func (*Iter) FileUpload

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

FileUpload returns the most recent FileUpload visited by a call to Next.

Jump to

Keyboard shortcuts

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