ruby_omx 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,15 +1,6 @@
1
1
  #OrderInformationRequest (OIR200) This request type provides the ShippingInformationRequest (SIR) result for the order as a whole.
2
2
  module RubyOmx
3
3
 
4
- class ErrorData < Response
5
- xml_name 'Error'
6
- xml_accessor :error_id, :from=>'@errorID'
7
- xml_accessor :error_severity, :from=>'@errorSeverity'
8
- xml_accessor :error_detail_0, :from=>'@errorDetail0'
9
- xml_accessor :error_detail_1, :from=>'@errorDetail1'
10
- xml_accessor :message, :from=>:content
11
- end
12
-
13
4
  class PurchaseOrderUpdateResponse < Response
14
5
  xml_name "PurchaseOrderUpdateResponse"
15
6
  xml_reader :success
@@ -19,8 +10,8 @@ module RubyOmx
19
10
 
20
11
  xml_accessor :po_date, :from=>'PODate', :as=>DateTime
21
12
  xml_accessor :total_amount, :as=>Float
22
- xml_accessor :action
23
- xml_accessor :errors, :as=>[ErrorData], :in=>'ErrorData'
13
+ xml_accessor :action
14
+ xml_accessor :errors, :as=>[RubyOmx::ErrorData], :in=>'ErrorData'
24
15
  end
25
16
 
26
17
  end
@@ -59,6 +59,16 @@ module RubyOmx
59
59
  xml_accessor :quantity, :as => Integer
60
60
  xml_accessor :unit_price, :as => Float
61
61
  xml_accessor :price, :as => Float
62
- end
62
+ xml_accessor :cancel_line
63
+ end
64
+
65
+ class ErrorData < Response
66
+ xml_name 'Error'
67
+ xml_accessor :error_id, :from=>'@errorID'
68
+ xml_accessor :error_severity, :from=>'@errorSeverity'
69
+ xml_accessor :error_detail_0, :from=>'@errorDetail0'
70
+ xml_accessor :error_detail_1, :from=>'@errorDetail1'
71
+ xml_accessor :message, :from=>:content
72
+ end
63
73
 
64
74
  end
@@ -1,3 +1,3 @@
1
1
  module RubyOmx
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end
@@ -17,6 +17,8 @@ class PurchaseOrdersTest < MiniTest::Unit::TestCase
17
17
  assert_equal 2, request.line_items.length
18
18
  assert_equal @line1[:item_code], request.line_items[0].item_code
19
19
  assert_equal @line2[:item_code], request.line_items[1].item_code
20
+ assert_equal 'True', request.line_items[0].cancel_line
21
+ assert_equal 'True', request.line_items[1].cancel_line
20
22
 
21
23
  assert_equal 'UDIAuthToken', request.udi_parameters[0].key
22
24
  assert_equal @config['udi_auth_token'], request.udi_parameters[0].value
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.16
4
+ version: 0.0.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-08 00:00:00.000000000 Z
12
+ date: 2012-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: roxml