Safe Haskell | None |
---|---|
Language | Haskell98 |
- data Charge = Charge {}
- newtype ChargeId = ChargeId {
- unChargeId :: Text
- chargeToken :: MonadIO m => Token -> Amount -> Currency -> Maybe Description -> Maybe Amount -> StripeT m Charge
- chargeTokenById :: MonadIO m => TokenId -> Amount -> Currency -> Maybe Description -> Maybe Amount -> StripeT m Charge
- chargeCustomer :: MonadIO m => Customer -> Amount -> Currency -> Maybe Description -> Maybe Amount -> StripeT m Charge
- chargeCustomerById :: MonadIO m => CustomerId -> Amount -> Currency -> Maybe Description -> Maybe Amount -> StripeT m Charge
- chargeRCard :: MonadIO m => RequestCard -> Amount -> Currency -> Maybe Description -> Maybe Amount -> StripeT m Charge
- getCharge :: MonadIO m => ChargeId -> StripeT m Charge
- getCharges :: MonadIO m => Maybe CustomerId -> Maybe Count -> Maybe Offset -> StripeT m [Charge]
- partialRefund :: MonadIO m => Charge -> Amount -> StripeT m Charge
- partialRefundById :: MonadIO m => ChargeId -> Amount -> StripeT m Charge
- fullRefund :: MonadIO m => Charge -> StripeT m Charge
- fullRefundById :: MonadIO m => ChargeId -> StripeT m Charge
- newtype Amount = Amount {}
- newtype Count = Count {}
- newtype Currency = Currency {
- unCurrency :: Text
- newtype Description = Description {}
- newtype Offset = Offset {}
- data UTCTime :: * = UTCTime {
- utctDay :: Day
- utctDayTime :: DiffTime
- data StripeConfig = StripeConfig {}
- newtype StripeT m a = StripeT (StateT StripeConfig (ErrorT StripeFailure m) a)
- runStripeT :: MonadIO m => StripeConfig -> StripeT m a -> m (Either StripeFailure a)
Documentation
Represents a charge in the Stripe system.
Charge | |
|
Represents the identifier for a given Charge
in the Stripe system.
chargeToken :: MonadIO m => Token -> Amount -> Currency -> Maybe Description -> Maybe Amount -> StripeT m Charge Source
chargeTokenById :: MonadIO m => TokenId -> Amount -> Currency -> Maybe Description -> Maybe Amount -> StripeT m Charge Source
chargeCustomer :: MonadIO m => Customer -> Amount -> Currency -> Maybe Description -> Maybe Amount -> StripeT m Charge Source
chargeCustomerById :: MonadIO m => CustomerId -> Amount -> Currency -> Maybe Description -> Maybe Amount -> StripeT m Charge Source
Submit a Charge
to the Stripe for a specific Customer
, identified by
its CustomerId
, that already has payment details on file.
chargeRCard :: MonadIO m => RequestCard -> Amount -> Currency -> Maybe Description -> Maybe Amount -> StripeT m Charge Source
Submit a Charge
to the Stripe API using a RequestCard
to describe
payment details.
getCharges :: MonadIO m => Maybe CustomerId -> Maybe Count -> Maybe Offset -> StripeT m [Charge] Source
fullRefund :: MonadIO m => Charge -> StripeT m Charge Source
Requests that Stripe issue a full refund to a specific Charge
.
Represents an amount in cents in the Stripe system.
A maximum number of objects that the Stripe API will return. This value should be between 1 and 100, inclusive.
Represents a currency (e.g., "usd") in the Stripe system. This is a 3-letter ISO code.
newtype Description Source
Describes an object in the Stripe system.
A positive integer that is an offset into the array of objects returned by the Stripe API.
data UTCTime :: *
This is the simplest representation of UTC. It consists of the day number, and a time offset from midnight. Note that if a day has a leap second added to it, it will have 86401 seconds.
UTCTime | |
|
data StripeConfig Source
Configuration for the StripeT
monad transformer.
Show StripeConfig | |
Monad m => MonadState StripeConfig (StripeT m) |
Defines the monad transformer under which all Stripe REST API resource calls take place.
StripeT (StateT StripeConfig (ErrorT StripeFailure m) a) |
MonadTrans StripeT | |
Monad m => MonadError StripeFailure (StripeT m) | |
Monad m => MonadState StripeConfig (StripeT m) | |
(Monad m, Functor m) => Alternative (StripeT m) | |
Monad m => Monad (StripeT m) | |
Functor m => Functor (StripeT m) | |
Monad m => MonadPlus (StripeT m) | |
(Monad m, Functor m) => Applicative (StripeT m) | |
MonadIO m => MonadIO (StripeT m) |
runStripeT :: MonadIO m => StripeConfig -> StripeT m a -> m (Either StripeFailure a) Source
Runs the StripeT
monad transformer with a given StripeConfig
. This will
handle all of the authorization dance steps necessary to utilize the
Stripe API.
Its use is demonstrated in other functions, such as query
.