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

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

Web.Stripe.Event

Contents

Description

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

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

main :: IO ()
main = do
  let config = StripeConfig (StripeKey "secret_key")
  result <- stripe config $ getEvents
  case result of
    Right events     -> print events
    Left stripeError -> print stripeError

Synopsis

API

getEvent Source

Arguments

:: EventId

The ID of the Event to retrieve

-> StripeRequest GetEvent 

Event to retrieve by EventId

Types

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