Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema Payout
Synopsis
- data Payout = Payout {
- payoutAmount :: Int
- payoutArrivalDate :: Int
- payoutAutomatic :: Bool
- payoutBalanceTransaction :: Maybe PayoutBalanceTransaction'Variants
- payoutCreated :: Int
- payoutCurrency :: Text
- payoutDescription :: Maybe Text
- payoutDestination :: Maybe PayoutDestination'Variants
- payoutFailureBalanceTransaction :: Maybe PayoutFailureBalanceTransaction'Variants
- payoutFailureCode :: Maybe Text
- payoutFailureMessage :: Maybe Text
- payoutId :: Text
- payoutLivemode :: Bool
- payoutMetadata :: Maybe Object
- payoutMethod :: Text
- payoutOriginalPayout :: Maybe PayoutOriginalPayout'Variants
- payoutReversedBy :: Maybe PayoutReversedBy'Variants
- payoutSourceType :: Text
- payoutStatementDescriptor :: Maybe Text
- payoutStatus :: Text
- payoutType :: PayoutType'
- mkPayout :: Int -> Int -> Bool -> Int -> Text -> Text -> Bool -> Text -> Text -> Text -> PayoutType' -> Payout
- data PayoutBalanceTransaction'Variants
- data PayoutDestination'Variants
- data PayoutFailureBalanceTransaction'Variants
- data PayoutOriginalPayout'Variants
- data PayoutReversedBy'Variants
- data PayoutType'
Documentation
Defines the object schema located at components.schemas.payout
in the specification.
A `Payout` object is created when you receive funds from Stripe, or when you initiate a payout to either a bank account or debit card of a connected Stripe account. You can retrieve individual payouts, as well as list all payouts. Payouts are made on varying schedules, depending on your country and industry.
Related guide: Receiving Payouts.
Payout | |
|
Create a new Payout
with all required fields.
data PayoutBalanceTransaction'Variants Source #
Defines the oneOf schema located at components.schemas.payout.properties.balance_transaction.anyOf
in the specification.
ID of the balance transaction that describes the impact of this payout on your account balance.
data PayoutDestination'Variants Source #
Defines the oneOf schema located at components.schemas.payout.properties.destination.anyOf
in the specification.
ID of the bank account or card the payout was sent to.
PayoutDestination'Text Text | |
PayoutDestination'BankAccount BankAccount | |
PayoutDestination'Card Card | |
PayoutDestination'DeletedBankAccount DeletedBankAccount | |
PayoutDestination'DeletedCard DeletedCard |
Instances
Eq PayoutDestination'Variants Source # | |
Defined in StripeAPI.Types.Payout | |
Show PayoutDestination'Variants Source # | |
Defined in StripeAPI.Types.Payout showsPrec :: Int -> PayoutDestination'Variants -> ShowS # show :: PayoutDestination'Variants -> String # showList :: [PayoutDestination'Variants] -> ShowS # | |
ToJSON PayoutDestination'Variants Source # | |
Defined in StripeAPI.Types.Payout | |
FromJSON PayoutDestination'Variants Source # | |
Defined in StripeAPI.Types.Payout |
data PayoutFailureBalanceTransaction'Variants Source #
Defines the oneOf schema located at components.schemas.payout.properties.failure_balance_transaction.anyOf
in the specification.
If the payout failed or was canceled, this will be the ID of the balance transaction that reversed the initial balance transaction, and puts the funds from the failed payout back in your balance.
PayoutFailureBalanceTransaction'Text Text | |
PayoutFailureBalanceTransaction'BalanceTransaction BalanceTransaction |
data PayoutOriginalPayout'Variants Source #
Defines the oneOf schema located at components.schemas.payout.properties.original_payout.anyOf
in the specification.
If the payout reverses another, this is the ID of the original payout.
Instances
data PayoutReversedBy'Variants Source #
Defines the oneOf schema located at components.schemas.payout.properties.reversed_by.anyOf
in the specification.
If the payout was reversed, this is the ID of the payout that reverses this payout.
Instances
Eq PayoutReversedBy'Variants Source # | |
Defined in StripeAPI.Types.Payout | |
Show PayoutReversedBy'Variants Source # | |
Defined in StripeAPI.Types.Payout showsPrec :: Int -> PayoutReversedBy'Variants -> ShowS # show :: PayoutReversedBy'Variants -> String # showList :: [PayoutReversedBy'Variants] -> ShowS # | |
ToJSON PayoutReversedBy'Variants Source # | |
Defined in StripeAPI.Types.Payout | |
FromJSON PayoutReversedBy'Variants Source # | |
Defined in StripeAPI.Types.Payout |
data PayoutType' Source #
Defines the enum schema located at components.schemas.payout.properties.type
in the specification.
Can be `bank_account` or `card`.
PayoutType'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
PayoutType'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
PayoutType'EnumBankAccount | Represents the JSON value |
PayoutType'EnumCard | Represents the JSON value |
Instances
Eq PayoutType' Source # | |
Defined in StripeAPI.Types.Payout (==) :: PayoutType' -> PayoutType' -> Bool # (/=) :: PayoutType' -> PayoutType' -> Bool # | |
Show PayoutType' Source # | |
Defined in StripeAPI.Types.Payout showsPrec :: Int -> PayoutType' -> ShowS # show :: PayoutType' -> String # showList :: [PayoutType'] -> ShowS # | |
ToJSON PayoutType' Source # | |
Defined in StripeAPI.Types.Payout toJSON :: PayoutType' -> Value # toEncoding :: PayoutType' -> Encoding # toJSONList :: [PayoutType'] -> Value # toEncodingList :: [PayoutType'] -> Encoding # | |
FromJSON PayoutType' Source # | |
Defined in StripeAPI.Types.Payout parseJSON :: Value -> Parser PayoutType' # parseJSONList :: Value -> Parser [PayoutType'] # |