| Copyright | (c) David Johnson, 2014 |
|---|---|
| Maintainer | djohnson.m@gmail.com |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Web.Stripe.Account
Description
https://stripe.com/docs/api#account
import Web.Stripe
import Web.Stripe.Account
main :: IO ()
main = do
let config = SecretKey "secret_key"
result <- stripe config getAccountDetails
case result of
Right accountId -> print accountId
Left stripeError -> print stripeError
- getAccountDetails :: Stripe Account
- data Account = Account {
- accountId :: AccountId
- accountEmail :: Email
- accountStatementDescriptor :: Maybe Description
- accountDisplayName :: Maybe Text
- accountTimeZone :: Text
- accountDetailsSubmitted :: Bool
- accountChargeEnabled :: Bool
- accountTransferEnabled :: Bool
- accountCurrenciesSupported :: [Currency]
- accountDefaultCurrency :: Currency
- accountCountry :: Text
- accountObject :: Text
- accountBusinessName :: Maybe Text
- accountBusinessURL :: Maybe Text
- accountBusinessLogo :: Maybe Text
- accountSupportPhone :: Maybe Text
- data AccountId
API
getAccountDetails :: Stripe Account Source
Retrieve the object that represents your Stripe account
Types
Account Object
Constructors