Safe Haskell | None |
---|---|
Language | Haskell98 |
Web.Stripe.Utils
- newtype CustomerId = CustomerId {
- unCustomerId :: Text
- data CardId = CardId {}
- 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.
Constructors
CustomerId | |
Fields
|
Instances
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.
optionalArgs :: [(a, Maybe b)] -> [(a, b)] Source
fromSeconds :: Integer -> UTCTime Source
Convert a time in seconds (from Stripe's servers) to UTCTime
. See
Data.Time.Format for more on working with UTCTime
.
toSeconds :: UTCTime -> Integer Source
Convert a UTCTime
back to an Integer suitable for use with Stripe's API.
textToByteString :: Text -> ByteString Source
showByteString :: Show a => a -> ByteString Source