| Copyright | (c) David Johnson, 2014 |
|---|---|
| Maintainer | djohnson.m@gmail.com |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | None |
| Language | Haskell2010 |
Web.Stripe.ApplicationFee
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 accountId
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
Arguments
| :: FeeId | The |
| -> Stripe ApplicationFee |
ApplicationFee retrieval
getApplicationFeeExpanded Source
Arguments
| :: FeeId | The |
| -> ExpandParams | The |
| -> Stripe ApplicationFee |
ApplicationFee retrieval with ExpandParams
Arguments
| :: Maybe Limit | Defaults to 10 if |
| -> StartingAfter FeeId | Paginate starting after the following |
| -> EndingBefore FeeId | Paginate ending before the following |
| -> Stripe (StripeList ApplicationFee) |
ApplicationFees retrieval
getApplicationFeesExpanded Source
Arguments
| :: 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) |
ApplicationFees retrieval with ExpandParams
Types
data ApplicationFee Source
ApplicationFee Object
Constructors
Instances
| Eq ApplicationFee | |
| Show ApplicationFee | |
| FromJSON ApplicationFee | JSON Instance for |
data StripeList a Source
Generic handling of Stripe JSON arrays
Constructors
| StripeList | |
Instances
| 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
Constructors
| ConnectApp | |
Fields
| |
Instances
| Eq ConnectApp | |
| Show ConnectApp | |
| FromJSON ConnectApp | Connect Application JSON instance |