=begin
#Minty API

#Minty API


=end

require 'cgi'

module MintyApi
  class DefaultApi
    attr_accessor :api_client

    def initialize(api_client = ApiClient.default)
      @api_client = api_client
    end
    # forgot_password_url
    # forgot_password_url
    # @param api_minty_application_id [String] 
    # @param [Hash] opts the optional parameters
    # @return [RedirectUrl]
    def api_v1_forgot_password_url_get(api_minty_application_id, opts = {})
      data, _status_code, _headers = api_v1_forgot_password_url_get_with_http_info(api_minty_application_id, opts)
      data
    end

    # forgot_password_url
    # forgot_password_url
    # @param api_minty_application_id [String] 
    # @param [Hash] opts the optional parameters
    # @return [Array<(RedirectUrl, Integer, Hash)>] RedirectUrl data, response status code and response headers
    def api_v1_forgot_password_url_get_with_http_info(api_minty_application_id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: DefaultApi.api_v1_forgot_password_url_get ...'
      end
      # verify the required parameter 'api_minty_application_id' is set
      if @api_client.config.client_side_validation && api_minty_application_id.nil?
        fail ArgumentError, "Missing the required parameter 'api_minty_application_id' when calling DefaultApi.api_v1_forgot_password_url_get"
      end
      # resource path
      local_var_path = '/api/v1/forgot_password_url'

      # query parameters
      query_params = opts[:query_params] || {}

      # header parameters
      header_params = opts[:header_params] || {}
      # HTTP header 'Accept' (if needed)
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params[:'API-MINTY-APPLICATION-ID'] = api_minty_application_id

      # form parameters
      form_params = opts[:form_params] || {}

      # http body (model)
      post_body = opts[:debug_body]

      # return_type
      return_type = opts[:debug_return_type] || 'RedirectUrl'

      # auth_names
      auth_names = opts[:debug_auth_names] || ['accessCode']

      new_options = opts.merge(
        :operation => :"DefaultApi.api_v1_forgot_password_url_get",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )

      data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: DefaultApi#api_v1_forgot_password_url_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end

    # sign_in_url summary
    # sign_in_url description
    # @param api_minty_application_id [String] 
    # @param [Hash] opts the optional parameters
    # @return [RedirectUrl]
    def api_v1_sign_in_url_get(api_minty_application_id, opts = {})
      data, _status_code, _headers = api_v1_sign_in_url_get_with_http_info(api_minty_application_id, opts)
      data
    end

    # sign_in_url summary
    # sign_in_url description
    # @param api_minty_application_id [String] 
    # @param [Hash] opts the optional parameters
    # @return [Array<(RedirectUrl, Integer, Hash)>] RedirectUrl data, response status code and response headers
    def api_v1_sign_in_url_get_with_http_info(api_minty_application_id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: DefaultApi.api_v1_sign_in_url_get ...'
      end
      # verify the required parameter 'api_minty_application_id' is set
      if @api_client.config.client_side_validation && api_minty_application_id.nil?
        fail ArgumentError, "Missing the required parameter 'api_minty_application_id' when calling DefaultApi.api_v1_sign_in_url_get"
      end
      # resource path
      local_var_path = '/api/v1/sign_in_url'

      # query parameters
      query_params = opts[:query_params] || {}

      # header parameters
      header_params = opts[:header_params] || {}
      # HTTP header 'Accept' (if needed)
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params[:'API-MINTY-APPLICATION-ID'] = api_minty_application_id

      # form parameters
      form_params = opts[:form_params] || {}

      # http body (model)
      post_body = opts[:debug_body]

      # return_type
      return_type = opts[:debug_return_type] || 'RedirectUrl'

      # auth_names
      auth_names = opts[:debug_auth_names] || ['accessCode']

      new_options = opts.merge(
        :operation => :"DefaultApi.api_v1_sign_in_url_get",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )

      data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: DefaultApi#api_v1_sign_in_url_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end

    # sign_up_url
    # sign_up_url
    # @param api_minty_application_id [String] 
    # @param [Hash] opts the optional parameters
    # @return [RedirectUrl]
    def api_v1_sign_up_url_get(api_minty_application_id, opts = {})
      data, _status_code, _headers = api_v1_sign_up_url_get_with_http_info(api_minty_application_id, opts)
      data
    end

    # sign_up_url
    # sign_up_url
    # @param api_minty_application_id [String] 
    # @param [Hash] opts the optional parameters
    # @return [Array<(RedirectUrl, Integer, Hash)>] RedirectUrl data, response status code and response headers
    def api_v1_sign_up_url_get_with_http_info(api_minty_application_id, opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: DefaultApi.api_v1_sign_up_url_get ...'
      end
      # verify the required parameter 'api_minty_application_id' is set
      if @api_client.config.client_side_validation && api_minty_application_id.nil?
        fail ArgumentError, "Missing the required parameter 'api_minty_application_id' when calling DefaultApi.api_v1_sign_up_url_get"
      end
      # resource path
      local_var_path = '/api/v1/sign_up_url'

      # query parameters
      query_params = opts[:query_params] || {}

      # header parameters
      header_params = opts[:header_params] || {}
      # HTTP header 'Accept' (if needed)
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params[:'API-MINTY-APPLICATION-ID'] = api_minty_application_id

      # form parameters
      form_params = opts[:form_params] || {}

      # http body (model)
      post_body = opts[:debug_body]

      # return_type
      return_type = opts[:debug_return_type] || 'RedirectUrl'

      # auth_names
      auth_names = opts[:debug_auth_names] || ['accessCode']

      new_options = opts.merge(
        :operation => :"DefaultApi.api_v1_sign_up_url_get",
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => return_type
      )

      data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: DefaultApi#api_v1_sign_up_url_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
  end
end