Safe Haskell | None |
---|
- newtype CustomerId = CustomerId {
- unCustomerId :: Text
- newtype SubscriptionId = SubscriptionId {}
- newtype Amount = Amount {}
- newtype Count = Count {}
- newtype Currency = Currency {
- unCurrency :: Text
- newtype Description = Description {}
- newtype Offset = Offset {}
- optionalArgs :: [(a, Maybe b)] -> [(a, b)]
- fromSeconds :: Integer -> UTCTime
- toSeconds :: UTCTime -> Integer
- stringToByteString :: String -> ByteString
- textToByteString :: Text -> ByteString
- showByteString :: Show a => a -> ByteString
Documentation
newtype CustomerId Source
Represents a 'Customer'\'s ID in the Stripe system.
newtype SubscriptionId Source
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
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