margin

package
v76.4.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package margin provides the /billing/margins APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.MarginParams) (*stripe.Margin, error)

Get returns the details of a margin.

func New

func New(params *stripe.MarginParams) (*stripe.Margin, error)

New creates a new margin.

func Update

func Update(id string, params *stripe.MarginParams) (*stripe.Margin, error)

Update updates a margin's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /billing/margins APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.MarginParams) (*stripe.Margin, error)

Get returns the details of a margin.

func (Client) List

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

List returns a list of margins.

func (Client) New

func (c Client) New(params *stripe.MarginParams) (*stripe.Margin, error)

New creates a new margin.

func (Client) Update

func (c Client) Update(id string, params *stripe.MarginParams) (*stripe.Margin, error)

Update updates a margin's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for margins.

func List

func List(params *stripe.MarginListParams) *Iter

List returns a list of margins.

func (*Iter) Margin

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

Margin returns the margin which the iterator is currently pointing to.

func (*Iter) MarginList

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

MarginList 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