recurly-client-0.1.0.0: Client for Recurly subscription management
Safe HaskellSafe-Inferred
LanguageHaskell2010

RecurlyClient.Operations.List_account_invoices

Description

Contains the different functions to run the operation list_account_invoices

Synopsis

Documentation

list_account_invoices Source #

Arguments

:: forall m. MonadHTTP m 
=> List_account_invoicesParameters

Contains all available parameters of this operation (query and path parameters)

-> ClientT m (Response List_account_invoicesResponse)

Monadic computation which returns the result of the operation

GET /accounts/{account_id}/invoices

See the Pagination Guide to learn how to use pagination in the API and Client Libraries.

data List_account_invoicesParameters Source #

Defines the object schema located at paths./accounts/{account_id}/invoices.GET.parameters in the specification.

Constructors

List_account_invoicesParameters 

Fields

data List_account_invoicesParametersQueryOrder Source #

Defines the enum schema located at paths./accounts/{account_id}/invoices.GET.parameters.properties.queryOrder in the specification.

Represents the parameter named 'order'

Sort order.

Constructors

List_account_invoicesParametersQueryOrderOther Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

List_account_invoicesParametersQueryOrderTyped Text

This constructor can be used to send values to the server which are not present in the specification yet.

List_account_invoicesParametersQueryOrderEnumAsc

Represents the JSON value "asc"

List_account_invoicesParametersQueryOrderEnumDesc

Represents the JSON value "desc"

data List_account_invoicesParametersQuerySort Source #

Defines the enum schema located at paths./accounts/{account_id}/invoices.GET.parameters.properties.querySort in the specification.

Represents the parameter named 'sort'

Sort field. You *really* only want to sort by `updated_at` in ascending order. In descending order updated records will move behind the cursor and could prevent some records from being returned.

Constructors

List_account_invoicesParametersQuerySortOther Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

List_account_invoicesParametersQuerySortTyped Text

This constructor can be used to send values to the server which are not present in the specification yet.

List_account_invoicesParametersQuerySortEnumCreated_at

Represents the JSON value "created_at"

List_account_invoicesParametersQuerySortEnumUpdated_at

Represents the JSON value "updated_at"

data List_account_invoicesParametersQueryState Source #

Defines the enum schema located at paths./accounts/{account_id}/invoices.GET.parameters.properties.queryState in the specification.

Represents the parameter named 'state'

Invoice state.

Constructors

List_account_invoicesParametersQueryStateOther Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

List_account_invoicesParametersQueryStateTyped Text

This constructor can be used to send values to the server which are not present in the specification yet.

List_account_invoicesParametersQueryStateEnumPending

Represents the JSON value "pending"

List_account_invoicesParametersQueryStateEnumPast_due

Represents the JSON value "past_due"

List_account_invoicesParametersQueryStateEnumPaid

Represents the JSON value "paid"

List_account_invoicesParametersQueryStateEnumFailed

Represents the JSON value "failed"

data List_account_invoicesParametersQueryType Source #

Defines the enum schema located at paths./accounts/{account_id}/invoices.GET.parameters.properties.queryType in the specification.

Represents the parameter named 'type'

Filter by type when: - `type=charge`, only charge invoices will be returned. - `type=credit`, only credit invoices will be returned. - `type=non-legacy`, only charge and credit invoices will be returned. - `type=legacy`, only legacy invoices will be returned.

Constructors

List_account_invoicesParametersQueryTypeOther Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

List_account_invoicesParametersQueryTypeTyped Text

This constructor can be used to send values to the server which are not present in the specification yet.

List_account_invoicesParametersQueryTypeEnumCharge

Represents the JSON value "charge"

List_account_invoicesParametersQueryTypeEnumCredit

Represents the JSON value "credit"

List_account_invoicesParametersQueryTypeEnumLegacy

Represents the JSON value "legacy"

List_account_invoicesParametersQueryTypeEnumNon_legacy

Represents the JSON value "non-legacy"

data List_account_invoicesResponse Source #

Represents a response of the operation list_account_invoices.

The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), List_account_invoicesResponseError is used.

Constructors

List_account_invoicesResponseError String

Means either no matching case available or a parse error

List_account_invoicesResponse200 InvoiceList

A list of the account's invoices.

List_account_invoicesResponse400 Error

Invalid or unpermitted parameter.

List_account_invoicesResponse404 Error

Incorrect site or account ID.

List_account_invoicesResponseDefault Error

Unexpected error.

list_account_invoicesWithConfiguration Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> List_account_invoicesParameters

Contains all available parameters of this operation (query and path parameters)

-> m (Response List_account_invoicesResponse)

Monadic computation which returns the result of the operation

GET /accounts/{account_id}/invoices

The same as list_account_invoices but accepts an explicit configuration.

list_account_invoicesRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> List_account_invoicesParameters

Contains all available parameters of this operation (query and path parameters)

-> ClientT m (Response ByteString)

Monadic computation which returns the result of the operation

GET /accounts/{account_id}/invoices

The same as list_account_invoices but returns the raw ByteString.

list_account_invoicesWithConfigurationRaw Source #

Arguments

:: forall m. MonadHTTP m 
=> Configuration

The configuration to use in the request

-> List_account_invoicesParameters

Contains all available parameters of this operation (query and path parameters)

-> m (Response ByteString)

Monadic computation which returns the result of the operation

GET /accounts/{account_id}/invoices

The same as list_account_invoices but accepts an explicit configuration and returns the raw ByteString.