event

package
v70.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 3 Imported by: 155

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL