stripeapi-2.0.0.1: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Operations.PostPaymentIntentsIntentCancel

Description

Contains the different functions to run the operation postPaymentIntentsIntentCancel

Synopsis

Documentation

postPaymentIntentsIntentCancel Source #

Arguments

:: forall m. MonadHTTP m 
=> Text

intent | Constraints: Maximum length of 5000

-> Maybe PostPaymentIntentsIntentCancelRequestBody

The request body to send

-> ClientT m (Response PostPaymentIntentsIntentCancelResponse)

Monadic computation which returns the result of the operation

POST /v1/payment_intents/{intent}/cancel

<p>A PaymentIntent object can be canceled when it is in one of these statuses: <code>requires_payment_method</code>, <code>requires_capture</code>, <code>requires_confirmation</code>, or <code>requires_action</code>. </p>

<p>Once canceled, no additional charges will be made by the PaymentIntent and any operations on the PaymentIntent will fail with an error. For PaymentIntents with <code>status=’requires_capture’</code>, the remaining <code>amount_capturable</code> will automatically be refunded.</p>

data PostPaymentIntentsIntentCancelRequestBody Source #

Defines the object schema located at paths./v1/payment_intents/{intent}/cancel.POST.requestBody.content.application/x-www-form-urlencoded.schema in the specification.

Constructors

PostPaymentIntentsIntentCancelRequestBody 

Fields

data PostPaymentIntentsIntentCancelRequestBodyCancellationReason' Source #

Defines the enum schema located at paths./v1/payment_intents/{intent}/cancel.POST.requestBody.content.application/x-www-form-urlencoded.schema.properties.cancellation_reason in the specification.

Reason for canceling this PaymentIntent. Possible values are `duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned`

Constructors

PostPaymentIntentsIntentCancelRequestBodyCancellationReason'Other Value

This case is used if the value encountered during decoding does not match any of the provided cases in the specification.

PostPaymentIntentsIntentCancelRequestBodyCancellationReason'Typed Text

This constructor can be used to send values to the server which are not present in the specification yet.

PostPaymentIntentsIntentCancelRequestBodyCancellationReason'EnumAbandoned

Represents the JSON value "abandoned"

PostPaymentIntentsIntentCancelRequestBodyCancellationReason'EnumDuplicate

Represents the JSON value "duplicate"

PostPaymentIntentsIntentCancelRequestBodyCancellationReason'EnumFraudulent

Represents the JSON value "fraudulent"

PostPaymentIntentsIntentCancelRequestBodyCancellationReason'EnumRequestedByCustomer

Represents the JSON value "requested_by_customer"

Instances

Instances details
Eq PostPaymentIntentsIntentCancelRequestBodyCancellationReason' Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentIntentsIntentCancel

Show PostPaymentIntentsIntentCancelRequestBodyCancellationReason' Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentIntentsIntentCancel

ToJSON PostPaymentIntentsIntentCancelRequestBodyCancellationReason' Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentIntentsIntentCancel

FromJSON PostPaymentIntentsIntentCancelRequestBodyCancellationReason' Source # 
Instance details

Defined in StripeAPI.Operations.PostPaymentIntentsIntentCancel