feature

package
v79.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package feature provides the /entitlements/features APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

Retrieves a feature

func New

Creates a feature

func Update

Update a feature's metadata or permanently deactivate it.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /entitlements/features APIs.

func (Client) Get

Retrieves a feature

func (Client) List

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

Retrieve a list of features

func (Client) New

Creates a feature

func (Client) Update

Update a feature's metadata or permanently deactivate it.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for entitlements features.

func List

Retrieve a list of features

func (*Iter) EntitlementsFeature

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

EntitlementsFeature returns the entitlements feature which the iterator is currently pointing to.

func (*Iter) EntitlementsFeatureList

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

EntitlementsFeatureList 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