| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Types.Dispute
Description
Contains the types generated from the schema Dispute
Synopsis
- data Dispute = Dispute {
- disputeAmount :: Int
- disputeBalanceTransactions :: [BalanceTransaction]
- disputeCharge :: DisputeCharge'Variants
- disputeCreated :: Int
- disputeCurrency :: Text
- disputeEvidence :: DisputeEvidence
- disputeEvidenceDetails :: DisputeEvidenceDetails
- disputeId :: Text
- disputeIsChargeRefundable :: Bool
- disputeLivemode :: Bool
- disputeMetadata :: Object
- disputePaymentIntent :: Maybe DisputePaymentIntent'Variants
- disputeReason :: Text
- disputeStatus :: DisputeStatus'
- mkDispute :: Int -> [BalanceTransaction] -> DisputeCharge'Variants -> Int -> Text -> DisputeEvidence -> DisputeEvidenceDetails -> Text -> Bool -> Bool -> Object -> Text -> DisputeStatus' -> Dispute
- data DisputeCharge'Variants
- data DisputePaymentIntent'Variants
- data DisputeStatus'
- = DisputeStatus'Other Value
- | DisputeStatus'Typed Text
- | DisputeStatus'EnumChargeRefunded
- | DisputeStatus'EnumLost
- | DisputeStatus'EnumNeedsResponse
- | DisputeStatus'EnumUnderReview
- | DisputeStatus'EnumWarningClosed
- | DisputeStatus'EnumWarningNeedsResponse
- | DisputeStatus'EnumWarningUnderReview
- | DisputeStatus'EnumWon
Documentation
Defines the object schema located at components.schemas.dispute in the specification.
A dispute occurs when a customer questions your charge with their card issuer. When this happens, you're given the opportunity to respond to the dispute with evidence that shows that the charge is legitimate. You can find more information about the dispute process in our Disputes and Fraud documentation.
Related guide: Disputes and Fraud.
Constructors
| Dispute | |
Fields
| |
Arguments
| :: Int | |
| -> [BalanceTransaction] | |
| -> DisputeCharge'Variants | |
| -> Int | |
| -> Text | |
| -> DisputeEvidence | |
| -> DisputeEvidenceDetails | |
| -> Text | |
| -> Bool | |
| -> Bool | |
| -> Object | |
| -> Text | |
| -> DisputeStatus' | |
| -> Dispute |
Create a new Dispute with all required fields.
data DisputeCharge'Variants Source #
Defines the oneOf schema located at components.schemas.dispute.properties.charge.anyOf in the specification.
ID of the charge that was disputed.
Constructors
| DisputeCharge'Text Text | |
| DisputeCharge'Charge Charge |
Instances
| Eq DisputeCharge'Variants Source # | |
Defined in StripeAPI.Types.Dispute Methods (==) :: DisputeCharge'Variants -> DisputeCharge'Variants -> Bool # (/=) :: DisputeCharge'Variants -> DisputeCharge'Variants -> Bool # | |
| Show DisputeCharge'Variants Source # | |
Defined in StripeAPI.Types.Dispute Methods showsPrec :: Int -> DisputeCharge'Variants -> ShowS # show :: DisputeCharge'Variants -> String # showList :: [DisputeCharge'Variants] -> ShowS # | |
| ToJSON DisputeCharge'Variants Source # | |
Defined in StripeAPI.Types.Dispute Methods toJSON :: DisputeCharge'Variants -> Value # toEncoding :: DisputeCharge'Variants -> Encoding # toJSONList :: [DisputeCharge'Variants] -> Value # | |
| FromJSON DisputeCharge'Variants Source # | |
Defined in StripeAPI.Types.Dispute Methods parseJSON :: Value -> Parser DisputeCharge'Variants # parseJSONList :: Value -> Parser [DisputeCharge'Variants] # | |
data DisputePaymentIntent'Variants Source #
Defines the oneOf schema located at components.schemas.dispute.properties.payment_intent.anyOf in the specification.
ID of the PaymentIntent that was disputed.
Instances
| Eq DisputePaymentIntent'Variants Source # | |
Defined in StripeAPI.Types.Dispute | |
| Show DisputePaymentIntent'Variants Source # | |
Defined in StripeAPI.Types.Dispute Methods showsPrec :: Int -> DisputePaymentIntent'Variants -> ShowS # show :: DisputePaymentIntent'Variants -> String # showList :: [DisputePaymentIntent'Variants] -> ShowS # | |
| ToJSON DisputePaymentIntent'Variants Source # | |
Defined in StripeAPI.Types.Dispute Methods toJSON :: DisputePaymentIntent'Variants -> Value # toEncoding :: DisputePaymentIntent'Variants -> Encoding # toJSONList :: [DisputePaymentIntent'Variants] -> Value # toEncodingList :: [DisputePaymentIntent'Variants] -> Encoding # | |
| FromJSON DisputePaymentIntent'Variants Source # | |
Defined in StripeAPI.Types.Dispute Methods parseJSON :: Value -> Parser DisputePaymentIntent'Variants # parseJSONList :: Value -> Parser [DisputePaymentIntent'Variants] # | |
data DisputeStatus' Source #
Defines the enum schema located at components.schemas.dispute.properties.status in the specification.
Current status of dispute. Possible values are `warning_needs_response`, `warning_under_review`, `warning_closed`, `needs_response`, `under_review`, `charge_refunded`, `won`, or `lost`.
Constructors
| DisputeStatus'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| DisputeStatus'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| DisputeStatus'EnumChargeRefunded | Represents the JSON value |
| DisputeStatus'EnumLost | Represents the JSON value |
| DisputeStatus'EnumNeedsResponse | Represents the JSON value |
| DisputeStatus'EnumUnderReview | Represents the JSON value |
| DisputeStatus'EnumWarningClosed | Represents the JSON value |
| DisputeStatus'EnumWarningNeedsResponse | Represents the JSON value |
| DisputeStatus'EnumWarningUnderReview | Represents the JSON value |
| DisputeStatus'EnumWon | Represents the JSON value |
Instances
| Eq DisputeStatus' Source # | |
Defined in StripeAPI.Types.Dispute Methods (==) :: DisputeStatus' -> DisputeStatus' -> Bool # (/=) :: DisputeStatus' -> DisputeStatus' -> Bool # | |
| Show DisputeStatus' Source # | |
Defined in StripeAPI.Types.Dispute Methods showsPrec :: Int -> DisputeStatus' -> ShowS # show :: DisputeStatus' -> String # showList :: [DisputeStatus'] -> ShowS # | |
| ToJSON DisputeStatus' Source # | |
Defined in StripeAPI.Types.Dispute Methods toJSON :: DisputeStatus' -> Value # toEncoding :: DisputeStatus' -> Encoding # toJSONList :: [DisputeStatus'] -> Value # toEncodingList :: [DisputeStatus'] -> Encoding # | |
| FromJSON DisputeStatus' Source # | |
Defined in StripeAPI.Types.Dispute Methods parseJSON :: Value -> Parser DisputeStatus' # parseJSONList :: Value -> Parser [DisputeStatus'] # | |