Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation list_subscription_invoices
Synopsis
- list_subscription_invoices :: forall m. MonadHTTP m => List_subscription_invoicesParameters -> ClientT m (Response List_subscription_invoicesResponse)
- data List_subscription_invoicesParameters = List_subscription_invoicesParameters {
- list_subscription_invoicesParametersPathSubscription_id :: Text
- list_subscription_invoicesParametersQueryBegin_time :: Maybe JsonDateTime
- list_subscription_invoicesParametersQueryEnd_time :: Maybe JsonDateTime
- list_subscription_invoicesParametersQueryIds :: Maybe [Text]
- list_subscription_invoicesParametersQueryLimit :: Maybe Int
- list_subscription_invoicesParametersQueryOrder :: Maybe List_subscription_invoicesParametersQueryOrder
- list_subscription_invoicesParametersQuerySort :: Maybe List_subscription_invoicesParametersQuerySort
- list_subscription_invoicesParametersQueryState :: Maybe List_subscription_invoicesParametersQueryState
- list_subscription_invoicesParametersQueryType :: Maybe List_subscription_invoicesParametersQueryType
- mkList_subscription_invoicesParameters :: Text -> List_subscription_invoicesParameters
- data List_subscription_invoicesParametersQueryOrder
- data List_subscription_invoicesParametersQuerySort
- data List_subscription_invoicesParametersQueryState
- = List_subscription_invoicesParametersQueryStateOther Value
- | List_subscription_invoicesParametersQueryStateTyped Text
- | List_subscription_invoicesParametersQueryStateEnumPending
- | List_subscription_invoicesParametersQueryStateEnumPast_due
- | List_subscription_invoicesParametersQueryStateEnumPaid
- | List_subscription_invoicesParametersQueryStateEnumFailed
- data List_subscription_invoicesParametersQueryType
- = List_subscription_invoicesParametersQueryTypeOther Value
- | List_subscription_invoicesParametersQueryTypeTyped Text
- | List_subscription_invoicesParametersQueryTypeEnumCharge
- | List_subscription_invoicesParametersQueryTypeEnumCredit
- | List_subscription_invoicesParametersQueryTypeEnumLegacy
- | List_subscription_invoicesParametersQueryTypeEnumNon_legacy
- data List_subscription_invoicesResponse
- list_subscription_invoicesWithConfiguration :: forall m. MonadHTTP m => Configuration -> List_subscription_invoicesParameters -> m (Response List_subscription_invoicesResponse)
- list_subscription_invoicesRaw :: forall m. MonadHTTP m => List_subscription_invoicesParameters -> ClientT m (Response ByteString)
- list_subscription_invoicesWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> List_subscription_invoicesParameters -> m (Response ByteString)
Documentation
list_subscription_invoices Source #
:: forall m. MonadHTTP m | |
=> List_subscription_invoicesParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response List_subscription_invoicesResponse) | Monadic computation which returns the result of the operation |
GET /subscriptions/{subscription_id}/invoices
See the Pagination Guide to learn how to use pagination in the API and Client Libraries.
data List_subscription_invoicesParameters Source #
Defines the object schema located at paths./subscriptions/{subscription_id}/invoices.GET.parameters
in the specification.
List_subscription_invoicesParameters | |
|
mkList_subscription_invoicesParameters Source #
Create a new List_subscription_invoicesParameters
with all required fields.
data List_subscription_invoicesParametersQueryOrder Source #
Defines the enum schema located at paths./subscriptions/{subscription_id}/invoices.GET.parameters.properties.queryOrder
in the specification.
Represents the parameter named 'order'
Sort order.
List_subscription_invoicesParametersQueryOrderOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_subscription_invoicesParametersQueryOrderTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_subscription_invoicesParametersQueryOrderEnumAsc | Represents the JSON value |
List_subscription_invoicesParametersQueryOrderEnumDesc | Represents the JSON value |
Instances
data List_subscription_invoicesParametersQuerySort Source #
Defines the enum schema located at paths./subscriptions/{subscription_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.
List_subscription_invoicesParametersQuerySortOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_subscription_invoicesParametersQuerySortTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_subscription_invoicesParametersQuerySortEnumCreated_at | Represents the JSON value |
List_subscription_invoicesParametersQuerySortEnumUpdated_at | Represents the JSON value |
Instances
data List_subscription_invoicesParametersQueryState Source #
Defines the enum schema located at paths./subscriptions/{subscription_id}/invoices.GET.parameters.properties.queryState
in the specification.
Represents the parameter named 'state'
Invoice state.
List_subscription_invoicesParametersQueryStateOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_subscription_invoicesParametersQueryStateTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_subscription_invoicesParametersQueryStateEnumPending | Represents the JSON value |
List_subscription_invoicesParametersQueryStateEnumPast_due | Represents the JSON value |
List_subscription_invoicesParametersQueryStateEnumPaid | Represents the JSON value |
List_subscription_invoicesParametersQueryStateEnumFailed | Represents the JSON value |
Instances
data List_subscription_invoicesParametersQueryType Source #
Defines the enum schema located at paths./subscriptions/{subscription_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.
List_subscription_invoicesParametersQueryTypeOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_subscription_invoicesParametersQueryTypeTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_subscription_invoicesParametersQueryTypeEnumCharge | Represents the JSON value |
List_subscription_invoicesParametersQueryTypeEnumCredit | Represents the JSON value |
List_subscription_invoicesParametersQueryTypeEnumLegacy | Represents the JSON value |
List_subscription_invoicesParametersQueryTypeEnumNon_legacy | Represents the JSON value |
Instances
data List_subscription_invoicesResponse Source #
Represents a response of the operation list_subscription_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_subscription_invoicesResponseError
is used.
List_subscription_invoicesResponseError String | Means either no matching case available or a parse error |
List_subscription_invoicesResponse200 InvoiceList | A list of the subscription's invoices. |
List_subscription_invoicesResponse400 Error | Invalid or unpermitted parameter. |
List_subscription_invoicesResponse404 Error | Incorrect site or subscription ID. |
List_subscription_invoicesResponseDefault Error | Unexpected error. |
list_subscription_invoicesWithConfiguration Source #
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_subscription_invoicesParameters | Contains all available parameters of this operation (query and path parameters) |
-> m (Response List_subscription_invoicesResponse) | Monadic computation which returns the result of the operation |
GET /subscriptions/{subscription_id}/invoices
The same as list_subscription_invoices
but accepts an explicit configuration.
list_subscription_invoicesRaw Source #
:: forall m. MonadHTTP m | |
=> List_subscription_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 /subscriptions/{subscription_id}/invoices
The same as list_subscription_invoices
but returns the raw ByteString
.
list_subscription_invoicesWithConfigurationRaw Source #
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_subscription_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 /subscriptions/{subscription_id}/invoices
The same as list_subscription_invoices
but accepts an explicit configuration and returns the raw ByteString
.