ruby_omx 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,7 +19,7 @@ module RubyOmx
19
19
  # Order Information
20
20
 
21
21
  def build_info_request(params={})
22
- OrderInformationRequest.new(params.merge({:http_biz_id=>@http_biz_id}))
22
+ OrderInformationRequest.new(params.merge({:http_biz_id=>@http_biz_id, :udi_auth_token=>@udi_auth_token}))
23
23
  end
24
24
 
25
25
  def send_info_request(params={})
@@ -11,13 +11,16 @@ module RubyOmx
11
11
  def initialize(a=nil)
12
12
  return super unless a.present? # bail if no array of options has been given
13
13
  http_biz_id = a.delete(:http_biz_id)
14
+ udi_auth_token = a.delete(:udi_auth_token)
14
15
  #udi_auth_token = a.delete(:udi_auth_token)
15
16
 
16
17
  required_fields = [:order_number]
17
18
  raise MissingOrderOptions if required_fields.any? { |option| a[option].nil? }
18
19
  super
19
20
  self.version = a[:version] ||= '1.00'
20
- self.udi_parameters = [ RubyOmx::UDIParameter.new({:key=>'HTTPBizID', :value=>http_biz_id}),
21
+
22
+ self.udi_parameters = [ RubyOmx::UDIParameter.new({:key=>'UDIAuthToken', :value=>udi_auth_token}),
23
+ RubyOmx::UDIParameter.new({:key=>'HTTPBizID', :value=>http_biz_id}),
21
24
  RubyOmx::UDIParameter.new({:key=>'OrderNumber', :value=>a[:order_number]}),
22
25
  RubyOmx::UDIParameter.new({:key=>'level', :value=>a[:level] ||=0 })]
23
26
  end
@@ -1,3 +1,3 @@
1
1
  module RubyOmx
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_omx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -76,7 +76,7 @@ files:
76
76
  - lib/ruby_omx/response/order_info_request.rb
77
77
  - lib/ruby_omx/response/order_info_response.rb
78
78
  - lib/ruby_omx/response/response_error.rb
79
- - lib/ruby_omx/response/smart_result_response.rb
79
+ - lib/ruby_omx/response/smart_report_response.rb
80
80
  - lib/ruby_omx/response/udoa_request.rb
81
81
  - lib/ruby_omx/response/udoa_response.rb
82
82
  - lib/ruby_omx/response.rb