{-# LANGUAGE ExplicitForAll #-}
{-# LANGUAGE MultiWayIf #-}
-- CHANGE WITH CAUTION: This is a generated code file generated by https://github.com/Haskell-OpenAPI-Code-Generator/Haskell-OpenAPI-Client-Code-Generator.
{-# LANGUAGE OverloadedStrings #-}

-- | Contains the different functions to run the operation postPayoutsPayout
module StripeAPI.Operations.PostPayoutsPayout where

import qualified Control.Monad.Fail
import qualified Control.Monad.Trans.Reader
import qualified Data.Aeson
import qualified Data.Aeson as Data.Aeson.Encoding.Internal
import qualified Data.Aeson as Data.Aeson.Types
import qualified Data.Aeson as Data.Aeson.Types.FromJSON
import qualified Data.Aeson as Data.Aeson.Types.Internal
import qualified Data.Aeson as Data.Aeson.Types.ToJSON
import qualified Data.ByteString.Char8
import qualified Data.ByteString.Char8 as Data.ByteString.Internal
import qualified Data.Either
import qualified Data.Functor
import qualified Data.Scientific
import qualified Data.Text
import qualified Data.Text.Internal
import qualified Data.Time.Calendar as Data.Time.Calendar.Days
import qualified Data.Time.LocalTime as Data.Time.LocalTime.Internal.ZonedTime
import qualified Data.Vector
import qualified GHC.Base
import qualified GHC.Classes
import qualified GHC.Int
import qualified GHC.Show
import qualified GHC.Types
import qualified Network.HTTP.Client
import qualified Network.HTTP.Client as Network.HTTP.Client.Request
import qualified Network.HTTP.Client as Network.HTTP.Client.Types
import qualified Network.HTTP.Simple
import qualified Network.HTTP.Types
import qualified Network.HTTP.Types as Network.HTTP.Types.Status
import qualified Network.HTTP.Types as Network.HTTP.Types.URI
import qualified StripeAPI.Common
import StripeAPI.Types
import qualified Prelude as GHC.Integer.Type
import qualified Prelude as GHC.Maybe

-- | > POST /v1/payouts/{payout}
--
-- \<p>Updates the specified payout by setting the values of the parameters passed. Any parameters not provided will be left unchanged. This request accepts only the metadata as arguments.\<\/p>
postPayoutsPayout ::
  forall m.
  StripeAPI.Common.MonadHTTP m =>
  -- | payout | Constraints: Maximum length of 5000
  Data.Text.Internal.Text ->
  -- | The request body to send
  GHC.Maybe.Maybe PostPayoutsPayoutRequestBody ->
  -- | Monadic computation which returns the result of the operation
  StripeAPI.Common.StripeT m (Network.HTTP.Client.Types.Response PostPayoutsPayoutResponse)
postPayoutsPayout :: Text
-> Maybe PostPayoutsPayoutRequestBody
-> StripeT m (Response PostPayoutsPayoutResponse)
postPayoutsPayout
  Text
payout
  Maybe PostPayoutsPayoutRequestBody
body =
    (Response ByteString -> Response PostPayoutsPayoutResponse)
-> StripeT m (Response ByteString)
-> StripeT m (Response PostPayoutsPayoutResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
GHC.Base.fmap
      ( \Response ByteString
response_0 ->
          (ByteString -> PostPayoutsPayoutResponse)
-> Response ByteString -> Response PostPayoutsPayoutResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
GHC.Base.fmap
            ( (String -> PostPayoutsPayoutResponse)
-> (PostPayoutsPayoutResponse -> PostPayoutsPayoutResponse)
-> Either String PostPayoutsPayoutResponse
-> PostPayoutsPayoutResponse
forall a c b. (a -> c) -> (b -> c) -> Either a b -> c
Data.Either.either String -> PostPayoutsPayoutResponse
PostPayoutsPayoutResponseError PostPayoutsPayoutResponse -> PostPayoutsPayoutResponse
forall a. a -> a
GHC.Base.id
                (Either String PostPayoutsPayoutResponse
 -> PostPayoutsPayoutResponse)
-> (ByteString -> Either String PostPayoutsPayoutResponse)
-> ByteString
-> PostPayoutsPayoutResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
GHC.Base.. ( \Response ByteString
response ByteString
body ->
                               if
                                   | (\Status
status_1 -> Status -> Int
Network.HTTP.Types.Status.statusCode Status
status_1 Int -> Int -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Int
200) (Response ByteString -> Status
forall body. Response body -> Status
Network.HTTP.Client.Types.responseStatus Response ByteString
response) ->
                                     Payout -> PostPayoutsPayoutResponse
PostPayoutsPayoutResponse200
                                       (Payout -> PostPayoutsPayoutResponse)
-> Either String Payout -> Either String PostPayoutsPayoutResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> ( ByteString -> Either String Payout
forall a. FromJSON a => ByteString -> Either String a
Data.Aeson.eitherDecodeStrict ByteString
body ::
                                                            Data.Either.Either
                                                              GHC.Base.String
                                                              Payout
                                                        )
                                   | Bool -> Status -> Bool
forall a b. a -> b -> a
GHC.Base.const Bool
GHC.Types.True (Response ByteString -> Status
forall body. Response body -> Status
Network.HTTP.Client.Types.responseStatus Response ByteString
response) ->
                                     Error -> PostPayoutsPayoutResponse
PostPayoutsPayoutResponseDefault
                                       (Error -> PostPayoutsPayoutResponse)
-> Either String Error -> Either String PostPayoutsPayoutResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> ( ByteString -> Either String Error
forall a. FromJSON a => ByteString -> Either String a
Data.Aeson.eitherDecodeStrict ByteString
body ::
                                                            Data.Either.Either
                                                              GHC.Base.String
                                                              Error
                                                        )
                                   | Bool
GHC.Base.otherwise -> String -> Either String PostPayoutsPayoutResponse
forall a b. a -> Either a b
Data.Either.Left String
"Missing default response type"
                           )
                  Response ByteString
response_0
            )
            Response ByteString
response_0
      )
      (Text
-> Text
-> [QueryParameter]
-> Maybe PostPayoutsPayoutRequestBody
-> RequestBodyEncoding
-> StripeT m (Response ByteString)
forall (m :: * -> *) body.
(MonadHTTP m, ToJSON body) =>
Text
-> Text
-> [QueryParameter]
-> Maybe body
-> RequestBodyEncoding
-> StripeT m (Response ByteString)
StripeAPI.Common.doBodyCallWithConfigurationM (Text -> Text
Data.Text.toUpper (Text -> Text) -> Text -> Text
forall a b. (a -> b) -> a -> b
GHC.Base.$ String -> Text
Data.Text.pack String
"POST") (String -> Text
Data.Text.pack (String
"/v1/payouts/" String -> String -> String
forall a. [a] -> [a] -> [a]
GHC.Base.++ (ByteString -> String
Data.ByteString.Char8.unpack (Bool -> ByteString -> ByteString
Network.HTTP.Types.URI.urlEncode Bool
GHC.Types.True (ByteString -> ByteString) -> ByteString -> ByteString
forall a b. (a -> b) -> a -> b
GHC.Base.$ (String -> ByteString
Data.ByteString.Char8.pack (String -> ByteString) -> String -> ByteString
forall a b. (a -> b) -> a -> b
GHC.Base.$ Text -> String
forall a. StringifyModel a => a -> String
StripeAPI.Common.stringifyModel Text
payout)) String -> String -> String
forall a. [a] -> [a] -> [a]
GHC.Base.++ String
""))) [QueryParameter]
forall a. Monoid a => a
GHC.Base.mempty Maybe PostPayoutsPayoutRequestBody
body RequestBodyEncoding
StripeAPI.Common.RequestBodyEncodingFormData)

-- | Defines the object schema located at @paths.\/v1\/payouts\/{payout}.POST.requestBody.content.application\/x-www-form-urlencoded.schema@ in the specification.
data PostPayoutsPayoutRequestBody = PostPayoutsPayoutRequestBody
  { -- | expand: Specifies which fields in the response should be expanded.
    PostPayoutsPayoutRequestBody -> Maybe [Text]
postPayoutsPayoutRequestBodyExpand :: (GHC.Maybe.Maybe ([Data.Text.Internal.Text])),
    -- | metadata: Set of [key-value pairs](https:\/\/stripe.com\/docs\/api\/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to \`metadata\`.
    PostPayoutsPayoutRequestBody
-> Maybe PostPayoutsPayoutRequestBodyMetadata'Variants
postPayoutsPayoutRequestBodyMetadata :: (GHC.Maybe.Maybe PostPayoutsPayoutRequestBodyMetadata'Variants)
  }
  deriving
    ( Int -> PostPayoutsPayoutRequestBody -> String -> String
[PostPayoutsPayoutRequestBody] -> String -> String
PostPayoutsPayoutRequestBody -> String
(Int -> PostPayoutsPayoutRequestBody -> String -> String)
-> (PostPayoutsPayoutRequestBody -> String)
-> ([PostPayoutsPayoutRequestBody] -> String -> String)
-> Show PostPayoutsPayoutRequestBody
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostPayoutsPayoutRequestBody] -> String -> String
$cshowList :: [PostPayoutsPayoutRequestBody] -> String -> String
show :: PostPayoutsPayoutRequestBody -> String
$cshow :: PostPayoutsPayoutRequestBody -> String
showsPrec :: Int -> PostPayoutsPayoutRequestBody -> String -> String
$cshowsPrec :: Int -> PostPayoutsPayoutRequestBody -> String -> String
GHC.Show.Show,
      PostPayoutsPayoutRequestBody
-> PostPayoutsPayoutRequestBody -> Bool
(PostPayoutsPayoutRequestBody
 -> PostPayoutsPayoutRequestBody -> Bool)
-> (PostPayoutsPayoutRequestBody
    -> PostPayoutsPayoutRequestBody -> Bool)
-> Eq PostPayoutsPayoutRequestBody
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostPayoutsPayoutRequestBody
-> PostPayoutsPayoutRequestBody -> Bool
$c/= :: PostPayoutsPayoutRequestBody
-> PostPayoutsPayoutRequestBody -> Bool
== :: PostPayoutsPayoutRequestBody
-> PostPayoutsPayoutRequestBody -> Bool
$c== :: PostPayoutsPayoutRequestBody
-> PostPayoutsPayoutRequestBody -> Bool
GHC.Classes.Eq
    )

instance Data.Aeson.Types.ToJSON.ToJSON PostPayoutsPayoutRequestBody where
  toJSON :: PostPayoutsPayoutRequestBody -> Value
toJSON PostPayoutsPayoutRequestBody
obj = [Pair] -> Value
Data.Aeson.Types.Internal.object (Text
"expand" Text -> Maybe [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostPayoutsPayoutRequestBody -> Maybe [Text]
postPayoutsPayoutRequestBodyExpand PostPayoutsPayoutRequestBody
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"metadata" Text -> Maybe PostPayoutsPayoutRequestBodyMetadata'Variants -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostPayoutsPayoutRequestBody
-> Maybe PostPayoutsPayoutRequestBodyMetadata'Variants
postPayoutsPayoutRequestBodyMetadata PostPayoutsPayoutRequestBody
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
  toEncoding :: PostPayoutsPayoutRequestBody -> Encoding
toEncoding PostPayoutsPayoutRequestBody
obj = Series -> Encoding
Data.Aeson.Encoding.Internal.pairs ((Text
"expand" Text -> Maybe [Text] -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostPayoutsPayoutRequestBody -> Maybe [Text]
postPayoutsPayoutRequestBodyExpand PostPayoutsPayoutRequestBody
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> (Text
"metadata" Text
-> Maybe PostPayoutsPayoutRequestBodyMetadata'Variants -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostPayoutsPayoutRequestBody
-> Maybe PostPayoutsPayoutRequestBodyMetadata'Variants
postPayoutsPayoutRequestBodyMetadata PostPayoutsPayoutRequestBody
obj))

instance Data.Aeson.Types.FromJSON.FromJSON PostPayoutsPayoutRequestBody where
  parseJSON :: Value -> Parser PostPayoutsPayoutRequestBody
parseJSON = String
-> (Object -> Parser PostPayoutsPayoutRequestBody)
-> Value
-> Parser PostPayoutsPayoutRequestBody
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"PostPayoutsPayoutRequestBody" (\Object
obj -> ((Maybe [Text]
 -> Maybe PostPayoutsPayoutRequestBodyMetadata'Variants
 -> PostPayoutsPayoutRequestBody)
-> Parser
     (Maybe [Text]
      -> Maybe PostPayoutsPayoutRequestBodyMetadata'Variants
      -> PostPayoutsPayoutRequestBody)
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe [Text]
-> Maybe PostPayoutsPayoutRequestBodyMetadata'Variants
-> PostPayoutsPayoutRequestBody
PostPayoutsPayoutRequestBody Parser
  (Maybe [Text]
   -> Maybe PostPayoutsPayoutRequestBodyMetadata'Variants
   -> PostPayoutsPayoutRequestBody)
-> Parser (Maybe [Text])
-> Parser
     (Maybe PostPayoutsPayoutRequestBodyMetadata'Variants
      -> PostPayoutsPayoutRequestBody)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser (Maybe [Text])
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"expand")) Parser
  (Maybe PostPayoutsPayoutRequestBodyMetadata'Variants
   -> PostPayoutsPayoutRequestBody)
-> Parser (Maybe PostPayoutsPayoutRequestBodyMetadata'Variants)
-> Parser PostPayoutsPayoutRequestBody
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text
-> Parser (Maybe PostPayoutsPayoutRequestBodyMetadata'Variants)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Data.Aeson.Types.FromJSON..:? Text
"metadata"))

-- | Create a new 'PostPayoutsPayoutRequestBody' with all required fields.
mkPostPayoutsPayoutRequestBody :: PostPayoutsPayoutRequestBody
mkPostPayoutsPayoutRequestBody :: PostPayoutsPayoutRequestBody
mkPostPayoutsPayoutRequestBody =
  PostPayoutsPayoutRequestBody :: Maybe [Text]
-> Maybe PostPayoutsPayoutRequestBodyMetadata'Variants
-> PostPayoutsPayoutRequestBody
PostPayoutsPayoutRequestBody
    { postPayoutsPayoutRequestBodyExpand :: Maybe [Text]
postPayoutsPayoutRequestBodyExpand = Maybe [Text]
forall a. Maybe a
GHC.Maybe.Nothing,
      postPayoutsPayoutRequestBodyMetadata :: Maybe PostPayoutsPayoutRequestBodyMetadata'Variants
postPayoutsPayoutRequestBodyMetadata = Maybe PostPayoutsPayoutRequestBodyMetadata'Variants
forall a. Maybe a
GHC.Maybe.Nothing
    }

-- | Defines the oneOf schema located at @paths.\/v1\/payouts\/{payout}.POST.requestBody.content.application\/x-www-form-urlencoded.schema.properties.metadata.anyOf@ in the specification.
--
-- Set of [key-value pairs](https:\/\/stripe.com\/docs\/api\/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to \`metadata\`.
data PostPayoutsPayoutRequestBodyMetadata'Variants
  = -- | Represents the JSON value @""@
    PostPayoutsPayoutRequestBodyMetadata'EmptyString
  | PostPayoutsPayoutRequestBodyMetadata'Object Data.Aeson.Types.Internal.Object
  deriving (Int
-> PostPayoutsPayoutRequestBodyMetadata'Variants
-> String
-> String
[PostPayoutsPayoutRequestBodyMetadata'Variants] -> String -> String
PostPayoutsPayoutRequestBodyMetadata'Variants -> String
(Int
 -> PostPayoutsPayoutRequestBodyMetadata'Variants
 -> String
 -> String)
-> (PostPayoutsPayoutRequestBodyMetadata'Variants -> String)
-> ([PostPayoutsPayoutRequestBodyMetadata'Variants]
    -> String -> String)
-> Show PostPayoutsPayoutRequestBodyMetadata'Variants
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostPayoutsPayoutRequestBodyMetadata'Variants] -> String -> String
$cshowList :: [PostPayoutsPayoutRequestBodyMetadata'Variants] -> String -> String
show :: PostPayoutsPayoutRequestBodyMetadata'Variants -> String
$cshow :: PostPayoutsPayoutRequestBodyMetadata'Variants -> String
showsPrec :: Int
-> PostPayoutsPayoutRequestBodyMetadata'Variants
-> String
-> String
$cshowsPrec :: Int
-> PostPayoutsPayoutRequestBodyMetadata'Variants
-> String
-> String
GHC.Show.Show, PostPayoutsPayoutRequestBodyMetadata'Variants
-> PostPayoutsPayoutRequestBodyMetadata'Variants -> Bool
(PostPayoutsPayoutRequestBodyMetadata'Variants
 -> PostPayoutsPayoutRequestBodyMetadata'Variants -> Bool)
-> (PostPayoutsPayoutRequestBodyMetadata'Variants
    -> PostPayoutsPayoutRequestBodyMetadata'Variants -> Bool)
-> Eq PostPayoutsPayoutRequestBodyMetadata'Variants
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostPayoutsPayoutRequestBodyMetadata'Variants
-> PostPayoutsPayoutRequestBodyMetadata'Variants -> Bool
$c/= :: PostPayoutsPayoutRequestBodyMetadata'Variants
-> PostPayoutsPayoutRequestBodyMetadata'Variants -> Bool
== :: PostPayoutsPayoutRequestBodyMetadata'Variants
-> PostPayoutsPayoutRequestBodyMetadata'Variants -> Bool
$c== :: PostPayoutsPayoutRequestBodyMetadata'Variants
-> PostPayoutsPayoutRequestBodyMetadata'Variants -> Bool
GHC.Classes.Eq)

instance Data.Aeson.Types.ToJSON.ToJSON PostPayoutsPayoutRequestBodyMetadata'Variants where
  toJSON :: PostPayoutsPayoutRequestBodyMetadata'Variants -> Value
toJSON (PostPayoutsPayoutRequestBodyMetadata'Object Object
a) = Object -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Object
a
  toJSON (PostPayoutsPayoutRequestBodyMetadata'Variants
PostPayoutsPayoutRequestBodyMetadata'EmptyString) = Value
""

instance Data.Aeson.Types.FromJSON.FromJSON PostPayoutsPayoutRequestBodyMetadata'Variants where
  parseJSON :: Value -> Parser PostPayoutsPayoutRequestBodyMetadata'Variants
parseJSON Value
val =
    if
        | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"" -> PostPayoutsPayoutRequestBodyMetadata'Variants
-> Parser PostPayoutsPayoutRequestBodyMetadata'Variants
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure PostPayoutsPayoutRequestBodyMetadata'Variants
PostPayoutsPayoutRequestBodyMetadata'EmptyString
        | Bool
GHC.Base.otherwise -> case (Object -> PostPayoutsPayoutRequestBodyMetadata'Variants
PostPayoutsPayoutRequestBodyMetadata'Object (Object -> PostPayoutsPayoutRequestBodyMetadata'Variants)
-> Result Object
-> Result PostPayoutsPayoutRequestBodyMetadata'Variants
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> Value -> Result Object
forall a. FromJSON a => Value -> Result a
Data.Aeson.Types.FromJSON.fromJSON Value
val) Result PostPayoutsPayoutRequestBodyMetadata'Variants
-> Result PostPayoutsPayoutRequestBodyMetadata'Variants
-> Result PostPayoutsPayoutRequestBodyMetadata'Variants
forall (f :: * -> *) a. Alternative f => f a -> f a -> f a
GHC.Base.<|> String -> Result PostPayoutsPayoutRequestBodyMetadata'Variants
forall a. String -> Result a
Data.Aeson.Types.Internal.Error String
"No variant matched" of
          Data.Aeson.Types.Internal.Success PostPayoutsPayoutRequestBodyMetadata'Variants
a -> PostPayoutsPayoutRequestBodyMetadata'Variants
-> Parser PostPayoutsPayoutRequestBodyMetadata'Variants
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure PostPayoutsPayoutRequestBodyMetadata'Variants
a
          Data.Aeson.Types.Internal.Error String
a -> String -> Parser PostPayoutsPayoutRequestBodyMetadata'Variants
forall (m :: * -> *) a. MonadFail m => String -> m a
Control.Monad.Fail.fail String
a

-- | Represents a response of the operation 'postPayoutsPayout'.
--
-- The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), 'PostPayoutsPayoutResponseError' is used.
data PostPayoutsPayoutResponse
  = -- | Means either no matching case available or a parse error
    PostPayoutsPayoutResponseError GHC.Base.String
  | -- | Successful response.
    PostPayoutsPayoutResponse200 Payout
  | -- | Error response.
    PostPayoutsPayoutResponseDefault Error
  deriving (Int -> PostPayoutsPayoutResponse -> String -> String
[PostPayoutsPayoutResponse] -> String -> String
PostPayoutsPayoutResponse -> String
(Int -> PostPayoutsPayoutResponse -> String -> String)
-> (PostPayoutsPayoutResponse -> String)
-> ([PostPayoutsPayoutResponse] -> String -> String)
-> Show PostPayoutsPayoutResponse
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostPayoutsPayoutResponse] -> String -> String
$cshowList :: [PostPayoutsPayoutResponse] -> String -> String
show :: PostPayoutsPayoutResponse -> String
$cshow :: PostPayoutsPayoutResponse -> String
showsPrec :: Int -> PostPayoutsPayoutResponse -> String -> String
$cshowsPrec :: Int -> PostPayoutsPayoutResponse -> String -> String
GHC.Show.Show, PostPayoutsPayoutResponse -> PostPayoutsPayoutResponse -> Bool
(PostPayoutsPayoutResponse -> PostPayoutsPayoutResponse -> Bool)
-> (PostPayoutsPayoutResponse -> PostPayoutsPayoutResponse -> Bool)
-> Eq PostPayoutsPayoutResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostPayoutsPayoutResponse -> PostPayoutsPayoutResponse -> Bool
$c/= :: PostPayoutsPayoutResponse -> PostPayoutsPayoutResponse -> Bool
== :: PostPayoutsPayoutResponse -> PostPayoutsPayoutResponse -> Bool
$c== :: PostPayoutsPayoutResponse -> PostPayoutsPayoutResponse -> Bool
GHC.Classes.Eq)