order

package
v79.0.0-...-280c9b4 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 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

Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe provides 90 days advance notice and refunds the amount_total.

func Get

Retrieves the details of a Climate order object with the given ID.

func New

Creates a Climate order object for a given Climate product. The order will be processed immediately after creation and payment will be deducted your Stripe balance.

func Update

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

Updates the specified order by setting the values of the parameters passed.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /climate/orders APIs.

func (Client) Cancel

Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe provides 90 days advance notice and refunds the amount_total.

func (Client) Get

Retrieves the details of a Climate order object with the given ID.

func (Client) List

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

Lists all Climate order objects. The orders are returned sorted by creation date, with the most recently created orders appearing first.

func (Client) New

Creates a Climate order object for a given Climate product. The order will be processed immediately after creation and payment will be deducted your Stripe balance.

func (Client) Update

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

Updates the specified order by setting the values of the parameters passed.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for climate orders.

func List

func List(params *stripe.ClimateOrderListParams) *Iter

Lists all Climate order objects. The orders are returned sorted by creation date, with the most recently created orders appearing first.

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