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 +4 -4
- data/lib/zanders/order.rb +6 -5
- data/lib/zanders/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aefd2a56640d2e9f5f09aeb6dc401faab6b607d7
|
4
|
+
data.tar.gz: c45ecbf02a7fa2b0147084c0931a03d53a36dc92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a790e69db31d2e6ecdf54b93cfab36e4a646076e301e3cd0eeb7f67a248bfb60336c3c43a62e506f3c05d2797f2ee285656bfcaf224416b487f166331378f23
|
7
|
+
data.tar.gz: d0d391c77249d4c679bbeaf6be331635c2fc86231b4dec4346b65da6bb35ab4c1b59169a0a9099cde5a9d23de139a639d2a575c730e1bdeb10510c812e0865d8
|
data/lib/zanders/order.rb
CHANGED
@@ -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:
|
51
|
-
{ key: 'quantity', value: item[:quantity] , attributes!: { key: {'xsi:type' => 'xsd:string'}, value: {'xsi:type' => 'xsd:
|
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"}
|
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: {"
|
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
|
|
data/lib/zanders/version.rb
CHANGED