meter

package
v79.6.0-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: 3

Documentation

Overview

Package meter provides the /billing/meters APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deactivate

Deactivates a billing meter

func Get

Retrieves a billing meter given an ID

func New

Creates a billing meter

func Reactivate

Reactivates a billing meter

func Update

func Update(id string, params *stripe.BillingMeterParams) (*stripe.BillingMeter, error)

Updates a billing meter

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /billing/meters APIs.

func (Client) Deactivate

Deactivates a billing meter

func (Client) Get

Retrieves a billing meter given an ID

func (Client) List

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

Retrieve a list of billing meters.

func (Client) New

Creates a billing meter

func (Client) Reactivate

Reactivates a billing meter

func (Client) Update

func (c Client) Update(id string, params *stripe.BillingMeterParams) (*stripe.BillingMeter, error)

Updates a billing meter

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for billing meters.

func List

func List(params *stripe.BillingMeterListParams) *Iter

Retrieve a list of billing meters.

func (*Iter) BillingMeter

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

BillingMeter returns the billing meter which the iterator is currently pointing to.

func (*Iter) BillingMeterList

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

BillingMeterList 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