All URIs are relative to https://tripletex.no/v2
| Method | HTTP request | Description |
|---|---|---|
| download_pdf | GET /salary/compilation/pdf | [BETA] Find salary compilation (PDF document) by employee. |
| get | GET /salary/compilation | [BETA] Find salary compilation by employee. |
String download_pdf(employee_id, opts)
[BETA] Find salary compilation (PDF document) by employee.
# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
# # Configure HTTP basic authorization: tokenAuthScheme
# config.username = 'YOUR USERNAME'
# config.password = 'YOUR PASSWORD'
# end
# Setup authorization
#
TripletexRubyClient.configure do |config|
# Configure HTTP basic authorization: tokenAuthScheme
config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::SalarycompilationApi.new
employee_id = 56 # Integer | Element ID
opts = {
year: 56 # Integer | Must be between 1900-2100. Defaults to previous year.
}
begin
#[BETA] Find salary compilation (PDF document) by employee.
result = api_instance.download_pdf(employee_id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling SalarycompilationApi->download_pdf: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| employee_id | Integer | Element ID | |
| year | Integer | Must be between 1900-2100. Defaults to previous year. | [optional] |
String
- Content-Type: Not defined
- Accept: application/octet-stream
ResponseWrapperSalaryCompilation get(employee_id, opts)
[BETA] Find salary compilation by employee.
# load the gem
require 'tripletex_ruby_client'
# setup authorization
# # Setup authorization - as autogenerated by swagger-codegen
# TripletexRubyClient.configure do |config|
# # Configure HTTP basic authorization: tokenAuthScheme
# config.username = 'YOUR USERNAME'
# config.password = 'YOUR PASSWORD'
# end
# Setup authorization
#
TripletexRubyClient.configure do |config|
# Configure HTTP basic authorization: tokenAuthScheme
config.consumer_token = ENV["TT_CONSUMER_TOKEN"]
config.employee_token = ENV["TT_EMPLOYEE_TOKEN"]
config.host = Rails.env.production? ? 'https://tripletex.no' : 'https://api.tripletex.io'
config.token_expiration_time = Rails.env.production? ? 1.month : 1.day
end
api_instance = TripletexRubyClient::SalarycompilationApi.new
employee_id = 56 # Integer | Element ID
opts = {
year: 56, # Integer | Must be between 1900-2100. Defaults to previous year.
fields: 'fields_example' # String | Fields filter pattern
}
begin
#[BETA] Find salary compilation by employee.
result = api_instance.get(employee_id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling SalarycompilationApi->get: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| employee_id | Integer | Element ID | |
| year | Integer | Must be between 1900-2100. Defaults to previous year. | [optional] |
| fields | String | Fields filter pattern | [optional] |
ResponseWrapperSalaryCompilation
- Content-Type: Not defined
- Accept: Not defined