promotioncode

package
v72.47.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package promotioncode provides the /promotion_codes APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

Get returns the details of a promotion code.

func New

New creates a new promotion code.

func Update

Update updates a promotion code's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /promotion_codes APIs.

func (Client) Get

Get returns the details of a promotion code.

func (Client) List

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

List returns a list of promotion codes.

func (Client) New

New creates a new promotion code.

func (Client) Update

func (c Client) Update(id string, params *stripe.PromotionCodeParams) (*stripe.PromotionCode, error)

Update updates a promotion code's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for promotion codes.

func List

func List(params *stripe.PromotionCodeListParams) *Iter

List returns a list of promotion codes.

func (*Iter) PromotionCode

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

PromotionCode returns the promotion code which the iterator is currently pointing to.

func (*Iter) PromotionCodeList

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

PromotionCodeList 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