| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
StripeAPI.Types.Review
Description
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.
Constructors
| Review | |
Fields
| |
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.
Constructors
| ReviewCharge'Text Text | |
| ReviewCharge'Charge Charge |
Instances
| Eq ReviewCharge'Variants Source # | |
Defined in StripeAPI.Types.Review Methods (==) :: ReviewCharge'Variants -> ReviewCharge'Variants -> Bool # (/=) :: ReviewCharge'Variants -> ReviewCharge'Variants -> Bool # | |
| Show ReviewCharge'Variants Source # | |
Defined in StripeAPI.Types.Review Methods showsPrec :: Int -> ReviewCharge'Variants -> ShowS # show :: ReviewCharge'Variants -> String # showList :: [ReviewCharge'Variants] -> ShowS # | |
| ToJSON ReviewCharge'Variants Source # | |
Defined in StripeAPI.Types.Review Methods 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 Methods 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`.
Constructors
| 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 Methods (==) :: ReviewClosedReason' -> ReviewClosedReason' -> Bool # (/=) :: ReviewClosedReason' -> ReviewClosedReason' -> Bool # | |
| Show ReviewClosedReason' Source # | |
Defined in StripeAPI.Types.Review Methods showsPrec :: Int -> ReviewClosedReason' -> ShowS # show :: ReviewClosedReason' -> String # showList :: [ReviewClosedReason'] -> ShowS # | |
| ToJSON ReviewClosedReason' Source # | |
Defined in StripeAPI.Types.Review Methods toJSON :: ReviewClosedReason' -> Value # toEncoding :: ReviewClosedReason' -> Encoding # toJSONList :: [ReviewClosedReason'] -> Value # toEncodingList :: [ReviewClosedReason'] -> Encoding # | |
| FromJSON ReviewClosedReason' Source # | |
Defined in StripeAPI.Types.Review Methods 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.
Constructors
| ReviewIpAddressLocation' | |
Fields
| |
Instances
| Eq ReviewIpAddressLocation' Source # | |
Defined in StripeAPI.Types.Review Methods (==) :: ReviewIpAddressLocation' -> ReviewIpAddressLocation' -> Bool # (/=) :: ReviewIpAddressLocation' -> ReviewIpAddressLocation' -> Bool # | |
| Show ReviewIpAddressLocation' Source # | |
Defined in StripeAPI.Types.Review Methods showsPrec :: Int -> ReviewIpAddressLocation' -> ShowS # show :: ReviewIpAddressLocation' -> String # showList :: [ReviewIpAddressLocation'] -> ShowS # | |
| ToJSON ReviewIpAddressLocation' Source # | |
Defined in StripeAPI.Types.Review Methods toJSON :: ReviewIpAddressLocation' -> Value # toEncoding :: ReviewIpAddressLocation' -> Encoding # toJSONList :: [ReviewIpAddressLocation'] -> Value # | |
| FromJSON ReviewIpAddressLocation' Source # | |
Defined in StripeAPI.Types.Review Methods parseJSON :: Value -> Parser ReviewIpAddressLocation' # parseJSONList :: Value -> Parser [ReviewIpAddressLocation'] # | |
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`.
Constructors
| 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 Methods (==) :: ReviewOpenedReason' -> ReviewOpenedReason' -> Bool # (/=) :: ReviewOpenedReason' -> ReviewOpenedReason' -> Bool # | |
| Show ReviewOpenedReason' Source # | |
Defined in StripeAPI.Types.Review Methods showsPrec :: Int -> ReviewOpenedReason' -> ShowS # show :: ReviewOpenedReason' -> String # showList :: [ReviewOpenedReason'] -> ShowS # | |
| ToJSON ReviewOpenedReason' Source # | |
Defined in StripeAPI.Types.Review Methods toJSON :: ReviewOpenedReason' -> Value # toEncoding :: ReviewOpenedReason' -> Encoding # toJSONList :: [ReviewOpenedReason'] -> Value # toEncodingList :: [ReviewOpenedReason'] -> Encoding # | |
| FromJSON ReviewOpenedReason' Source # | |
Defined in StripeAPI.Types.Review Methods 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
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.
Constructors
| ReviewSession' | |
Fields
| |
Instances
| Eq ReviewSession' Source # | |
Defined in StripeAPI.Types.Review Methods (==) :: ReviewSession' -> ReviewSession' -> Bool # (/=) :: ReviewSession' -> ReviewSession' -> Bool # | |
| Show ReviewSession' Source # | |
Defined in StripeAPI.Types.Review Methods showsPrec :: Int -> ReviewSession' -> ShowS # show :: ReviewSession' -> String # showList :: [ReviewSession'] -> ShowS # | |
| ToJSON ReviewSession' Source # | |
Defined in StripeAPI.Types.Review Methods toJSON :: ReviewSession' -> Value # toEncoding :: ReviewSession' -> Encoding # toJSONList :: [ReviewSession'] -> Value # toEncodingList :: [ReviewSession'] -> Encoding # | |
| FromJSON ReviewSession' Source # | |
Defined in StripeAPI.Types.Review Methods parseJSON :: Value -> Parser ReviewSession' # parseJSONList :: Value -> Parser [ReviewSession'] # | |
mkReviewSession' :: ReviewSession' Source #
Create a new ReviewSession' with all required fields.