order

package
v76.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package order provides the /climate/orders APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cancel

Cancel is the method for the `POST /v1/climate/orders/{order}/cancel` API.

func Get

Get returns the details of a climate order.

func New

New creates a new climate order.

func Update

func Update(id string, params *stripe.ClimateOrderParams) (*stripe.ClimateOrder, error)

Update updates a climate order's properties.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /climate/orders APIs.

func (Client) Cancel

Cancel is the method for the `POST /v1/climate/orders/{order}/cancel` API.

func (Client) Get

Get returns the details of a climate order.

func (Client) List

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

List returns a list of climate orders.

func (Client) New

New creates a new climate order.

func (Client) Update

func (c Client) Update(id string, params *stripe.ClimateOrderParams) (*stripe.ClimateOrder, error)

Update updates a climate order's properties.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for climate orders.

func List

func List(params *stripe.ClimateOrderListParams) *Iter

List returns a list of climate orders.

func (*Iter) ClimateOrder

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

ClimateOrder returns the climate order which the iterator is currently pointing to.

func (*Iter) ClimateOrderList

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

ClimateOrderList 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