All URIs are relative to https://tripletex.no/v2
Method | HTTP request | Description |
---|---|---|
delete | DELETE /employee/category/{id} | [BETA] Delete employee category by ID |
delete_by_ids | DELETE /employee/category/list | [BETA] Delete multiple employee categories |
get | GET /employee/category/{id} | [BETA] Get employee category by ID. |
post | POST /employee/category | [BETA] Create a new employee category. |
post_list | POST /employee/category/list | [BETA] Create new employee categories. |
put | PUT /employee/category/{id} | [BETA] Update employee category information. |
put_list | PUT /employee/category/list | [BETA] Update multiple employee categories. |
search | GET /employee/category | [BETA] Find employee category corresponding with sent data. |
delete(id)
[BETA] Delete employee category by ID
# 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::EmployeecategoryApi.new
id = 56 # Integer | Element ID
begin
#[BETA] Delete employee category by ID
api_instance.delete(id)
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling EmployeecategoryApi->delete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | Element ID |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
delete_by_ids(ids)
[BETA] Delete multiple employee categories
# 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::EmployeecategoryApi.new
ids = 'ids_example' # String | ID of the elements
begin
#[BETA] Delete multiple employee categories
api_instance.delete_by_ids(ids)
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling EmployeecategoryApi->delete_by_ids: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
ids | String | ID of the elements |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
ResponseWrapperEmployeeCategory get(id, opts)
[BETA] Get employee category by ID.
# 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::EmployeecategoryApi.new
id = 56 # Integer | Element ID
opts = {
fields: 'fields_example' # String | Fields filter pattern
}
begin
#[BETA] Get employee category by ID.
result = api_instance.get(id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling EmployeecategoryApi->get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | Element ID | |
fields | String | Fields filter pattern | [optional] |
ResponseWrapperEmployeeCategory
- Content-Type: Not defined
- Accept: Not defined
ResponseWrapperEmployeeCategory post(opts)
[BETA] Create a new employee category.
# 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::EmployeecategoryApi.new
opts = {
body: TripletexRubyClient::EmployeeCategory.new # EmployeeCategory | JSON representing the new object to be created. Should not have ID and version set.
}
begin
#[BETA] Create a new employee category.
result = api_instance.post(opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling EmployeecategoryApi->post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | EmployeeCategory | JSON representing the new object to be created. Should not have ID and version set. | [optional] |
ResponseWrapperEmployeeCategory
- Content-Type: application/json; charset=utf-8
- Accept: Not defined
ListResponseEmployeeCategory post_list(opts)
[BETA] Create new employee categories.
# 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::EmployeecategoryApi.new
opts = {
body: [TripletexRubyClient::EmployeeCategory.new] # Array<EmployeeCategory> | JSON representing a list of new object to be created. Should not have ID and version set.
}
begin
#[BETA] Create new employee categories.
result = api_instance.post_list(opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling EmployeecategoryApi->post_list: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | Array<EmployeeCategory> | JSON representing a list of new object to be created. Should not have ID and version set. | [optional] |
- Content-Type: application/json; charset=utf-8
- Accept: Not defined
ResponseWrapperEmployeeCategory put(id, opts)
[BETA] Update employee category information.
# 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::EmployeecategoryApi.new
id = 56 # Integer | Element ID
opts = {
body: TripletexRubyClient::EmployeeCategory.new # EmployeeCategory | Partial object describing what should be updated
}
begin
#[BETA] Update employee category information.
result = api_instance.put(id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling EmployeecategoryApi->put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | Element ID | |
body | EmployeeCategory | Partial object describing what should be updated | [optional] |
ResponseWrapperEmployeeCategory
- Content-Type: application/json; charset=utf-8
- Accept: Not defined
ListResponseEmployeeCategory put_list(opts)
[BETA] Update multiple employee categories.
# 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::EmployeecategoryApi.new
opts = {
body: [TripletexRubyClient::EmployeeCategory.new] # Array<EmployeeCategory> | JSON representing updates to object. Should have ID and version set.
}
begin
#[BETA] Update multiple employee categories.
result = api_instance.put_list(opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling EmployeecategoryApi->put_list: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | Array<EmployeeCategory> | JSON representing updates to object. Should have ID and version set. | [optional] |
- Content-Type: application/json; charset=utf-8
- Accept: Not defined
ListResponseEmployeeCategory search(opts)
[BETA] Find employee category corresponding with sent data.
# 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::EmployeecategoryApi.new
opts = {
id: 'id_example', # String | List of IDs
name: 'name_example', # String | Containing
number: 'number_example', # String | List of IDs
from: 0, # Integer | From index
count: 1000, # Integer | Number of elements to return
sorting: 'sorting_example', # String | Sorting pattern
fields: 'fields_example' # String | Fields filter pattern
}
begin
#[BETA] Find employee category corresponding with sent data.
result = api_instance.search(opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling EmployeecategoryApi->search: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | String | List of IDs | [optional] |
name | String | Containing | [optional] |
number | String | List of IDs | [optional] |
from | Integer | From index | [optional] [default to 0] |
count | Integer | Number of elements to return | [optional] [default to 1000] |
sorting | String | Sorting pattern | [optional] |
fields | String | Fields filter pattern | [optional] |
- Content-Type: Not defined
- Accept: Not defined