alert

package
v79.6.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package alert provides the /billing/alerts APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Activate

Reactivates this alert, allowing it to trigger again.

func Archive

Archives this alert, removing it from the list view and APIs. This is non-reversible.

func Deactivate

Deactivates this alert, preventing it from triggering.

func Get

Retrieves a billing alert given an ID

func New

Creates a billing alert

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /billing/alerts APIs.

func (Client) Activate

Reactivates this alert, allowing it to trigger again.

func (Client) Archive

Archives this alert, removing it from the list view and APIs. This is non-reversible.

func (Client) Deactivate

Deactivates this alert, preventing it from triggering.

func (Client) Get

Retrieves a billing alert given an ID

func (Client) List

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

Lists billing active and inactive alerts

func (Client) New

Creates a billing alert

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for billing alerts.

func List

func List(params *stripe.BillingAlertListParams) *Iter

Lists billing active and inactive alerts

func (*Iter) BillingAlert

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

BillingAlert returns the billing alert which the iterator is currently pointing to.

func (*Iter) BillingAlertList

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

BillingAlertList 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