Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation getCreditNotes
Synopsis
- getCreditNotes :: forall m. MonadHTTP m => GetCreditNotesParameters -> ClientT m (Response GetCreditNotesResponse)
- data GetCreditNotesParameters = GetCreditNotesParameters {
- getCreditNotesParametersQueryCustomer :: Maybe Text
- getCreditNotesParametersQueryEndingBefore :: Maybe Text
- getCreditNotesParametersQueryExpand :: Maybe [Text]
- getCreditNotesParametersQueryInvoice :: Maybe Text
- getCreditNotesParametersQueryLimit :: Maybe Int
- getCreditNotesParametersQueryStartingAfter :: Maybe Text
- mkGetCreditNotesParameters :: GetCreditNotesParameters
- data GetCreditNotesResponse
- data GetCreditNotesResponseBody200 = GetCreditNotesResponseBody200 {}
- mkGetCreditNotesResponseBody200 :: [CreditNote] -> Bool -> Text -> GetCreditNotesResponseBody200
Documentation
:: forall m. MonadHTTP m | |
=> GetCreditNotesParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response GetCreditNotesResponse) | Monadic computation which returns the result of the operation |
GET /v1/credit_notes
<p>Returns a list of credit notes.</p>
data GetCreditNotesParameters Source #
Defines the object schema located at paths./v1/credit_notes.GET.parameters
in the specification.
GetCreditNotesParameters | |
|
Instances
mkGetCreditNotesParameters :: GetCreditNotesParameters Source #
Create a new GetCreditNotesParameters
with all required fields.
data GetCreditNotesResponse Source #
Represents a response of the operation getCreditNotes
.
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), GetCreditNotesResponseError
is used.
GetCreditNotesResponseError String | Means either no matching case available or a parse error |
GetCreditNotesResponse200 GetCreditNotesResponseBody200 | Successful response. |
GetCreditNotesResponseDefault Error | Error response. |
Instances
Eq GetCreditNotesResponse Source # | |
Defined in StripeAPI.Operations.GetCreditNotes | |
Show GetCreditNotesResponse Source # | |
Defined in StripeAPI.Operations.GetCreditNotes showsPrec :: Int -> GetCreditNotesResponse -> ShowS # show :: GetCreditNotesResponse -> String # showList :: [GetCreditNotesResponse] -> ShowS # |
data GetCreditNotesResponseBody200 Source #
Defines the object schema located at paths./v1/credit_notes.GET.responses.200.content.application/json.schema
in the specification.
GetCreditNotesResponseBody200 | |
|
Instances
mkGetCreditNotesResponseBody200 Source #
:: [CreditNote] | |
-> Bool | |
-> Text | |
-> GetCreditNotesResponseBody200 |
Create a new GetCreditNotesResponseBody200
with all required fields.