account

package
v76.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package account provides the /accounts APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(id string, params *stripe.AccountParams) (*stripe.Account, error)

Del removes an account.

func Get

func Get() (*stripe.Account, error)

Get retrieves the authenticating account.

func GetByID

func GetByID(id string, params *stripe.AccountParams) (*stripe.Account, error)

GetByID returns the details of an account.

func New

func New(params *stripe.AccountParams) (*stripe.Account, error)

New creates a new account.

func Reject

func Reject(id string, params *stripe.AccountRejectParams) (*stripe.Account, error)

Reject is the method for the `POST /v1/accounts/{account}/reject` API.

func Update

func Update(id string, params *stripe.AccountParams) (*stripe.Account, error)

Update updates an account's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /accounts APIs.

func (Client) Del

func (c Client) Del(id string, params *stripe.AccountParams) (*stripe.Account, error)

Del removes an account.

func (Client) Get

func (c Client) Get() (*stripe.Account, error)

Get retrieves the authenticating account.

func (Client) GetByID

func (c Client) GetByID(id string, params *stripe.AccountParams) (*stripe.Account, error)

GetByID returns the details of an account.

func (Client) List

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

List returns a list of accounts.

func (Client) New

func (c Client) New(params *stripe.AccountParams) (*stripe.Account, error)

New creates a new account.

func (Client) Reject

func (c Client) Reject(id string, params *stripe.AccountRejectParams) (*stripe.Account, error)

Reject is the method for the `POST /v1/accounts/{account}/reject` API.

func (Client) Update

func (c Client) Update(id string, params *stripe.AccountParams) (*stripe.Account, error)

Update updates an account's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for accounts.

func List

func List(params *stripe.AccountListParams) *Iter

List returns a list of accounts.

func (*Iter) Account

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

Account returns the account which the iterator is currently pointing to.

func (*Iter) AccountList

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

AccountList 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