Copyright | (c) David Johnson, 2014 |
---|---|
Maintainer | djohnson.m@gmail.com |
Stability | experimental |
Portability | POSIX |
Safe Haskell | None |
Language | Haskell2010 |
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
- getApplicationFee :: FeeId -> Stripe ApplicationFee
- getApplicationFeeExpanded :: FeeId -> ExpandParams -> Stripe ApplicationFee
- getApplicationFees :: Maybe Limit -> StartingAfter FeeId -> EndingBefore FeeId -> Stripe (StripeList ApplicationFee)
- getApplicationFeesExpanded :: Maybe Limit -> StartingAfter FeeId -> EndingBefore FeeId -> ExpandParams -> Stripe (StripeList ApplicationFee)
- newtype ApplicationId = ApplicationId Text
- data ApplicationFee = ApplicationFee {
- applicationFeeId :: Text
- applicationFeeObjecet :: Text
- applicationFeeCreated :: UTCTime
- applicationFeeLiveMode :: Bool
- applicationFeeAmount :: Int
- applicationFeeCurrency :: Currency
- applicationFeeRefunded :: Bool
- applicationFeeAmountRefunded :: Int
- applicationFeeRefunds :: StripeList Refund
- applicationFeeBalanceTransaction :: TransactionId
- applicationFeeAccountId :: AccountId
- applicationFeeApplicationId :: ApplicationId
- applicationFeeChargeId :: ChargeId
- applicationFeeMetaData :: MetaData
- newtype FeeId = FeeId Text
- data StripeList a = StripeList {}
- type EndingBefore a = Maybe a
- type StartingAfter a = Maybe a
- type Limit = Maybe Int
- type ExpandParams = [Text]
- data ConnectApp = ConnectApp {}
API
:: FeeId | The |
-> Stripe ApplicationFee |
ApplicationFee
retrieval
getApplicationFeeExpanded Source
:: FeeId | The |
-> ExpandParams | The |
-> Stripe ApplicationFee |
ApplicationFee
retrieval with ExpandParams
:: Maybe Limit | Defaults to 10 if |
-> StartingAfter FeeId | Paginate starting after the following |
-> EndingBefore FeeId | Paginate ending before the following |
-> Stripe (StripeList ApplicationFee) |
ApplicationFee
s retrieval
getApplicationFeesExpanded Source
:: Maybe Limit | Defaults to 10 if |
-> StartingAfter FeeId | Paginate starting after the following |
-> EndingBefore FeeId | Paginate ending before the following |
-> ExpandParams | The |
-> Stripe (StripeList ApplicationFee) |
ApplicationFee
s retrieval with ExpandParams
Types
newtype ApplicationId Source
ApplicationId
object
data ApplicationFee Source
ApplicationFee Object
Eq ApplicationFee | |
Show ApplicationFee | |
FromJSON ApplicationFee | JSON Instance for |
data StripeList a Source
Generic handling of Stripe JSON arrays
Eq a => Eq (StripeList a) | |
Show a => Show (StripeList a) | |
FromJSON a => FromJSON (StripeList a) | JSON Instance for |
type EndingBefore a = Maybe a Source
Pagination Option for StripeList
type StartingAfter a = Maybe a Source
Pagination Option for StripeList
Pagination Option for StripeList
type ExpandParams = [Text] Source
Type of Expansion Parameters for use on Stripe
objects
data ConnectApp Source
Connect Application
Eq ConnectApp | |
Show ConnectApp | |
FromJSON ConnectApp | Connect Application JSON instance |