customerbalancetransaction

package
v79.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Overview

Package customerbalancetransaction provides the /customers/{customer}/balance_transactions APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

Retrieves a specific customer balance transaction that updated the customer's [balances](https://stripe.com/docs/billing/customer/balance).

func New

Creates an immutable transaction that updates the customer's credit [balance](https://stripe.com/docs/billing/customer/balance).

func Update

Most credit balance transaction fields are immutable, but you may update its description and metadata.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /customers/{customer}/balance_transactions APIs.

func (Client) Get

Retrieves a specific customer balance transaction that updated the customer's [balances](https://stripe.com/docs/billing/customer/balance).

func (Client) List

Returns a list of transactions that updated the customer's [balances](https://stripe.com/docs/billing/customer/balance).

func (Client) New

Creates an immutable transaction that updates the customer's credit [balance](https://stripe.com/docs/billing/customer/balance).

func (Client) Update

Most credit balance transaction fields are immutable, but you may update its description and metadata.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for customer balance transactions.

func List

Returns a list of transactions that updated the customer's [balances](https://stripe.com/docs/billing/customer/balance).

func (*Iter) CustomerBalanceTransaction

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

CustomerBalanceTransaction returns the customer balance transaction which the iterator is currently pointing to.

func (*Iter) CustomerBalanceTransactionList

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

CustomerBalanceTransactionList 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