# coding: utf-8

"""
    splitit-web-api-public-sdk

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: 1.0.0
    
    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



class InstallmentPlanApi(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
    """

    _REQUIRES_SESSION = True

    def __init__(self, api_client):
        self._api_client = api_client

    def installment_plan_approve(self, request, **kwargs):  # noqa: E501
        """installment_plan_approve  # noqa: E501

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

        :param async_req bool
        :param ApproveInstallmentPlanRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: InstallmentPlanResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_approve_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_approve_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_approve_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_approve  # noqa: E501

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

        :param async_req bool
        :param ApproveInstallmentPlanRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: InstallmentPlanResponse
                 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 installment_plan_approve" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_approve`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/Approve', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='InstallmentPlanResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_cancel(self, request, **kwargs):  # noqa: E501
        """installment_plan_cancel  # noqa: E501

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

        :param async_req bool
        :param CancelInstallmentPlanRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: InstallmentPlanResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_cancel_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_cancel_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_cancel_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_cancel  # noqa: E501

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

        :param async_req bool
        :param CancelInstallmentPlanRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: InstallmentPlanResponse
                 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 installment_plan_cancel" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_cancel`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/Cancel', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='InstallmentPlanResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_charge_back(self, request, **kwargs):  # noqa: E501
        """installment_plan_charge_back  # noqa: E501

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

        :param async_req bool
        :param ChargebackRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: InstallmentPlanResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_charge_back_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_charge_back_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_charge_back_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_charge_back  # noqa: E501

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

        :param async_req bool
        :param ChargebackRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: InstallmentPlanResponse
                 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 installment_plan_charge_back" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_charge_back`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/ChargeBack', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='InstallmentPlanResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_create(self, request, **kwargs):  # noqa: E501
        """installment_plan_create  # noqa: E501

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

        :param async_req bool
        :param CreateInstallmentPlanRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: CreateInstallmentsPlanResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_create_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_create_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_create_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_create  # noqa: E501

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

        :param async_req bool
        :param CreateInstallmentPlanRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: CreateInstallmentsPlanResponse
                 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 installment_plan_create" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_create`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/Create', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='CreateInstallmentsPlanResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_get(self, request, **kwargs):  # noqa: E501
        """installment_plan_get  # noqa: E501

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

        :param async_req bool
        :param GetInstallmentsPlanSearchCriteriaRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: GetInstallmentsPlanResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_get_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_get_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_get_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_get  # noqa: E501

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

        :param async_req bool
        :param GetInstallmentsPlanSearchCriteriaRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: GetInstallmentsPlanResponse
                 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 installment_plan_get" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_get`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/Get', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='GetInstallmentsPlanResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_get3_d_secure_parameters(self, request, **kwargs):  # noqa: E501
        """installment_plan_get3_d_secure_parameters  # noqa: E501

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

        :param async_req bool
        :param Get3DSecureParametersRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: Get3DSecureParametersResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_get3_d_secure_parameters_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_get3_d_secure_parameters_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_get3_d_secure_parameters_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_get3_d_secure_parameters  # noqa: E501

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

        :param async_req bool
        :param Get3DSecureParametersRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: Get3DSecureParametersResponse
                 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 installment_plan_get3_d_secure_parameters" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_get3_d_secure_parameters`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/Get3DSecureParameters', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='Get3DSecureParametersResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_get_extended(self, request, **kwargs):  # noqa: E501
        """installment_plan_get_extended  # noqa: E501

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

        :param async_req bool
        :param GetInstallmentsPlanSearchCriteriaRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: GetInstallmentsPlanExtendedResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_get_extended_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_get_extended_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_get_extended_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_get_extended  # noqa: E501

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

        :param async_req bool
        :param GetInstallmentsPlanSearchCriteriaRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: GetInstallmentsPlanExtendedResponse
                 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 installment_plan_get_extended" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_get_extended`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/GetExtended', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='GetInstallmentsPlanExtendedResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_get_fraud_status_display(self, request, **kwargs):  # noqa: E501
        """installment_plan_get_fraud_status_display  # noqa: E501

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

        :param async_req bool
        :param GetFraudStatusDisplayRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: GetFraudStatusDisplayResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_get_fraud_status_display_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_get_fraud_status_display_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_get_fraud_status_display_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_get_fraud_status_display  # noqa: E501

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

        :param async_req bool
        :param GetFraudStatusDisplayRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: GetFraudStatusDisplayResponse
                 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 installment_plan_get_fraud_status_display" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_get_fraud_status_display`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/GetFraudStatusDisplay', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='GetFraudStatusDisplayResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_get_initiated_installment_plan_request(self, request, **kwargs):  # noqa: E501
        """installment_plan_get_initiated_installment_plan_request  # noqa: E501

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

        :param async_req bool
        :param GetInitiatedInstallmentPlanRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: GetInitiatedInstallmentPlanResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_get_initiated_installment_plan_request_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_get_initiated_installment_plan_request_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_get_initiated_installment_plan_request_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_get_initiated_installment_plan_request  # noqa: E501

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

        :param async_req bool
        :param GetInitiatedInstallmentPlanRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: GetInitiatedInstallmentPlanResponse
                 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 installment_plan_get_initiated_installment_plan_request" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_get_initiated_installment_plan_request`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/GetInitiatedInstallmentPlanRequest', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='GetInitiatedInstallmentPlanResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_get_initiated_update_payment_data(self, **kwargs):  # noqa: E501
        """installment_plan_get_initiated_update_payment_data  # noqa: E501

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

        :param async_req bool
        :param str culture: Override culture pre request (optional)

        :return: GetInitiatedUpdatePaymentDataResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_get_initiated_update_payment_data_with_http_info(**kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_get_initiated_update_payment_data_with_http_info(**kwargs)  # noqa: E501
            return data

    def installment_plan_get_initiated_update_payment_data_with_http_info(self, **kwargs):  # noqa: E501
        """installment_plan_get_initiated_update_payment_data  # noqa: E501

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

        :param async_req bool
        :param str culture: Override culture pre request (optional)
        :return: GetInitiatedUpdatePaymentDataResponse
                 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 installment_plan_get_initiated_update_payment_data" % 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/GetInitiatedUpdatePaymentData', 'GET',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='GetInitiatedUpdatePaymentDataResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_get_learn_more_details(self, request, **kwargs):  # noqa: E501
        """installment_plan_get_learn_more_details  # noqa: E501

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

        :param async_req bool
        :param LearnMoreDetailsRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: LearnMoreDetailsResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_get_learn_more_details_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_get_learn_more_details_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_get_learn_more_details_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_get_learn_more_details  # noqa: E501

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

        :param async_req bool
        :param LearnMoreDetailsRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: LearnMoreDetailsResponse
                 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 installment_plan_get_learn_more_details" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_get_learn_more_details`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/GetLearnMoreDetails', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='LearnMoreDetailsResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_get_pgtl(self, request, **kwargs):  # noqa: E501
        """installment_plan_get_pgtl  # noqa: E501

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

        :param async_req bool
        :param GetPGTLRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: GetPGTLResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_get_pgtl_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_get_pgtl_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_get_pgtl_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_get_pgtl  # noqa: E501

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

        :param async_req bool
        :param GetPGTLRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: GetPGTLResponse
                 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 installment_plan_get_pgtl" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_get_pgtl`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/GetPGTL', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='GetPGTLResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_get_schedules(self, request, **kwargs):  # noqa: E501
        """installment_plan_get_schedules  # noqa: E501

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

        :param async_req bool
        :param GetInstallmentSchedulesRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: GetInstallmentsScheduleResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_get_schedules_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_get_schedules_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_get_schedules_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_get_schedules  # noqa: E501

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

        :param async_req bool
        :param GetInstallmentSchedulesRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: GetInstallmentsScheduleResponse
                 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 installment_plan_get_schedules" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_get_schedules`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/GetSchedules', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='GetInstallmentsScheduleResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_initiate(self, request, **kwargs):  # noqa: E501
        """installment_plan_initiate  # noqa: E501

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

        :param async_req bool
        :param InitiateInstallmentPlanRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: InitiateInstallmentsPlanResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_initiate_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_initiate_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_initiate_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_initiate  # noqa: E501

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

        :param async_req bool
        :param InitiateInstallmentPlanRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: InitiateInstallmentsPlanResponse
                 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 installment_plan_initiate" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_initiate`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/Initiate', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='InitiateInstallmentsPlanResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_refund(self, request, **kwargs):  # noqa: E501
        """installment_plan_refund  # noqa: E501

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

        :param async_req bool
        :param RefundPlanRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: RefundInstallmentPlanResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_refund_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_refund_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_refund_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_refund  # noqa: E501

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

        :param async_req bool
        :param RefundPlanRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: RefundInstallmentPlanResponse
                 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 installment_plan_refund" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_refund`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/Refund', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='RefundInstallmentPlanResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_request_payment(self, request, **kwargs):  # noqa: E501
        """installment_plan_request_payment  # noqa: E501

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

        :param async_req bool
        :param RequestPaymentRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: RequestPaymentResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_request_payment_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_request_payment_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_request_payment_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_request_payment  # noqa: E501

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

        :param async_req bool
        :param RequestPaymentRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: RequestPaymentResponse
                 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 installment_plan_request_payment" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_request_payment`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/RequestPayment', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='RequestPaymentResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_start_installments(self, request, **kwargs):  # noqa: E501
        """installment_plan_start_installments  # noqa: E501

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

        :param async_req bool
        :param StartInstallmentsRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: InstallmentPlanResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_start_installments_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_start_installments_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_start_installments_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_start_installments  # noqa: E501

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

        :param async_req bool
        :param StartInstallmentsRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: InstallmentPlanResponse
                 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 installment_plan_start_installments" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_start_installments`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/StartInstallments', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='InstallmentPlanResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_terms_and_conditions(self, request, **kwargs):  # noqa: E501
        """installment_plan_terms_and_conditions  # noqa: E501

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

        :param async_req bool
        :param TermsAndConditionsGetRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: TermsAndConditionsGetResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_terms_and_conditions_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_terms_and_conditions_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_terms_and_conditions_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_terms_and_conditions  # noqa: E501

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

        :param async_req bool
        :param TermsAndConditionsGetRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: TermsAndConditionsGetResponse
                 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 installment_plan_terms_and_conditions" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_terms_and_conditions`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/TermsAndConditions', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='TermsAndConditionsGetResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_test_card(self, request, **kwargs):  # noqa: E501
        """installment_plan_test_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.installment_plan_test_card(request, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param TestCardRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: InstallmentPlanResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_test_card_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_test_card_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_test_card_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_test_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.installment_plan_test_card_with_http_info(request, async_req=True)
        >>> result = thread.get()

        :param async_req bool
        :param TestCardRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: InstallmentPlanResponse
                 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 installment_plan_test_card" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_test_card`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/TestCard', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='InstallmentPlanResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_update(self, request, **kwargs):  # noqa: E501
        """installment_plan_update  # noqa: E501

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

        :param async_req bool
        :param UpdateInstallmentPlanRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: UpdateInstallmentsPlanResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_update_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_update_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_update_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_update  # noqa: E501

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

        :param async_req bool
        :param UpdateInstallmentPlanRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: UpdateInstallmentsPlanResponse
                 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 installment_plan_update" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_update`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/Update', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='UpdateInstallmentsPlanResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

    def installment_plan_verify_payment(self, request, **kwargs):  # noqa: E501
        """installment_plan_verify_payment  # noqa: E501

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

        :param async_req bool
        :param VerifyPaymentRequest request: (required)
        :param str culture: Override culture pre request (optional)

        :return: VerifyPaymentResponse
                 If the method is called asynchronously,
                 returns the request thread.
        """
        kwargs['_return_http_data_only'] = True
        if kwargs.get('async_req'):
            return self.installment_plan_verify_payment_with_http_info(request, **kwargs)  # noqa: E501
        else:
            (data) = self.installment_plan_verify_payment_with_http_info(request, **kwargs)  # noqa: E501
            return data

    def installment_plan_verify_payment_with_http_info(self, request, **kwargs):  # noqa: E501
        """installment_plan_verify_payment  # noqa: E501

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

        :param async_req bool
        :param VerifyPaymentRequest request: (required)
        :param str culture: Override culture pre request (optional)
        :return: VerifyPaymentResponse
                 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 installment_plan_verify_payment" % key
                )
            params[key] = val
        del params['kwargs']
        # verify the required parameter 'request' is set
        if ('request' not in params or
                params['request'] is None):
            raise ValueError("Missing the required parameter `request` when calling `installment_plan_verify_payment`")  # 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(
            ['text/plain', 'application/json', 'text/json'])  # noqa: E501

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self._api_client.select_header_content_type(  # noqa: E501
            ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])  # noqa: E501

        # Authentication setting
        auth_settings = []  # noqa: E501

        return self._api_client.call_api(
            '/api/InstallmentPlan/Get/VerifyPayment', 'POST',
            path_params,
            query_params,
            header_params,
            body=body_params,
            post_params=form_params,
            files=local_var_files,
            response_type='VerifyPaymentResponse',  # 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,
            _requires_session=self._REQUIRES_SESSION,
            culture=kwargs.get('culture'))

InstallmentPlanApi._REQUIRES_SESSION = "InstallmentPlanApi" != "LoginApi"
