Skip to content

Latest commit

 

History

History
131 lines (90 loc) · 3.26 KB

TravelExpensepaymentTypeApi.md

File metadata and controls

131 lines (90 loc) · 3.26 KB

TripletexApi::TravelExpensepaymentTypeApi

All URIs are relative to https://tripletex.no/v2

Method HTTP request Description
get GET /travelExpense/paymentType/{id} [BETA] Get payment type by ID.
search GET /travelExpense/paymentType [BETA] Find payment type corresponding with sent data.

get

ResponseWrapperTravelPaymentType get(id, opts)

[BETA] Get payment type by ID.

Example

# load the gem
require 'tripletex_api'
# setup authorization
TripletexApi.configure do |config|
  # Configure HTTP basic authorization: tokenAuthScheme
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = TripletexApi::TravelExpensepaymentTypeApi.new

id = 56 # Integer | Element ID

opts = { 
  fields: "fields_example" # String | Fields filter pattern
}

begin
  #[BETA] Get payment type by ID.
  result = api_instance.get(id, opts)
  p result
rescue TripletexApi::ApiError => e
  puts "Exception when calling TravelExpensepaymentTypeApi->get: #{e}"
end

Parameters

Name Type Description Notes
id Integer Element ID
fields String Fields filter pattern [optional]

Return type

ResponseWrapperTravelPaymentType

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

search

ListResponseTravelPaymentType search(opts)

[BETA] Find payment type corresponding with sent data.

Example

# load the gem
require 'tripletex_api'
# setup authorization
TripletexApi.configure do |config|
  # Configure HTTP basic authorization: tokenAuthScheme
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = TripletexApi::TravelExpensepaymentTypeApi.new

opts = { 
  id: "id_example", # String | List of IDs
  description: "description_example", # String | Containing
  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 payment type corresponding with sent data.
  result = api_instance.search(opts)
  p result
rescue TripletexApi::ApiError => e
  puts "Exception when calling TravelExpensepaymentTypeApi->search: #{e}"
end

Parameters

Name Type Description Notes
id String List of IDs [optional]
description String Containing [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]

Return type

ListResponseTravelPaymentType

Authorization

tokenAuthScheme

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined