Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postChargesCharge
Synopsis
- postChargesCharge :: forall m. MonadHTTP m => Text -> Maybe PostChargesChargeRequestBody -> ClientT m (Response PostChargesChargeResponse)
- data PostChargesChargeRequestBody = PostChargesChargeRequestBody {
- postChargesChargeRequestBodyCustomer :: Maybe Text
- postChargesChargeRequestBodyDescription :: Maybe Text
- postChargesChargeRequestBodyExpand :: Maybe [Text]
- postChargesChargeRequestBodyFraudDetails :: Maybe PostChargesChargeRequestBodyFraudDetails'
- postChargesChargeRequestBodyMetadata :: Maybe PostChargesChargeRequestBodyMetadata'Variants
- postChargesChargeRequestBodyReceiptEmail :: Maybe Text
- postChargesChargeRequestBodyShipping :: Maybe PostChargesChargeRequestBodyShipping'
- postChargesChargeRequestBodyTransferGroup :: Maybe Text
- mkPostChargesChargeRequestBody :: PostChargesChargeRequestBody
- data PostChargesChargeRequestBodyFraudDetails' = PostChargesChargeRequestBodyFraudDetails' {}
- mkPostChargesChargeRequestBodyFraudDetails' :: PostChargesChargeRequestBodyFraudDetails'UserReport' -> PostChargesChargeRequestBodyFraudDetails'
- data PostChargesChargeRequestBodyFraudDetails'UserReport'
- = PostChargesChargeRequestBodyFraudDetails'UserReport'Other Value
- | PostChargesChargeRequestBodyFraudDetails'UserReport'Typed Text
- | PostChargesChargeRequestBodyFraudDetails'UserReport'EnumEmptyString
- | PostChargesChargeRequestBodyFraudDetails'UserReport'EnumFraudulent
- | PostChargesChargeRequestBodyFraudDetails'UserReport'EnumSafe
- data PostChargesChargeRequestBodyMetadata'Variants
- data PostChargesChargeRequestBodyShipping' = PostChargesChargeRequestBodyShipping' {
- postChargesChargeRequestBodyShipping'Address :: PostChargesChargeRequestBodyShipping'Address'
- postChargesChargeRequestBodyShipping'Carrier :: Maybe Text
- postChargesChargeRequestBodyShipping'Name :: Text
- postChargesChargeRequestBodyShipping'Phone :: Maybe Text
- postChargesChargeRequestBodyShipping'TrackingNumber :: Maybe Text
- mkPostChargesChargeRequestBodyShipping' :: PostChargesChargeRequestBodyShipping'Address' -> Text -> PostChargesChargeRequestBodyShipping'
- data PostChargesChargeRequestBodyShipping'Address' = PostChargesChargeRequestBodyShipping'Address' {
- postChargesChargeRequestBodyShipping'Address'City :: Maybe Text
- postChargesChargeRequestBodyShipping'Address'Country :: Maybe Text
- postChargesChargeRequestBodyShipping'Address'Line1 :: Text
- postChargesChargeRequestBodyShipping'Address'Line2 :: Maybe Text
- postChargesChargeRequestBodyShipping'Address'PostalCode :: Maybe Text
- postChargesChargeRequestBodyShipping'Address'State :: Maybe Text
- mkPostChargesChargeRequestBodyShipping'Address' :: Text -> PostChargesChargeRequestBodyShipping'Address'
- data PostChargesChargeResponse
Documentation
:: forall m. MonadHTTP m | |
=> Text | charge | Constraints: Maximum length of 5000 |
-> Maybe PostChargesChargeRequestBody | The request body to send |
-> ClientT m (Response PostChargesChargeResponse) | Monadic computation which returns 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>
data PostChargesChargeRequestBody Source #
Defines the object schema located at paths./v1/charges/{charge}.POST.requestBody.content.application/x-www-form-urlencoded.schema
in the specification.
PostChargesChargeRequestBody | |
|
Instances
mkPostChargesChargeRequestBody :: PostChargesChargeRequestBody Source #
Create a new PostChargesChargeRequestBody
with all required fields.
data PostChargesChargeRequestBodyFraudDetails' Source #
Defines the object schema located at paths./v1/charges/{charge}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.fraud_details
in the specification.
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' | |
|
mkPostChargesChargeRequestBodyFraudDetails' Source #
Create a new PostChargesChargeRequestBodyFraudDetails'
with all required fields.
data PostChargesChargeRequestBodyFraudDetails'UserReport' Source #
Defines the enum schema located at paths./v1/charges/{charge}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.fraud_details.properties.user_report
in the specification.
PostChargesChargeRequestBodyFraudDetails'UserReport'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PostChargesChargeRequestBodyFraudDetails'UserReport'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PostChargesChargeRequestBodyFraudDetails'UserReport'EnumEmptyString | Represents the JSON value |
PostChargesChargeRequestBodyFraudDetails'UserReport'EnumFraudulent | Represents the JSON value |
PostChargesChargeRequestBodyFraudDetails'UserReport'EnumSafe | Represents the JSON value |
Instances
data PostChargesChargeRequestBodyMetadata'Variants Source #
Defines the oneOf schema located at paths./v1/charges/{charge}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.metadata.anyOf
in the specification.
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`.
PostChargesChargeRequestBodyMetadata'EmptyString | Represents the JSON value |
PostChargesChargeRequestBodyMetadata'Object Object |
Instances
data PostChargesChargeRequestBodyShipping' Source #
Defines the object schema located at paths./v1/charges/{charge}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.shipping
in the specification.
Shipping information for the charge. Helps prevent fraud on charges for physical goods.
PostChargesChargeRequestBodyShipping' | |
|
mkPostChargesChargeRequestBodyShipping' Source #
Create a new PostChargesChargeRequestBodyShipping'
with all required fields.
data PostChargesChargeRequestBodyShipping'Address' Source #
Defines the object schema located at paths./v1/charges/{charge}.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.shipping.properties.address
in the specification.
PostChargesChargeRequestBodyShipping'Address' | |
|
Instances
mkPostChargesChargeRequestBodyShipping'Address' Source #
Create a new PostChargesChargeRequestBodyShipping'Address'
with all required fields.
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. |