stripe-haskell-0.1.0.3: Stripe API for Haskell

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

Web.Stripe.ApplicationFeeRefund

Contents

Description

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

import Web.Stripe         
import Web.Stripe.ApplicationFee

main :: IO ()
main = do
  let config = SecretKey "secret_key"
  result <- stripe config $ getApplicationFeeRefund (FeeId "fee_id") (RefundId "refund_id")
  case result of
    Right applicationFeeRefund -> print applicationFeeRefund
    Left stripeError           -> print stripeError

Synopsis

API

createApplicationFeeRefund Source

Arguments

:: FeeId

The FeeID associated with the ApplicationFee

-> Maybe Amount

The Amount associated with the ApplicationFee (optional)

-> MetaData

The MetaData associated with the ApplicationFee (optional)

-> Stripe ApplicationFeeRefund 

getApplicationFeeRefund Source

Arguments

:: FeeId

The FeeID associated with the ApplicationFee

-> RefundId

The ReufndId associated with the ApplicationFeeRefund

-> Stripe ApplicationFeeRefund 

Retrieve an existing ApplicationFeeRefund

getApplicationFeeRefundExpandable Source

Arguments

:: FeeId

The FeeID associated with the ApplicationFee

-> RefundId

The ReufndId associated with the ApplicationFeeRefund

-> ExpandParams

The ExpandParams to be used for object expansion

-> Stripe ApplicationFeeRefund 

Retrieve an existing ApplicationFeeRefund

getApplicationFeeRefunds Source

Arguments

:: FeeId

The FeeID associated with the application

-> Limit

Limit on how many Refunds to return (max 100, default 10)

-> StartingAfter FeeId

Lower bound on how many Refunds to return

-> EndingBefore FeeId

Upper bound on how many Refunds to return

-> Stripe (StripeList ApplicationFeeRefund) 

Retrieve a list of all ApplicationFeeRefunds for a given Application FeeId

getApplicationFeeRefundsExpandable Source

Arguments

:: FeeId

The FeeID associated with the ApplicationFee

-> Limit

Limit on how many Refunds to return (max 100, default 10)

-> StartingAfter FeeId

Lower bound on how many Refunds to return

-> EndingBefore FeeId

Upper bound on how many Refunds to return

-> ExpandParams

The ExpandParams to be used for object expansion

-> Stripe (StripeList ApplicationFeeRefund) 

Retrieve a list of all ApplicationFeeRefunds for a given Application FeeId

updateApplicationFeeRefund Source

Arguments

:: FeeId

The FeeID associated with the application

-> RefundId

The RefundId associated with the application

-> MetaData

The MetaData associated with the Fee (optional)

-> Stripe (StripeList ApplicationFeeRefund) 

Update an ApplicationFeeRefund for a given Application FeeId and RefundId

Types

newtype FeeId Source

FeeId for objects with Fees

Constructors

FeeId Text 

Instances

newtype RefundId Source

Constructors

RefundId 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

type MetaData = [(Text, Text)] Source

Type of MetaData for use on Stripe objects

type Amount = Int Source

Amount representing a monetary value. Stripe represents pennies as whole numbers i.e. 100 = $1