stripe-core-2.4.1: Stripe API for Haskell - Pure Core

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

Web.Stripe.Token

Contents

Description

https://stripe.com/docs/api#tokens

{-# LANGUAGE OverloadedStrings #-}
import Web.Stripe
import Web.Stripe.Token

main :: IO ()
main = do
  let config = StripeConfig (StripeKey "secret_key")
      credit = CardNumber "4242424242424242"
      em  = ExpMonth 12
      ey  = ExpYear 2015
      cvc = CVC "123"
      cardinfo = (mkNewCard credit em ey) { newCardCVC = Just cvc }
  result <- stripe config $ createCardToken (Just cardinfo)
  case result of
    Right token -> print token
    Left stripeError -> print stripeError
Synopsis

API

createCardToken Source #

Arguments

:: Maybe NewCard

optional NewCard data

-> StripeRequest CreateCardToken 

Create a Token by specifiying Credit Card information

getCardToken Source #

Arguments

:: TokenId

The TokenId of the Card Token to retrieve

-> StripeRequest GetCardToken 

Retrieve a Token by TokenId

Types

data Account Source #

Account Object

Instances
Eq Account Source # 
Instance details

Defined in Web.Stripe.Types

Methods

(==) :: Account -> Account -> Bool #

(/=) :: Account -> Account -> Bool #

Data Account Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Account -> c Account #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Account #

toConstr :: Account -> Constr #

dataTypeOf :: Account -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Account) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Account) #

gmapT :: (forall b. Data b => b -> b) -> Account -> Account #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Account -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Account -> r #

gmapQ :: (forall d. Data d => d -> u) -> Account -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Account -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Account -> m Account #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Account -> m Account #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Account -> m Account #

Ord Account Source # 
Instance details

Defined in Web.Stripe.Types

Read Account Source # 
Instance details

Defined in Web.Stripe.Types

Show Account Source # 
Instance details

Defined in Web.Stripe.Types

FromJSON Account Source #

JSON Instance for Account

Instance details

Defined in Web.Stripe.Types

newtype AccountNumber Source #

Account Number of a Bank Account

Constructors

AccountNumber Text 
Instances
Eq AccountNumber Source # 
Instance details

Defined in Web.Stripe.Types

Data AccountNumber Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AccountNumber -> c AccountNumber #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AccountNumber #

toConstr :: AccountNumber -> Constr #

dataTypeOf :: AccountNumber -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AccountNumber) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AccountNumber) #

gmapT :: (forall b. Data b => b -> b) -> AccountNumber -> AccountNumber #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AccountNumber -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AccountNumber -> r #

gmapQ :: (forall d. Data d => d -> u) -> AccountNumber -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AccountNumber -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AccountNumber -> m AccountNumber #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AccountNumber -> m AccountNumber #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AccountNumber -> m AccountNumber #

Ord AccountNumber Source # 
Instance details

Defined in Web.Stripe.Types

Read AccountNumber Source # 
Instance details

Defined in Web.Stripe.Types

Show AccountNumber Source # 
Instance details

Defined in Web.Stripe.Types

data BankAccount Source #

Instances
Eq BankAccount Source # 
Instance details

Defined in Web.Stripe.Types

Data BankAccount Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BankAccount -> c BankAccount #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BankAccount #

toConstr :: BankAccount -> Constr #

dataTypeOf :: BankAccount -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BankAccount) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BankAccount) #

gmapT :: (forall b. Data b => b -> b) -> BankAccount -> BankAccount #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BankAccount -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BankAccount -> r #

gmapQ :: (forall d. Data d => d -> u) -> BankAccount -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BankAccount -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BankAccount -> m BankAccount #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BankAccount -> m BankAccount #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BankAccount -> m BankAccount #

Ord BankAccount Source # 
Instance details

Defined in Web.Stripe.Types

Read BankAccount Source # 
Instance details

Defined in Web.Stripe.Types

Show BankAccount Source # 
Instance details

Defined in Web.Stripe.Types

FromJSON BankAccount Source #

BankAccount JSON Instance

Instance details

Defined in Web.Stripe.Types

data Card Source #

Card Object

Instances
Eq Card Source # 
Instance details

Defined in Web.Stripe.Types

Methods

(==) :: Card -> Card -> Bool #

(/=) :: Card -> Card -> Bool #

Data Card Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Card -> c Card #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Card #

toConstr :: Card -> Constr #

dataTypeOf :: Card -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Card) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Card) #

gmapT :: (forall b. Data b => b -> b) -> Card -> Card #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Card -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Card -> r #

gmapQ :: (forall d. Data d => d -> u) -> Card -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Card -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Card -> m Card #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Card -> m Card #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Card -> m Card #

Ord Card Source # 
Instance details

Defined in Web.Stripe.Types

Methods

compare :: Card -> Card -> Ordering #

(<) :: Card -> Card -> Bool #

(<=) :: Card -> Card -> Bool #

(>) :: Card -> Card -> Bool #

(>=) :: Card -> Card -> Bool #

max :: Card -> Card -> Card #

min :: Card -> Card -> Card #

Read Card Source # 
Instance details

Defined in Web.Stripe.Types

Show Card Source # 
Instance details

Defined in Web.Stripe.Types

Methods

showsPrec :: Int -> Card -> ShowS #

show :: Card -> String #

showList :: [Card] -> ShowS #

FromJSON Card Source #

JSON Instance for Card

Instance details

Defined in Web.Stripe.Types

newtype CardNumber Source #

Number associated with a Card

Constructors

CardNumber Text 
Instances
Eq CardNumber Source # 
Instance details

Defined in Web.Stripe.Types

Data CardNumber Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CardNumber -> c CardNumber #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CardNumber #

toConstr :: CardNumber -> Constr #

dataTypeOf :: CardNumber -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CardNumber) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CardNumber) #

gmapT :: (forall b. Data b => b -> b) -> CardNumber -> CardNumber #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CardNumber -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CardNumber -> r #

gmapQ :: (forall d. Data d => d -> u) -> CardNumber -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CardNumber -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CardNumber -> m CardNumber #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CardNumber -> m CardNumber #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CardNumber -> m CardNumber #

Ord CardNumber Source # 
Instance details

Defined in Web.Stripe.Types

Read CardNumber Source # 
Instance details

Defined in Web.Stripe.Types

Show CardNumber Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam CardNumber Source # 
Instance details

Defined in Web.Stripe.StripeRequest

newtype Country Source #

Country

Constructors

Country Text 
Instances
Eq Country Source # 
Instance details

Defined in Web.Stripe.Types

Methods

(==) :: Country -> Country -> Bool #

(/=) :: Country -> Country -> Bool #

Data Country Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Country -> c Country #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Country #

toConstr :: Country -> Constr #

dataTypeOf :: Country -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Country) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Country) #

gmapT :: (forall b. Data b => b -> b) -> Country -> Country #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Country -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Country -> r #

gmapQ :: (forall d. Data d => d -> u) -> Country -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Country -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Country -> m Country #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Country -> m Country #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Country -> m Country #

Ord Country Source # 
Instance details

Defined in Web.Stripe.Types

Read Country Source # 
Instance details

Defined in Web.Stripe.Types

Show Country Source # 
Instance details

Defined in Web.Stripe.Types

newtype CustomerId Source #

Constructors

CustomerId Text 
Instances
Eq CustomerId Source # 
Instance details

Defined in Web.Stripe.Types

Data CustomerId Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CustomerId -> c CustomerId #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CustomerId #

toConstr :: CustomerId -> Constr #

dataTypeOf :: CustomerId -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CustomerId) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CustomerId) #

gmapT :: (forall b. Data b => b -> b) -> CustomerId -> CustomerId #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CustomerId -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CustomerId -> r #

gmapQ :: (forall d. Data d => d -> u) -> CustomerId -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CustomerId -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CustomerId -> m CustomerId #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CustomerId -> m CustomerId #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CustomerId -> m CustomerId #

Ord CustomerId Source # 
Instance details

Defined in Web.Stripe.Types

Read CustomerId Source # 
Instance details

Defined in Web.Stripe.Types

Show CustomerId Source # 
Instance details

Defined in Web.Stripe.Types

FromJSON CustomerId Source #

JSON Instance for CustomerId

Instance details

Defined in Web.Stripe.Types

ToStripeParam CustomerId Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam CreateCardToken CustomerId Source # 
Instance details

Defined in Web.Stripe.Token

StripeHasParam GetInvoiceItems CustomerId Source # 
Instance details

Defined in Web.Stripe.InvoiceItem

StripeHasParam GetInvoiceLineItems CustomerId Source # 
Instance details

Defined in Web.Stripe.Invoice

StripeHasParam GetCharges CustomerId Source # 
Instance details

Defined in Web.Stripe.Charge

StripeHasParam CreateCharge CustomerId Source # 
Instance details

Defined in Web.Stripe.Charge

StripeHasParam GetCustomers (EndingBefore CustomerId) Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam GetCustomers (StartingAfter CustomerId) Source # 
Instance details

Defined in Web.Stripe.Customer

type ExpandsTo CustomerId Source # 
Instance details

Defined in Web.Stripe.Types

newtype CVC Source #

CVC for a Card

Constructors

CVC Text 
Instances
Eq CVC Source # 
Instance details

Defined in Web.Stripe.Types

Methods

(==) :: CVC -> CVC -> Bool #

(/=) :: CVC -> CVC -> Bool #

Data CVC Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CVC -> c CVC #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CVC #

toConstr :: CVC -> Constr #

dataTypeOf :: CVC -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CVC) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CVC) #

gmapT :: (forall b. Data b => b -> b) -> CVC -> CVC #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CVC -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CVC -> r #

gmapQ :: (forall d. Data d => d -> u) -> CVC -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CVC -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CVC -> m CVC #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CVC -> m CVC #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CVC -> m CVC #

Ord CVC Source # 
Instance details

Defined in Web.Stripe.Types

Methods

compare :: CVC -> CVC -> Ordering #

(<) :: CVC -> CVC -> Bool #

(<=) :: CVC -> CVC -> Bool #

(>) :: CVC -> CVC -> Bool #

(>=) :: CVC -> CVC -> Bool #

max :: CVC -> CVC -> CVC #

min :: CVC -> CVC -> CVC #

Read CVC Source # 
Instance details

Defined in Web.Stripe.Types

Show CVC Source # 
Instance details

Defined in Web.Stripe.Types

Methods

showsPrec :: Int -> CVC -> ShowS #

show :: CVC -> String #

showList :: [CVC] -> ShowS #

ToStripeParam CVC Source # 
Instance details

Defined in Web.Stripe.StripeRequest

newtype ExpMonth Source #

Expiration Month for a Card

Constructors

ExpMonth Int 
Instances
Eq ExpMonth Source # 
Instance details

Defined in Web.Stripe.Types

Data ExpMonth Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ExpMonth -> c ExpMonth #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ExpMonth #

toConstr :: ExpMonth -> Constr #

dataTypeOf :: ExpMonth -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ExpMonth) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ExpMonth) #

gmapT :: (forall b. Data b => b -> b) -> ExpMonth -> ExpMonth #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ExpMonth -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ExpMonth -> r #

gmapQ :: (forall d. Data d => d -> u) -> ExpMonth -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ExpMonth -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ExpMonth -> m ExpMonth #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ExpMonth -> m ExpMonth #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ExpMonth -> m ExpMonth #

Ord ExpMonth Source # 
Instance details

Defined in Web.Stripe.Types

Read ExpMonth Source # 
Instance details

Defined in Web.Stripe.Types

Show ExpMonth Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam ExpMonth Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam UpdateRecipientCard ExpMonth Source # 
Instance details

Defined in Web.Stripe.Card

StripeHasParam UpdateCustomerCard ExpMonth Source # 
Instance details

Defined in Web.Stripe.Card

newtype ExpYear Source #

Expiration Year for a Card

Constructors

ExpYear Int 
Instances
Eq ExpYear Source # 
Instance details

Defined in Web.Stripe.Types

Methods

(==) :: ExpYear -> ExpYear -> Bool #

(/=) :: ExpYear -> ExpYear -> Bool #

Data ExpYear Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ExpYear -> c ExpYear #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ExpYear #

toConstr :: ExpYear -> Constr #

dataTypeOf :: ExpYear -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ExpYear) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ExpYear) #

gmapT :: (forall b. Data b => b -> b) -> ExpYear -> ExpYear #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ExpYear -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ExpYear -> r #

gmapQ :: (forall d. Data d => d -> u) -> ExpYear -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ExpYear -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ExpYear -> m ExpYear #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ExpYear -> m ExpYear #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ExpYear -> m ExpYear #

Ord ExpYear Source # 
Instance details

Defined in Web.Stripe.Types

Read ExpYear Source # 
Instance details

Defined in Web.Stripe.Types

Show ExpYear Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam ExpYear Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam UpdateRecipientCard ExpYear Source # 
Instance details

Defined in Web.Stripe.Card

StripeHasParam UpdateCustomerCard ExpYear Source # 
Instance details

Defined in Web.Stripe.Card

data NewBankAccount Source #

create a new BankAccount

Instances
Eq NewBankAccount Source # 
Instance details

Defined in Web.Stripe.Types

Data NewBankAccount Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> NewBankAccount -> c NewBankAccount #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c NewBankAccount #

toConstr :: NewBankAccount -> Constr #

dataTypeOf :: NewBankAccount -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c NewBankAccount) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c NewBankAccount) #

gmapT :: (forall b. Data b => b -> b) -> NewBankAccount -> NewBankAccount #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> NewBankAccount -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> NewBankAccount -> r #

gmapQ :: (forall d. Data d => d -> u) -> NewBankAccount -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> NewBankAccount -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> NewBankAccount -> m NewBankAccount #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> NewBankAccount -> m NewBankAccount #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> NewBankAccount -> m NewBankAccount #

Ord NewBankAccount Source # 
Instance details

Defined in Web.Stripe.Types

Read NewBankAccount Source # 
Instance details

Defined in Web.Stripe.Types

Show NewBankAccount Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam NewBankAccount Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam UpdateRecipient NewBankAccount Source # 
Instance details

Defined in Web.Stripe.Recipient

StripeHasParam CreateRecipient NewBankAccount Source # 
Instance details

Defined in Web.Stripe.Recipient

mkNewCard :: CardNumber -> ExpMonth -> ExpYear -> NewCard Source #

create a NewCard with only the required fields

data NewCard Source #

NewCard contains the data needed to create a new Card

Instances
Eq NewCard Source # 
Instance details

Defined in Web.Stripe.Types

Methods

(==) :: NewCard -> NewCard -> Bool #

(/=) :: NewCard -> NewCard -> Bool #

Data NewCard Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> NewCard -> c NewCard #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c NewCard #

toConstr :: NewCard -> Constr #

dataTypeOf :: NewCard -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c NewCard) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c NewCard) #

gmapT :: (forall b. Data b => b -> b) -> NewCard -> NewCard #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> NewCard -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> NewCard -> r #

gmapQ :: (forall d. Data d => d -> u) -> NewCard -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> NewCard -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> NewCard -> m NewCard #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> NewCard -> m NewCard #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> NewCard -> m NewCard #

Ord NewCard Source # 
Instance details

Defined in Web.Stripe.Types

Read NewCard Source # 
Instance details

Defined in Web.Stripe.Types

Show NewCard Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam NewCard Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam UpdateRecipient NewCard Source # 
Instance details

Defined in Web.Stripe.Recipient

StripeHasParam CreateRecipient NewCard Source # 
Instance details

Defined in Web.Stripe.Recipient

StripeHasParam UpdateCustomer NewCard Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam CreateCustomer NewCard Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam CreateCharge NewCard Source # 
Instance details

Defined in Web.Stripe.Charge

newtype RoutingNumber Source #

Routing Number for Bank Account

Constructors

RoutingNumber Text 
Instances
Eq RoutingNumber Source # 
Instance details

Defined in Web.Stripe.Types

Data RoutingNumber Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RoutingNumber -> c RoutingNumber #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RoutingNumber #

toConstr :: RoutingNumber -> Constr #

dataTypeOf :: RoutingNumber -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RoutingNumber) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RoutingNumber) #

gmapT :: (forall b. Data b => b -> b) -> RoutingNumber -> RoutingNumber #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RoutingNumber -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RoutingNumber -> r #

gmapQ :: (forall d. Data d => d -> u) -> RoutingNumber -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RoutingNumber -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RoutingNumber -> m RoutingNumber #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RoutingNumber -> m RoutingNumber #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RoutingNumber -> m RoutingNumber #

Ord RoutingNumber Source # 
Instance details

Defined in Web.Stripe.Types

Read RoutingNumber Source # 
Instance details

Defined in Web.Stripe.Types

Show RoutingNumber Source # 
Instance details

Defined in Web.Stripe.Types

data Token a Source #

Token Object

Instances
Eq a => Eq (Token a) Source # 
Instance details

Defined in Web.Stripe.Types

Methods

(==) :: Token a -> Token a -> Bool #

(/=) :: Token a -> Token a -> Bool #

Data a => Data (Token a) Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Token a -> c (Token a) #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (Token a) #

toConstr :: Token a -> Constr #

dataTypeOf :: Token a -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (Token a)) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (Token a)) #

gmapT :: (forall b. Data b => b -> b) -> Token a -> Token a #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Token a -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Token a -> r #

gmapQ :: (forall d. Data d => d -> u) -> Token a -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Token a -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Token a -> m (Token a) #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Token a -> m (Token a) #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Token a -> m (Token a) #

Ord a => Ord (Token a) Source # 
Instance details

Defined in Web.Stripe.Types

Methods

compare :: Token a -> Token a -> Ordering #

(<) :: Token a -> Token a -> Bool #

(<=) :: Token a -> Token a -> Bool #

(>) :: Token a -> Token a -> Bool #

(>=) :: Token a -> Token a -> Bool #

max :: Token a -> Token a -> Token a #

min :: Token a -> Token a -> Token a #

Read a => Read (Token a) Source # 
Instance details

Defined in Web.Stripe.Types

Show a => Show (Token a) Source # 
Instance details

Defined in Web.Stripe.Types

Methods

showsPrec :: Int -> Token a -> ShowS #

show :: Token a -> String #

showList :: [Token a] -> ShowS #

FromJSON a => FromJSON (Token a) Source #

JSON Instance for Token

Instance details

Defined in Web.Stripe.Types

newtype TokenId Source #

Constructors

TokenId Text 
Instances
Eq TokenId Source # 
Instance details

Defined in Web.Stripe.Types

Methods

(==) :: TokenId -> TokenId -> Bool #

(/=) :: TokenId -> TokenId -> Bool #

Data TokenId Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TokenId -> c TokenId #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TokenId #

toConstr :: TokenId -> Constr #

dataTypeOf :: TokenId -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TokenId) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TokenId) #

gmapT :: (forall b. Data b => b -> b) -> TokenId -> TokenId #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TokenId -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TokenId -> r #

gmapQ :: (forall d. Data d => d -> u) -> TokenId -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TokenId -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TokenId -> m TokenId #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TokenId -> m TokenId #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TokenId -> m TokenId #

Ord TokenId Source # 
Instance details

Defined in Web.Stripe.Types

Read TokenId Source # 
Instance details

Defined in Web.Stripe.Types

Show TokenId Source # 
Instance details

Defined in Web.Stripe.Types

ToStripeParam TokenId Source # 
Instance details

Defined in Web.Stripe.StripeRequest

StripeHasParam UpdateRecipient TokenId Source # 
Instance details

Defined in Web.Stripe.Recipient

StripeHasParam CreateRecipient TokenId Source # 
Instance details

Defined in Web.Stripe.Recipient

StripeHasParam UpdateCustomer TokenId Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam CreateCustomer TokenId Source # 
Instance details

Defined in Web.Stripe.Customer

StripeHasParam CreateCharge TokenId Source # 
Instance details

Defined in Web.Stripe.Charge

data TokenType Source #

Type of Token

Instances
Eq TokenType Source # 
Instance details

Defined in Web.Stripe.Types

Data TokenType Source # 
Instance details

Defined in Web.Stripe.Types

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TokenType -> c TokenType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TokenType #

toConstr :: TokenType -> Constr #

dataTypeOf :: TokenType -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TokenType) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TokenType) #

gmapT :: (forall b. Data b => b -> b) -> TokenType -> TokenType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TokenType -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TokenType -> r #

gmapQ :: (forall d. Data d => d -> u) -> TokenType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TokenType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TokenType -> m TokenType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TokenType -> m TokenType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TokenType -> m TokenType #

Ord TokenType Source # 
Instance details

Defined in Web.Stripe.Types

Read TokenType Source # 
Instance details

Defined in Web.Stripe.Types

Show TokenType Source # 
Instance details

Defined in Web.Stripe.Types

FromJSON TokenType Source #

JSON Instance for TokenType

Instance details

Defined in Web.Stripe.Types