event

package
v76.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package event provides the /events APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.EventParams) (*stripe.Event, error)

Get returns the details of an event.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /events APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.EventParams) (*stripe.Event, error)

Get returns the details of an event.

func (Client) List

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

List returns a list of events.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for events.

func List

func List(params *stripe.EventListParams) *Iter

List returns a list of events.

func (*Iter) Event

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

Event returns the event which the iterator is currently pointing to.

func (*Iter) EventList

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

EventList 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