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

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

Web.Stripe.Util

Contents

Description

 
Synopsis

Utils

paramsToByteString :: (Monoid m, IsString m) => [(m, m)] -> m Source #

Conversion of a key value pair to a query parameterized string

toText :: Show a => a -> Text Source #

Conversion from a Show constrained type to Text

toTextLower :: Show a => a -> Text Source #

Conversion from a Show constrained type to lowercase Text

getParams :: [(ByteString, Maybe Text)] -> [(ByteString, ByteString)] Source #

Retrieve and encode the optional parameters

toBytestring :: Show a => a -> ByteString Source #

Convert APITVersion to a ByteString

(</>) :: (Monoid m, IsString m) => m -> m -> m Source #

Forward slash interspersion on Monoid and IsString constrained types

toMetaData :: [(Text, Text)] -> [(ByteString, ByteString)] Source #

To MetaData

toExpandable :: [Text] -> [(ByteString, ByteString)] Source #

To Expandable