Copyright | (c) David Johnson 2014 |
---|---|
Maintainer | djohnson.m@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
https://stripe.com/docs/api#account
{-# LANGUAGE OverloadedStrings #-} import Web.Stripe import Web.Stripe.Account main :: IO () main = do let config = StripeConfig (StripeKey "secret_key") result <- stripe config getAccountDetails case result of Right account -> print account Left stripeError -> print stripeError
- data GetAccountDetails
- getAccountDetails :: StripeRequest GetAccountDetails
- 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
- newtype AccountId = AccountId Text
API
data GetAccountDetails Source #
Retrieve the object that represents your Stripe account
Types
Account
Object