subscriptionitem

package
v76.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package subscriptionitem provides the /subscription_items APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

Del removes a subscription item.

func Get

Get returns the details of a subscription item.

func New

New creates a new subscription item.

func Update

Update updates a subscription item's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /subscription_items APIs.

func (Client) Del

Del removes a subscription item.

func (Client) Get

Get returns the details of a subscription item.

func (Client) List

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

List returns a list of subscription items.

func (Client) New

New creates a new subscription item.

func (Client) Update

Update updates a subscription item's properties.

func (Client) UsageRecordSummaries

UsageRecordSummaries is the method for the `GET /v1/subscription_items/{subscription_item}/usage_record_summaries` API.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for subscription items.

func List

func List(params *stripe.SubscriptionItemListParams) *Iter

List returns a list of subscription items.

func (*Iter) SubscriptionItem

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

SubscriptionItem returns the subscription item which the iterator is currently pointing to.

func (*Iter) SubscriptionItemList

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

SubscriptionItemList 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 UsageRecordSummaryIter

type UsageRecordSummaryIter struct {
	*stripe.Iter
}

UsageRecordSummaryIter is an iterator for usage record summaries.

func UsageRecordSummaries

UsageRecordSummaries is the method for the `GET /v1/subscription_items/{subscription_item}/usage_record_summaries` API.

func (*UsageRecordSummaryIter) UsageRecordSummary

func (i *UsageRecordSummaryIter) UsageRecordSummary() *stripe.UsageRecordSummary

UsageRecordSummary returns the usage record summary which the iterator is currently pointing to.

func (*UsageRecordSummaryIter) UsageRecordSummaryList

func (i *UsageRecordSummaryIter) UsageRecordSummaryList() *stripe.UsageRecordSummaryList

UsageRecordSummaryList 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