filelink

package
v72.97.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package filelink provides the /file_links APIs

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 returns the details of 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's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /file_links APIs.

func (Client) Get

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

Get returns the details of a file link.

func (Client) List

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

List returns a list of 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's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for file links.

func List

func List(params *stripe.FileLinkListParams) *Iter

List returns a list of file links.

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

FileLink returns the file link which the iterator is currently pointing to.

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

FileLinkList 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