Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.List_invoices
Description
Contains the different functions to run the operation list_invoices
Synopsis
- list_invoices :: forall m. MonadHTTP m => List_invoicesParameters -> ClientT m (Response List_invoicesResponse)
- data List_invoicesParameters = List_invoicesParameters {
- list_invoicesParametersQueryBegin_time :: Maybe JsonDateTime
- list_invoicesParametersQueryEnd_time :: Maybe JsonDateTime
- list_invoicesParametersQueryIds :: Maybe [Text]
- list_invoicesParametersQueryLimit :: Maybe Int
- list_invoicesParametersQueryOrder :: Maybe List_invoicesParametersQueryOrder
- list_invoicesParametersQuerySort :: Maybe List_invoicesParametersQuerySort
- list_invoicesParametersQueryState :: Maybe List_invoicesParametersQueryState
- list_invoicesParametersQueryType :: Maybe List_invoicesParametersQueryType
- mkList_invoicesParameters :: List_invoicesParameters
- data List_invoicesParametersQueryOrder
- data List_invoicesParametersQuerySort
- data List_invoicesParametersQueryState
- data List_invoicesParametersQueryType
- data List_invoicesResponse
- list_invoicesWithConfiguration :: forall m. MonadHTTP m => Configuration -> List_invoicesParameters -> m (Response List_invoicesResponse)
- list_invoicesRaw :: forall m. MonadHTTP m => List_invoicesParameters -> ClientT m (Response ByteString)
- list_invoicesWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> List_invoicesParameters -> m (Response ByteString)
Documentation
Arguments
:: forall m. MonadHTTP m | |
=> List_invoicesParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response List_invoicesResponse) | Monadic computation which returns the result of the operation |
GET /invoices
See the Pagination Guide to learn how to use pagination in the API and Client Libraries.
data List_invoicesParameters Source #
Defines the object schema located at paths./invoices.GET.parameters
in the specification.
Constructors
List_invoicesParameters | |
Fields
|
Instances
FromJSON List_invoicesParameters Source # | |
Defined in RecurlyClient.Operations.List_invoices Methods parseJSON :: Value -> Parser List_invoicesParameters # parseJSONList :: Value -> Parser [List_invoicesParameters] # | |
ToJSON List_invoicesParameters Source # | |
Defined in RecurlyClient.Operations.List_invoices Methods toJSON :: List_invoicesParameters -> Value # toEncoding :: List_invoicesParameters -> Encoding # toJSONList :: [List_invoicesParameters] -> Value # | |
Show List_invoicesParameters Source # | |
Defined in RecurlyClient.Operations.List_invoices Methods showsPrec :: Int -> List_invoicesParameters -> ShowS # show :: List_invoicesParameters -> String # showList :: [List_invoicesParameters] -> ShowS # | |
Eq List_invoicesParameters Source # | |
Defined in RecurlyClient.Operations.List_invoices Methods (==) :: List_invoicesParameters -> List_invoicesParameters -> Bool # (/=) :: List_invoicesParameters -> List_invoicesParameters -> Bool # |
mkList_invoicesParameters :: List_invoicesParameters Source #
Create a new List_invoicesParameters
with all required fields.
data List_invoicesParametersQueryOrder Source #
Defines the enum schema located at paths./invoices.GET.parameters.properties.queryOrder
in the specification.
Represents the parameter named 'order'
Sort order.
Constructors
List_invoicesParametersQueryOrderOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_invoicesParametersQueryOrderTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_invoicesParametersQueryOrderEnumAsc | Represents the JSON value |
List_invoicesParametersQueryOrderEnumDesc | Represents the JSON value |
Instances
data List_invoicesParametersQuerySort Source #
Defines the enum schema located at paths./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_invoicesParametersQuerySortOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_invoicesParametersQuerySortTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_invoicesParametersQuerySortEnumCreated_at | Represents the JSON value |
List_invoicesParametersQuerySortEnumUpdated_at | Represents the JSON value |
Instances
data List_invoicesParametersQueryState Source #
Defines the enum schema located at paths./invoices.GET.parameters.properties.queryState
in the specification.
Represents the parameter named 'state'
Invoice state.
Constructors
List_invoicesParametersQueryStateOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_invoicesParametersQueryStateTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_invoicesParametersQueryStateEnumPending | Represents the JSON value |
List_invoicesParametersQueryStateEnumPast_due | Represents the JSON value |
List_invoicesParametersQueryStateEnumPaid | Represents the JSON value |
List_invoicesParametersQueryStateEnumFailed | Represents the JSON value |
Instances
data List_invoicesParametersQueryType Source #
Defines the enum schema located at paths./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_invoicesParametersQueryTypeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_invoicesParametersQueryTypeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_invoicesParametersQueryTypeEnumCharge | Represents the JSON value |
List_invoicesParametersQueryTypeEnumCredit | Represents the JSON value |
List_invoicesParametersQueryTypeEnumLegacy | Represents the JSON value |
List_invoicesParametersQueryTypeEnumNon_legacy | Represents the JSON value |
Instances
data List_invoicesResponse Source #
Represents a response of the operation list_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_invoicesResponseError
is used.
Constructors
List_invoicesResponseError String | Means either no matching case available or a parse error |
List_invoicesResponse200 InvoiceList | A list of the site's invoices. |
List_invoicesResponse400 Error | Invalid or unpermitted parameter. |
List_invoicesResponse404 Error | Incorrect site ID. |
List_invoicesResponseDefault Error | Unexpected error. |
Instances
Show List_invoicesResponse Source # | |
Defined in RecurlyClient.Operations.List_invoices Methods showsPrec :: Int -> List_invoicesResponse -> ShowS # show :: List_invoicesResponse -> String # showList :: [List_invoicesResponse] -> ShowS # | |
Eq List_invoicesResponse Source # | |
Defined in RecurlyClient.Operations.List_invoices Methods (==) :: List_invoicesResponse -> List_invoicesResponse -> Bool # (/=) :: List_invoicesResponse -> List_invoicesResponse -> Bool # |
list_invoicesWithConfiguration Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_invoicesParameters | Contains all available parameters of this operation (query and path parameters) |
-> m (Response List_invoicesResponse) | Monadic computation which returns the result of the operation |
GET /invoices
The same as list_invoices
but accepts an explicit configuration.
Arguments
:: forall m. MonadHTTP m | |
=> List_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 /invoices
The same as list_invoices
but returns the raw ByteString
.
list_invoicesWithConfigurationRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_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 /invoices
The same as list_invoices
but accepts an explicit configuration and returns the raw ByteString
.