{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.IoT1ClickDevices.ClaimDevicesByClaimCode
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Adds device(s) to your account (i.e., claim one or more devices) if and
-- only if you received a claim code with the device(s).
module Amazonka.IoT1ClickDevices.ClaimDevicesByClaimCode
  ( -- * Creating a Request
    ClaimDevicesByClaimCode (..),
    newClaimDevicesByClaimCode,

    -- * Request Lenses
    claimDevicesByClaimCode_claimCode,

    -- * Destructuring the Response
    ClaimDevicesByClaimCodeResponse (..),
    newClaimDevicesByClaimCodeResponse,

    -- * Response Lenses
    claimDevicesByClaimCodeResponse_claimCode,
    claimDevicesByClaimCodeResponse_total,
    claimDevicesByClaimCodeResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IoT1ClickDevices.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newClaimDevicesByClaimCode' smart constructor.
data ClaimDevicesByClaimCode = ClaimDevicesByClaimCode'
  { -- | The claim code, starting with \"C-\", as provided by the device
    -- manufacturer.
    ClaimDevicesByClaimCode -> Text
claimCode :: Prelude.Text
  }
  deriving (ClaimDevicesByClaimCode -> ClaimDevicesByClaimCode -> Bool
(ClaimDevicesByClaimCode -> ClaimDevicesByClaimCode -> Bool)
-> (ClaimDevicesByClaimCode -> ClaimDevicesByClaimCode -> Bool)
-> Eq ClaimDevicesByClaimCode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ClaimDevicesByClaimCode -> ClaimDevicesByClaimCode -> Bool
$c/= :: ClaimDevicesByClaimCode -> ClaimDevicesByClaimCode -> Bool
== :: ClaimDevicesByClaimCode -> ClaimDevicesByClaimCode -> Bool
$c== :: ClaimDevicesByClaimCode -> ClaimDevicesByClaimCode -> Bool
Prelude.Eq, ReadPrec [ClaimDevicesByClaimCode]
ReadPrec ClaimDevicesByClaimCode
Int -> ReadS ClaimDevicesByClaimCode
ReadS [ClaimDevicesByClaimCode]
(Int -> ReadS ClaimDevicesByClaimCode)
-> ReadS [ClaimDevicesByClaimCode]
-> ReadPrec ClaimDevicesByClaimCode
-> ReadPrec [ClaimDevicesByClaimCode]
-> Read ClaimDevicesByClaimCode
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ClaimDevicesByClaimCode]
$creadListPrec :: ReadPrec [ClaimDevicesByClaimCode]
readPrec :: ReadPrec ClaimDevicesByClaimCode
$creadPrec :: ReadPrec ClaimDevicesByClaimCode
readList :: ReadS [ClaimDevicesByClaimCode]
$creadList :: ReadS [ClaimDevicesByClaimCode]
readsPrec :: Int -> ReadS ClaimDevicesByClaimCode
$creadsPrec :: Int -> ReadS ClaimDevicesByClaimCode
Prelude.Read, Int -> ClaimDevicesByClaimCode -> ShowS
[ClaimDevicesByClaimCode] -> ShowS
ClaimDevicesByClaimCode -> String
(Int -> ClaimDevicesByClaimCode -> ShowS)
-> (ClaimDevicesByClaimCode -> String)
-> ([ClaimDevicesByClaimCode] -> ShowS)
-> Show ClaimDevicesByClaimCode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ClaimDevicesByClaimCode] -> ShowS
$cshowList :: [ClaimDevicesByClaimCode] -> ShowS
show :: ClaimDevicesByClaimCode -> String
$cshow :: ClaimDevicesByClaimCode -> String
showsPrec :: Int -> ClaimDevicesByClaimCode -> ShowS
$cshowsPrec :: Int -> ClaimDevicesByClaimCode -> ShowS
Prelude.Show, (forall x.
 ClaimDevicesByClaimCode -> Rep ClaimDevicesByClaimCode x)
-> (forall x.
    Rep ClaimDevicesByClaimCode x -> ClaimDevicesByClaimCode)
-> Generic ClaimDevicesByClaimCode
forall x. Rep ClaimDevicesByClaimCode x -> ClaimDevicesByClaimCode
forall x. ClaimDevicesByClaimCode -> Rep ClaimDevicesByClaimCode x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ClaimDevicesByClaimCode x -> ClaimDevicesByClaimCode
$cfrom :: forall x. ClaimDevicesByClaimCode -> Rep ClaimDevicesByClaimCode x
Prelude.Generic)

-- |
-- Create a value of 'ClaimDevicesByClaimCode' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'claimCode', 'claimDevicesByClaimCode_claimCode' - The claim code, starting with \"C-\", as provided by the device
-- manufacturer.
newClaimDevicesByClaimCode ::
  -- | 'claimCode'
  Prelude.Text ->
  ClaimDevicesByClaimCode
newClaimDevicesByClaimCode :: Text -> ClaimDevicesByClaimCode
newClaimDevicesByClaimCode Text
pClaimCode_ =
  ClaimDevicesByClaimCode' :: Text -> ClaimDevicesByClaimCode
ClaimDevicesByClaimCode' {$sel:claimCode:ClaimDevicesByClaimCode' :: Text
claimCode = Text
pClaimCode_}

-- | The claim code, starting with \"C-\", as provided by the device
-- manufacturer.
claimDevicesByClaimCode_claimCode :: Lens.Lens' ClaimDevicesByClaimCode Prelude.Text
claimDevicesByClaimCode_claimCode :: (Text -> f Text)
-> ClaimDevicesByClaimCode -> f ClaimDevicesByClaimCode
claimDevicesByClaimCode_claimCode = (ClaimDevicesByClaimCode -> Text)
-> (ClaimDevicesByClaimCode -> Text -> ClaimDevicesByClaimCode)
-> Lens ClaimDevicesByClaimCode ClaimDevicesByClaimCode Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClaimDevicesByClaimCode' {Text
claimCode :: Text
$sel:claimCode:ClaimDevicesByClaimCode' :: ClaimDevicesByClaimCode -> Text
claimCode} -> Text
claimCode) (\s :: ClaimDevicesByClaimCode
s@ClaimDevicesByClaimCode' {} Text
a -> ClaimDevicesByClaimCode
s {$sel:claimCode:ClaimDevicesByClaimCode' :: Text
claimCode = Text
a} :: ClaimDevicesByClaimCode)

instance Core.AWSRequest ClaimDevicesByClaimCode where
  type
    AWSResponse ClaimDevicesByClaimCode =
      ClaimDevicesByClaimCodeResponse
  request :: ClaimDevicesByClaimCode -> Request ClaimDevicesByClaimCode
request = Service
-> ClaimDevicesByClaimCode -> Request ClaimDevicesByClaimCode
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ClaimDevicesByClaimCode
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ClaimDevicesByClaimCode)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ClaimDevicesByClaimCode))
-> Logger
-> Service
-> Proxy ClaimDevicesByClaimCode
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ClaimDevicesByClaimCode)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text -> Maybe Int -> Int -> ClaimDevicesByClaimCodeResponse
ClaimDevicesByClaimCodeResponse'
            (Maybe Text -> Maybe Int -> Int -> ClaimDevicesByClaimCodeResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe Int -> Int -> ClaimDevicesByClaimCodeResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"claimCode")
            Either String (Maybe Int -> Int -> ClaimDevicesByClaimCodeResponse)
-> Either String (Maybe Int)
-> Either String (Int -> ClaimDevicesByClaimCodeResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"total")
            Either String (Int -> ClaimDevicesByClaimCodeResponse)
-> Either String Int
-> Either String ClaimDevicesByClaimCodeResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable ClaimDevicesByClaimCode

instance Prelude.NFData ClaimDevicesByClaimCode

instance Core.ToHeaders ClaimDevicesByClaimCode where
  toHeaders :: ClaimDevicesByClaimCode -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ClaimDevicesByClaimCode -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON ClaimDevicesByClaimCode where
  toJSON :: ClaimDevicesByClaimCode -> Value
toJSON = Value -> ClaimDevicesByClaimCode -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)

instance Core.ToPath ClaimDevicesByClaimCode where
  toPath :: ClaimDevicesByClaimCode -> ByteString
toPath ClaimDevicesByClaimCode' {Text
claimCode :: Text
$sel:claimCode:ClaimDevicesByClaimCode' :: ClaimDevicesByClaimCode -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/claims/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
claimCode]

instance Core.ToQuery ClaimDevicesByClaimCode where
  toQuery :: ClaimDevicesByClaimCode -> QueryString
toQuery = QueryString -> ClaimDevicesByClaimCode -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newClaimDevicesByClaimCodeResponse' smart constructor.
data ClaimDevicesByClaimCodeResponse = ClaimDevicesByClaimCodeResponse'
  { -- | The claim code provided by the device manufacturer.
    ClaimDevicesByClaimCodeResponse -> Maybe Text
claimCode :: Prelude.Maybe Prelude.Text,
    -- | The total number of devices associated with the claim code that has been
    -- processed in the claim request.
    ClaimDevicesByClaimCodeResponse -> Maybe Int
total :: Prelude.Maybe Prelude.Int,
    -- | The response's http status code.
    ClaimDevicesByClaimCodeResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ClaimDevicesByClaimCodeResponse
-> ClaimDevicesByClaimCodeResponse -> Bool
(ClaimDevicesByClaimCodeResponse
 -> ClaimDevicesByClaimCodeResponse -> Bool)
-> (ClaimDevicesByClaimCodeResponse
    -> ClaimDevicesByClaimCodeResponse -> Bool)
-> Eq ClaimDevicesByClaimCodeResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ClaimDevicesByClaimCodeResponse
-> ClaimDevicesByClaimCodeResponse -> Bool
$c/= :: ClaimDevicesByClaimCodeResponse
-> ClaimDevicesByClaimCodeResponse -> Bool
== :: ClaimDevicesByClaimCodeResponse
-> ClaimDevicesByClaimCodeResponse -> Bool
$c== :: ClaimDevicesByClaimCodeResponse
-> ClaimDevicesByClaimCodeResponse -> Bool
Prelude.Eq, ReadPrec [ClaimDevicesByClaimCodeResponse]
ReadPrec ClaimDevicesByClaimCodeResponse
Int -> ReadS ClaimDevicesByClaimCodeResponse
ReadS [ClaimDevicesByClaimCodeResponse]
(Int -> ReadS ClaimDevicesByClaimCodeResponse)
-> ReadS [ClaimDevicesByClaimCodeResponse]
-> ReadPrec ClaimDevicesByClaimCodeResponse
-> ReadPrec [ClaimDevicesByClaimCodeResponse]
-> Read ClaimDevicesByClaimCodeResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ClaimDevicesByClaimCodeResponse]
$creadListPrec :: ReadPrec [ClaimDevicesByClaimCodeResponse]
readPrec :: ReadPrec ClaimDevicesByClaimCodeResponse
$creadPrec :: ReadPrec ClaimDevicesByClaimCodeResponse
readList :: ReadS [ClaimDevicesByClaimCodeResponse]
$creadList :: ReadS [ClaimDevicesByClaimCodeResponse]
readsPrec :: Int -> ReadS ClaimDevicesByClaimCodeResponse
$creadsPrec :: Int -> ReadS ClaimDevicesByClaimCodeResponse
Prelude.Read, Int -> ClaimDevicesByClaimCodeResponse -> ShowS
[ClaimDevicesByClaimCodeResponse] -> ShowS
ClaimDevicesByClaimCodeResponse -> String
(Int -> ClaimDevicesByClaimCodeResponse -> ShowS)
-> (ClaimDevicesByClaimCodeResponse -> String)
-> ([ClaimDevicesByClaimCodeResponse] -> ShowS)
-> Show ClaimDevicesByClaimCodeResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ClaimDevicesByClaimCodeResponse] -> ShowS
$cshowList :: [ClaimDevicesByClaimCodeResponse] -> ShowS
show :: ClaimDevicesByClaimCodeResponse -> String
$cshow :: ClaimDevicesByClaimCodeResponse -> String
showsPrec :: Int -> ClaimDevicesByClaimCodeResponse -> ShowS
$cshowsPrec :: Int -> ClaimDevicesByClaimCodeResponse -> ShowS
Prelude.Show, (forall x.
 ClaimDevicesByClaimCodeResponse
 -> Rep ClaimDevicesByClaimCodeResponse x)
-> (forall x.
    Rep ClaimDevicesByClaimCodeResponse x
    -> ClaimDevicesByClaimCodeResponse)
-> Generic ClaimDevicesByClaimCodeResponse
forall x.
Rep ClaimDevicesByClaimCodeResponse x
-> ClaimDevicesByClaimCodeResponse
forall x.
ClaimDevicesByClaimCodeResponse
-> Rep ClaimDevicesByClaimCodeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ClaimDevicesByClaimCodeResponse x
-> ClaimDevicesByClaimCodeResponse
$cfrom :: forall x.
ClaimDevicesByClaimCodeResponse
-> Rep ClaimDevicesByClaimCodeResponse x
Prelude.Generic)

-- |
-- Create a value of 'ClaimDevicesByClaimCodeResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'claimCode', 'claimDevicesByClaimCodeResponse_claimCode' - The claim code provided by the device manufacturer.
--
-- 'total', 'claimDevicesByClaimCodeResponse_total' - The total number of devices associated with the claim code that has been
-- processed in the claim request.
--
-- 'httpStatus', 'claimDevicesByClaimCodeResponse_httpStatus' - The response's http status code.
newClaimDevicesByClaimCodeResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ClaimDevicesByClaimCodeResponse
newClaimDevicesByClaimCodeResponse :: Int -> ClaimDevicesByClaimCodeResponse
newClaimDevicesByClaimCodeResponse Int
pHttpStatus_ =
  ClaimDevicesByClaimCodeResponse' :: Maybe Text -> Maybe Int -> Int -> ClaimDevicesByClaimCodeResponse
ClaimDevicesByClaimCodeResponse'
    { $sel:claimCode:ClaimDevicesByClaimCodeResponse' :: Maybe Text
claimCode =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:total:ClaimDevicesByClaimCodeResponse' :: Maybe Int
total = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ClaimDevicesByClaimCodeResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The claim code provided by the device manufacturer.
claimDevicesByClaimCodeResponse_claimCode :: Lens.Lens' ClaimDevicesByClaimCodeResponse (Prelude.Maybe Prelude.Text)
claimDevicesByClaimCodeResponse_claimCode :: (Maybe Text -> f (Maybe Text))
-> ClaimDevicesByClaimCodeResponse
-> f ClaimDevicesByClaimCodeResponse
claimDevicesByClaimCodeResponse_claimCode = (ClaimDevicesByClaimCodeResponse -> Maybe Text)
-> (ClaimDevicesByClaimCodeResponse
    -> Maybe Text -> ClaimDevicesByClaimCodeResponse)
-> Lens
     ClaimDevicesByClaimCodeResponse
     ClaimDevicesByClaimCodeResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClaimDevicesByClaimCodeResponse' {Maybe Text
claimCode :: Maybe Text
$sel:claimCode:ClaimDevicesByClaimCodeResponse' :: ClaimDevicesByClaimCodeResponse -> Maybe Text
claimCode} -> Maybe Text
claimCode) (\s :: ClaimDevicesByClaimCodeResponse
s@ClaimDevicesByClaimCodeResponse' {} Maybe Text
a -> ClaimDevicesByClaimCodeResponse
s {$sel:claimCode:ClaimDevicesByClaimCodeResponse' :: Maybe Text
claimCode = Maybe Text
a} :: ClaimDevicesByClaimCodeResponse)

-- | The total number of devices associated with the claim code that has been
-- processed in the claim request.
claimDevicesByClaimCodeResponse_total :: Lens.Lens' ClaimDevicesByClaimCodeResponse (Prelude.Maybe Prelude.Int)
claimDevicesByClaimCodeResponse_total :: (Maybe Int -> f (Maybe Int))
-> ClaimDevicesByClaimCodeResponse
-> f ClaimDevicesByClaimCodeResponse
claimDevicesByClaimCodeResponse_total = (ClaimDevicesByClaimCodeResponse -> Maybe Int)
-> (ClaimDevicesByClaimCodeResponse
    -> Maybe Int -> ClaimDevicesByClaimCodeResponse)
-> Lens
     ClaimDevicesByClaimCodeResponse
     ClaimDevicesByClaimCodeResponse
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClaimDevicesByClaimCodeResponse' {Maybe Int
total :: Maybe Int
$sel:total:ClaimDevicesByClaimCodeResponse' :: ClaimDevicesByClaimCodeResponse -> Maybe Int
total} -> Maybe Int
total) (\s :: ClaimDevicesByClaimCodeResponse
s@ClaimDevicesByClaimCodeResponse' {} Maybe Int
a -> ClaimDevicesByClaimCodeResponse
s {$sel:total:ClaimDevicesByClaimCodeResponse' :: Maybe Int
total = Maybe Int
a} :: ClaimDevicesByClaimCodeResponse)

-- | The response's http status code.
claimDevicesByClaimCodeResponse_httpStatus :: Lens.Lens' ClaimDevicesByClaimCodeResponse Prelude.Int
claimDevicesByClaimCodeResponse_httpStatus :: (Int -> f Int)
-> ClaimDevicesByClaimCodeResponse
-> f ClaimDevicesByClaimCodeResponse
claimDevicesByClaimCodeResponse_httpStatus = (ClaimDevicesByClaimCodeResponse -> Int)
-> (ClaimDevicesByClaimCodeResponse
    -> Int -> ClaimDevicesByClaimCodeResponse)
-> Lens
     ClaimDevicesByClaimCodeResponse
     ClaimDevicesByClaimCodeResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ClaimDevicesByClaimCodeResponse' {Int
httpStatus :: Int
$sel:httpStatus:ClaimDevicesByClaimCodeResponse' :: ClaimDevicesByClaimCodeResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ClaimDevicesByClaimCodeResponse
s@ClaimDevicesByClaimCodeResponse' {} Int
a -> ClaimDevicesByClaimCodeResponse
s {$sel:httpStatus:ClaimDevicesByClaimCodeResponse' :: Int
httpStatus = Int
a} :: ClaimDevicesByClaimCodeResponse)

instance
  Prelude.NFData
    ClaimDevicesByClaimCodeResponse