Documentation ¶
Overview ¶
Package order provides the /climate/orders APIs
Index ¶
- func Cancel(id string, params *stripe.ClimateOrderCancelParams) (*stripe.ClimateOrder, error)
- func Get(id string, params *stripe.ClimateOrderParams) (*stripe.ClimateOrder, error)
- func New(params *stripe.ClimateOrderParams) (*stripe.ClimateOrder, error)
- func Update(id string, params *stripe.ClimateOrderParams) (*stripe.ClimateOrder, error)
- type Client
- func (c Client) Cancel(id string, params *stripe.ClimateOrderCancelParams) (*stripe.ClimateOrder, error)
- func (c Client) Get(id string, params *stripe.ClimateOrderParams) (*stripe.ClimateOrder, error)
- func (c Client) List(listParams *stripe.ClimateOrderListParams) *Iter
- func (c Client) New(params *stripe.ClimateOrderParams) (*stripe.ClimateOrder, error)
- func (c Client) Update(id string, params *stripe.ClimateOrderParams) (*stripe.ClimateOrder, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cancel ¶
func Cancel(id string, params *stripe.ClimateOrderCancelParams) (*stripe.ClimateOrder, error)
Cancel is the method for the `POST /v1/climate/orders/{order}/cancel` API.
func Get ¶
func Get(id string, params *stripe.ClimateOrderParams) (*stripe.ClimateOrder, error)
Get returns the details of a climate order.
func New ¶
func New(params *stripe.ClimateOrderParams) (*stripe.ClimateOrder, error)
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 ¶
Client is used to invoke /climate/orders APIs.
func (Client) Cancel ¶
func (c Client) Cancel(id string, params *stripe.ClimateOrderCancelParams) (*stripe.ClimateOrder, error)
Cancel is the method for the `POST /v1/climate/orders/{order}/cancel` API.
func (Client) Get ¶
func (c Client) Get(id string, params *stripe.ClimateOrderParams) (*stripe.ClimateOrder, error)
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 ¶
func (c Client) New(params *stripe.ClimateOrderParams) (*stripe.ClimateOrder, error)
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 ¶
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.