stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.GetInvoices

Description

Contains the different functions to run the operation getInvoices

Synopsis

Documentation

getInvoices Source #

Arguments

:: forall m. MonadHTTP m 
=> GetInvoicesParameters

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

-> ClientT m (Response GetInvoicesResponse)

Monadic computation which returns the result of the operation

GET /v1/invoices

<p>You can list all invoices, or list the invoices for a specific customer. The invoices are returned sorted by creation date, with the most recently created invoices appearing first.</p>

data GetInvoicesParameters Source #

Defines the object schema located at paths./v1/invoices.GET.parameters in the specification.

Constructors

GetInvoicesParameters 

Fields

data GetInvoicesParametersQueryCollectionMethod' Source #

Defines the enum schema located at paths./v1/invoices.GET.parameters.properties.queryCollection_method in the specification.

Represents the parameter named 'collection_method'

The collection method of the invoice to retrieve. Either `charge_automatically` or `send_invoice`.

Constructors

GetInvoicesParametersQueryCollectionMethod'Other Value

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

GetInvoicesParametersQueryCollectionMethod'Typed Text

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

GetInvoicesParametersQueryCollectionMethod'EnumChargeAutomatically

Represents the JSON value "charge_automatically"

GetInvoicesParametersQueryCollectionMethod'EnumSendInvoice

Represents the JSON value "send_invoice"

data GetInvoicesParametersQueryCreated'OneOf1 Source #

Defines the object schema located at paths./v1/invoices.GET.parameters.properties.queryCreated.anyOf in the specification.

data GetInvoicesParametersQueryCreated'Variants Source #

Defines the oneOf schema located at paths./v1/invoices.GET.parameters.properties.queryCreated.anyOf in the specification.

Represents the parameter named 'created'

data GetInvoicesParametersQueryDueDate'OneOf1 Source #

Defines the object schema located at paths./v1/invoices.GET.parameters.properties.queryDue_date.anyOf in the specification.

data GetInvoicesParametersQueryDueDate'Variants Source #

Defines the oneOf schema located at paths./v1/invoices.GET.parameters.properties.queryDue_date.anyOf in the specification.

Represents the parameter named 'due_date'

data GetInvoicesParametersQueryStatus' Source #

Defines the enum schema located at paths./v1/invoices.GET.parameters.properties.queryStatus in the specification.

Represents the parameter named 'status'

The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. Learn more

Constructors

GetInvoicesParametersQueryStatus'Other Value

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

GetInvoicesParametersQueryStatus'Typed Text

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

GetInvoicesParametersQueryStatus'EnumDraft

Represents the JSON value "draft"

GetInvoicesParametersQueryStatus'EnumOpen

Represents the JSON value "open"

GetInvoicesParametersQueryStatus'EnumPaid

Represents the JSON value "paid"

GetInvoicesParametersQueryStatus'EnumUncollectible

Represents the JSON value "uncollectible"

GetInvoicesParametersQueryStatus'EnumVoid

Represents the JSON value "void"

data GetInvoicesResponse Source #

Represents a response of the operation getInvoices.

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), GetInvoicesResponseError is used.

Constructors

GetInvoicesResponseError String

Means either no matching case available or a parse error

GetInvoicesResponse200 GetInvoicesResponseBody200

Successful response.

GetInvoicesResponseDefault Error

Error response.

data GetInvoicesResponseBody200 Source #

Defines the object schema located at paths./v1/invoices.GET.responses.200.content.application/json.schema in the specification.

Constructors

GetInvoicesResponseBody200 

Fields