creditgrant

package
v80.2.0-beta.2 Latest Latest
Warning

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

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

Documentation

Overview

Package creditgrant provides the /billing/credit_grants APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expire

Expires a credit grant

func Get

Retrieves a credit grant

func New

Creates a credit grant

func Update

Updates a credit grant

func VoidGrant

Voids a credit grant

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /billing/credit_grants APIs.

func (Client) Expire

Expires a credit grant

func (Client) Get

Retrieves a credit grant

func (Client) List

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

Retrieve a list of credit grants

func (Client) New

Creates a credit grant

func (Client) Update

Updates a credit grant

func (Client) VoidGrant

Voids a credit grant

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for billing credit grants.

func List

Retrieve a list of credit grants

func (*Iter) BillingCreditGrant

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

BillingCreditGrant returns the billing credit grant which the iterator is currently pointing to.

func (*Iter) BillingCreditGrantList

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

BillingCreditGrantList 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