Safe Haskell | None |
---|---|
Language | Haskell2010 |
StripeAPI.Operations.GetInvoiceitems
Description
Contains the different functions to run the operation getInvoiceitems
Synopsis
- getInvoiceitems :: forall m. MonadHTTP m => GetInvoiceitemsParameters -> StripeT m (Response GetInvoiceitemsResponse)
- data GetInvoiceitemsParameters = GetInvoiceitemsParameters {
- getInvoiceitemsParametersQueryCreated :: Maybe GetInvoiceitemsParametersQueryCreated'Variants
- getInvoiceitemsParametersQueryCustomer :: Maybe Text
- getInvoiceitemsParametersQueryEndingBefore :: Maybe Text
- getInvoiceitemsParametersQueryExpand :: Maybe [Text]
- getInvoiceitemsParametersQueryInvoice :: Maybe Text
- getInvoiceitemsParametersQueryLimit :: Maybe Int
- getInvoiceitemsParametersQueryPending :: Maybe Bool
- getInvoiceitemsParametersQueryStartingAfter :: Maybe Text
- mkGetInvoiceitemsParameters :: GetInvoiceitemsParameters
- data GetInvoiceitemsParametersQueryCreated'OneOf1 = GetInvoiceitemsParametersQueryCreated'OneOf1 {}
- mkGetInvoiceitemsParametersQueryCreated'OneOf1 :: GetInvoiceitemsParametersQueryCreated'OneOf1
- data GetInvoiceitemsParametersQueryCreated'Variants
- data GetInvoiceitemsResponse
- data GetInvoiceitemsResponseBody200 = GetInvoiceitemsResponseBody200 {}
- mkGetInvoiceitemsResponseBody200 :: [Invoiceitem] -> Bool -> Text -> GetInvoiceitemsResponseBody200
Documentation
Arguments
:: forall m. MonadHTTP m | |
=> GetInvoiceitemsParameters | Contains all available parameters of this operation (query and path parameters) |
-> StripeT m (Response GetInvoiceitemsResponse) | Monadic computation which returns the result of the operation |
GET /v1/invoiceitems
<p>Returns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first.</p>
data GetInvoiceitemsParameters Source #
Defines the object schema located at paths./v1/invoiceitems.GET.parameters
in the specification.
Constructors
GetInvoiceitemsParameters | |
Fields
|
Instances
Eq GetInvoiceitemsParameters Source # | |
Defined in StripeAPI.Operations.GetInvoiceitems Methods (==) :: GetInvoiceitemsParameters -> GetInvoiceitemsParameters -> Bool # (/=) :: GetInvoiceitemsParameters -> GetInvoiceitemsParameters -> Bool # | |
Show GetInvoiceitemsParameters Source # | |
Defined in StripeAPI.Operations.GetInvoiceitems Methods showsPrec :: Int -> GetInvoiceitemsParameters -> ShowS # show :: GetInvoiceitemsParameters -> String # showList :: [GetInvoiceitemsParameters] -> ShowS # | |
ToJSON GetInvoiceitemsParameters Source # | |
Defined in StripeAPI.Operations.GetInvoiceitems Methods toJSON :: GetInvoiceitemsParameters -> Value # toEncoding :: GetInvoiceitemsParameters -> Encoding # toJSONList :: [GetInvoiceitemsParameters] -> Value # | |
FromJSON GetInvoiceitemsParameters Source # | |
Defined in StripeAPI.Operations.GetInvoiceitems Methods parseJSON :: Value -> Parser GetInvoiceitemsParameters # parseJSONList :: Value -> Parser [GetInvoiceitemsParameters] # |
mkGetInvoiceitemsParameters :: GetInvoiceitemsParameters Source #
Create a new GetInvoiceitemsParameters
with all required fields.
data GetInvoiceitemsParametersQueryCreated'OneOf1 Source #
Defines the object schema located at paths./v1/invoiceitems.GET.parameters.properties.queryCreated.anyOf
in the specification.
Constructors
GetInvoiceitemsParametersQueryCreated'OneOf1 | |
mkGetInvoiceitemsParametersQueryCreated'OneOf1 :: GetInvoiceitemsParametersQueryCreated'OneOf1 Source #
Create a new GetInvoiceitemsParametersQueryCreated'OneOf1
with all required fields.
data GetInvoiceitemsParametersQueryCreated'Variants Source #
Defines the oneOf schema located at paths./v1/invoiceitems.GET.parameters.properties.queryCreated.anyOf
in the specification.
Represents the parameter named 'created'
Constructors
GetInvoiceitemsParametersQueryCreated'GetInvoiceitemsParametersQueryCreated'OneOf1 GetInvoiceitemsParametersQueryCreated'OneOf1 | |
GetInvoiceitemsParametersQueryCreated'Int Int |
Instances
data GetInvoiceitemsResponse Source #
Represents a response of the operation getInvoiceitems
.
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), GetInvoiceitemsResponseError
is used.
Constructors
GetInvoiceitemsResponseError String | Means either no matching case available or a parse error |
GetInvoiceitemsResponse200 GetInvoiceitemsResponseBody200 | Successful response. |
GetInvoiceitemsResponseDefault Error | Error response. |
Instances
Eq GetInvoiceitemsResponse Source # | |
Defined in StripeAPI.Operations.GetInvoiceitems Methods (==) :: GetInvoiceitemsResponse -> GetInvoiceitemsResponse -> Bool # (/=) :: GetInvoiceitemsResponse -> GetInvoiceitemsResponse -> Bool # | |
Show GetInvoiceitemsResponse Source # | |
Defined in StripeAPI.Operations.GetInvoiceitems Methods showsPrec :: Int -> GetInvoiceitemsResponse -> ShowS # show :: GetInvoiceitemsResponse -> String # showList :: [GetInvoiceitemsResponse] -> ShowS # |
data GetInvoiceitemsResponseBody200 Source #
Defines the object schema located at paths./v1/invoiceitems.GET.responses.200.content.application/json.schema
in the specification.
Constructors
GetInvoiceitemsResponseBody200 | |
Fields
|
Instances
mkGetInvoiceitemsResponseBody200 Source #
Arguments
:: [Invoiceitem] | |
-> Bool | |
-> Text | |
-> GetInvoiceitemsResponseBody200 |
Create a new GetInvoiceitemsResponseBody200
with all required fields.