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

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

Web.Stripe.Client

Description

 

Synopsis

Documentation

handleStream Source

Arguments

:: (Value -> Result a)

function to decode JSON value

-> Int

HTTP response code

-> Result Value

result of attempting to decode body

-> Either StripeError a 

handleStream

This function is used by the backends such as stripe-http-client to decode the results of an API request.

parseFail Source

Arguments

:: String

error message

-> Either StripeError a 

lift a parser error to be a StripeError

attemptDecode Source

Arguments

:: Int

HTTP status code

-> Bool 

check the HTTP status code and see if it is one we can deal with or not

unknownCode :: Either StripeError a Source

StripeError to return when we don't know what to do with the received HTTP status code.

data APIVersion Source

API Version

Constructors

V20141007

Stripe API Version for this package release