session

package
v70.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package session provides API functions related to checkout sessions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

Get retrieves a session.

func New

New creates a new session.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /checkout_sessions APIs.

func (Client) Get

Get retrieves a session.

func (Client) List

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

List returns a list of sessions.

func (Client) New

New creates a new session.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for sessions.

func List

func List(params *stripe.CheckoutSessionListParams) *Iter

List returns a list of sessions.

func (*Iter) CheckoutSession

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

CheckoutSession returns the session 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