zanders 1.4.3 → 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9c8e7a25111b03203fe371816eb9c739ab81c98
4
- data.tar.gz: c81795ff60e9b27be5242041caeef55a5fafeb65
3
+ metadata.gz: aefd2a56640d2e9f5f09aeb6dc401faab6b607d7
4
+ data.tar.gz: c45ecbf02a7fa2b0147084c0931a03d53a36dc92
5
5
  SHA512:
6
- metadata.gz: e8d018a2e19e5b078fd0c9cc928849f81811297f654cee946e0eea4821ed462e8bbd371ea402341e9036edd78381997d550532e5ab96d5c6b5a0b4e1cc8bdf3d
7
- data.tar.gz: 8a70092404761eda6e4ca48de881c14e427d945ef6133307e4c7e3b2d4a6ac2ad5abbefc6a8bb97bfd750384ba00f2c1a5cc85483a75cef35209e32deea3ca94
6
+ metadata.gz: 9a790e69db31d2e6ecdf54b93cfab36e4a646076e301e3cd0eeb7f67a248bfb60336c3c43a62e506f3c05d2797f2ee285656bfcaf224416b487f166331378f23
7
+ data.tar.gz: d0d391c77249d4c679bbeaf6be331635c2fc86231b4dec4346b65da6bb35ab4c1b59169a0a9099cde5a9d23de139a639d2a575c730e1bdeb10510c812e0865d8
@@ -47,9 +47,9 @@ module Zanders
47
47
 
48
48
  items.each do |item|
49
49
  order_items.push(item: [
50
- { key: 'itemNumber', value: item[:item_number], attributes!: { key: {'xsi:type' => 'xsd:string'}, value: {'xsi:type' => 'xsd:int'} }},
51
- { key: 'quantity', value: item[:quantity] , attributes!: { key: {'xsi:type' => 'xsd:string'}, value: {'xsi:type' => 'xsd:int'} }},
52
- { key: 'allowBackOrder', value: false, attributes!: { value: {'xsi:type' => 'xsd:boolean'} }}
50
+ { key: 'itemNumber', value: item[:item_number], attributes!: { key: {'xsi:type' => 'xsd:string'}, value: {'xsi:type' => 'xsd:string'} }},
51
+ { key: 'quantity', value: item[:quantity] , attributes!: { key: {'xsi:type' => 'xsd:string'}, value: {'xsi:type' => 'xsd:string'} }},
52
+ { key: 'allowBackOrder', value: false, attributes!: { key: { 'xsi:type' => 'xsd:string' }, value: {'xsi:type' => 'xsd:boolean'} }}
53
53
  ])
54
54
  end
55
55
 
@@ -71,6 +71,7 @@ module Zanders
71
71
  end
72
72
  else
73
73
  shipping_information.push(*[
74
+ { key: 'shipToName', value: address[:name] },
74
75
  { key: 'shipToAddress1', value: address[:address1] },
75
76
  { key: 'shipToAddress2', value: address[:address2] },
76
77
  { key: 'shipToCity', value: address[:city] },
@@ -97,14 +98,14 @@ module Zanders
97
98
  # item
98
99
  # "
99
100
  #
100
- order_items = {item: order_items, attributes!: { item: { "xsi:type" => "ns2:Map"}, value: {"SOAP-ENC:arrayType" => "ns2:Map[#{order_items.count}]", "xsi:type" => "SOAP-ENC:Array"} }}
101
+ order_items = {item: order_items, attributes!: { item: { "xsi:type" => "ns2:Map"} }}
101
102
 
102
103
  order[:order][:item].push({
103
104
  key: 'items',
104
105
  value: order_items,
105
106
  attributes!: {
106
107
  key: {"xsi:type" => "xsd:string"},
107
- value: {"SOAP-ENC:arrayType" => "ns2:Map[#{order_items.count}]", "xsi:type" => "SOAP-ENC:Array"}
108
+ value: {"enc:itemType" => "ns2:Map[#{order_items.count}]", "enc:arraySize" => order_items.count.to_s, "xsi:type" => "enc:Array"}
108
109
  }
109
110
  })
110
111
 
@@ -1,3 +1,3 @@
1
1
  module Zanders
2
- VERSION = "1.4.3"
2
+ VERSION = "1.4.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zanders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Knight