stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostChargesCharge

Description

Contains the different functions to run the operation postChargesCharge

Synopsis

Documentation

postChargesCharge Source #

Arguments

:: 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.

Constructors

PostChargesChargeRequestBody 

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.

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.

Constructors

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 "fraudulent"

PostChargesChargeRequestBodyFraudDetails'UserReport'EnumSafe

Represents the JSON value "safe"

Instances

Instances details
Eq PostChargesChargeRequestBodyFraudDetails'UserReport' Source # 
Instance details

Defined in StripeAPI.Operations.PostChargesCharge

Show PostChargesChargeRequestBodyFraudDetails'UserReport' Source # 
Instance details

Defined in StripeAPI.Operations.PostChargesCharge

ToJSON PostChargesChargeRequestBodyFraudDetails'UserReport' Source # 
Instance details

Defined in StripeAPI.Operations.PostChargesCharge

FromJSON PostChargesChargeRequestBodyFraudDetails'UserReport' Source # 
Instance details

Defined in StripeAPI.Operations.PostChargesCharge

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`.

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.

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.

Constructors

PostChargesChargeRequestBodyShipping'Address' 

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.

Constructors

PostChargesChargeResponseError String

Means either no matching case available or a parse error

PostChargesChargeResponse200 Charge

Successful response.

PostChargesChargeResponseDefault Error

Error response.