stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.GetPrices

Description

Contains the different functions to run the operation getPrices

Synopsis

Documentation

getPrices Source #

Arguments

:: forall m. MonadHTTP m 
=> GetPricesParameters

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

-> ClientT m (Response GetPricesResponse)

Monadic computation which returns the result of the operation

GET /v1/prices

<p>Returns a list of your prices.</p>

data GetPricesParameters Source #

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

Constructors

GetPricesParameters 

Fields

mkGetPricesParameters :: GetPricesParameters Source #

Create a new GetPricesParameters with all required fields.

data GetPricesParametersQueryCreated'OneOf1 Source #

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

data GetPricesParametersQueryCreated'Variants Source #

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

Represents the parameter named 'created'

A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.

data GetPricesParametersQueryRecurring' Source #

Defines the object schema located at paths./v1/prices.GET.parameters.properties.queryRecurring in the specification.

Represents the parameter named 'recurring'

Only return prices with these recurring fields.

data GetPricesParametersQueryRecurring'Interval' Source #

Defines the enum schema located at paths./v1/prices.GET.parameters.properties.queryRecurring.properties.interval in the specification.

Constructors

GetPricesParametersQueryRecurring'Interval'Other Value

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

GetPricesParametersQueryRecurring'Interval'Typed Text

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

GetPricesParametersQueryRecurring'Interval'EnumDay

Represents the JSON value "day"

GetPricesParametersQueryRecurring'Interval'EnumMonth

Represents the JSON value "month"

GetPricesParametersQueryRecurring'Interval'EnumWeek

Represents the JSON value "week"

GetPricesParametersQueryRecurring'Interval'EnumYear

Represents the JSON value "year"

data GetPricesParametersQueryRecurring'UsageType' Source #

Defines the enum schema located at paths./v1/prices.GET.parameters.properties.queryRecurring.properties.usage_type in the specification.

Constructors

GetPricesParametersQueryRecurring'UsageType'Other Value

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

GetPricesParametersQueryRecurring'UsageType'Typed Text

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

GetPricesParametersQueryRecurring'UsageType'EnumLicensed

Represents the JSON value "licensed"

GetPricesParametersQueryRecurring'UsageType'EnumMetered

Represents the JSON value "metered"

data GetPricesParametersQueryType' Source #

Defines the enum schema located at paths./v1/prices.GET.parameters.properties.queryType in the specification.

Represents the parameter named 'type'

Only return prices of type `recurring` or `one_time`.

Constructors

GetPricesParametersQueryType'Other Value

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

GetPricesParametersQueryType'Typed Text

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

GetPricesParametersQueryType'EnumOneTime

Represents the JSON value "one_time"

GetPricesParametersQueryType'EnumRecurring

Represents the JSON value "recurring"

data GetPricesResponse Source #

Represents a response of the operation getPrices.

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

Constructors

GetPricesResponseError String

Means either no matching case available or a parse error

GetPricesResponse200 GetPricesResponseBody200

Successful response.

GetPricesResponseDefault Error

Error response.

data GetPricesResponseBody200 Source #

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

Constructors

GetPricesResponseBody200 

Fields