text: /*
   * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *    http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  #include <tencentcloud/faceid/v20180301/model/BankCard4EVerificationRequest.h>
  #include <tencentcloud/core/utils/rapidjson/document.h>
  #include <tencentcloud/core/utils/rapidjson/writer.h>
  #include <tencentcloud/core/utils/rapidjson/stringbuffer.h>
  
  using namespace TencentCloud::Faceid::V20180301::Model;
  using namespace rapidjson;
  using namespace std;
  
  BankCard4EVerificationRequest::BankCard4EVerificationRequest() :
      m_nameHasBeenSet(false),
      m_bankCardHasBeenSet(false),
      m_phoneHasBeenSet(false),
      m_idCardHasBeenSet(false),
      m_certTypeHasBeenSet(false)
  {
  }
  
  string BankCard4EVerificationRequest::ToJsonString() const
  {
      Document d;
      d.SetObject();
      Document::AllocatorType& allocator = d.GetAllocator();
  
  
      if (m_nameHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "Name";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_name.c_str(), allocator).Move(), allocator);
      }
  
      if (m_bankCardHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "BankCard";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_bankCard.c_str(), allocator).Move(), allocator);
      }
  
      if (m_phoneHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "Phone";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_phone.c_str(), allocator).Move(), allocator);
      }
  
      if (m_idCardHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "IdCard";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_idCard.c_str(), allocator).Move(), allocator);
      }
  
      if (m_certTypeHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "CertType";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, m_certType, allocator);
      }
  
  
      StringBuffer buffer;
      Writer<StringBuffer> writer(buffer);
      d.Accept(writer);
      return buffer.GetString();
  }
  
  
  string BankCard4EVerificationRequest::GetName() const
  {
      return m_name;
  }
  
  void BankCard4EVerificationRequest::SetName(const string& _name)
  {
      m_name = _name;
      m_nameHasBeenSet = true;
  }
  
  bool BankCard4EVerificationRequest::NameHasBeenSet() const
  {
      return m_nameHasBeenSet;
  }
  
  string BankCard4EVerificationRequest::GetBankCard() const
  {
      return m_bankCard;
  }
  
  void BankCard4EVerificationRequest::SetBankCard(const string& _bankCard)
  {
      m_bankCard = _bankCard;
      m_bankCardHasBeenSet = true;
  }
  
  bool BankCard4EVerificationRequest::BankCardHasBeenSet() const
  {
      return m_bankCardHasBeenSet;
  }
  
  string BankCard4EVerificationRequest::GetPhone() const
  {
      return m_phone;
  }
  
  void BankCard4EVerificationRequest::SetPhone(const string& _phone)
  {
      m_phone = _phone;
      m_phoneHasBeenSet = true;
  }
  
  bool BankCard4EVerificationRequest::PhoneHasBeenSet() const
  {
      return m_phoneHasBeenSet;
  }
  
  string BankCard4EVerificationRequest::GetIdCard() const
  {
      return m_idCard;
  }
  
  void BankCard4EVerificationRequest::SetIdCard(const string& _idCard)
  {
      m_idCard = _idCard;
      m_idCardHasBeenSet = true;
  }
  
  bool BankCard4EVerificationRequest::IdCardHasBeenSet() const
  {
      return m_idCardHasBeenSet;
  }
  
  int64_t BankCard4EVerificationRequest::GetCertType() const
  {
      return m_certType;
  }
  
  void BankCard4EVerificationRequest::SetCertType(const int64_t& _certType)
  {
      m_certType = _certType;
      m_certTypeHasBeenSet = true;
  }
  
  bool BankCard4EVerificationRequest::CertTypeHasBeenSet() const
  {
      return m_certTypeHasBeenSet;
  }
  
  
  