Documentation ¶
Overview ¶
Package session provides the /checkout/sessions APIs
Index ¶
- func Expire(id string, params *stripe.CheckoutSessionExpireParams) (*stripe.CheckoutSession, error)
- func Get(id string, params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
- func New(params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
- func Update(id string, params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
- type Client
- func (c Client) Expire(id string, params *stripe.CheckoutSessionExpireParams) (*stripe.CheckoutSession, error)
- func (c Client) Get(id string, params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
- func (c Client) List(listParams *stripe.CheckoutSessionListParams) *Iter
- func (c Client) ListLineItems(listParams *stripe.CheckoutSessionListLineItemsParams) *LineItemIter
- func (c Client) New(params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
- func (c Client) Update(id string, params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
- type Iter
- type LineItemIter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Expire ¶
func Expire(id string, params *stripe.CheckoutSessionExpireParams) (*stripe.CheckoutSession, error)
A Session can be expired when it is in one of these statuses: open
After it expires, a customer can't complete a Session and customers loading the Session see a message saying the Session is expired.
func Get ¶
func Get(id string, params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
Retrieves a Session object.
func New ¶
func New(params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
Creates a Session object.
func Update ¶
func Update(id string, params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
Updates a Session object.
Types ¶
type Client ¶
Client is used to invoke /checkout/sessions APIs.
func (Client) Expire ¶
func (c Client) Expire(id string, params *stripe.CheckoutSessionExpireParams) (*stripe.CheckoutSession, error)
A Session can be expired when it is in one of these statuses: open
After it expires, a customer can't complete a Session and customers loading the Session see a message saying the Session is expired.
func (Client) Get ¶
func (c Client) Get(id string, params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
Retrieves a Session object.
func (Client) List ¶
func (c Client) List(listParams *stripe.CheckoutSessionListParams) *Iter
Returns a list of Checkout Sessions.
func (Client) ListLineItems ¶
func (c Client) ListLineItems(listParams *stripe.CheckoutSessionListLineItemsParams) *LineItemIter
When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
func (Client) New ¶
func (c Client) New(params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
Creates a Session object.
func (Client) Update ¶
func (c Client) Update(id string, params *stripe.CheckoutSessionParams) (*stripe.CheckoutSession, error)
Updates a Session object.
type Iter ¶
Iter is an iterator for checkout sessions.
func List ¶
func List(params *stripe.CheckoutSessionListParams) *Iter
Returns a list of Checkout Sessions.
func (*Iter) CheckoutSession ¶
func (i *Iter) CheckoutSession() *stripe.CheckoutSession
CheckoutSession returns the checkout 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.
type LineItemIter ¶
LineItemIter is an iterator for line items.
func ListLineItems ¶
func ListLineItems(params *stripe.CheckoutSessionListLineItemsParams) *LineItemIter
When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
func (*LineItemIter) LineItem ¶
func (i *LineItemIter) LineItem() *stripe.LineItem
LineItem returns the line item which the iterator is currently pointing to.
func (*LineItemIter) LineItemList ¶
func (i *LineItemIter) LineItemList() *stripe.LineItemList
LineItemList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.