| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Types.BalanceTransaction
Description
Contains the types generated from the schema BalanceTransaction
Synopsis
- data BalanceTransaction = BalanceTransaction {
- balanceTransactionAmount :: Int
- balanceTransactionAvailableOn :: Int
- balanceTransactionCreated :: Int
- balanceTransactionCurrency :: Text
- balanceTransactionDescription :: Maybe Text
- balanceTransactionExchangeRate :: Maybe Double
- balanceTransactionFee :: Int
- balanceTransactionFeeDetails :: [Fee]
- balanceTransactionId :: Text
- balanceTransactionNet :: Int
- balanceTransactionReportingCategory :: Text
- balanceTransactionSource :: Maybe BalanceTransactionSource'Variants
- balanceTransactionStatus :: Text
- balanceTransactionType :: BalanceTransactionType'
- mkBalanceTransaction :: Int -> Int -> Int -> Text -> Int -> [Fee] -> Text -> Int -> Text -> Text -> BalanceTransactionType' -> BalanceTransaction
- data BalanceTransactionSource'Variants
- = BalanceTransactionSource'Text Text
- | BalanceTransactionSource'ApplicationFee ApplicationFee
- | BalanceTransactionSource'Charge Charge
- | BalanceTransactionSource'ConnectCollectionTransfer ConnectCollectionTransfer
- | BalanceTransactionSource'Dispute Dispute
- | BalanceTransactionSource'FeeRefund FeeRefund
- | BalanceTransactionSource'Issuing'authorization Issuing'authorization
- | BalanceTransactionSource'Issuing'dispute Issuing'dispute
- | BalanceTransactionSource'Issuing'transaction Issuing'transaction
- | BalanceTransactionSource'Payout Payout
- | BalanceTransactionSource'PlatformTaxFee PlatformTaxFee
- | BalanceTransactionSource'Refund Refund
- | BalanceTransactionSource'ReserveTransaction ReserveTransaction
- | BalanceTransactionSource'TaxDeductedAtSource TaxDeductedAtSource
- | BalanceTransactionSource'Topup Topup
- | BalanceTransactionSource'Transfer Transfer
- | BalanceTransactionSource'TransferReversal TransferReversal
- data BalanceTransactionType'
- = BalanceTransactionType'Other Value
- | BalanceTransactionType'Typed Text
- | BalanceTransactionType'EnumAdjustment
- | BalanceTransactionType'EnumAdvance
- | BalanceTransactionType'EnumAdvanceFunding
- | BalanceTransactionType'EnumAnticipationRepayment
- | BalanceTransactionType'EnumApplicationFee
- | BalanceTransactionType'EnumApplicationFeeRefund
- | BalanceTransactionType'EnumCharge
- | BalanceTransactionType'EnumConnectCollectionTransfer
- | BalanceTransactionType'EnumContribution
- | BalanceTransactionType'EnumIssuingAuthorizationHold
- | BalanceTransactionType'EnumIssuingAuthorizationRelease
- | BalanceTransactionType'EnumIssuingDispute
- | BalanceTransactionType'EnumIssuingTransaction
- | BalanceTransactionType'EnumPayment
- | BalanceTransactionType'EnumPaymentFailureRefund
- | BalanceTransactionType'EnumPaymentRefund
- | BalanceTransactionType'EnumPayout
- | BalanceTransactionType'EnumPayoutCancel
- | BalanceTransactionType'EnumPayoutFailure
- | BalanceTransactionType'EnumRefund
- | BalanceTransactionType'EnumRefundFailure
- | BalanceTransactionType'EnumReserveTransaction
- | BalanceTransactionType'EnumReservedFunds
- | BalanceTransactionType'EnumStripeFee
- | BalanceTransactionType'EnumStripeFxFee
- | BalanceTransactionType'EnumTaxFee
- | BalanceTransactionType'EnumTopup
- | BalanceTransactionType'EnumTopupReversal
- | BalanceTransactionType'EnumTransfer
- | BalanceTransactionType'EnumTransferCancel
- | BalanceTransactionType'EnumTransferFailure
- | BalanceTransactionType'EnumTransferRefund
Documentation
data BalanceTransaction Source #
Defines the object schema located at components.schemas.balance_transaction in the specification.
Balance transactions represent funds moving through your Stripe account. They're created for every type of transaction that comes into or flows out of your Stripe account balance.
Related guide: Balance Transaction Types.
Constructors
| BalanceTransaction | |
Fields
| |
Instances
| Eq BalanceTransaction Source # | |
Defined in StripeAPI.Types.BalanceTransaction Methods (==) :: BalanceTransaction -> BalanceTransaction -> Bool # (/=) :: BalanceTransaction -> BalanceTransaction -> Bool # | |
| Show BalanceTransaction Source # | |
Defined in StripeAPI.Types.BalanceTransaction Methods showsPrec :: Int -> BalanceTransaction -> ShowS # show :: BalanceTransaction -> String # showList :: [BalanceTransaction] -> ShowS # | |
| ToJSON BalanceTransaction Source # | |
Defined in StripeAPI.Types.BalanceTransaction Methods toJSON :: BalanceTransaction -> Value # toEncoding :: BalanceTransaction -> Encoding # toJSONList :: [BalanceTransaction] -> Value # toEncodingList :: [BalanceTransaction] -> Encoding # | |
| FromJSON BalanceTransaction Source # | |
Defined in StripeAPI.Types.BalanceTransaction Methods parseJSON :: Value -> Parser BalanceTransaction # parseJSONList :: Value -> Parser [BalanceTransaction] # | |
Arguments
| :: Int | |
| -> Int | |
| -> Int | |
| -> Text | |
| -> Int | |
| -> [Fee] | |
| -> Text | |
| -> Int | |
| -> Text | |
| -> Text | |
| -> BalanceTransactionType' | |
| -> BalanceTransaction |
Create a new BalanceTransaction with all required fields.
data BalanceTransactionSource'Variants Source #
Defines the oneOf schema located at components.schemas.balance_transaction.properties.source.anyOf in the specification.
The Stripe object to which this transaction is related.
Constructors
Instances
data BalanceTransactionType' Source #
Defines the enum schema located at components.schemas.balance_transaction.properties.type in the specification.
Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `payment`, `payment_failure_refund`, `payment_refund`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about balance transaction types and what they represent. If you are looking to classify transactions for accounting purposes, you might want to consider `reporting_category` instead.
Constructors
| BalanceTransactionType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
| BalanceTransactionType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
| BalanceTransactionType'EnumAdjustment | Represents the JSON value |
| BalanceTransactionType'EnumAdvance | Represents the JSON value |
| BalanceTransactionType'EnumAdvanceFunding | Represents the JSON value |
| BalanceTransactionType'EnumAnticipationRepayment | Represents the JSON value |
| BalanceTransactionType'EnumApplicationFee | Represents the JSON value |
| BalanceTransactionType'EnumApplicationFeeRefund | Represents the JSON value |
| BalanceTransactionType'EnumCharge | Represents the JSON value |
| BalanceTransactionType'EnumConnectCollectionTransfer | Represents the JSON value |
| BalanceTransactionType'EnumContribution | Represents the JSON value |
| BalanceTransactionType'EnumIssuingAuthorizationHold | Represents the JSON value |
| BalanceTransactionType'EnumIssuingAuthorizationRelease | Represents the JSON value |
| BalanceTransactionType'EnumIssuingDispute | Represents the JSON value |
| BalanceTransactionType'EnumIssuingTransaction | Represents the JSON value |
| BalanceTransactionType'EnumPayment | Represents the JSON value |
| BalanceTransactionType'EnumPaymentFailureRefund | Represents the JSON value |
| BalanceTransactionType'EnumPaymentRefund | Represents the JSON value |
| BalanceTransactionType'EnumPayout | Represents the JSON value |
| BalanceTransactionType'EnumPayoutCancel | Represents the JSON value |
| BalanceTransactionType'EnumPayoutFailure | Represents the JSON value |
| BalanceTransactionType'EnumRefund | Represents the JSON value |
| BalanceTransactionType'EnumRefundFailure | Represents the JSON value |
| BalanceTransactionType'EnumReserveTransaction | Represents the JSON value |
| BalanceTransactionType'EnumReservedFunds | Represents the JSON value |
| BalanceTransactionType'EnumStripeFee | Represents the JSON value |
| BalanceTransactionType'EnumStripeFxFee | Represents the JSON value |
| BalanceTransactionType'EnumTaxFee | Represents the JSON value |
| BalanceTransactionType'EnumTopup | Represents the JSON value |
| BalanceTransactionType'EnumTopupReversal | Represents the JSON value |
| BalanceTransactionType'EnumTransfer | Represents the JSON value |
| BalanceTransactionType'EnumTransferCancel | Represents the JSON value |
| BalanceTransactionType'EnumTransferFailure | Represents the JSON value |
| BalanceTransactionType'EnumTransferRefund | Represents the JSON value |
Instances
| Eq BalanceTransactionType' Source # | |
Defined in StripeAPI.Types.BalanceTransaction Methods (==) :: BalanceTransactionType' -> BalanceTransactionType' -> Bool # (/=) :: BalanceTransactionType' -> BalanceTransactionType' -> Bool # | |
| Show BalanceTransactionType' Source # | |
Defined in StripeAPI.Types.BalanceTransaction Methods showsPrec :: Int -> BalanceTransactionType' -> ShowS # show :: BalanceTransactionType' -> String # showList :: [BalanceTransactionType'] -> ShowS # | |
| ToJSON BalanceTransactionType' Source # | |
Defined in StripeAPI.Types.BalanceTransaction Methods toJSON :: BalanceTransactionType' -> Value # toEncoding :: BalanceTransactionType' -> Encoding # toJSONList :: [BalanceTransactionType'] -> Value # | |
| FromJSON BalanceTransactionType' Source # | |
Defined in StripeAPI.Types.BalanceTransaction Methods parseJSON :: Value -> Parser BalanceTransactionType' # parseJSONList :: Value -> Parser [BalanceTransactionType'] # | |