<reponame>sumit4-ttn/SDK<filename>integration/python/integration_api/api/brokerage_api.py<gh_stars>0
# coding: utf-8

"""
    Hydrogen Integration API

    The Hydrogen Integration API  # noqa: E501

    OpenAPI spec version: 1.2.1
    Contact: <EMAIL>
    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 integration_api.api_client import ApiClient


class BrokerageApi(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_bank_link_using_post(self, brokerage_bank_link_co, **kwargs):  # noqa: E501
        """create a Bank Link  # 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_bank_link_using_post(brokerage_bank_link_co, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param BrokerageBankLinkCO brokerage_bank_link_co: brokerageBankLinkCO (required)
        :return: BrokerageBankLinkVO
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.create_bank_link_using_post_with_http_info(brokerage_bank_link_co, **kwargs)  # noqa: E501
        else:
            (data) = self.create_bank_link_using_post_with_http_info(brokerage_bank_link_co, **kwargs)  # noqa: E501
            return data

    def create_bank_link_using_post_with_http_info(self, brokerage_bank_link_co, **kwargs):  # noqa: E501
        """create a Bank Link  # 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_bank_link_using_post_with_http_info(brokerage_bank_link_co, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param BrokerageBankLinkCO brokerage_bank_link_co: brokerageBankLinkCO (required)
        :return: BrokerageBankLinkVO
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['brokerage_bank_link_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_bank_link_using_post" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'brokerage_bank_link_co' is set
        if ('brokerage_bank_link_co' not in params or
                params['brokerage_bank_link_co'] is None):
            raise ValueError("Missing the required parameter `brokerage_bank_link_co` when calling `create_bank_link_using_post`")  # noqa: E501

        collection_formats = {}

        path_params = {}

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        if 'brokerage_bank_link_co' in params:
            body_params = params['brokerage_bank_link_co']
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['*/*'])  # 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(
            '/brokerage/bank_link', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='BrokerageBankLinkVO',  # 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_brokerage_account_using_post(self, brokerage_account_co, **kwargs):  # noqa: E501
        """create a Brokerage 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.create_brokerage_account_using_post(brokerage_account_co, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param BrokerageAccountCO brokerage_account_co: brokerageAccountCO (required)
        :return: BrokerageAccountVO
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.create_brokerage_account_using_post_with_http_info(brokerage_account_co, **kwargs)  # noqa: E501
        else:
            (data) = self.create_brokerage_account_using_post_with_http_info(brokerage_account_co, **kwargs)  # noqa: E501
            return data

    def create_brokerage_account_using_post_with_http_info(self, brokerage_account_co, **kwargs):  # noqa: E501
        """create a Brokerage 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.create_brokerage_account_using_post_with_http_info(brokerage_account_co, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param BrokerageAccountCO brokerage_account_co: brokerageAccountCO (required)
        :return: BrokerageAccountVO
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['brokerage_account_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_brokerage_account_using_post" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'brokerage_account_co' is set
        if ('brokerage_account_co' not in params or
                params['brokerage_account_co'] is None):
            raise ValueError("Missing the required parameter `brokerage_account_co` when calling `create_brokerage_account_using_post`")  # noqa: E501

        collection_formats = {}

        path_params = {}

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        if 'brokerage_account_co' in params:
            body_params = params['brokerage_account_co']
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['*/*'])  # 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(
            '/brokerage/account', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='BrokerageAccountVO',  # 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_brokerage_client_using_post(self, client_co, **kwargs):  # noqa: E501
        """Create a Brokerage 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_brokerage_client_using_post(client_co, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param BrokerageClientCO client_co: clientCO (required)
        :return: BrokerageCreateClientVO
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.create_brokerage_client_using_post_with_http_info(client_co, **kwargs)  # noqa: E501
        else:
            (data) = self.create_brokerage_client_using_post_with_http_info(client_co, **kwargs)  # noqa: E501
            return data

    def create_brokerage_client_using_post_with_http_info(self, client_co, **kwargs):  # noqa: E501
        """Create a Brokerage 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_brokerage_client_using_post_with_http_info(client_co, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param BrokerageClientCO client_co: clientCO (required)
        :return: BrokerageCreateClientVO
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['client_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_brokerage_client_using_post" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'client_co' is set
        if ('client_co' not in params or
                params['client_co'] is None):
            raise ValueError("Missing the required parameter `client_co` when calling `create_brokerage_client_using_post`")  # noqa: E501

        collection_formats = {}

        path_params = {}

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        if 'client_co' in params:
            body_params = params['client_co']
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['*/*'])  # 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(
            '/brokerage/client', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='BrokerageCreateClientVO',  # 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_order_using_post(self, nucleus_order_id, **kwargs):  # noqa: E501
        """Create an Order  # 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_order_using_post(nucleus_order_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str nucleus_order_id: nucleus_order_id (required)
        :return: CreateOrderResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.create_order_using_post_with_http_info(nucleus_order_id, **kwargs)  # noqa: E501
        else:
            (data) = self.create_order_using_post_with_http_info(nucleus_order_id, **kwargs)  # noqa: E501
            return data

    def create_order_using_post_with_http_info(self, nucleus_order_id, **kwargs):  # noqa: E501
        """Create an Order  # 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_order_using_post_with_http_info(nucleus_order_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str nucleus_order_id: nucleus_order_id (required)
        :return: CreateOrderResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['nucleus_order_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 create_order_using_post" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'nucleus_order_id' is set
        if ('nucleus_order_id' not in params or
                params['nucleus_order_id'] is None):
            raise ValueError("Missing the required parameter `nucleus_order_id` when calling `create_order_using_post`")  # noqa: E501

        collection_formats = {}

        path_params = {}

        query_params = []
        if 'nucleus_order_id' in params:
            query_params.append(('nucleus_order_id', params['nucleus_order_id']))  # noqa: E501

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['*/*'])  # 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(
            '/brokerage/order', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='CreateOrderResponse',  # 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 delete_bank_link_using_delete(self, nucleus_bank_link_id, **kwargs):  # noqa: E501
        """Delete a Bank Link  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.delete_bank_link_using_delete(nucleus_bank_link_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str nucleus_bank_link_id: nucleus_bank_link_id (required)
        :return: ResponseEntity
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.delete_bank_link_using_delete_with_http_info(nucleus_bank_link_id, **kwargs)  # noqa: E501
        else:
            (data) = self.delete_bank_link_using_delete_with_http_info(nucleus_bank_link_id, **kwargs)  # noqa: E501
            return data

    def delete_bank_link_using_delete_with_http_info(self, nucleus_bank_link_id, **kwargs):  # noqa: E501
        """Delete a Bank Link  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.delete_bank_link_using_delete_with_http_info(nucleus_bank_link_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str nucleus_bank_link_id: nucleus_bank_link_id (required)
        :return: ResponseEntity
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['nucleus_bank_link_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 delete_bank_link_using_delete" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'nucleus_bank_link_id' is set
        if ('nucleus_bank_link_id' not in params or
                params['nucleus_bank_link_id'] is None):
            raise ValueError("Missing the required parameter `nucleus_bank_link_id` when calling `delete_bank_link_using_delete`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'nucleus_bank_link_id' in params:
            path_params['nucleus_bank_link_id'] = params['nucleus_bank_link_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(
            ['*/*'])  # noqa: E501

        # Authentication setting
        auth_settings = ['oauth2']  # noqa: E501

        return self.api_client.call_api(
            '/brokerage/bank_link/{nucleus_bank_link_id}', 'DELETE',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='ResponseEntity',  # 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 delete_order_using_delete(self, nucleus_order_id, **kwargs):  # noqa: E501
        """Delete an Order  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.delete_order_using_delete(nucleus_order_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str nucleus_order_id: nucleus_order_id (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.delete_order_using_delete_with_http_info(nucleus_order_id, **kwargs)  # noqa: E501
        else:
            (data) = self.delete_order_using_delete_with_http_info(nucleus_order_id, **kwargs)  # noqa: E501
            return data

    def delete_order_using_delete_with_http_info(self, nucleus_order_id, **kwargs):  # noqa: E501
        """Delete an Order  # noqa: E501

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True
        >>> thread = api.delete_order_using_delete_with_http_info(nucleus_order_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str nucleus_order_id: nucleus_order_id (required)
        :return: None
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['nucleus_order_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 delete_order_using_delete" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'nucleus_order_id' is set
        if ('nucleus_order_id' not in params or
                params['nucleus_order_id'] is None):
            raise ValueError("Missing the required parameter `nucleus_order_id` when calling `delete_order_using_delete`")  # noqa: E501

        collection_formats = {}

        path_params = {}

        query_params = []
        if 'nucleus_order_id' in params:
            query_params.append(('nucleus_order_id', params['nucleus_order_id']))  # noqa: E501

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['*/*'])  # noqa: E501

        # Authentication setting
        auth_settings = ['oauth2']  # noqa: E501

        return self.api_client.call_api(
            '/brokerage/order', 'DELETE',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type=None,  # 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_bank_link_using_get(self, nucleus_bank_link_id, **kwargs):  # noqa: E501
        """Get a Bank Link  # 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_bank_link_using_get(nucleus_bank_link_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str nucleus_bank_link_id: nucleus_bank_link_id (required)
        :return: BrokerageBankLinkVO
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.get_bank_link_using_get_with_http_info(nucleus_bank_link_id, **kwargs)  # noqa: E501
        else:
            (data) = self.get_bank_link_using_get_with_http_info(nucleus_bank_link_id, **kwargs)  # noqa: E501
            return data

    def get_bank_link_using_get_with_http_info(self, nucleus_bank_link_id, **kwargs):  # noqa: E501
        """Get a Bank Link  # 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_bank_link_using_get_with_http_info(nucleus_bank_link_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str nucleus_bank_link_id: nucleus_bank_link_id (required)
        :return: BrokerageBankLinkVO
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['nucleus_bank_link_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 get_bank_link_using_get" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'nucleus_bank_link_id' is set
        if ('nucleus_bank_link_id' not in params or
                params['nucleus_bank_link_id'] is None):
            raise ValueError("Missing the required parameter `nucleus_bank_link_id` when calling `get_bank_link_using_get`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'nucleus_bank_link_id' in params:
            path_params['nucleus_bank_link_id'] = params['nucleus_bank_link_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(
            ['*/*'])  # noqa: E501

        # Authentication setting
        auth_settings = ['oauth2']  # noqa: E501

        return self.api_client.call_api(
            '/brokerage/bank_link/{nucleus_bank_link_id}', 'GET',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='BrokerageBankLinkVO',  # 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_brokerage_account_statement_using_get(self, end_date, nucleus_account_id, start_date, statement_type, **kwargs):  # noqa: E501
        """Get a Brokerage account statement  # 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_brokerage_account_statement_using_get(end_date, nucleus_account_id, start_date, statement_type, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param datetime end_date: end_date (required)
        :param str nucleus_account_id: nucleus_account_id (required)
        :param datetime start_date: start_date (required)
        :param str statement_type: statement_type (required)
        :return: BrokerageStatementVO
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.get_brokerage_account_statement_using_get_with_http_info(end_date, nucleus_account_id, start_date, statement_type, **kwargs)  # noqa: E501
        else:
            (data) = self.get_brokerage_account_statement_using_get_with_http_info(end_date, nucleus_account_id, start_date, statement_type, **kwargs)  # noqa: E501
            return data

    def get_brokerage_account_statement_using_get_with_http_info(self, end_date, nucleus_account_id, start_date, statement_type, **kwargs):  # noqa: E501
        """Get a Brokerage account statement  # 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_brokerage_account_statement_using_get_with_http_info(end_date, nucleus_account_id, start_date, statement_type, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param datetime end_date: end_date (required)
        :param str nucleus_account_id: nucleus_account_id (required)
        :param datetime start_date: start_date (required)
        :param str statement_type: statement_type (required)
        :return: BrokerageStatementVO
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['end_date', 'nucleus_account_id', 'start_date', 'statement_type']  # 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_brokerage_account_statement_using_get" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'end_date' is set
        if ('end_date' not in params or
                params['end_date'] is None):
            raise ValueError("Missing the required parameter `end_date` when calling `get_brokerage_account_statement_using_get`")  # noqa: E501
        # verify the required parameter 'nucleus_account_id' is set
        if ('nucleus_account_id' not in params or
                params['nucleus_account_id'] is None):
            raise ValueError("Missing the required parameter `nucleus_account_id` when calling `get_brokerage_account_statement_using_get`")  # noqa: E501
        # verify the required parameter 'start_date' is set
        if ('start_date' not in params or
                params['start_date'] is None):
            raise ValueError("Missing the required parameter `start_date` when calling `get_brokerage_account_statement_using_get`")  # noqa: E501
        # verify the required parameter 'statement_type' is set
        if ('statement_type' not in params or
                params['statement_type'] is None):
            raise ValueError("Missing the required parameter `statement_type` when calling `get_brokerage_account_statement_using_get`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'nucleus_account_id' in params:
            path_params['nucleus_account_id'] = params['nucleus_account_id']  # noqa: E501

        query_params = []
        if 'end_date' in params:
            query_params.append(('end_date', params['end_date']))  # noqa: E501
        if 'start_date' in params:
            query_params.append(('start_date', params['start_date']))  # noqa: E501
        if 'statement_type' in params:
            query_params.append(('statement_type', params['statement_type']))  # noqa: E501

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['*/*'])  # noqa: E501

        # Authentication setting
        auth_settings = ['oauth2']  # noqa: E501

        return self.api_client.call_api(
            '/brokerage/{nucleus_account_id}/statement', 'GET',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='BrokerageStatementVO',  # 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_order_using_get(self, nucleus_order_id, **kwargs):  # noqa: E501
        """Get an Order  # 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_order_using_get(nucleus_order_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str nucleus_order_id: nucleus_order_id (required)
        :return: GetOrderResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.get_order_using_get_with_http_info(nucleus_order_id, **kwargs)  # noqa: E501
        else:
            (data) = self.get_order_using_get_with_http_info(nucleus_order_id, **kwargs)  # noqa: E501
            return data

    def get_order_using_get_with_http_info(self, nucleus_order_id, **kwargs):  # noqa: E501
        """Get an Order  # 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_order_using_get_with_http_info(nucleus_order_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str nucleus_order_id: nucleus_order_id (required)
        :return: GetOrderResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['nucleus_order_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 get_order_using_get" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'nucleus_order_id' is set
        if ('nucleus_order_id' not in params or
                params['nucleus_order_id'] is None):
            raise ValueError("Missing the required parameter `nucleus_order_id` when calling `get_order_using_get`")  # noqa: E501

        collection_formats = {}

        path_params = {}

        query_params = []
        if 'nucleus_order_id' in params:
            query_params.append(('nucleus_order_id', params['nucleus_order_id']))  # noqa: E501

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['*/*'])  # noqa: E501

        # Authentication setting
        auth_settings = ['oauth2']  # noqa: E501

        return self.api_client.call_api(
            '/brokerage/order', 'GET',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='GetOrderResponse',  # 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_bank_link_using_put(self, nucleus_bank_link_id, **kwargs):  # noqa: E501
        """Update a Bank Link  # 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_bank_link_using_put(nucleus_bank_link_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str nucleus_bank_link_id: nucleus_bank_link_id (required)
        :return: BrokerageBankLinkVO
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.update_bank_link_using_put_with_http_info(nucleus_bank_link_id, **kwargs)  # noqa: E501
        else:
            (data) = self.update_bank_link_using_put_with_http_info(nucleus_bank_link_id, **kwargs)  # noqa: E501
            return data

    def update_bank_link_using_put_with_http_info(self, nucleus_bank_link_id, **kwargs):  # noqa: E501
        """Update a Bank Link  # 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_bank_link_using_put_with_http_info(nucleus_bank_link_id, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param str nucleus_bank_link_id: nucleus_bank_link_id (required)
        :return: BrokerageBankLinkVO
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['nucleus_bank_link_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_bank_link_using_put" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'nucleus_bank_link_id' is set
        if ('nucleus_bank_link_id' not in params or
                params['nucleus_bank_link_id'] is None):
            raise ValueError("Missing the required parameter `nucleus_bank_link_id` when calling `update_bank_link_using_put`")  # noqa: E501

        collection_formats = {}

        path_params = {}
        if 'nucleus_bank_link_id' in params:
            path_params['nucleus_bank_link_id'] = params['nucleus_bank_link_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(
            ['*/*'])  # 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(
            '/brokerage/bank_link/{nucleus_bank_link_id}', 'PUT',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='BrokerageBankLinkVO',  # 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_brokerage_client_using_put(self, client_co, **kwargs):  # noqa: E501
        """Update a Brokerage 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_brokerage_client_using_put(client_co, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param BrokerageClientCO client_co: clientCO (required)
        :return: BrokerageUpdateClientVO
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.update_brokerage_client_using_put_with_http_info(client_co, **kwargs)  # noqa: E501
        else:
            (data) = self.update_brokerage_client_using_put_with_http_info(client_co, **kwargs)  # noqa: E501
            return data

    def update_brokerage_client_using_put_with_http_info(self, client_co, **kwargs):  # noqa: E501
        """Update a Brokerage 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_brokerage_client_using_put_with_http_info(client_co, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param BrokerageClientCO client_co: clientCO (required)
        :return: BrokerageUpdateClientVO
                 If the method is called asynchronously,
                 returns the request thread.
        """

        all_params = ['client_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 update_brokerage_client_using_put" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'client_co' is set
        if ('client_co' not in params or
                params['client_co'] is None):
            raise ValueError("Missing the required parameter `client_co` when calling `update_brokerage_client_using_put`")  # noqa: E501

        collection_formats = {}

        path_params = {}

        query_params = []

        header_params = {}

        form_params = []
        local_var_files = {}

        body_params = None
        if 'client_co' in params:
            body_params = params['client_co']
        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['*/*'])  # 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(
            '/brokerage/client', 'PUT',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='BrokerageUpdateClientVO',  # 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)
