Web.Stripe.Charge
- data Charge = Charge {}
- newtype ChargeId = ChargeId {
- unChargeId :: String
- chargeToken :: MonadIO m => Token -> Amount -> Currency -> Maybe Description -> StripeT m Charge
- chargeTokenById :: MonadIO m => TokenId -> Amount -> Currency -> Maybe Description -> StripeT m Charge
- chargeCustomer :: MonadIO m => Customer -> Amount -> Currency -> Maybe Description -> StripeT m Charge
- chargeCustomerById :: MonadIO m => CustomerId -> Amount -> Currency -> Maybe Description -> StripeT m Charge
- chargeRCard :: MonadIO m => RequestCard -> Amount -> Currency -> Maybe Description -> 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 :: String
- newtype Description = Description {}
- newtype Offset = Offset {}
- data UTCTime = UTCTime {
- utctDay :: Day
- utctDayTime :: DiffTime
- data SConfig = SConfig {}
- newtype StripeT m a = StripeT (StateT SConfig (ErrorT SFailure m) a)
- runStripeT :: MonadIO m => SConfig -> StripeT m a -> m (Either SFailure a)
Documentation
Represents a charge in the Stripe system.
Constructors
| Charge | |
Fields
| |
Represents the identifier for a given Charge in the Stripe system.
Constructors
| ChargeId | |
Fields
| |
chargeToken :: MonadIO m => Token -> Amount -> Currency -> Maybe Description -> StripeT m ChargeSource
chargeTokenById :: MonadIO m => TokenId -> Amount -> Currency -> Maybe Description -> StripeT m ChargeSource
chargeCustomer :: MonadIO m => Customer -> Amount -> Currency -> Maybe Description -> StripeT m ChargeSource
chargeCustomerById :: MonadIO m => CustomerId -> Amount -> Currency -> Maybe Description -> StripeT m ChargeSource
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 -> StripeT m ChargeSource
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 ChargeSource
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.
Constructors
| Currency | |
Fields
| |
newtype Description Source
Describes an object in the Stripe system.
Constructors
| Description | |
Fields | |
Instances
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.
Constructors
| UTCTime | |
Fields
| |
Configuration for the StripeT monad transformer.
Defines the monad transformer under which all Stripe REST API resource calls take place.