session

package
v72.30.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 4 Imported by: 27

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 ListLineItems

func ListLineItems(id string, params *stripe.CheckoutSessionListLineItemsParams) *lineitem.Iter

ListLineItems returns a list of line items on 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) ListLineItems

func (c Client) ListLineItems(id string, listParams *stripe.CheckoutSessionListLineItemsParams) *lineitem.Iter

ListLineItems returns a list of line items on a session.

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.

func (*Iter) CheckoutSessionList

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

CheckoutSessionList 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