stripe

package
v0.0.0-...-045564c Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stripe

type Stripe struct {
	// contains filtered or unexported fields
}

A Stripe represents Stripe client struct.

func New

func New(cfg config.Config, httpCli http.Client) Stripe

New initialises a new Stripe client.

func (Stripe) GetEvent

func (s Stripe) GetEvent(createdAt int64, startingAfter, endingBefore string) (models.EventResponse, error)

GetEvent returns a list of event objects.

func (Stripe) GetResource

func (s Stripe) GetResource(startingAfter string) (models.ResourceResponse, error)

GetResource returns a list of resource objects.

Jump to

Keyboard shortcuts

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