| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Types.Refund
Description
Contains the types generated from the schema Refund
Synopsis
- data Refund = Refund {
- refundAmount :: Int
- refundBalanceTransaction :: Maybe RefundBalanceTransaction'Variants
- refundCharge :: Maybe RefundCharge'Variants
- refundCreated :: Int
- refundCurrency :: Text
- refundDescription :: Maybe Text
- refundFailureBalanceTransaction :: Maybe RefundFailureBalanceTransaction'Variants
- refundFailureReason :: Maybe Text
- refundId :: Text
- refundMetadata :: Maybe Object
- refundPaymentIntent :: Maybe RefundPaymentIntent'Variants
- refundReason :: Maybe Text
- refundReceiptNumber :: Maybe Text
- refundSourceTransferReversal :: Maybe RefundSourceTransferReversal'Variants
- refundStatus :: Maybe Text
- refundTransferReversal :: Maybe RefundTransferReversal'Variants
- mkRefund :: Int -> Int -> Text -> Text -> Refund
- data RefundBalanceTransaction'Variants
- data RefundCharge'Variants
- data RefundFailureBalanceTransaction'Variants
- data RefundPaymentIntent'Variants
- data RefundSourceTransferReversal'Variants
- data RefundTransferReversal'Variants
Documentation
Defines the object schema located at components.schemas.refund in the specification.
`Refund` objects allow you to refund a charge that has previously been created but not yet refunded. Funds will be refunded to the credit or debit card that was originally charged.
Related guide: Refunds.
Constructors
| Refund | |
Fields
| |
data RefundBalanceTransaction'Variants Source #
Defines the oneOf schema located at components.schemas.refund.properties.balance_transaction.anyOf in the specification.
Balance transaction that describes the impact on your account balance.
Constructors
| RefundBalanceTransaction'Text Text | |
| RefundBalanceTransaction'BalanceTransaction BalanceTransaction |
Instances
| Eq RefundBalanceTransaction'Variants Source # | |
Defined in StripeAPI.Types.Refund | |
| Show RefundBalanceTransaction'Variants Source # | |
Defined in StripeAPI.Types.Refund Methods showsPrec :: Int -> RefundBalanceTransaction'Variants -> ShowS # | |
| ToJSON RefundBalanceTransaction'Variants Source # | |
Defined in StripeAPI.Types.Refund | |
| FromJSON RefundBalanceTransaction'Variants Source # | |
Defined in StripeAPI.Types.Refund Methods parseJSON :: Value -> Parser RefundBalanceTransaction'Variants # parseJSONList :: Value -> Parser [RefundBalanceTransaction'Variants] # | |
data RefundCharge'Variants Source #
Defines the oneOf schema located at components.schemas.refund.properties.charge.anyOf in the specification.
ID of the charge that was refunded.
Constructors
| RefundCharge'Text Text | |
| RefundCharge'Charge Charge |
Instances
| Eq RefundCharge'Variants Source # | |
Defined in StripeAPI.Types.Refund Methods (==) :: RefundCharge'Variants -> RefundCharge'Variants -> Bool # (/=) :: RefundCharge'Variants -> RefundCharge'Variants -> Bool # | |
| Show RefundCharge'Variants Source # | |
Defined in StripeAPI.Types.Refund Methods showsPrec :: Int -> RefundCharge'Variants -> ShowS # show :: RefundCharge'Variants -> String # showList :: [RefundCharge'Variants] -> ShowS # | |
| ToJSON RefundCharge'Variants Source # | |
Defined in StripeAPI.Types.Refund Methods toJSON :: RefundCharge'Variants -> Value # toEncoding :: RefundCharge'Variants -> Encoding # toJSONList :: [RefundCharge'Variants] -> Value # toEncodingList :: [RefundCharge'Variants] -> Encoding # | |
| FromJSON RefundCharge'Variants Source # | |
Defined in StripeAPI.Types.Refund Methods parseJSON :: Value -> Parser RefundCharge'Variants # parseJSONList :: Value -> Parser [RefundCharge'Variants] # | |
data RefundFailureBalanceTransaction'Variants Source #
Defines the oneOf schema located at components.schemas.refund.properties.failure_balance_transaction.anyOf in the specification.
If the refund failed, this balance transaction describes the adjustment made on your account balance that reverses the initial balance transaction.
Constructors
| RefundFailureBalanceTransaction'Text Text | |
| RefundFailureBalanceTransaction'BalanceTransaction BalanceTransaction |
Instances
data RefundPaymentIntent'Variants Source #
Defines the oneOf schema located at components.schemas.refund.properties.payment_intent.anyOf in the specification.
ID of the PaymentIntent that was refunded.
Instances
data RefundSourceTransferReversal'Variants Source #
Defines the oneOf schema located at components.schemas.refund.properties.source_transfer_reversal.anyOf in the specification.
The transfer reversal that is associated with the refund. Only present if the charge came from another Stripe account. See the Connect documentation for details.
Constructors
| RefundSourceTransferReversal'Text Text | |
| RefundSourceTransferReversal'TransferReversal TransferReversal |
Instances
data RefundTransferReversal'Variants Source #
Defines the oneOf schema located at components.schemas.refund.properties.transfer_reversal.anyOf in the specification.
If the accompanying transfer was reversed, the transfer reversal object. Only applicable if the charge was created using the destination parameter.
Constructors
| RefundTransferReversal'Text Text | |
| RefundTransferReversal'TransferReversal TransferReversal |
Instances
| Eq RefundTransferReversal'Variants Source # | |
Defined in StripeAPI.Types.Refund | |
| Show RefundTransferReversal'Variants Source # | |
Defined in StripeAPI.Types.Refund Methods showsPrec :: Int -> RefundTransferReversal'Variants -> ShowS # | |
| ToJSON RefundTransferReversal'Variants Source # | |
Defined in StripeAPI.Types.Refund | |
| FromJSON RefundTransferReversal'Variants Source # | |
Defined in StripeAPI.Types.Refund Methods parseJSON :: Value -> Parser RefundTransferReversal'Variants # parseJSONList :: Value -> Parser [RefundTransferReversal'Variants] # | |