Copyright | (c) David Johnson, 2015 |
---|---|
Maintainer | djohnson.m@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
https://stripe.com/docs/api#bitcoin_receivers https://stripe.com/docs/guides/bitcoin
import Web.Stripe import Web.Stripe.Bitcoin main :: IO () main = do let config = SecretKey "secret_key" result <- stripe config listAllReceivers case result of Right receivers -> print receivers Left stripeError -> print stripeError
- createReceiver :: Integer -> Email -> Stripe BitcoinReceiver
- getReceiver :: BitcoinReceiverId -> Stripe BitcoinReceiver
- listReceivers :: Maybe Limit -> StartingAfter BitcoinReceiverId -> EndingBefore BitcoinReceiverId -> Stripe (StripeList BitcoinReceiver)
- data BitcoinReceiver = BitcoinReceiver {
- btcId :: BitcoinReceiverId
- btcObject :: Text
- btcCreated :: UTCTime
- btcLiveMode :: Bool
- btcActive :: Bool
- btcAmount :: Integer
- btcAmountReceived :: Integer
- btcBitcoinAmount :: Integer
- btcBitcoinAmountReceived :: Integer
- btcBitcoinUri :: Text
- btcCurrency :: Currency
- btcFilled :: Bool
- btcInboundAddress :: Text
- btcUncapturedFunds :: Bool
- btcDescription :: Maybe Text
- btcEmail :: Text
- btcMetadata :: MetaData
- btcRefundAddress :: Maybe Text
- btcTransactions :: Maybe Transactions
- btcPayment :: Maybe PaymentId
- btcCustomer :: Maybe CustomerId
- newtype BitcoinReceiverId = BitcoinReceiverId Text
- data BitcoinTransaction = BitcoinTransaction {}
- newtype BitcoinTransactionId = BitcoinTransactionId Text
- newtype Email = Email Text
- data StripeList a = StripeList {}
API
:: Integer | Amount |
-> Stripe BitcoinReceiver |
Retrieve the object that represents your Stripe account
getReceiver :: BitcoinReceiverId -> Stripe BitcoinReceiver Source
Retrieve a BitcoinReceiver
:: Maybe Limit | Defaults to 10 if |
-> StartingAfter BitcoinReceiverId | Paginate starting after the following |
-> EndingBefore BitcoinReceiverId | Paginate ending before the following |
-> Stripe (StripeList BitcoinReceiver) |
Retrieve a list of BitcoinReceiver
s
Types
data BitcoinReceiver Source
BTC ReceiverObject
BitcoinReceiver | |
|
Eq BitcoinReceiver | |
Show BitcoinReceiver | |
FromJSON BitcoinReceiver | FromJSON for BitcoinReceiverId |
newtype BitcoinReceiverId Source
BTC ReceiverId
Eq BitcoinReceiverId | |
Show BitcoinReceiverId | |
FromJSON BitcoinReceiverId | FromJSON for BitcoinReceiverId |
data BitcoinTransaction Source
Bitcoin Transaction
Eq BitcoinTransaction | |
Show BitcoinTransaction | |
FromJSON BitcoinTransaction | FromJSON BitcoinTransaction |
newtype BitcoinTransactionId Source
BitcoinTransactionId
Eq BitcoinTransactionId | |
Show BitcoinTransactionId | |
FromJSON BitcoinTransactionId | FromJSON BitcoinTransactionId |
data StripeList a Source
Generic handling of Stripe JSON arrays
Eq a => Eq (StripeList a) | |
Show a => Show (StripeList a) | |
FromJSON a => FromJSON (StripeList a) | JSON Instance for |