subitem

package
v35.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package subitem provides the /subscription_items APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

Del removes a subscription item. For more details see https://stripe.com/docs/api#cancel_subscription.

func Get

Get returns the details of a subscription. For more details see https://stripe.com/docs/api#retrieve_subscription.

func New

New POSTS a new subscription for a customer. For more details see https://stripe.com/docs/api#create_subscription_item.

func Update

Update updates a subscription's properties. For more details see https://stripe.com/docs/api#update_subscription.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /subscriptions APIs.

func (Client) Del

func (Client) Get

func (Client) List

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

func (Client) New

func (Client) Update

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for lists of Subscriptions. The embedded Iter carries methods with it; see its documentation for details.

func List

func List(params *stripe.SubscriptionItemListParams) *Iter

List returns a list of subscription items. For more details see https://stripe.com/docs/api#list_subscription_items.

func (*Iter) SubscriptionItem

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

SubscriptionItem returns the most recent SubscriptionItem visited by a call to Next.

Jump to

Keyboard shortcuts

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