Documentation ¶
Overview ¶
Package file provides the /files APIs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to [access file contents](https://stripe.com/docs/file-upload#download-file-contents).
func New ¶
func New(params *stripe.FileParams) (*stripe.File, error)
To upload a file to Stripe, you need to send a request of type multipart/form-data. Include the file you want to upload in the request, and the parameters for creating a file.
All of Stripe's officially supported Client libraries support sending multipart/form-data.
Types ¶
type Client ¶
Client is used to invoke /files APIs.
func (Client) Get ¶
Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to [access file contents](https://stripe.com/docs/file-upload#download-file-contents).
func (Client) List ¶
func (c Client) List(listParams *stripe.FileListParams) *Iter
Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top.
type Iter ¶
Iter is an iterator for files.
func List ¶
func List(params *stripe.FileListParams) *Iter
Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top.