valuelist

package
v78.7.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package valuelist provides the /radar/value_lists APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules.

func Get

Retrieves a ValueList object.

func New

Creates a new ValueList object, which can then be referenced in rules.

func Update

Updates a ValueList object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that item_type is immutable.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /radar/value_lists APIs.

func (Client) Del

Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules.

func (Client) Get

Retrieves a ValueList object.

func (Client) List

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

Returns a list of ValueList objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.

func (Client) New

Creates a new ValueList object, which can then be referenced in rules.

func (Client) Update

Updates a ValueList object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that item_type is immutable.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for radar value lists.

func List

func List(params *stripe.RadarValueListListParams) *Iter

Returns a list of ValueList objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.

func (*Iter) RadarValueList

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

RadarValueList returns the radar value list which the iterator is currently pointing to.

func (*Iter) RadarValueListList

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

RadarValueListList 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