Documentation ¶
Index ¶
- func Get(id string, params *stripe.OrderParams) (*stripe.Order, error)
- func New(params *stripe.OrderParams) (*stripe.Order, error)
- func Pay(id string, params *stripe.OrderPayParams) (*stripe.Order, error)
- func Return(id string, params *stripe.OrderReturnParams) (*stripe.OrderReturn, error)
- func Update(id string, params *stripe.OrderUpdateParams) (*stripe.Order, error)
- type Client
- func (c Client) Get(id string, params *stripe.OrderParams) (*stripe.Order, error)
- func (c Client) List(params *stripe.OrderListParams) *Iter
- func (c Client) New(params *stripe.OrderParams) (*stripe.Order, error)
- func (c Client) Pay(id string, params *stripe.OrderPayParams) (*stripe.Order, error)
- func (c Client) Return(id string, params *stripe.OrderReturnParams) (*stripe.OrderReturn, error)
- func (c Client) Update(id string, params *stripe.OrderUpdateParams) (*stripe.Order, error)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
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 ¶
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 ¶
Update updates an order's properties. For more details see https://stripe.com/docs/api#update_order.
Types ¶
type Client ¶
Client is used to invoke /orders APIs.
func (Client) New ¶
New POSTs a new order. For more details see https://stripe.com/docs/api#create_order.
func (Client) Pay ¶
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 ¶
Update updates an order's properties. For more details see https://stripe.com/docs/api#update_order.
type 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