{-# 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 postCustomersCustomerTaxIds
module StripeAPI.Operations.PostCustomersCustomerTaxIds 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/customers/{customer}/tax_ids
--
-- \<p>Creates a new \<code>TaxID\<\/code> object for a customer.\<\/p>
postCustomersCustomerTaxIds ::
  forall m.
  StripeAPI.Common.MonadHTTP m =>
  -- | customer | Constraints: Maximum length of 5000
  Data.Text.Internal.Text ->
  -- | The request body to send
  PostCustomersCustomerTaxIdsRequestBody ->
  -- | Monadic computation which returns the result of the operation
  StripeAPI.Common.ClientT m (Network.HTTP.Client.Types.Response PostCustomersCustomerTaxIdsResponse)
postCustomersCustomerTaxIds :: Text
-> PostCustomersCustomerTaxIdsRequestBody
-> ClientT m (Response PostCustomersCustomerTaxIdsResponse)
postCustomersCustomerTaxIds
  Text
customer
  PostCustomersCustomerTaxIdsRequestBody
body =
    (Response ByteString
 -> Response PostCustomersCustomerTaxIdsResponse)
-> ClientT m (Response ByteString)
-> ClientT m (Response PostCustomersCustomerTaxIdsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
GHC.Base.fmap
      ( \Response ByteString
response_0 ->
          (ByteString -> PostCustomersCustomerTaxIdsResponse)
-> Response ByteString
-> Response PostCustomersCustomerTaxIdsResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
GHC.Base.fmap
            ( (String -> PostCustomersCustomerTaxIdsResponse)
-> (PostCustomersCustomerTaxIdsResponse
    -> PostCustomersCustomerTaxIdsResponse)
-> Either String PostCustomersCustomerTaxIdsResponse
-> PostCustomersCustomerTaxIdsResponse
forall a c b. (a -> c) -> (b -> c) -> Either a b -> c
Data.Either.either String -> PostCustomersCustomerTaxIdsResponse
PostCustomersCustomerTaxIdsResponseError PostCustomersCustomerTaxIdsResponse
-> PostCustomersCustomerTaxIdsResponse
forall a. a -> a
GHC.Base.id
                (Either String PostCustomersCustomerTaxIdsResponse
 -> PostCustomersCustomerTaxIdsResponse)
-> (ByteString
    -> Either String PostCustomersCustomerTaxIdsResponse)
-> ByteString
-> PostCustomersCustomerTaxIdsResponse
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) ->
                                     TaxId -> PostCustomersCustomerTaxIdsResponse
PostCustomersCustomerTaxIdsResponse200
                                       (TaxId -> PostCustomersCustomerTaxIdsResponse)
-> Either String TaxId
-> Either String PostCustomersCustomerTaxIdsResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Data.Functor.<$> ( ByteString -> Either String TaxId
forall a. FromJSON a => ByteString -> Either String a
Data.Aeson.eitherDecodeStrict ByteString
body ::
                                                            Data.Either.Either
                                                              GHC.Base.String
                                                              TaxId
                                                        )
                                   | 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 -> PostCustomersCustomerTaxIdsResponse
PostCustomersCustomerTaxIdsResponseDefault
                                       (Error -> PostCustomersCustomerTaxIdsResponse)
-> Either String Error
-> Either String PostCustomersCustomerTaxIdsResponse
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 PostCustomersCustomerTaxIdsResponse
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 PostCustomersCustomerTaxIdsRequestBody
-> RequestBodyEncoding
-> ClientT m (Response ByteString)
forall (m :: * -> *) body.
(MonadHTTP m, ToJSON body) =>
Text
-> Text
-> [QueryParameter]
-> Maybe body
-> RequestBodyEncoding
-> ClientT 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/customers/" 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
customer)) String -> String -> String
forall a. [a] -> [a] -> [a]
GHC.Base.++ String
"/tax_ids"))) [QueryParameter]
forall a. Monoid a => a
GHC.Base.mempty (PostCustomersCustomerTaxIdsRequestBody
-> Maybe PostCustomersCustomerTaxIdsRequestBody
forall a. a -> Maybe a
GHC.Maybe.Just PostCustomersCustomerTaxIdsRequestBody
body) RequestBodyEncoding
StripeAPI.Common.RequestBodyEncodingFormData)

-- | Defines the object schema located at @paths.\/v1\/customers\/{customer}\/tax_ids.POST.requestBody.content.application\/x-www-form-urlencoded.schema@ in the specification.
data PostCustomersCustomerTaxIdsRequestBody = PostCustomersCustomerTaxIdsRequestBody
  { -- | expand: Specifies which fields in the response should be expanded.
    PostCustomersCustomerTaxIdsRequestBody -> Maybe [Text]
postCustomersCustomerTaxIdsRequestBodyExpand :: (GHC.Maybe.Maybe ([Data.Text.Internal.Text])),
    -- | type: Type of the tax ID, one of \`ae_trn\`, \`au_abn\`, \`br_cnpj\`, \`br_cpf\`, \`ca_bn\`, \`ca_gst_hst\`, \`ca_pst_bc\`, \`ca_pst_mb\`, \`ca_pst_sk\`, \`ca_qst\`, \`ch_vat\`, \`cl_tin\`, \`es_cif\`, \`eu_vat\`, \`gb_vat\`, \`hk_br\`, \`id_npwp\`, \`il_vat\`, \`in_gst\`, \`jp_cn\`, \`jp_rn\`, \`kr_brn\`, \`li_uid\`, \`mx_rfc\`, \`my_frp\`, \`my_itn\`, \`my_sst\`, \`no_vat\`, \`nz_gst\`, \`ru_inn\`, \`ru_kpp\`, \`sa_vat\`, \`sg_gst\`, \`sg_uen\`, \`th_vat\`, \`tw_vat\`, \`us_ein\`, or \`za_vat\`
    --
    -- Constraints:
    --
    -- * Maximum length of 5000
    PostCustomersCustomerTaxIdsRequestBody
-> PostCustomersCustomerTaxIdsRequestBodyType'
postCustomersCustomerTaxIdsRequestBodyType :: PostCustomersCustomerTaxIdsRequestBodyType',
    -- | value: Value of the tax ID.
    PostCustomersCustomerTaxIdsRequestBody -> Text
postCustomersCustomerTaxIdsRequestBodyValue :: Data.Text.Internal.Text
  }
  deriving
    ( Int -> PostCustomersCustomerTaxIdsRequestBody -> String -> String
[PostCustomersCustomerTaxIdsRequestBody] -> String -> String
PostCustomersCustomerTaxIdsRequestBody -> String
(Int -> PostCustomersCustomerTaxIdsRequestBody -> String -> String)
-> (PostCustomersCustomerTaxIdsRequestBody -> String)
-> ([PostCustomersCustomerTaxIdsRequestBody] -> String -> String)
-> Show PostCustomersCustomerTaxIdsRequestBody
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostCustomersCustomerTaxIdsRequestBody] -> String -> String
$cshowList :: [PostCustomersCustomerTaxIdsRequestBody] -> String -> String
show :: PostCustomersCustomerTaxIdsRequestBody -> String
$cshow :: PostCustomersCustomerTaxIdsRequestBody -> String
showsPrec :: Int -> PostCustomersCustomerTaxIdsRequestBody -> String -> String
$cshowsPrec :: Int -> PostCustomersCustomerTaxIdsRequestBody -> String -> String
GHC.Show.Show,
      PostCustomersCustomerTaxIdsRequestBody
-> PostCustomersCustomerTaxIdsRequestBody -> Bool
(PostCustomersCustomerTaxIdsRequestBody
 -> PostCustomersCustomerTaxIdsRequestBody -> Bool)
-> (PostCustomersCustomerTaxIdsRequestBody
    -> PostCustomersCustomerTaxIdsRequestBody -> Bool)
-> Eq PostCustomersCustomerTaxIdsRequestBody
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostCustomersCustomerTaxIdsRequestBody
-> PostCustomersCustomerTaxIdsRequestBody -> Bool
$c/= :: PostCustomersCustomerTaxIdsRequestBody
-> PostCustomersCustomerTaxIdsRequestBody -> Bool
== :: PostCustomersCustomerTaxIdsRequestBody
-> PostCustomersCustomerTaxIdsRequestBody -> Bool
$c== :: PostCustomersCustomerTaxIdsRequestBody
-> PostCustomersCustomerTaxIdsRequestBody -> Bool
GHC.Classes.Eq
    )

instance Data.Aeson.Types.ToJSON.ToJSON PostCustomersCustomerTaxIdsRequestBody where
  toJSON :: PostCustomersCustomerTaxIdsRequestBody -> Value
toJSON PostCustomersCustomerTaxIdsRequestBody
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..= PostCustomersCustomerTaxIdsRequestBody -> Maybe [Text]
postCustomersCustomerTaxIdsRequestBodyExpand PostCustomersCustomerTaxIdsRequestBody
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"type" Text -> PostCustomersCustomerTaxIdsRequestBodyType' -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostCustomersCustomerTaxIdsRequestBody
-> PostCustomersCustomerTaxIdsRequestBodyType'
postCustomersCustomerTaxIdsRequestBodyType PostCustomersCustomerTaxIdsRequestBody
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: Text
"value" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostCustomersCustomerTaxIdsRequestBody -> Text
postCustomersCustomerTaxIdsRequestBodyValue PostCustomersCustomerTaxIdsRequestBody
obj Pair -> [Pair] -> [Pair]
forall a. a -> [a] -> [a]
: [Pair]
forall a. Monoid a => a
GHC.Base.mempty)
  toEncoding :: PostCustomersCustomerTaxIdsRequestBody -> Encoding
toEncoding PostCustomersCustomerTaxIdsRequestBody
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..= PostCustomersCustomerTaxIdsRequestBody -> Maybe [Text]
postCustomersCustomerTaxIdsRequestBodyExpand PostCustomersCustomerTaxIdsRequestBody
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> ((Text
"type" Text -> PostCustomersCustomerTaxIdsRequestBodyType' -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostCustomersCustomerTaxIdsRequestBody
-> PostCustomersCustomerTaxIdsRequestBodyType'
postCustomersCustomerTaxIdsRequestBodyType PostCustomersCustomerTaxIdsRequestBody
obj) Series -> Series -> Series
forall a. Semigroup a => a -> a -> a
GHC.Base.<> (Text
"value" Text -> Text -> Series
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Data.Aeson.Types.ToJSON..= PostCustomersCustomerTaxIdsRequestBody -> Text
postCustomersCustomerTaxIdsRequestBodyValue PostCustomersCustomerTaxIdsRequestBody
obj)))

instance Data.Aeson.Types.FromJSON.FromJSON PostCustomersCustomerTaxIdsRequestBody where
  parseJSON :: Value -> Parser PostCustomersCustomerTaxIdsRequestBody
parseJSON = String
-> (Object -> Parser PostCustomersCustomerTaxIdsRequestBody)
-> Value
-> Parser PostCustomersCustomerTaxIdsRequestBody
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.Aeson.Types.FromJSON.withObject String
"PostCustomersCustomerTaxIdsRequestBody" (\Object
obj -> (((Maybe [Text]
 -> PostCustomersCustomerTaxIdsRequestBodyType'
 -> Text
 -> PostCustomersCustomerTaxIdsRequestBody)
-> Parser
     (Maybe [Text]
      -> PostCustomersCustomerTaxIdsRequestBodyType'
      -> Text
      -> PostCustomersCustomerTaxIdsRequestBody)
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure Maybe [Text]
-> PostCustomersCustomerTaxIdsRequestBodyType'
-> Text
-> PostCustomersCustomerTaxIdsRequestBody
PostCustomersCustomerTaxIdsRequestBody Parser
  (Maybe [Text]
   -> PostCustomersCustomerTaxIdsRequestBodyType'
   -> Text
   -> PostCustomersCustomerTaxIdsRequestBody)
-> Parser (Maybe [Text])
-> Parser
     (PostCustomersCustomerTaxIdsRequestBodyType'
      -> Text -> PostCustomersCustomerTaxIdsRequestBody)
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
  (PostCustomersCustomerTaxIdsRequestBodyType'
   -> Text -> PostCustomersCustomerTaxIdsRequestBody)
-> Parser PostCustomersCustomerTaxIdsRequestBodyType'
-> Parser (Text -> PostCustomersCustomerTaxIdsRequestBody)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object
-> Text -> Parser PostCustomersCustomerTaxIdsRequestBodyType'
forall a. FromJSON a => Object -> Text -> Parser a
Data.Aeson.Types.FromJSON..: Text
"type")) Parser (Text -> PostCustomersCustomerTaxIdsRequestBody)
-> Parser Text -> Parser PostCustomersCustomerTaxIdsRequestBody
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
GHC.Base.<*> (Object
obj Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Data.Aeson.Types.FromJSON..: Text
"value"))

-- | Create a new 'PostCustomersCustomerTaxIdsRequestBody' with all required fields.
mkPostCustomersCustomerTaxIdsRequestBody ::
  -- | 'postCustomersCustomerTaxIdsRequestBodyType'
  PostCustomersCustomerTaxIdsRequestBodyType' ->
  -- | 'postCustomersCustomerTaxIdsRequestBodyValue'
  Data.Text.Internal.Text ->
  PostCustomersCustomerTaxIdsRequestBody
mkPostCustomersCustomerTaxIdsRequestBody :: PostCustomersCustomerTaxIdsRequestBodyType'
-> Text -> PostCustomersCustomerTaxIdsRequestBody
mkPostCustomersCustomerTaxIdsRequestBody PostCustomersCustomerTaxIdsRequestBodyType'
postCustomersCustomerTaxIdsRequestBodyType Text
postCustomersCustomerTaxIdsRequestBodyValue =
  PostCustomersCustomerTaxIdsRequestBody :: Maybe [Text]
-> PostCustomersCustomerTaxIdsRequestBodyType'
-> Text
-> PostCustomersCustomerTaxIdsRequestBody
PostCustomersCustomerTaxIdsRequestBody
    { postCustomersCustomerTaxIdsRequestBodyExpand :: Maybe [Text]
postCustomersCustomerTaxIdsRequestBodyExpand = Maybe [Text]
forall a. Maybe a
GHC.Maybe.Nothing,
      postCustomersCustomerTaxIdsRequestBodyType :: PostCustomersCustomerTaxIdsRequestBodyType'
postCustomersCustomerTaxIdsRequestBodyType = PostCustomersCustomerTaxIdsRequestBodyType'
postCustomersCustomerTaxIdsRequestBodyType,
      postCustomersCustomerTaxIdsRequestBodyValue :: Text
postCustomersCustomerTaxIdsRequestBodyValue = Text
postCustomersCustomerTaxIdsRequestBodyValue
    }

-- | Defines the enum schema located at @paths.\/v1\/customers\/{customer}\/tax_ids.POST.requestBody.content.application\/x-www-form-urlencoded.schema.properties.type@ in the specification.
--
-- Type of the tax ID, one of \`ae_trn\`, \`au_abn\`, \`br_cnpj\`, \`br_cpf\`, \`ca_bn\`, \`ca_gst_hst\`, \`ca_pst_bc\`, \`ca_pst_mb\`, \`ca_pst_sk\`, \`ca_qst\`, \`ch_vat\`, \`cl_tin\`, \`es_cif\`, \`eu_vat\`, \`gb_vat\`, \`hk_br\`, \`id_npwp\`, \`il_vat\`, \`in_gst\`, \`jp_cn\`, \`jp_rn\`, \`kr_brn\`, \`li_uid\`, \`mx_rfc\`, \`my_frp\`, \`my_itn\`, \`my_sst\`, \`no_vat\`, \`nz_gst\`, \`ru_inn\`, \`ru_kpp\`, \`sa_vat\`, \`sg_gst\`, \`sg_uen\`, \`th_vat\`, \`tw_vat\`, \`us_ein\`, or \`za_vat\`
data PostCustomersCustomerTaxIdsRequestBodyType'
  = -- | This case is used if the value encountered during decoding does not match any of the provided cases in the specification.
    PostCustomersCustomerTaxIdsRequestBodyType'Other Data.Aeson.Types.Internal.Value
  | -- | This constructor can be used to send values to the server which are not present in the specification yet.
    PostCustomersCustomerTaxIdsRequestBodyType'Typed Data.Text.Internal.Text
  | -- | Represents the JSON value @"ae_trn"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumAeTrn
  | -- | Represents the JSON value @"au_abn"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumAuAbn
  | -- | Represents the JSON value @"br_cnpj"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumBrCnpj
  | -- | Represents the JSON value @"br_cpf"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumBrCpf
  | -- | Represents the JSON value @"ca_bn"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumCaBn
  | -- | Represents the JSON value @"ca_gst_hst"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumCaGstHst
  | -- | Represents the JSON value @"ca_pst_bc"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumCaPstBc
  | -- | Represents the JSON value @"ca_pst_mb"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumCaPstMb
  | -- | Represents the JSON value @"ca_pst_sk"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumCaPstSk
  | -- | Represents the JSON value @"ca_qst"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumCaQst
  | -- | Represents the JSON value @"ch_vat"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumChVat
  | -- | Represents the JSON value @"cl_tin"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumClTin
  | -- | Represents the JSON value @"es_cif"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumEsCif
  | -- | Represents the JSON value @"eu_vat"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumEuVat
  | -- | Represents the JSON value @"gb_vat"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumGbVat
  | -- | Represents the JSON value @"hk_br"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumHkBr
  | -- | Represents the JSON value @"id_npwp"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumIdNpwp
  | -- | Represents the JSON value @"il_vat"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumIlVat
  | -- | Represents the JSON value @"in_gst"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumInGst
  | -- | Represents the JSON value @"jp_cn"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumJpCn
  | -- | Represents the JSON value @"jp_rn"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumJpRn
  | -- | Represents the JSON value @"kr_brn"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumKrBrn
  | -- | Represents the JSON value @"li_uid"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumLiUid
  | -- | Represents the JSON value @"mx_rfc"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumMxRfc
  | -- | Represents the JSON value @"my_frp"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumMyFrp
  | -- | Represents the JSON value @"my_itn"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumMyItn
  | -- | Represents the JSON value @"my_sst"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumMySst
  | -- | Represents the JSON value @"no_vat"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumNoVat
  | -- | Represents the JSON value @"nz_gst"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumNzGst
  | -- | Represents the JSON value @"ru_inn"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumRuInn
  | -- | Represents the JSON value @"ru_kpp"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumRuKpp
  | -- | Represents the JSON value @"sa_vat"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumSaVat
  | -- | Represents the JSON value @"sg_gst"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumSgGst
  | -- | Represents the JSON value @"sg_uen"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumSgUen
  | -- | Represents the JSON value @"th_vat"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumThVat
  | -- | Represents the JSON value @"tw_vat"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumTwVat
  | -- | Represents the JSON value @"us_ein"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumUsEin
  | -- | Represents the JSON value @"za_vat"@
    PostCustomersCustomerTaxIdsRequestBodyType'EnumZaVat
  deriving (Int
-> PostCustomersCustomerTaxIdsRequestBodyType' -> String -> String
[PostCustomersCustomerTaxIdsRequestBodyType'] -> String -> String
PostCustomersCustomerTaxIdsRequestBodyType' -> String
(Int
 -> PostCustomersCustomerTaxIdsRequestBodyType' -> String -> String)
-> (PostCustomersCustomerTaxIdsRequestBodyType' -> String)
-> ([PostCustomersCustomerTaxIdsRequestBodyType']
    -> String -> String)
-> Show PostCustomersCustomerTaxIdsRequestBodyType'
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostCustomersCustomerTaxIdsRequestBodyType'] -> String -> String
$cshowList :: [PostCustomersCustomerTaxIdsRequestBodyType'] -> String -> String
show :: PostCustomersCustomerTaxIdsRequestBodyType' -> String
$cshow :: PostCustomersCustomerTaxIdsRequestBodyType' -> String
showsPrec :: Int
-> PostCustomersCustomerTaxIdsRequestBodyType' -> String -> String
$cshowsPrec :: Int
-> PostCustomersCustomerTaxIdsRequestBodyType' -> String -> String
GHC.Show.Show, PostCustomersCustomerTaxIdsRequestBodyType'
-> PostCustomersCustomerTaxIdsRequestBodyType' -> Bool
(PostCustomersCustomerTaxIdsRequestBodyType'
 -> PostCustomersCustomerTaxIdsRequestBodyType' -> Bool)
-> (PostCustomersCustomerTaxIdsRequestBodyType'
    -> PostCustomersCustomerTaxIdsRequestBodyType' -> Bool)
-> Eq PostCustomersCustomerTaxIdsRequestBodyType'
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostCustomersCustomerTaxIdsRequestBodyType'
-> PostCustomersCustomerTaxIdsRequestBodyType' -> Bool
$c/= :: PostCustomersCustomerTaxIdsRequestBodyType'
-> PostCustomersCustomerTaxIdsRequestBodyType' -> Bool
== :: PostCustomersCustomerTaxIdsRequestBodyType'
-> PostCustomersCustomerTaxIdsRequestBodyType' -> Bool
$c== :: PostCustomersCustomerTaxIdsRequestBodyType'
-> PostCustomersCustomerTaxIdsRequestBodyType' -> Bool
GHC.Classes.Eq)

instance Data.Aeson.Types.ToJSON.ToJSON PostCustomersCustomerTaxIdsRequestBodyType' where
  toJSON :: PostCustomersCustomerTaxIdsRequestBodyType' -> Value
toJSON (PostCustomersCustomerTaxIdsRequestBodyType'Other Value
val) = Value
val
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'Typed Text
val) = Text -> Value
forall a. ToJSON a => a -> Value
Data.Aeson.Types.ToJSON.toJSON Text
val
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumAeTrn) = Value
"ae_trn"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumAuAbn) = Value
"au_abn"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumBrCnpj) = Value
"br_cnpj"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumBrCpf) = Value
"br_cpf"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumCaBn) = Value
"ca_bn"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumCaGstHst) = Value
"ca_gst_hst"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumCaPstBc) = Value
"ca_pst_bc"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumCaPstMb) = Value
"ca_pst_mb"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumCaPstSk) = Value
"ca_pst_sk"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumCaQst) = Value
"ca_qst"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumChVat) = Value
"ch_vat"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumClTin) = Value
"cl_tin"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumEsCif) = Value
"es_cif"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumEuVat) = Value
"eu_vat"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumGbVat) = Value
"gb_vat"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumHkBr) = Value
"hk_br"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumIdNpwp) = Value
"id_npwp"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumIlVat) = Value
"il_vat"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumInGst) = Value
"in_gst"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumJpCn) = Value
"jp_cn"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumJpRn) = Value
"jp_rn"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumKrBrn) = Value
"kr_brn"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumLiUid) = Value
"li_uid"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumMxRfc) = Value
"mx_rfc"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumMyFrp) = Value
"my_frp"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumMyItn) = Value
"my_itn"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumMySst) = Value
"my_sst"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumNoVat) = Value
"no_vat"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumNzGst) = Value
"nz_gst"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumRuInn) = Value
"ru_inn"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumRuKpp) = Value
"ru_kpp"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumSaVat) = Value
"sa_vat"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumSgGst) = Value
"sg_gst"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumSgUen) = Value
"sg_uen"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumThVat) = Value
"th_vat"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumTwVat) = Value
"tw_vat"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumUsEin) = Value
"us_ein"
  toJSON (PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumZaVat) = Value
"za_vat"

instance Data.Aeson.Types.FromJSON.FromJSON PostCustomersCustomerTaxIdsRequestBodyType' where
  parseJSON :: Value -> Parser PostCustomersCustomerTaxIdsRequestBodyType'
parseJSON Value
val =
    PostCustomersCustomerTaxIdsRequestBodyType'
-> Parser PostCustomersCustomerTaxIdsRequestBodyType'
forall (f :: * -> *) a. Applicative f => a -> f a
GHC.Base.pure
      ( if
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"ae_trn" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumAeTrn
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"au_abn" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumAuAbn
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"br_cnpj" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumBrCnpj
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"br_cpf" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumBrCpf
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"ca_bn" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumCaBn
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"ca_gst_hst" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumCaGstHst
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"ca_pst_bc" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumCaPstBc
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"ca_pst_mb" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumCaPstMb
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"ca_pst_sk" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumCaPstSk
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"ca_qst" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumCaQst
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"ch_vat" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumChVat
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"cl_tin" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumClTin
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"es_cif" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumEsCif
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"eu_vat" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumEuVat
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"gb_vat" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumGbVat
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"hk_br" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumHkBr
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"id_npwp" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumIdNpwp
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"il_vat" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumIlVat
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"in_gst" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumInGst
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"jp_cn" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumJpCn
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"jp_rn" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumJpRn
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"kr_brn" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumKrBrn
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"li_uid" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumLiUid
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"mx_rfc" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumMxRfc
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"my_frp" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumMyFrp
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"my_itn" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumMyItn
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"my_sst" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumMySst
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"no_vat" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumNoVat
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"nz_gst" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumNzGst
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"ru_inn" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumRuInn
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"ru_kpp" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumRuKpp
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"sa_vat" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumSaVat
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"sg_gst" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumSgGst
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"sg_uen" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumSgUen
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"th_vat" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumThVat
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"tw_vat" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumTwVat
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"us_ein" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumUsEin
            | Value
val Value -> Value -> Bool
forall a. Eq a => a -> a -> Bool
GHC.Classes.== Value
"za_vat" -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'EnumZaVat
            | Bool
GHC.Base.otherwise -> Value -> PostCustomersCustomerTaxIdsRequestBodyType'
PostCustomersCustomerTaxIdsRequestBodyType'Other Value
val
      )

-- | Represents a response of the operation 'postCustomersCustomerTaxIds'.
--
-- 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), 'PostCustomersCustomerTaxIdsResponseError' is used.
data PostCustomersCustomerTaxIdsResponse
  = -- | Means either no matching case available or a parse error
    PostCustomersCustomerTaxIdsResponseError GHC.Base.String
  | -- | Successful response.
    PostCustomersCustomerTaxIdsResponse200 TaxId
  | -- | Error response.
    PostCustomersCustomerTaxIdsResponseDefault Error
  deriving (Int -> PostCustomersCustomerTaxIdsResponse -> String -> String
[PostCustomersCustomerTaxIdsResponse] -> String -> String
PostCustomersCustomerTaxIdsResponse -> String
(Int -> PostCustomersCustomerTaxIdsResponse -> String -> String)
-> (PostCustomersCustomerTaxIdsResponse -> String)
-> ([PostCustomersCustomerTaxIdsResponse] -> String -> String)
-> Show PostCustomersCustomerTaxIdsResponse
forall a.
(Int -> a -> String -> String)
-> (a -> String) -> ([a] -> String -> String) -> Show a
showList :: [PostCustomersCustomerTaxIdsResponse] -> String -> String
$cshowList :: [PostCustomersCustomerTaxIdsResponse] -> String -> String
show :: PostCustomersCustomerTaxIdsResponse -> String
$cshow :: PostCustomersCustomerTaxIdsResponse -> String
showsPrec :: Int -> PostCustomersCustomerTaxIdsResponse -> String -> String
$cshowsPrec :: Int -> PostCustomersCustomerTaxIdsResponse -> String -> String
GHC.Show.Show, PostCustomersCustomerTaxIdsResponse
-> PostCustomersCustomerTaxIdsResponse -> Bool
(PostCustomersCustomerTaxIdsResponse
 -> PostCustomersCustomerTaxIdsResponse -> Bool)
-> (PostCustomersCustomerTaxIdsResponse
    -> PostCustomersCustomerTaxIdsResponse -> Bool)
-> Eq PostCustomersCustomerTaxIdsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PostCustomersCustomerTaxIdsResponse
-> PostCustomersCustomerTaxIdsResponse -> Bool
$c/= :: PostCustomersCustomerTaxIdsResponse
-> PostCustomersCustomerTaxIdsResponse -> Bool
== :: PostCustomersCustomerTaxIdsResponse
-> PostCustomersCustomerTaxIdsResponse -> Bool
$c== :: PostCustomersCustomerTaxIdsResponse
-> PostCustomersCustomerTaxIdsResponse -> Bool
GHC.Classes.Eq)