Safe Haskell | None |
---|
- newtype Amount = Amount {}
- newtype Count = Count {}
- newtype Currency = Currency {
- unCurrency :: Text
- newtype Description = Description {}
- newtype Offset = Offset {}
- optionalArgs :: [(a, Maybe b)] -> [(a, b)]
- data UTCTime = UTCTime {
- utctDay :: Day
- utctDayTime :: DiffTime
- fromSeconds :: Integer -> UTCTime
- toSeconds :: UTCTime -> Integer
- stringToByteString :: String -> ByteString
- textToByteString :: Text -> ByteString
- showByteString :: Show a => a -> ByteString
Documentation
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.
optionalArgs :: [(a, Maybe b)] -> [(a, b)]Source
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 | |
|
fromSeconds :: Integer -> UTCTimeSource
Convert a time in seconds (from Stripe's servers) to UTCTime
. See
Data.Time.Format for more on working with UTCTime
.
toSeconds :: UTCTime -> IntegerSource
Convert a UTCTime
back to an Integer suitable for use with Stripe's API.
showByteString :: Show a => a -> ByteStringSource