stripeapi-1.0.0.0: Stripe-Library
Safe HaskellNone
LanguageHaskell2010

StripeAPI.Types.Dispute

Description

Contains the types generated from the schema Dispute

Synopsis

Documentation

data Dispute Source #

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

  • disputeAmount :: Int

    amount: Disputed amount. Usually the amount of the charge, but can differ (usually because of currency fluctuation or because only part of the order is disputed).

  • disputeBalanceTransactions :: [BalanceTransaction]

    balance_transactions: List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.

  • disputeCharge :: DisputeCharge'Variants

    charge: ID of the charge that was disputed.

  • disputeCreated :: Int

    created: Time at which the object was created. Measured in seconds since the Unix epoch.

  • disputeCurrency :: Text

    currency: Three-letter ISO currency code, in lowercase. Must be a supported currency.

  • disputeEvidence :: DisputeEvidence

    evidence:

  • disputeEvidenceDetails :: DisputeEvidenceDetails

    evidence_details:

  • disputeId :: Text

    id: Unique identifier for the object.

    Constraints:

    • Maximum length of 5000
  • disputeIsChargeRefundable :: Bool

    is_charge_refundable: If true, it is still possible to refund the disputed payment. Once the payment has been fully refunded, no further funds will be withdrawn from your Stripe account as a result of this dispute.

  • disputeLivemode :: Bool

    livemode: Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.

  • disputeMetadata :: Object

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

  • disputePaymentIntent :: Maybe DisputePaymentIntent'Variants

    payment_intent: ID of the PaymentIntent that was disputed.

  • disputeReason :: Text

    reason: Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Read more about dispute reasons.

    Constraints:

    • Maximum length of 5000
  • disputeStatus :: DisputeStatus'

    status: Current status of dispute. Possible values are `warning_needs_response`, `warning_under_review`, `warning_closed`, `needs_response`, `under_review`, `charge_refunded`, `won`, or `lost`.

Instances

Instances details
Eq Dispute Source # 
Instance details

Defined in StripeAPI.Types.Dispute

Methods

(==) :: Dispute -> Dispute -> Bool #

(/=) :: Dispute -> Dispute -> Bool #

Show Dispute Source # 
Instance details

Defined in StripeAPI.Types.Dispute

ToJSON Dispute Source # 
Instance details

Defined in StripeAPI.Types.Dispute

FromJSON Dispute Source # 
Instance details

Defined in StripeAPI.Types.Dispute

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

DisputeStatus'EnumLost

Represents the JSON value "lost"

DisputeStatus'EnumNeedsResponse

Represents the JSON value "needs_response"

DisputeStatus'EnumUnderReview

Represents the JSON value "under_review"

DisputeStatus'EnumWarningClosed

Represents the JSON value "warning_closed"

DisputeStatus'EnumWarningNeedsResponse

Represents the JSON value "warning_needs_response"

DisputeStatus'EnumWarningUnderReview

Represents the JSON value "warning_under_review"

DisputeStatus'EnumWon

Represents the JSON value "won"