Documentation ¶
Overview ¶
Package subitem provides the /subscription_items APIs
Index ¶
- func Del(id string, params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
- func Get(id string, params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
- func New(params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
- func Update(id string, params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
- type Client
- func (c Client) Del(id string, params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
- func (c Client) Get(id string, params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
- func (c Client) List(listParams *stripe.SubscriptionItemListParams) *Iter
- func (c Client) New(params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
- func (c Client) Update(id string, params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Del ¶
func Del(id string, params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
Del removes a subscription item. For more details see https://stripe.com/docs/api#cancel_subscription.
func Get ¶
func Get(id string, params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
Get returns the details of a subscription. For more details see https://stripe.com/docs/api#retrieve_subscription.
func New ¶
func New(params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
New POSTS a new subscription for a customer. For more details see https://stripe.com/docs/api#create_subscription_item.
func Update ¶
func Update(id string, params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
Update updates a subscription's properties. For more details see https://stripe.com/docs/api#update_subscription.
Types ¶
type Client ¶
Client is used to invoke /subscriptions APIs.
func (Client) Del ¶
func (c Client) Del(id string, params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
func (Client) Get ¶
func (c Client) Get(id string, params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
func (Client) New ¶
func (c Client) New(params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
func (Client) Update ¶
func (c Client) Update(id string, params *stripe.SubscriptionItemParams) (*stripe.SubscriptionItem, error)
type 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.