subscriptionschedule

package
v79.12.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Overview

Package subscriptionschedule provides the /subscription_schedules APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Amend

Amends an existing subscription schedule.

func Cancel

Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active.

func Get

Retrieves the details of an existing subscription schedule. You only need to supply the unique subscription schedule identifier that was returned upon subscription schedule creation.

func New

Creates a new subscription schedule object. Each customer can have up to 500 active or scheduled subscriptions.

func Release

Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place. A schedule can only be released if its status is not_started or active. If the subscription schedule is currently associated with a subscription, releasing it will remove its subscription property and set the subscription's ID to the released_subscription property.

func Update

Updates an existing subscription schedule.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /subscription_schedules APIs.

func (Client) Amend

Amends an existing subscription schedule.

func (Client) Cancel

Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active.

func (Client) Get

Retrieves the details of an existing subscription schedule. You only need to supply the unique subscription schedule identifier that was returned upon subscription schedule creation.

func (Client) List

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

Retrieves the list of your subscription schedules.

func (Client) New

Creates a new subscription schedule object. Each customer can have up to 500 active or scheduled subscriptions.

func (Client) Release

Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place. A schedule can only be released if its status is not_started or active. If the subscription schedule is currently associated with a subscription, releasing it will remove its subscription property and set the subscription's ID to the released_subscription property.

func (Client) Update

Updates an existing subscription schedule.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for subscription schedules.

func List

Retrieves the list of your subscription schedules.

func (*Iter) SubscriptionSchedule

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

SubscriptionSchedule returns the subscription schedule which the iterator is currently pointing to.

func (*Iter) SubscriptionScheduleList

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

SubscriptionScheduleList 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