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.ApplicationFee

Contents

Description

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

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

main :: IO ()
main = do
  let config = StripeConfig (StripeKey "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

-> StripeRequest GetApplicationFee 

ApplicationFee retrieval

Types

newtype FeeId Source

FeeId for objects with Fees

Constructors

FeeId Text 

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

newtype ExpandParams Source

Type of Expansion Parameters for use on Stripe objects

Constructors

ExpandParams 

Fields

getExpandParams :: [Text]