/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace PaymentCryptographyData { namespace Model { SessionKeyEmv2000::SessionKeyEmv2000() : m_applicationTransactionCounterHasBeenSet(false), m_panSequenceNumberHasBeenSet(false), m_primaryAccountNumberHasBeenSet(false) { } SessionKeyEmv2000::SessionKeyEmv2000(JsonView jsonValue) : m_applicationTransactionCounterHasBeenSet(false), m_panSequenceNumberHasBeenSet(false), m_primaryAccountNumberHasBeenSet(false) { *this = jsonValue; } SessionKeyEmv2000& SessionKeyEmv2000::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("ApplicationTransactionCounter")) { m_applicationTransactionCounter = jsonValue.GetString("ApplicationTransactionCounter"); m_applicationTransactionCounterHasBeenSet = true; } if(jsonValue.ValueExists("PanSequenceNumber")) { m_panSequenceNumber = jsonValue.GetString("PanSequenceNumber"); m_panSequenceNumberHasBeenSet = true; } if(jsonValue.ValueExists("PrimaryAccountNumber")) { m_primaryAccountNumber = jsonValue.GetString("PrimaryAccountNumber"); m_primaryAccountNumberHasBeenSet = true; } return *this; } JsonValue SessionKeyEmv2000::Jsonize() const { JsonValue payload; if(m_applicationTransactionCounterHasBeenSet) { payload.WithString("ApplicationTransactionCounter", m_applicationTransactionCounter); } if(m_panSequenceNumberHasBeenSet) { payload.WithString("PanSequenceNumber", m_panSequenceNumber); } if(m_primaryAccountNumberHasBeenSet) { payload.WithString("PrimaryAccountNumber", m_primaryAccountNumber); } return payload; } } // namespace Model } // namespace PaymentCryptographyData } // namespace Aws