Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.List_account_invoices
Description
Contains the different functions to run the operation list_account_invoices
Synopsis
- list_account_invoices :: forall m. MonadHTTP m => List_account_invoicesParameters -> ClientT m (Response List_account_invoicesResponse)
- data List_account_invoicesParameters = List_account_invoicesParameters {
- list_account_invoicesParametersPathAccount_id :: Text
- list_account_invoicesParametersQueryBegin_time :: Maybe JsonDateTime
- list_account_invoicesParametersQueryEnd_time :: Maybe JsonDateTime
- list_account_invoicesParametersQueryIds :: Maybe [Text]
- list_account_invoicesParametersQueryLimit :: Maybe Int
- list_account_invoicesParametersQueryOrder :: Maybe List_account_invoicesParametersQueryOrder
- list_account_invoicesParametersQuerySort :: Maybe List_account_invoicesParametersQuerySort
- list_account_invoicesParametersQueryState :: Maybe List_account_invoicesParametersQueryState
- list_account_invoicesParametersQueryType :: Maybe List_account_invoicesParametersQueryType
- mkList_account_invoicesParameters :: Text -> List_account_invoicesParameters
- data List_account_invoicesParametersQueryOrder
- data List_account_invoicesParametersQuerySort
- data List_account_invoicesParametersQueryState
- = List_account_invoicesParametersQueryStateOther Value
- | List_account_invoicesParametersQueryStateTyped Text
- | List_account_invoicesParametersQueryStateEnumPending
- | List_account_invoicesParametersQueryStateEnumPast_due
- | List_account_invoicesParametersQueryStateEnumPaid
- | List_account_invoicesParametersQueryStateEnumFailed
- data List_account_invoicesParametersQueryType
- = List_account_invoicesParametersQueryTypeOther Value
- | List_account_invoicesParametersQueryTypeTyped Text
- | List_account_invoicesParametersQueryTypeEnumCharge
- | List_account_invoicesParametersQueryTypeEnumCredit
- | List_account_invoicesParametersQueryTypeEnumLegacy
- | List_account_invoicesParametersQueryTypeEnumNon_legacy
- data List_account_invoicesResponse
- list_account_invoicesWithConfiguration :: forall m. MonadHTTP m => Configuration -> List_account_invoicesParameters -> m (Response List_account_invoicesResponse)
- list_account_invoicesRaw :: forall m. MonadHTTP m => List_account_invoicesParameters -> ClientT m (Response ByteString)
- list_account_invoicesWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> List_account_invoicesParameters -> m (Response ByteString)
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
|
Instances
mkList_account_invoicesParameters Source #
Create a new List_account_invoicesParameters
with all required 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 |
List_account_invoicesParametersQueryOrderEnumDesc | Represents the JSON value |
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 |
List_account_invoicesParametersQuerySortEnumUpdated_at | Represents the JSON value |
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 |
List_account_invoicesParametersQueryStateEnumPast_due | Represents the JSON value |
List_account_invoicesParametersQueryStateEnumPaid | Represents the JSON value |
List_account_invoicesParametersQueryStateEnumFailed | Represents the JSON value |
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 |
List_account_invoicesParametersQueryTypeEnumCredit | Represents the JSON value |
List_account_invoicesParametersQueryTypeEnumLegacy | Represents the JSON value |
List_account_invoicesParametersQueryTypeEnumNon_legacy | Represents the JSON value |
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. |
Instances
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
.