Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the types generated from the schema Review
Synopsis
- data Review = Review {
- reviewBillingZip :: Maybe Text
- reviewCharge :: Maybe ReviewCharge'Variants
- reviewClosedReason :: Maybe ReviewClosedReason'
- reviewCreated :: Int
- reviewId :: Text
- reviewIpAddress :: Maybe Text
- reviewIpAddressLocation :: Maybe ReviewIpAddressLocation'
- reviewLivemode :: Bool
- reviewOpen :: Bool
- reviewOpenedReason :: ReviewOpenedReason'
- reviewPaymentIntent :: Maybe ReviewPaymentIntent'Variants
- reviewReason :: Text
- reviewSession :: Maybe ReviewSession'
- mkReview :: Int -> Text -> Bool -> Bool -> ReviewOpenedReason' -> Text -> Review
- data ReviewCharge'Variants
- data ReviewClosedReason'
- data ReviewIpAddressLocation' = ReviewIpAddressLocation' {}
- mkReviewIpAddressLocation' :: ReviewIpAddressLocation'
- data ReviewOpenedReason'
- data ReviewPaymentIntent'Variants
- data ReviewSession' = ReviewSession' {}
- mkReviewSession' :: ReviewSession'
Documentation
Defines the object schema located at components.schemas.review
in the specification.
Reviews can be used to supplement automated fraud detection with human expertise.
Review | |
|
Create a new Review
with all required fields.
data ReviewCharge'Variants Source #
Defines the oneOf schema located at components.schemas.review.properties.charge.anyOf
in the specification.
The charge associated with this review.
Instances
Eq ReviewCharge'Variants Source # | |
Defined in StripeAPI.Types.Review (==) :: ReviewCharge'Variants -> ReviewCharge'Variants -> Bool # (/=) :: ReviewCharge'Variants -> ReviewCharge'Variants -> Bool # | |
Show ReviewCharge'Variants Source # | |
Defined in StripeAPI.Types.Review showsPrec :: Int -> ReviewCharge'Variants -> ShowS # show :: ReviewCharge'Variants -> String # showList :: [ReviewCharge'Variants] -> ShowS # | |
ToJSON ReviewCharge'Variants Source # | |
Defined in StripeAPI.Types.Review toJSON :: ReviewCharge'Variants -> Value # toEncoding :: ReviewCharge'Variants -> Encoding # toJSONList :: [ReviewCharge'Variants] -> Value # toEncodingList :: [ReviewCharge'Variants] -> Encoding # | |
FromJSON ReviewCharge'Variants Source # | |
Defined in StripeAPI.Types.Review parseJSON :: Value -> Parser ReviewCharge'Variants # parseJSONList :: Value -> Parser [ReviewCharge'Variants] # |
data ReviewClosedReason' Source #
Defines the enum schema located at components.schemas.review.properties.closed_reason
in the specification.
The reason the review was closed, or null if it has not yet been closed. One of `approved`, `refunded`, `refunded_as_fraud`, or `disputed`.
ReviewClosedReason'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
ReviewClosedReason'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
ReviewClosedReason'EnumApproved | Represents the JSON value |
ReviewClosedReason'EnumDisputed | Represents the JSON value |
ReviewClosedReason'EnumRefunded | Represents the JSON value |
ReviewClosedReason'EnumRefundedAsFraud | Represents the JSON value |
Instances
Eq ReviewClosedReason' Source # | |
Defined in StripeAPI.Types.Review (==) :: ReviewClosedReason' -> ReviewClosedReason' -> Bool # (/=) :: ReviewClosedReason' -> ReviewClosedReason' -> Bool # | |
Show ReviewClosedReason' Source # | |
Defined in StripeAPI.Types.Review showsPrec :: Int -> ReviewClosedReason' -> ShowS # show :: ReviewClosedReason' -> String # showList :: [ReviewClosedReason'] -> ShowS # | |
ToJSON ReviewClosedReason' Source # | |
Defined in StripeAPI.Types.Review toJSON :: ReviewClosedReason' -> Value # toEncoding :: ReviewClosedReason' -> Encoding # toJSONList :: [ReviewClosedReason'] -> Value # toEncodingList :: [ReviewClosedReason'] -> Encoding # | |
FromJSON ReviewClosedReason' Source # | |
Defined in StripeAPI.Types.Review parseJSON :: Value -> Parser ReviewClosedReason' # parseJSONList :: Value -> Parser [ReviewClosedReason'] # |
data ReviewIpAddressLocation' Source #
Defines the object schema located at components.schemas.review.properties.ip_address_location.anyOf
in the specification.
Information related to the location of the payment. Note that this information is an approximation and attempts to locate the nearest population center - it should not be used to determine a specific address.
ReviewIpAddressLocation' | |
|
Instances
Eq ReviewIpAddressLocation' Source # | |
Defined in StripeAPI.Types.Review | |
Show ReviewIpAddressLocation' Source # | |
Defined in StripeAPI.Types.Review showsPrec :: Int -> ReviewIpAddressLocation' -> ShowS # show :: ReviewIpAddressLocation' -> String # showList :: [ReviewIpAddressLocation'] -> ShowS # | |
ToJSON ReviewIpAddressLocation' Source # | |
Defined in StripeAPI.Types.Review | |
FromJSON ReviewIpAddressLocation' Source # | |
Defined in StripeAPI.Types.Review |
mkReviewIpAddressLocation' :: ReviewIpAddressLocation' Source #
Create a new ReviewIpAddressLocation'
with all required fields.
data ReviewOpenedReason' Source #
Defines the enum schema located at components.schemas.review.properties.opened_reason
in the specification.
The reason the review was opened. One of `rule` or `manual`.
ReviewOpenedReason'Other Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
ReviewOpenedReason'Typed Text | This constructor can be used to send values to the server which are not present in the specification yet. |
ReviewOpenedReason'EnumManual | Represents the JSON value |
ReviewOpenedReason'EnumRule | Represents the JSON value |
Instances
Eq ReviewOpenedReason' Source # | |
Defined in StripeAPI.Types.Review (==) :: ReviewOpenedReason' -> ReviewOpenedReason' -> Bool # (/=) :: ReviewOpenedReason' -> ReviewOpenedReason' -> Bool # | |
Show ReviewOpenedReason' Source # | |
Defined in StripeAPI.Types.Review showsPrec :: Int -> ReviewOpenedReason' -> ShowS # show :: ReviewOpenedReason' -> String # showList :: [ReviewOpenedReason'] -> ShowS # | |
ToJSON ReviewOpenedReason' Source # | |
Defined in StripeAPI.Types.Review toJSON :: ReviewOpenedReason' -> Value # toEncoding :: ReviewOpenedReason' -> Encoding # toJSONList :: [ReviewOpenedReason'] -> Value # toEncodingList :: [ReviewOpenedReason'] -> Encoding # | |
FromJSON ReviewOpenedReason' Source # | |
Defined in StripeAPI.Types.Review parseJSON :: Value -> Parser ReviewOpenedReason' # parseJSONList :: Value -> Parser [ReviewOpenedReason'] # |
data ReviewPaymentIntent'Variants Source #
Defines the oneOf schema located at components.schemas.review.properties.payment_intent.anyOf
in the specification.
The PaymentIntent ID associated with this review, if one exists.
Instances
Eq ReviewPaymentIntent'Variants Source # | |
Defined in StripeAPI.Types.Review | |
Show ReviewPaymentIntent'Variants Source # | |
Defined in StripeAPI.Types.Review showsPrec :: Int -> ReviewPaymentIntent'Variants -> ShowS # show :: ReviewPaymentIntent'Variants -> String # showList :: [ReviewPaymentIntent'Variants] -> ShowS # | |
ToJSON ReviewPaymentIntent'Variants Source # | |
Defined in StripeAPI.Types.Review | |
FromJSON ReviewPaymentIntent'Variants Source # | |
Defined in StripeAPI.Types.Review |
data ReviewSession' Source #
Defines the object schema located at components.schemas.review.properties.session.anyOf
in the specification.
Information related to the browsing session of the user who initiated the payment.
ReviewSession' | |
|
Instances
Eq ReviewSession' Source # | |
Defined in StripeAPI.Types.Review (==) :: ReviewSession' -> ReviewSession' -> Bool # (/=) :: ReviewSession' -> ReviewSession' -> Bool # | |
Show ReviewSession' Source # | |
Defined in StripeAPI.Types.Review showsPrec :: Int -> ReviewSession' -> ShowS # show :: ReviewSession' -> String # showList :: [ReviewSession'] -> ShowS # | |
ToJSON ReviewSession' Source # | |
Defined in StripeAPI.Types.Review toJSON :: ReviewSession' -> Value # toEncoding :: ReviewSession' -> Encoding # toJSONList :: [ReviewSession'] -> Value # toEncodingList :: [ReviewSession'] -> Encoding # | |
FromJSON ReviewSession' Source # | |
Defined in StripeAPI.Types.Review parseJSON :: Value -> Parser ReviewSession' # parseJSONList :: Value -> Parser [ReviewSession'] # |
mkReviewSession' :: ReviewSession' Source #
Create a new ReviewSession'
with all required fields.