All URIs are relative to https://tripletex.no/v2
Method | HTTP request | Description |
---|---|---|
delete | DELETE /purchaseOrder/orderline/{id} | [BETA] Delete purchase order line. |
get | GET /purchaseOrder/orderline/{id} | [BETA] Find purchase order line by ID. |
post | POST /purchaseOrder/orderline | [BETA] Creates purchase order line. |
put | PUT /purchaseOrder/orderline/{id} | [BETA] Updates purchase order line |
delete(id)
[BETA] Delete purchase order line.
# 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::PurchaseOrderorderlineApi.new
id = 56 # Integer | Element ID
begin
# [BETA] Delete purchase order line.
api_instance.delete(id)
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling PurchaseOrderorderlineApi->delete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | Element ID |
nil (empty response body)
- Content-Type: Not defined
- Accept: Not defined
ResponseWrapperPurchaseOrderline get(id, opts)
[BETA] Find purchase order line 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::PurchaseOrderorderlineApi.new
id = 56 # Integer | Element ID
opts = {
fields: 'fields_example' # String | Fields filter pattern
}
begin
# [BETA] Find purchase order line by ID.
result = api_instance.get(id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling PurchaseOrderorderlineApi->get: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | Element ID | |
fields | String | Fields filter pattern | [optional] |
ResponseWrapperPurchaseOrderline
- Content-Type: Not defined
- Accept: Not defined
ResponseWrapperPurchaseOrderline post(opts)
[BETA] Creates purchase order line.
# 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::PurchaseOrderorderlineApi.new
opts = {
body: TripletexRubyClient::PurchaseOrderline.new # PurchaseOrderline | JSON representing the new object to be created. Should not have ID and version set.
}
begin
# [BETA] Creates purchase order line.
result = api_instance.post(opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling PurchaseOrderorderlineApi->post: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
body | PurchaseOrderline | JSON representing the new object to be created. Should not have ID and version set. | [optional] |
ResponseWrapperPurchaseOrderline
- Content-Type: application/json; charset=utf-8
- Accept: Not defined
ResponseWrapperPurchaseOrderline put(id, opts)
[BETA] Updates purchase order line
# 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::PurchaseOrderorderlineApi.new
id = 56 # Integer | Element ID
opts = {
body: TripletexRubyClient::PurchaseOrderline.new # PurchaseOrderline | Partial object describing what should be updated
}
begin
# [BETA] Updates purchase order line
result = api_instance.put(id, opts)
p result
rescue TripletexRubyClient::ApiError => e
puts "Exception when calling PurchaseOrderorderlineApi->put: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
id | Integer | Element ID | |
body | PurchaseOrderline | Partial object describing what should be updated | [optional] |
ResponseWrapperPurchaseOrderline
- Content-Type: application/json; charset=utf-8
- Accept: Not defined