All URIs are relative to https://tripletex.no/v2
Method | HTTP request | Description |
---|---|---|
delete | DELETE /salary/transaction/{id} | [BETA] Delete salary transaction by ID. |
get | GET /salary/transaction/{id} | [BETA] Find salary transaction by ID. |
post | POST /salary/transaction | [BETA] Create a new salary transaction. |
delete(id)
[BETA] Delete salary transaction 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::SalarytransactionApi.new
id = 56 # Integer | Element ID
begin
#[BETA] Delete salary transaction by ID.
api_instance.delete(id)
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling SalarytransactionApi->delete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | Element ID |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
ResponseWrapperSalaryTransaction get(id, opts)
[BETA] Find salary transaction 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::SalarytransactionApi.new
id = 56 # Integer | Element ID
opts = {
fields: 'fields_example' # String | Fields filter pattern
}
begin
#[BETA] Find salary transaction by ID.
result = api_instance.get(id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling SalarytransactionApi->get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | Element ID | |
fields | String | Fields filter pattern | [optional] |
ResponseWrapperSalaryTransaction
- Content-Type: Not defined
- Accept: Not defined
ResponseWrapperSalaryTransaction post(opts)
[BETA] Create a new salary transaction.
# 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::SalarytransactionApi.new
opts = {
body: TripletexRubyClient::SalaryTransaction.new, # SalaryTransaction | JSON representing the new object to be created. Should not have ID and version set.
generate_tax_deduction: false # BOOLEAN | Generate tax deduction
}
begin
#[BETA] Create a new salary transaction.
result = api_instance.post(opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling SalarytransactionApi->post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | SalaryTransaction | JSON representing the new object to be created. Should not have ID and version set. | [optional] |
generate_tax_deduction | BOOLEAN | Generate tax deduction | [optional] [default to false] |
ResponseWrapperSalaryTransaction
- Content-Type: application/json; charset=utf-8
- Accept: Not defined