/merge-hris-ruby

The Ruby API Client for the Merge HRIS API.

Primary LanguageRuby

merge_hris_client

MergeHRISClient - the Ruby gem for the Merge HRIS API

The unified API for building rich integrations with multiple HR Information System platforms.

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit https://www.merge.dev/

Installation

Build a gem

To build the Ruby code into a gem:

gem build merge_hris_client.gemspec

Then either install the gem locally:

gem install ./merge_hris_client-1.0.0.gem

(for development, run gem install --dev ./merge_hris_client-1.0.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'merge_hris_client', '~> 1.0.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/merge-api/merge-hris-ruby, then add the following in the Gemfile:

gem 'merge_hris_client', :git => 'https://github.com/merge-api/merge-hris-ruby.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'merge_hris_client'

# Setup authorization
MergeHRISClient.configure do |config|
  # Configure API key authorization: tokenAuth
  config.api_key['Authorization'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = MergeHRISClient::AccountTokenApi.new
public_token = 'public_token_example' # String | 

begin
  result = api_instance.account_token_retrieve(public_token)
  p result
rescue MergeHRISClient::ApiError => e
  puts "Exception when calling AccountTokenApi->account_token_retrieve: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.merge.dev/api/hris/v1

Class Method HTTP request Description
MergeHRISClient::AccountDetailsApi account_details_retrieve GET /account-details
MergeHRISClient::AccountTokenApi account_token_retrieve GET /account-token/{public_token}
MergeHRISClient::AvailableActionsApi available_actions_retrieve GET /available-actions
MergeHRISClient::BankInfoApi bank_info_list GET /bank-info
MergeHRISClient::BankInfoApi bank_info_retrieve GET /bank-info/{id}
MergeHRISClient::BenefitsApi benefits_list GET /benefits
MergeHRISClient::BenefitsApi benefits_retrieve GET /benefits/{id}
MergeHRISClient::CompaniesApi companies_list GET /companies
MergeHRISClient::CompaniesApi companies_retrieve GET /companies/{id}
MergeHRISClient::DeductionsApi deductions_list GET /deductions
MergeHRISClient::DeductionsApi deductions_retrieve GET /deductions/{id}
MergeHRISClient::DeleteAccountApi delete_account_create POST /delete-account
MergeHRISClient::EmployeePayrollRunsApi employee_payroll_runs_list GET /employee-payroll-runs
MergeHRISClient::EmployeePayrollRunsApi employee_payroll_runs_retrieve GET /employee-payroll-runs/{id}
MergeHRISClient::EmployeesApi employees_list GET /employees
MergeHRISClient::EmployeesApi employees_retrieve GET /employees/{id}
MergeHRISClient::EmploymentsApi employments_list GET /employments
MergeHRISClient::EmploymentsApi employments_retrieve GET /employments/{id}
MergeHRISClient::ForceResyncApi sync_status_resync_create POST /sync-status/resync
MergeHRISClient::GenerateKeyApi generate_key_create POST /generate-key
MergeHRISClient::IssuesApi issues_list GET /issues
MergeHRISClient::IssuesApi issues_retrieve GET /issues/{id}
MergeHRISClient::LinkTokenApi link_token_create POST /link-token
MergeHRISClient::LinkedAccountsApi linked_accounts_list GET /linked-accounts
MergeHRISClient::LocationsApi locations_list GET /locations
MergeHRISClient::LocationsApi locations_retrieve GET /locations/{id}
MergeHRISClient::PassthroughApi passthrough_create POST /passthrough
MergeHRISClient::PayGroupsApi pay_groups_list GET /pay-groups
MergeHRISClient::PayGroupsApi pay_groups_retrieve GET /pay-groups/{id}
MergeHRISClient::PayrollRunsApi payroll_runs_list GET /payroll-runs
MergeHRISClient::PayrollRunsApi payroll_runs_retrieve GET /payroll-runs/{id}
MergeHRISClient::RegenerateKeyApi regenerate_key_create POST /regenerate-key
MergeHRISClient::SyncStatusApi sync_status_list GET /sync-status
MergeHRISClient::TeamsApi teams_list GET /teams
MergeHRISClient::TeamsApi teams_retrieve GET /teams/{id}
MergeHRISClient::TimeOffApi time_off_create POST /time-off
MergeHRISClient::TimeOffApi time_off_list GET /time-off
MergeHRISClient::TimeOffApi time_off_retrieve GET /time-off/{id}
MergeHRISClient::TimeOffBalancesApi time_off_balances_list GET /time-off-balances
MergeHRISClient::TimeOffBalancesApi time_off_balances_retrieve GET /time-off-balances/{id}

Documentation for Models

Documentation for Authorization

tokenAuth

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header