Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postChargesCharge
Synopsis
- postChargesCharge :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostChargesChargeRequestBody -> m (Either HttpException (Response PostChargesChargeResponse))
- postChargesChargeRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostChargesChargeRequestBody -> m (Either HttpException (Response ByteString))
- postChargesChargeM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostChargesChargeRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostChargesChargeResponse))
- postChargesChargeRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostChargesChargeRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostChargesChargeRequestBody = PostChargesChargeRequestBody {
- postChargesChargeRequestBodyCustomer :: Maybe String
- postChargesChargeRequestBodyDescription :: Maybe String
- postChargesChargeRequestBodyExpand :: Maybe ([] String)
- postChargesChargeRequestBodyFraudDetails :: Maybe PostChargesChargeRequestBodyFraudDetails'
- postChargesChargeRequestBodyMetadata :: Maybe PostChargesChargeRequestBodyMetadata'
- postChargesChargeRequestBodyReceiptEmail :: Maybe String
- postChargesChargeRequestBodyShipping :: Maybe PostChargesChargeRequestBodyShipping'
- postChargesChargeRequestBodyTransferGroup :: Maybe String
- data PostChargesChargeRequestBodyFraudDetails' = PostChargesChargeRequestBodyFraudDetails' {}
- data PostChargesChargeRequestBodyFraudDetails'UserReport'
- = PostChargesChargeRequestBodyFraudDetails'UserReport'EnumOther Value
- | PostChargesChargeRequestBodyFraudDetails'UserReport'EnumTyped String
- | PostChargesChargeRequestBodyFraudDetails'UserReport'EnumString_
- | PostChargesChargeRequestBodyFraudDetails'UserReport'EnumStringFraudulent
- | PostChargesChargeRequestBodyFraudDetails'UserReport'EnumStringSafe
- data PostChargesChargeRequestBodyMetadata' = PostChargesChargeRequestBodyMetadata' {
- data PostChargesChargeRequestBodyShipping' = PostChargesChargeRequestBodyShipping' {
- postChargesChargeRequestBodyShipping'Address :: PostChargesChargeRequestBodyShipping'Address'
- postChargesChargeRequestBodyShipping'Carrier :: Maybe String
- postChargesChargeRequestBodyShipping'Name :: String
- postChargesChargeRequestBodyShipping'Phone :: Maybe String
- postChargesChargeRequestBodyShipping'TrackingNumber :: Maybe String
- data PostChargesChargeRequestBodyShipping'Address' = PostChargesChargeRequestBodyShipping'Address' {
- postChargesChargeRequestBodyShipping'Address'City :: Maybe String
- postChargesChargeRequestBodyShipping'Address'Country :: Maybe String
- postChargesChargeRequestBodyShipping'Address'Line1 :: String
- postChargesChargeRequestBodyShipping'Address'Line2 :: Maybe String
- postChargesChargeRequestBodyShipping'Address'PostalCode :: Maybe String
- postChargesChargeRequestBodyShipping'Address'State :: Maybe String
- data PostChargesChargeResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | charge | Constraints: Maximum length of 5000 |
-> PostChargesChargeRequestBody | The request body to send |
-> m (Either HttpException (Response PostChargesChargeResponse)) | Monad containing the result of the operation |
POST /v1/charges/{charge}
<p>Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
postChargesChargeRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostChargesChargeRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/charges/{charge}
The same as postChargesCharge
but returns the raw ByteString
postChargesChargeM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostChargesChargeRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostChargesChargeResponse)) Source #
POST /v1/charges/{charge}
Monadic version of postChargesCharge
(use with runWithConfiguration
)
postChargesChargeRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostChargesChargeRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/charges/{charge}
Monadic version of postChargesChargeRaw
(use with runWithConfiguration
)
data PostChargesChargeRequestBody Source #
Defines the data type for the schema postChargesChargeRequestBody
PostChargesChargeRequestBody | |
|
Instances
data PostChargesChargeRequestBodyFraudDetails' Source #
Defines the data type for the schema postChargesChargeRequestBodyFraud_details'
A set of key-value pairs you can attach to a charge giving information about its riskiness. If you believe a charge is fraudulent, include a `user_report` key with a value of `fraudulent`. If you believe a charge is safe, include a `user_report` key with a value of `safe`. Stripe will use the information you send to improve our fraud detection algorithms.
PostChargesChargeRequestBodyFraudDetails' | |
|
data PostChargesChargeRequestBodyFraudDetails'UserReport' Source #
Defines the enum schema postChargesChargeRequestBodyFraud_details'User_report'
Instances
data PostChargesChargeRequestBodyMetadata' Source #
Defines the data type for the schema postChargesChargeRequestBodyMetadata'
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
data PostChargesChargeRequestBodyShipping' Source #
Defines the data type for the schema postChargesChargeRequestBodyShipping'
Shipping information for the charge. Helps prevent fraud on charges for physical goods.
PostChargesChargeRequestBodyShipping' | |
|
data PostChargesChargeRequestBodyShipping'Address' Source #
Defines the data type for the schema postChargesChargeRequestBodyShipping'Address'
PostChargesChargeRequestBodyShipping'Address' | |
|
Instances
data PostChargesChargeResponse Source #
Represents a response of the operation postChargesCharge
.
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), PostChargesChargeResponseError
is used.
PostChargesChargeResponseError String | Means either no matching case available or a parse error |
PostChargesChargeResponse200 Charge | Successful response. |
PostChargesChargeResponseDefault Error | Error response. |