Documentation ¶
Overview ¶
Package order provides the /orders APIs
Index ¶
- func Cancel(id string, params *stripe.OrderCancelParams) (*stripe.Order, error)
- func Get(id string, params *stripe.OrderParams) (*stripe.Order, error)
- func New(params *stripe.OrderParams) (*stripe.Order, error)
- func Reopen(id string, params *stripe.OrderReopenParams) (*stripe.Order, error)
- func Submit(id string, params *stripe.OrderSubmitParams) (*stripe.Order, error)
- func Update(id string, params *stripe.OrderParams) (*stripe.Order, error)
- type Client
- func (c Client) Cancel(id string, params *stripe.OrderCancelParams) (*stripe.Order, error)
- func (c Client) Get(id string, params *stripe.OrderParams) (*stripe.Order, error)
- func (c Client) List(listParams *stripe.OrderListParams) *Iter
- func (c Client) ListLineItems(listParams *stripe.OrderListLineItemsParams) *LineItemIter
- func (c Client) New(params *stripe.OrderParams) (*stripe.Order, error)
- func (c Client) Reopen(id string, params *stripe.OrderReopenParams) (*stripe.Order, error)
- func (c Client) Submit(id string, params *stripe.OrderSubmitParams) (*stripe.Order, error)
- func (c Client) Update(id string, params *stripe.OrderParams) (*stripe.Order, error)
- type Iter
- type LineItemIter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client is used to invoke /orders APIs.
func (Client) List ¶
func (c Client) List(listParams *stripe.OrderListParams) *Iter
List returns a list of orders.
func (Client) ListLineItems ¶
func (c Client) ListLineItems(listParams *stripe.OrderListLineItemsParams) *LineItemIter
ListLineItems is the method for the `GET /v1/orders/{id}/line_items` API.
type Iter ¶
Iter is an iterator for orders.
type LineItemIter ¶
LineItemIter is an iterator for line items.
func ListLineItems ¶
func ListLineItems(params *stripe.OrderListLineItemsParams) *LineItemIter
ListLineItems is the method for the `GET /v1/orders/{id}/line_items` API.
func (*LineItemIter) LineItem ¶
func (i *LineItemIter) LineItem() *stripe.LineItem
LineItem returns the line item which the iterator is currently pointing to.
func (*LineItemIter) LineItemList ¶
func (i *LineItemIter) LineItemList() *stripe.LineItemList
LineItemList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.
Click to show internal directories.
Click to hide internal directories.