stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.GetPromotionCodes

Description

Contains the different functions to run the operation getPromotionCodes

Synopsis

Documentation

getPromotionCodes Source #

Arguments

:: forall m. MonadHTTP m 
=> GetPromotionCodesParameters

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

-> ClientT m (Response GetPromotionCodesResponse)

Monadic computation which returns the result of the operation

GET /v1/promotion_codes

<p>Returns a list of your promotion codes.</p>

data GetPromotionCodesParameters Source #

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

Constructors

GetPromotionCodesParameters 

Fields

data GetPromotionCodesParametersQueryCreated'OneOf1 Source #

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

data GetPromotionCodesParametersQueryCreated'Variants Source #

Defines the oneOf schema located at paths./v1/promotion_codes.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.

Instances

Instances details
Eq GetPromotionCodesParametersQueryCreated'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetPromotionCodes

Show GetPromotionCodesParametersQueryCreated'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetPromotionCodes

ToJSON GetPromotionCodesParametersQueryCreated'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetPromotionCodes

FromJSON GetPromotionCodesParametersQueryCreated'Variants Source # 
Instance details

Defined in StripeAPI.Operations.GetPromotionCodes

data GetPromotionCodesResponse Source #

Represents a response of the operation getPromotionCodes.

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

Constructors

GetPromotionCodesResponseError String

Means either no matching case available or a parse error

GetPromotionCodesResponse200 GetPromotionCodesResponseBody200

Successful response.

GetPromotionCodesResponseDefault Error

Error response.

data GetPromotionCodesResponseBody200 Source #

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

Constructors

GetPromotionCodesResponseBody200 

Fields