productfeature

package
v80.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package productfeature provides the /products/{product}/features APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

Deletes the feature attachment to a product

func Get

Retrieves a product_feature, which represents a feature attachment to a product

func New

Creates a product_feature, which represents a feature attachment to a product

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /products/{product}/features APIs.

func (Client) Del

Deletes the feature attachment to a product

func (Client) Get

Retrieves a product_feature, which represents a feature attachment to a product

func (Client) List

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

Retrieve a list of features for a product

func (Client) New

Creates a product_feature, which represents a feature attachment to a product

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for product features.

func List

func List(params *stripe.ProductFeatureListParams) *Iter

Retrieve a list of features for a product

func (*Iter) ProductFeature

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

ProductFeature returns the product feature which the iterator is currently pointing to.

func (*Iter) ProductFeatureList

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

ProductFeatureList 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