Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema Topup
Synopsis
- data Topup = Topup {
- topupAmount :: Int
- topupBalanceTransaction :: Maybe TopupBalanceTransaction'Variants
- topupCreated :: Int
- topupCurrency :: Text
- topupDescription :: Maybe Text
- topupExpectedAvailabilityDate :: Maybe Int
- topupFailureCode :: Maybe Text
- topupFailureMessage :: Maybe Text
- topupId :: Text
- topupLivemode :: Bool
- topupMetadata :: Object
- topupSource :: Source
- topupStatementDescriptor :: Maybe Text
- topupStatus :: TopupStatus'
- topupTransferGroup :: Maybe Text
- mkTopup :: Int -> Int -> Text -> Text -> Bool -> Object -> Source -> TopupStatus' -> Topup
- data TopupBalanceTransaction'Variants
- data TopupStatus'
Documentation
Defines the object schema located at components.schemas.topup
in the specification.
To top up your Stripe balance, you create a top-up object. You can retrieve individual top-ups, as well as list all top-ups. Top-ups are identified by a unique, random ID.
Related guide: Topping Up your Platform Account.
Topup | |
|
Create a new Topup
with all required fields.
data TopupBalanceTransaction'Variants Source #
Defines the oneOf schema located at components.schemas.topup.properties.balance_transaction.anyOf
in the specification.
ID of the balance transaction that describes the impact of this top-up on your account balance. May not be specified depending on status of top-up.
data TopupStatus' Source #
Defines the enum schema located at components.schemas.topup.properties.status
in the specification.
The status of the top-up is either `canceled`, `failed`, `pending`, `reversed`, or `succeeded`.
TopupStatus'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
TopupStatus'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
TopupStatus'EnumCanceled | Represents the JSON value |
TopupStatus'EnumFailed | Represents the JSON value |
TopupStatus'EnumPending | Represents the JSON value |
TopupStatus'EnumReversed | Represents the JSON value |
TopupStatus'EnumSucceeded | Represents the JSON value |
Instances
Eq TopupStatus' Source # | |
Defined in StripeAPI.Types.Topup (==) :: TopupStatus' -> TopupStatus' -> Bool # (/=) :: TopupStatus' -> TopupStatus' -> Bool # | |
Show TopupStatus' Source # | |
Defined in StripeAPI.Types.Topup showsPrec :: Int -> TopupStatus' -> ShowS # show :: TopupStatus' -> String # showList :: [TopupStatus'] -> ShowS # | |
ToJSON TopupStatus' Source # | |
Defined in StripeAPI.Types.Topup toJSON :: TopupStatus' -> Value # toEncoding :: TopupStatus' -> Encoding # toJSONList :: [TopupStatus'] -> Value # toEncodingList :: [TopupStatus'] -> Encoding # | |
FromJSON TopupStatus' Source # | |
Defined in StripeAPI.Types.Topup parseJSON :: Value -> Parser TopupStatus' # parseJSONList :: Value -> Parser [TopupStatus'] # |