meter

package
v78.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package meter provides the /billing/meters APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deactivate

Deactivate is the method for the `POST /v1/billing/meters/{id}/deactivate` API.

func Get

Get returns the details of a billing meter.

func New

New creates a new billing meter.

func Reactivate

Reactivate is the method for the `POST /v1/billing/meters/{id}/reactivate` API.

func Update

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

Update updates a billing meter's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /billing/meters APIs.

func (Client) Deactivate

Deactivate is the method for the `POST /v1/billing/meters/{id}/deactivate` API.

func (Client) Get

Get returns the details of a billing meter.

func (Client) List

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

List returns a list of billing meters.

func (Client) New

New creates a new billing meter.

func (Client) Reactivate

Reactivate is the method for the `POST /v1/billing/meters/{id}/reactivate` API.

func (Client) Update

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

Update updates a billing meter's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for billing meters.

func List

func List(params *stripe.BillingMeterListParams) *Iter

List returns 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