Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
Dispute | |
|
:: 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.
Instances
Eq DisputeCharge'Variants Source # | |
Defined in StripeAPI.Types.Dispute | |
Show DisputeCharge'Variants Source # | |
Defined in StripeAPI.Types.Dispute showsPrec :: Int -> DisputeCharge'Variants -> ShowS # show :: DisputeCharge'Variants -> String # showList :: [DisputeCharge'Variants] -> ShowS # | |
ToJSON DisputeCharge'Variants Source # | |
Defined in StripeAPI.Types.Dispute toJSON :: DisputeCharge'Variants -> Value # toEncoding :: DisputeCharge'Variants -> Encoding # toJSONList :: [DisputeCharge'Variants] -> Value # | |
FromJSON DisputeCharge'Variants Source # | |
Defined in StripeAPI.Types.Dispute |
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
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`.
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 (==) :: DisputeStatus' -> DisputeStatus' -> Bool # (/=) :: DisputeStatus' -> DisputeStatus' -> Bool # | |
Show DisputeStatus' Source # | |
Defined in StripeAPI.Types.Dispute showsPrec :: Int -> DisputeStatus' -> ShowS # show :: DisputeStatus' -> String # showList :: [DisputeStatus'] -> ShowS # | |
ToJSON DisputeStatus' Source # | |
Defined in StripeAPI.Types.Dispute toJSON :: DisputeStatus' -> Value # toEncoding :: DisputeStatus' -> Encoding # toJSONList :: [DisputeStatus'] -> Value # toEncodingList :: [DisputeStatus'] -> Encoding # | |
FromJSON DisputeStatus' Source # | |
Defined in StripeAPI.Types.Dispute parseJSON :: Value -> Parser DisputeStatus' # parseJSONList :: Value -> Parser [DisputeStatus'] # |