stripe-haskell-0.1.4.0: Stripe API for Haskell

Copyright(c) David Johnson, 2015
Maintainerdjohnson.m@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Web.Stripe.Bitcoin

Contents

Description

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

Synopsis

API

createReceiver Source

Arguments

:: Integer

Amount

-> Email

Email

-> Stripe BitcoinReceiver 

Retrieve the object that represents your Stripe account

listReceivers Source

Arguments

:: Maybe Limit

Defaults to 10 if Nothing specified

-> StartingAfter BitcoinReceiverId

Paginate starting after the following BitcoinReceiverId

-> EndingBefore BitcoinReceiverId

Paginate ending before the following BitcoinReceiverId

-> Stripe (StripeList BitcoinReceiver) 

Retrieve a list of BitcoinReceivers

Types

newtype BitcoinReceiverId Source

BTC ReceiverId

Constructors

BitcoinReceiverId Text 

Instances

newtype BitcoinTransactionId Source

BitcoinTransactionId

newtype Email Source

Email associated with a Customer, Recipient or Charge

Constructors

Email Text 

Instances

data StripeList a Source

Generic handling of Stripe JSON arrays

Constructors

StripeList 

Fields

list :: [a]
 
stripeUrl :: Text
 
object :: Text
 
totalCount :: Maybe Int
 
hasMore :: Bool
 

Instances

Eq a => Eq (StripeList a) 
Show a => Show (StripeList a) 
FromJSON a => FromJSON (StripeList a)

JSON Instance for StripeList