paymentlink

package
v72.118.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package paymentlink provides the /payment_links APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

Get returns the details of a payment link.

func New

New creates a new payment link.

func Update

func Update(id string, params *stripe.PaymentLinkParams) (*stripe.PaymentLink, error)

Update updates a payment link's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /payment_links APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.PaymentLinkParams) (*stripe.PaymentLink, error)

Get returns the details of a payment link.

func (Client) List

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

List returns a list of payment links.

func (Client) ListLineItems

func (c Client) ListLineItems(listParams *stripe.PaymentLinkListLineItemsParams) *LineItemIter

ListLineItems is the method for the `GET /v1/payment_links/{payment_link}/line_items` API.

func (Client) New

New creates a new payment link.

func (Client) Update

func (c Client) Update(id string, params *stripe.PaymentLinkParams) (*stripe.PaymentLink, error)

Update updates a payment link's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for payment links.

func List

func List(params *stripe.PaymentLinkListParams) *Iter

List returns a list of payment links.

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

PaymentLink returns the payment link which the iterator is currently pointing to.

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

PaymentLinkList 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

type LineItemIter struct {
	*stripe.Iter
}

LineItemIter is an iterator for line items.

func ListLineItems

func ListLineItems(params *stripe.PaymentLinkListLineItemsParams) *LineItemIter

ListLineItems is the method for the `GET /v1/payment_links/{payment_link}/line_items` API.

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.

Jump to

Keyboard shortcuts

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