filelink

package
v63.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package filelink provides API functions related to file links.

For more details, see: https://stripe.com/docs/api/go#file_links.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.FileLinkParams) (*stripe.FileLink, error)

Get retrieves a file link.

func New

func New(params *stripe.FileLinkParams) (*stripe.FileLink, error)

New creates a new file link.

func Update

func Update(id string, params *stripe.FileLinkParams) (*stripe.FileLink, error)

Update updates a file link.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke APIs related to file links.

func (Client) Get

func (c Client) Get(id string, params *stripe.FileLinkParams) (*stripe.FileLink, error)

Get retrieves a file link.

func (Client) List

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

List returns an iterator that iterates all file links.

func (Client) New

func (c Client) New(params *stripe.FileLinkParams) (*stripe.FileLink, error)

New creates a new file link.

func (Client) Update

func (c Client) Update(id string, params *stripe.FileLinkParams) (*stripe.FileLink, error)

Update updates a file link.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for file links.

func List

func List(params *stripe.FileLinkListParams) *Iter

List returns an iterator that iterates all file links.

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

FileLink returns the file link 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