integration/ruby/lib/integration_api/api/accounting_api.rb
# Update/Create all suppliers in Nucleus for a given nucleus_client_id
# Update/Create all suppliers in Nucleus for a given nucleus_client_id
# @param [Hash] opts the optional parameters
# @option opts [String] :nucleus_business_id nucleus_business_id
# @option opts [String] :nucleus_client_id nucleus_client_id
# @return [Array<(AccountingFinalResponseVO, Fixnum, Hash)>] AccountingFinalResponseVO data, response status code and response headers
Update/Create all suppliers in Nucleus for a given nucleus_client_id
Update/Create all suppliers in Nucleus for a given nucleus_client_id
Update / Create all suppliers in Nucleus for a given nucleus_client_id Update / Create all suppliers in Nucleus for a given nucleus_client_id
def create_or_update_accounting_supplier_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug 'Calling API: AccountingApi.create_or_update_accounting_supplier ...'
      end
      local_var_path = '/accounting/supplier'
      query_params = {}
      query_params[:'nucleus_business_id'] = opts[:'nucleus_business_id'] if !opts[:'nucleus_business_id'].nil?
      query_params[:'nucleus_client_id'] = opts[:'nucleus_client_id'] if !opts[:'nucleus_client_id'].nil?
      header_params = {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      form_params = {}
      post_body = nil
      auth_names = ['oauth2']
      data, status_code, headers = @api_client.call_api(:GET, local_var_path,
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => 'AccountingFinalResponseVO')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: AccountingApi#create_or_update_accounting_supplier\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def create_or_update_accounting_supplier_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug 'Calling API: AccountingApi.create_or_update_accounting_supplier ...' end local_var_path = '/accounting/supplier' query_params = { } query_params [ :' nucleus_business_id ' ] = opts [ :' nucleus_business_id ' ] if ! opts [ :' nucleus_business_id ' ] . nil? query_params [ :' nucleus_client_id ' ] = opts [ :' nucleus_client_id ' ] if ! opts [ :' nucleus_client_id ' ] . nil? header_params = { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) form_params = { } post_body = nil auth_names = [ 'oauth2' ] data , status_code , headers = @api_client . call_api ( :GET , local_var_path , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => 'AccountingFinalResponseVO' ) if @api_client . config . debugging @api_client . config . logger . debug "API called: AccountingApi#create_or_update_accounting_supplier\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Update/Create all suppliers in Nucleus for a given nucleus_client_id
Update/Create all suppliers in Nucleus for a given nucleus_client_id
Update / Create all suppliers in Nucleus for a given nucleus_client_id Update / Create all suppliers in Nucleus for a given nucleus_client_id
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # form parameters # http body (model)
AccountingFinalResponseVO data, response status code and response headers
AccountingFinalResponseVO data response status code and response headers
Array<(AccountingFinalResponseVO, Fixnum, Hash)>
opts
None
opts the optional parameters
opts the optional parameters