stripe-haskell-0.1.4.0: Stripe API for Haskell

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

Web.Stripe.ApplicationFee

Contents

Description

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

import Web.Stripe         
import Web.Stripe.ApplicationFee

main :: IO ()
main = do
  let config = SecretKey "secret_key"
  result <- stripe config $ getApplicationFee (FeeId "fee_4xtEGZhPNDEt3w")
  case result of
    Right applicationFee -> print applicationFee
    Left stripeError     -> print stripeError

Synopsis

API

getApplicationFee Source

Arguments

:: FeeId

The FeeId associated with the Application

-> Stripe ApplicationFee 

ApplicationFee retrieval

getApplicationFeeExpanded Source

Arguments

:: FeeId

The FeeId associated with the application

-> ExpandParams

The ExpandParams for an ApplicationFee

-> Stripe ApplicationFee 

getApplicationFees Source

Arguments

:: Maybe Limit

Defaults to 10 if Nothing specified

-> StartingAfter FeeId

Paginate starting after the following FeeId

-> EndingBefore FeeId

Paginate ending before the following FeeId

-> Stripe (StripeList ApplicationFee) 

ApplicationFees retrieval

getApplicationFeesExpanded Source

Arguments

:: Maybe Limit

Defaults to 10 if Nothing specified

-> StartingAfter FeeId

Paginate starting after the following FeeId

-> EndingBefore FeeId

Paginate ending before the following FeeId

-> ExpandParams

The ExpandParams for ApplicationFees

-> Stripe (StripeList ApplicationFee) 

Types

newtype FeeId Source

FeeId for objects with Fees

Constructors

FeeId 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

type EndingBefore a = Maybe a Source

Pagination Option for StripeList

type StartingAfter a = Maybe a Source

Pagination Option for StripeList

type Limit = Maybe Int Source

Pagination Option for StripeList

type ExpandParams = [Text] Source

Type of Expansion Parameters for use on Stripe objects

data ConnectApp Source

Connect Application

Instances

Eq ConnectApp 
Show ConnectApp 
FromJSON ConnectApp

Connect Application JSON instance