lib/liberic/process.rb in liberic-0.1.2 vs lib/liberic/process.rb in liberic-0.1.3
- old
+ new
@@ -62,13 +62,13 @@
print_params = create_print_params(options)
server_buffer = SDK::API.rueckgabepuffer_erzeugen
result = Helpers::Invocation.with_result_buffer(false) do |local_buffer|
SDK::API.bearbeite_vorgang(@xml, @type,
eric_action,
- print_params,
+ (action == :submit ? nil : print_params),
options[:encryption],
- nil, # transferHandle
+ (action == :submit ? FFI::MemoryPointer.new(:uint32, 1) : nil), # transferHandle
local_buffer,
server_buffer)
end
server_result = SDK::API.rueckgabepuffer_inhalt(server_buffer)
SDK::API.rueckgabepuffer_freigeben(server_buffer)
@@ -82,10 +82,11 @@
private
ACTIONS = {
validate: :validiere,
print: :drucke,
- print_and_submit: :sende
+ print_and_submit: :sende,
+ submit: :sende
}
def create_print_params(options)
params = SDK::Types::DruckParameter.new
params[:version] = 2