text: # coding: utf-8
  
  """
      Hydrogen Electron API
  
      The Hydrogen Electron API  # noqa: E501
  
      OpenAPI spec version: 1.3.1
      Contact: info@hydrogenplatform.com
      Generated by: https://github.com/swagger-api/swagger-codegen.git
  """
  
  
  from __future__ import absolute_import
  
  import re  # noqa: F401
  
  # python 2 and python 3 compatibility library
  import six
  
  from electron_api.api_client import ApiClient
  
  
  class CardApi(object):
      """NOTE: This class is auto generated by the swagger code generator program.
  
      Do not edit the class manually.
      Ref: https://github.com/swagger-api/swagger-codegen
      """
  
      def __init__(self, api_client=None):
          if api_client is None:
              api_client = ApiClient()
          self.api_client = api_client
  
      def create_card_close_using_post(self, close_request, **kwargs):  # noqa: E501
          """close a card  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_close_using_post(close_request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardBaseRequestCO close_request: closeRequest (required)
          :return: BaseResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_card_close_using_post_with_http_info(close_request, **kwargs)  # noqa: E501
          else:
              (data) = self.create_card_close_using_post_with_http_info(close_request, **kwargs)  # noqa: E501
              return data
  
      def create_card_close_using_post_with_http_info(self, close_request, **kwargs):  # noqa: E501
          """close a card  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_close_using_post_with_http_info(close_request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardBaseRequestCO close_request: closeRequest (required)
          :return: BaseResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = ['close_request']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_card_close_using_post" % key
                  )
              params[key] = val
          del params['kwargs']
          # verify the required parameter 'close_request' is set
          if self.api_client.client_side_validation and ('close_request' not in params or
                                                         params['close_request'] is None):  # noqa: E501
              raise ValueError("Missing the required parameter `close_request` when calling `create_card_close_using_post`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'close_request' in params:
              body_params = params['close_request']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['oauth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/card/close', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='BaseResponseVO',  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def create_card_issue_using_post(self, issue_request, **kwargs):  # noqa: E501
          """issue a card  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_issue_using_post(issue_request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardBaseRequestCO issue_request: issueRequest (required)
          :return: BaseResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_card_issue_using_post_with_http_info(issue_request, **kwargs)  # noqa: E501
          else:
              (data) = self.create_card_issue_using_post_with_http_info(issue_request, **kwargs)  # noqa: E501
              return data
  
      def create_card_issue_using_post_with_http_info(self, issue_request, **kwargs):  # noqa: E501
          """issue a card  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_issue_using_post_with_http_info(issue_request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardBaseRequestCO issue_request: issueRequest (required)
          :return: BaseResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = ['issue_request']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_card_issue_using_post" % key
                  )
              params[key] = val
          del params['kwargs']
          # verify the required parameter 'issue_request' is set
          if self.api_client.client_side_validation and ('issue_request' not in params or
                                                         params['issue_request'] is None):  # noqa: E501
              raise ValueError("Missing the required parameter `issue_request` when calling `create_card_issue_using_post`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'issue_request' in params:
              body_params = params['issue_request']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['oauth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/card/issue', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='BaseResponseVO',  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def create_card_load_using_post(self, load_request, **kwargs):  # noqa: E501
          """Create a card load  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_load_using_post(load_request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardLoadRequestCO load_request: loadRequest (required)
          :return: CardLoadUnloadResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_card_load_using_post_with_http_info(load_request, **kwargs)  # noqa: E501
          else:
              (data) = self.create_card_load_using_post_with_http_info(load_request, **kwargs)  # noqa: E501
              return data
  
      def create_card_load_using_post_with_http_info(self, load_request, **kwargs):  # noqa: E501
          """Create a card load  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_load_using_post_with_http_info(load_request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardLoadRequestCO load_request: loadRequest (required)
          :return: CardLoadUnloadResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = ['load_request']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_card_load_using_post" % key
                  )
              params[key] = val
          del params['kwargs']
          # verify the required parameter 'load_request' is set
          if self.api_client.client_side_validation and ('load_request' not in params or
                                                         params['load_request'] is None):  # noqa: E501
              raise ValueError("Missing the required parameter `load_request` when calling `create_card_load_using_post`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'load_request' in params:
              body_params = params['load_request']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['oauth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/card/load', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='CardLoadUnloadResponseVO',  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def create_card_reactivate_using_post(self, reactivate_request, **kwargs):  # noqa: E501
          """reactivate card  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_reactivate_using_post(reactivate_request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardBaseRequestCO reactivate_request: reactivateRequest (required)
          :return: BaseResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_card_reactivate_using_post_with_http_info(reactivate_request, **kwargs)  # noqa: E501
          else:
              (data) = self.create_card_reactivate_using_post_with_http_info(reactivate_request, **kwargs)  # noqa: E501
              return data
  
      def create_card_reactivate_using_post_with_http_info(self, reactivate_request, **kwargs):  # noqa: E501
          """reactivate card  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_reactivate_using_post_with_http_info(reactivate_request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardBaseRequestCO reactivate_request: reactivateRequest (required)
          :return: BaseResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = ['reactivate_request']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_card_reactivate_using_post" % key
                  )
              params[key] = val
          del params['kwargs']
          # verify the required parameter 'reactivate_request' is set
          if self.api_client.client_side_validation and ('reactivate_request' not in params or
                                                         params['reactivate_request'] is None):  # noqa: E501
              raise ValueError("Missing the required parameter `reactivate_request` when calling `create_card_reactivate_using_post`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'reactivate_request' in params:
              body_params = params['reactivate_request']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['oauth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/card/reactivate', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='BaseResponseVO',  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def create_card_replace_using_post(self, request, **kwargs):  # noqa: E501
          """Create card replace  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_replace_using_post(request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardBaseRequestCO request: request (required)
          :return: CardReplaceResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_card_replace_using_post_with_http_info(request, **kwargs)  # noqa: E501
          else:
              (data) = self.create_card_replace_using_post_with_http_info(request, **kwargs)  # noqa: E501
              return data
  
      def create_card_replace_using_post_with_http_info(self, request, **kwargs):  # noqa: E501
          """Create card replace  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_replace_using_post_with_http_info(request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardBaseRequestCO request: request (required)
          :return: CardReplaceResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = ['request']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_card_replace_using_post" % key
                  )
              params[key] = val
          del params['kwargs']
          # verify the required parameter 'request' is set
          if self.api_client.client_side_validation and ('request' not in params or
                                                         params['request'] is None):  # noqa: E501
              raise ValueError("Missing the required parameter `request` when calling `create_card_replace_using_post`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'request' in params:
              body_params = params['request']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['oauth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/card/replace', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='CardReplaceResponseVO',  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def create_card_spending_control_using_post(self, request, **kwargs):  # noqa: E501
          """Create card spending control  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_spending_control_using_post(request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardSpendingControlRequestCO request: request (required)
          :return: CardSpendingControlResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_card_spending_control_using_post_with_http_info(request, **kwargs)  # noqa: E501
          else:
              (data) = self.create_card_spending_control_using_post_with_http_info(request, **kwargs)  # noqa: E501
              return data
  
      def create_card_spending_control_using_post_with_http_info(self, request, **kwargs):  # noqa: E501
          """Create card spending control  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_spending_control_using_post_with_http_info(request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardSpendingControlRequestCO request: request (required)
          :return: CardSpendingControlResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = ['request']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_card_spending_control_using_post" % key
                  )
              params[key] = val
          del params['kwargs']
          # verify the required parameter 'request' is set
          if self.api_client.client_side_validation and ('request' not in params or
                                                         params['request'] is None):  # noqa: E501
              raise ValueError("Missing the required parameter `request` when calling `create_card_spending_control_using_post`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'request' in params:
              body_params = params['request']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['oauth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/card/spending_control', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='CardSpendingControlResponseVO',  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def create_card_suspend_using_post(self, suspend_request, **kwargs):  # noqa: E501
          """suspend card  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_suspend_using_post(suspend_request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardBaseRequestCO suspend_request: suspendRequest (required)
          :return: BaseResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_card_suspend_using_post_with_http_info(suspend_request, **kwargs)  # noqa: E501
          else:
              (data) = self.create_card_suspend_using_post_with_http_info(suspend_request, **kwargs)  # noqa: E501
              return data
  
      def create_card_suspend_using_post_with_http_info(self, suspend_request, **kwargs):  # noqa: E501
          """suspend card  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_suspend_using_post_with_http_info(suspend_request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardBaseRequestCO suspend_request: suspendRequest (required)
          :return: BaseResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = ['suspend_request']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_card_suspend_using_post" % key
                  )
              params[key] = val
          del params['kwargs']
          # verify the required parameter 'suspend_request' is set
          if self.api_client.client_side_validation and ('suspend_request' not in params or
                                                         params['suspend_request'] is None):  # noqa: E501
              raise ValueError("Missing the required parameter `suspend_request` when calling `create_card_suspend_using_post`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'suspend_request' in params:
              body_params = params['suspend_request']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['oauth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/card/suspend', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='BaseResponseVO',  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def create_card_unload_using_post(self, reload_request, **kwargs):  # noqa: E501
          """Create a card upload  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_unload_using_post(reload_request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardUnloadRequestCO reload_request: reloadRequest (required)
          :return: CardLoadUnloadResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_card_unload_using_post_with_http_info(reload_request, **kwargs)  # noqa: E501
          else:
              (data) = self.create_card_unload_using_post_with_http_info(reload_request, **kwargs)  # noqa: E501
              return data
  
      def create_card_unload_using_post_with_http_info(self, reload_request, **kwargs):  # noqa: E501
          """Create a card upload  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_card_unload_using_post_with_http_info(reload_request, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardUnloadRequestCO reload_request: reloadRequest (required)
          :return: CardLoadUnloadResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = ['reload_request']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_card_unload_using_post" % key
                  )
              params[key] = val
          del params['kwargs']
          # verify the required parameter 'reload_request' is set
          if self.api_client.client_side_validation and ('reload_request' not in params or
                                                         params['reload_request'] is None):  # noqa: E501
              raise ValueError("Missing the required parameter `reload_request` when calling `create_card_unload_using_post`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'reload_request' in params:
              body_params = params['reload_request']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['oauth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/card/unload', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='CardLoadUnloadResponseVO',  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def create_client_card_using_post(self, card_client_request_co, **kwargs):  # noqa: E501
          """Create a card client  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_client_card_using_post(card_client_request_co, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardClientRequestCO card_client_request_co: cardClientRequestCO (required)
          :return: CreateCardClientResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.create_client_card_using_post_with_http_info(card_client_request_co, **kwargs)  # noqa: E501
          else:
              (data) = self.create_client_card_using_post_with_http_info(card_client_request_co, **kwargs)  # noqa: E501
              return data
  
      def create_client_card_using_post_with_http_info(self, card_client_request_co, **kwargs):  # noqa: E501
          """Create a card client  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.create_client_card_using_post_with_http_info(card_client_request_co, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param CardClientRequestCO card_client_request_co: cardClientRequestCO (required)
          :return: CreateCardClientResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = ['card_client_request_co']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method create_client_card_using_post" % key
                  )
              params[key] = val
          del params['kwargs']
          # verify the required parameter 'card_client_request_co' is set
          if self.api_client.client_side_validation and ('card_client_request_co' not in params or
                                                         params['card_client_request_co'] is None):  # noqa: E501
              raise ValueError("Missing the required parameter `card_client_request_co` when calling `create_client_card_using_post`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          if 'card_client_request_co' in params:
              body_params = params['card_client_request_co']
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['oauth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/card/client', 'POST',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='CreateCardClientResponseVO',  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def get_card_reserve_account_details_using_get(self, **kwargs):  # noqa: E501
          """Card reserve account  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.get_card_reserve_account_details_using_get(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :return: CardReserveAccountResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.get_card_reserve_account_details_using_get_with_http_info(**kwargs)  # noqa: E501
          else:
              (data) = self.get_card_reserve_account_details_using_get_with_http_info(**kwargs)  # noqa: E501
              return data
  
      def get_card_reserve_account_details_using_get_with_http_info(self, **kwargs):  # noqa: E501
          """Card reserve account  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.get_card_reserve_account_details_using_get_with_http_info(async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :return: CardReserveAccountResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = []  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method get_card_reserve_account_details_using_get" % key
                  )
              params[key] = val
          del params['kwargs']
  
          collection_formats = {}
  
          path_params = {}
  
          query_params = []
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['oauth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/card/reserve', 'GET',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='CardReserveAccountResponseVO',  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def update_card_spending_control_using_put(self, nucleus_spending_control_id, **kwargs):  # noqa: E501
          """Update a card spending control  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.update_card_spending_control_using_put(nucleus_spending_control_id, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str nucleus_spending_control_id: nucleus_spending_control_id (required)
          :return: CardSpendingControlResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.update_card_spending_control_using_put_with_http_info(nucleus_spending_control_id, **kwargs)  # noqa: E501
          else:
              (data) = self.update_card_spending_control_using_put_with_http_info(nucleus_spending_control_id, **kwargs)  # noqa: E501
              return data
  
      def update_card_spending_control_using_put_with_http_info(self, nucleus_spending_control_id, **kwargs):  # noqa: E501
          """Update a card spending control  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.update_card_spending_control_using_put_with_http_info(nucleus_spending_control_id, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str nucleus_spending_control_id: nucleus_spending_control_id (required)
          :return: CardSpendingControlResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = ['nucleus_spending_control_id']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method update_card_spending_control_using_put" % key
                  )
              params[key] = val
          del params['kwargs']
          # verify the required parameter 'nucleus_spending_control_id' is set
          if self.api_client.client_side_validation and ('nucleus_spending_control_id' not in params or
                                                         params['nucleus_spending_control_id'] is None):  # noqa: E501
              raise ValueError("Missing the required parameter `nucleus_spending_control_id` when calling `update_card_spending_control_using_put`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'nucleus_spending_control_id' in params:
              path_params['nucleus_spending_control_id'] = params['nucleus_spending_control_id']  # noqa: E501
  
          query_params = []
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['oauth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/card/spending_control/{nucleus_spending_control_id}', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='CardSpendingControlResponseVO',  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  
      def update_client_card_using_put(self, nucleus_client_id, **kwargs):  # noqa: E501
          """Update a card client  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.update_client_card_using_put(nucleus_client_id, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str nucleus_client_id: nucleus_client_id (required)
          :return: UpdateCardClientResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
          kwargs['_return_http_data_only'] = True
          if kwargs.get('async_req'):
              return self.update_client_card_using_put_with_http_info(nucleus_client_id, **kwargs)  # noqa: E501
          else:
              (data) = self.update_client_card_using_put_with_http_info(nucleus_client_id, **kwargs)  # noqa: E501
              return data
  
      def update_client_card_using_put_with_http_info(self, nucleus_client_id, **kwargs):  # noqa: E501
          """Update a card client  # noqa: E501
  
          This method makes a synchronous HTTP request by default. To make an
          asynchronous HTTP request, please pass async_req=True
          >>> thread = api.update_client_card_using_put_with_http_info(nucleus_client_id, async_req=True)
          >>> result = thread.get()
  
          :param async_req bool
          :param str nucleus_client_id: nucleus_client_id (required)
          :return: UpdateCardClientResponseVO
                   If the method is called asynchronously,
                   returns the request thread.
          """
  
          all_params = ['nucleus_client_id']  # noqa: E501
          all_params.append('async_req')
          all_params.append('_return_http_data_only')
          all_params.append('_preload_content')
          all_params.append('_request_timeout')
  
          params = locals()
          for key, val in six.iteritems(params['kwargs']):
              if key not in all_params:
                  raise TypeError(
                      "Got an unexpected keyword argument '%s'"
                      " to method update_client_card_using_put" % key
                  )
              params[key] = val
          del params['kwargs']
          # verify the required parameter 'nucleus_client_id' is set
          if self.api_client.client_side_validation and ('nucleus_client_id' not in params or
                                                         params['nucleus_client_id'] is None):  # noqa: E501
              raise ValueError("Missing the required parameter `nucleus_client_id` when calling `update_client_card_using_put`")  # noqa: E501
  
          collection_formats = {}
  
          path_params = {}
          if 'nucleus_client_id' in params:
              path_params['nucleus_client_id'] = params['nucleus_client_id']  # noqa: E501
  
          query_params = []
  
          header_params = {}
  
          form_params = []
          local_var_files = {}
  
          body_params = None
          # HTTP header `Accept`
          header_params['Accept'] = self.api_client.select_header_accept(
              ['application/json'])  # noqa: E501
  
          # HTTP header `Content-Type`
          header_params['Content-Type'] = self.api_client.select_header_content_type(  # noqa: E501
              ['application/json'])  # noqa: E501
  
          # Authentication setting
          auth_settings = ['oauth2']  # noqa: E501
  
          return self.api_client.call_api(
              '/card/client/{nucleus_client_id}', 'PUT',
              path_params,
              query_params,
              header_params,
              body=body_params,
              post_params=form_params,
              files=local_var_files,
              response_type='UpdateCardClientResponseVO',  # noqa: E501
              auth_settings=auth_settings,
              async_req=params.get('async_req'),
              _return_http_data_only=params.get('_return_http_data_only'),
              _preload_content=params.get('_preload_content', True),
              _request_timeout=params.get('_request_timeout'),
              collection_formats=collection_formats)
  