creditreversal

package
v79.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package creditreversal provides the /treasury/credit_reversals APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list

func New

Reverses a ReceivedCredit and creates a CreditReversal object.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /treasury/credit_reversals APIs.

func (Client) Get

Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list

func (Client) List

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

Returns a list of CreditReversals.

func (Client) New

Reverses a ReceivedCredit and creates a CreditReversal object.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for treasury credit reversals.

func List

Returns a list of CreditReversals.

func (*Iter) TreasuryCreditReversal

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

TreasuryCreditReversal returns the treasury credit reversal which the iterator is currently pointing to.

func (*Iter) TreasuryCreditReversalList

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

TreasuryCreditReversalList 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