order

package
v30.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(id string, params *stripe.OrderParams) (*stripe.Order, error)

Get returns the details of an order For more details see https://stripe.com/docs/api#retrieve_order.

func New

func New(params *stripe.OrderParams) (*stripe.Order, error)

New POSTs a new order. For more details see https://stripe.com/docs/api#create_order.

func Pay

func Pay(id string, params *stripe.OrderPayParams) (*stripe.Order, error)

Pay pays an order For more details see https://stripe.com/docs/api#pay_order.

func Return

func Return(id string, params *stripe.OrderReturnParams) (*stripe.OrderReturn, error)

Return returns all or part of an order. For more details see https://stripe.com/docs/api#return_order.

func Update

func Update(id string, params *stripe.OrderUpdateParams) (*stripe.Order, error)

Update updates an order's properties. For more details see https://stripe.com/docs/api#update_order.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /orders APIs.

func (Client) Get

func (c Client) Get(id string, params *stripe.OrderParams) (*stripe.Order, error)

func (Client) List

func (c Client) List(params *stripe.OrderListParams) *Iter

func (Client) New

func (c Client) New(params *stripe.OrderParams) (*stripe.Order, error)

New POSTs a new order. For more details see https://stripe.com/docs/api#create_order.

func (Client) Pay

func (c Client) Pay(id string, params *stripe.OrderPayParams) (*stripe.Order, error)

Pay pays an order For more details see https://stripe.com/docs/api#pay_order.

func (Client) Return

func (c Client) Return(id string, params *stripe.OrderReturnParams) (*stripe.OrderReturn, error)

Return returns all or part of an order. For more details see https://stripe.com/docs/api#return_order.

func (Client) Update

func (c Client) Update(id string, params *stripe.OrderUpdateParams) (*stripe.Order, error)

Update updates an order's properties. For more details see https://stripe.com/docs/api#update_order.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for lists of Orders. The embedded Iter carries methods with it; see its documentation for details.

func List

func List(params *stripe.OrderListParams) *Iter

List returns a list of orders. For more details see https://stripe.com/docs/api#list_orders

func (*Iter) Order

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

Order returns the most recent Order visited by a call to Next.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL