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

RecurlyClient.Operations.List_subscription_invoices

Description

Contains the different functions to run the operation list_subscription_invoices

Synopsis

Documentation

list_subscription_invoices Source #

Arguments

:: 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.

Constructors

List_subscription_invoicesParameters 

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.

Constructors

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 "asc"

List_subscription_invoicesParametersQueryOrderEnumDesc

Represents the JSON value "desc"

Instances

Instances details
FromJSON List_subscription_invoicesParametersQueryOrder Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

ToJSON List_subscription_invoicesParametersQueryOrder Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

Show List_subscription_invoicesParametersQueryOrder Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

Eq List_subscription_invoicesParametersQueryOrder Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

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.

Constructors

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 "created_at"

List_subscription_invoicesParametersQuerySortEnumUpdated_at

Represents the JSON value "updated_at"

Instances

Instances details
FromJSON List_subscription_invoicesParametersQuerySort Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

ToJSON List_subscription_invoicesParametersQuerySort Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

Show List_subscription_invoicesParametersQuerySort Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

Eq List_subscription_invoicesParametersQuerySort Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

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.

Constructors

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 "pending"

List_subscription_invoicesParametersQueryStateEnumPast_due

Represents the JSON value "past_due"

List_subscription_invoicesParametersQueryStateEnumPaid

Represents the JSON value "paid"

List_subscription_invoicesParametersQueryStateEnumFailed

Represents the JSON value "failed"

Instances

Instances details
FromJSON List_subscription_invoicesParametersQueryState Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

ToJSON List_subscription_invoicesParametersQueryState Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

Show List_subscription_invoicesParametersQueryState Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

Eq List_subscription_invoicesParametersQueryState Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

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.

Constructors

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 "charge"

List_subscription_invoicesParametersQueryTypeEnumCredit

Represents the JSON value "credit"

List_subscription_invoicesParametersQueryTypeEnumLegacy

Represents the JSON value "legacy"

List_subscription_invoicesParametersQueryTypeEnumNon_legacy

Represents the JSON value "non-legacy"

Instances

Instances details
FromJSON List_subscription_invoicesParametersQueryType Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

ToJSON List_subscription_invoicesParametersQueryType Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

Show List_subscription_invoicesParametersQueryType Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

Eq List_subscription_invoicesParametersQueryType Source # 
Instance details

Defined in RecurlyClient.Operations.List_subscription_invoices

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.

Constructors

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 #

Arguments

:: 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 #

Arguments

:: 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 #

Arguments

:: 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.