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/
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'
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 using -I
as follows:
ruby -Ilib script.rb
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
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} |
- MergeHRISClient::AccountDetails
- MergeHRISClient::AccountDetailsAndActions
- MergeHRISClient::AccountDetailsAndActionsIntegration
- MergeHRISClient::AccountDetailsAndActionsStatusEnum
- MergeHRISClient::AccountIntegration
- MergeHRISClient::AccountToken
- MergeHRISClient::AccountTypeEnum
- MergeHRISClient::AvailableActions
- MergeHRISClient::BankInfo
- MergeHRISClient::Benefit
- MergeHRISClient::BenefitPlanTypeEnum
- MergeHRISClient::CategoriesEnum
- MergeHRISClient::CategoryEnum
- MergeHRISClient::Company
- MergeHRISClient::CountryEnum
- MergeHRISClient::DataPassthroughRequest
- MergeHRISClient::Deduction
- MergeHRISClient::Earning
- MergeHRISClient::Employee
- MergeHRISClient::EmployeePayrollRun
- MergeHRISClient::Employment
- MergeHRISClient::EmploymentStatusEnum
- MergeHRISClient::EmploymentTypeEnum
- MergeHRISClient::EndUserDetailsRequest
- MergeHRISClient::ErrorValidationProblem
- MergeHRISClient::EthnicityEnum
- MergeHRISClient::FlsaStatusEnum
- MergeHRISClient::GenderEnum
- MergeHRISClient::GenerateRemoteKeyRequest
- MergeHRISClient::Issue
- MergeHRISClient::IssueStatusEnum
- MergeHRISClient::LinkToken
- MergeHRISClient::Location
- MergeHRISClient::MaritalStatusEnum
- MergeHRISClient::MethodEnum
- MergeHRISClient::ModelOperation
- MergeHRISClient::PaginatedAccountDetailsAndActionsList
- MergeHRISClient::PaginatedBankInfoList
- MergeHRISClient::PaginatedBenefitList
- MergeHRISClient::PaginatedCompanyList
- MergeHRISClient::PaginatedDeductionList
- MergeHRISClient::PaginatedEmployeeList
- MergeHRISClient::PaginatedEmployeePayrollRunList
- MergeHRISClient::PaginatedEmploymentList
- MergeHRISClient::PaginatedIssueList
- MergeHRISClient::PaginatedLocationList
- MergeHRISClient::PaginatedPayGroupList
- MergeHRISClient::PaginatedPayrollRunList
- MergeHRISClient::PaginatedSyncStatusList
- MergeHRISClient::PaginatedTeamList
- MergeHRISClient::PaginatedTimeOffBalanceList
- MergeHRISClient::PaginatedTimeOffList
- MergeHRISClient::PayCurrencyEnum
- MergeHRISClient::PayFrequencyEnum
- MergeHRISClient::PayGroup
- MergeHRISClient::PayPeriodEnum
- MergeHRISClient::PayrollRun
- MergeHRISClient::PolicyTypeEnum
- MergeHRISClient::RemoteData
- MergeHRISClient::RemoteDataRequest
- MergeHRISClient::RemoteKey
- MergeHRISClient::RemoteKeyForRegenerationRequest
- MergeHRISClient::RemoteResponse
- MergeHRISClient::RequestFormatEnum
- MergeHRISClient::RequestTypeEnum
- MergeHRISClient::RunStateEnum
- MergeHRISClient::RunTypeEnum
- MergeHRISClient::SyncStatus
- MergeHRISClient::SyncStatusStatusEnum
- MergeHRISClient::Tax
- MergeHRISClient::Team
- MergeHRISClient::TimeOff
- MergeHRISClient::TimeOffBalance
- MergeHRISClient::TimeOffEndpointRequest
- MergeHRISClient::TimeOffRequest
- MergeHRISClient::TimeOffResponse
- MergeHRISClient::TimeOffStatusEnum
- MergeHRISClient::TypeEnum
- MergeHRISClient::UnitsEnum
- MergeHRISClient::ValidationProblemSource
- MergeHRISClient::WarningValidationProblem
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header