zaui_zapi 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/version.rb +1 -1
- data/lib/zapi_xml.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 01027f409143000c226dab07a58e57a82242825d
|
|
4
|
+
data.tar.gz: 6d41e3205a2431159fa675d66f2927339d415a82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c6f7ad19f38254954f64eaab6f20de7bd8628277032a128d3fb7853d784fd63545e0ae822cd3957b2f89b3ed5b6f8f04d950b88d922ae34a2846f09939645ec
|
|
7
|
+
data.tar.gz: db2de8c80f79386aca4a50b4ea968b2c1637c0cbef952c4552737d934fdee8e5dcc71b200658282b10b34697972517eec739eb376b9e4c2431af7b378e086188
|
data/lib/version.rb
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
VERSION = '0.3.
|
|
1
|
+
VERSION = '0.3.1'
|
data/lib/zapi_xml.rb
CHANGED
|
@@ -194,6 +194,7 @@ class ZapiXML
|
|
|
194
194
|
"pricingOptions" => nil,
|
|
195
195
|
"passengers" => {
|
|
196
196
|
},
|
|
197
|
+
"checkOnlineThresholds" => nil,
|
|
197
198
|
"activityTime" => hash[:activity_time],
|
|
198
199
|
"pickupLocationId" => nil,
|
|
199
200
|
"dropOffLocationId" => hash[:dropoff_location_id]
|
|
@@ -205,6 +206,9 @@ class ZapiXML
|
|
|
205
206
|
for_xml['passengers']['infants'] = hash[:infants].to_i unless hash[:infants].to_i == 0
|
|
206
207
|
for_xml['pickupLocationId'] = hash[:pickup_location_id].to_i unless hash[:pickup_location_id].blank?
|
|
207
208
|
|
|
209
|
+
#new undocumented flag so Zaui validates the activity time against the thresholds (defaulting to 1 for true)
|
|
210
|
+
for_xml['checkOnlineThresholds'] = hash[:check_online_thresholds].to_i || 1
|
|
211
|
+
|
|
208
212
|
_wrap_xml_request(for_xml)
|
|
209
213
|
end
|
|
210
214
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zaui_zapi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shane Kretzmann
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-12-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
94
94
|
version: '0'
|
|
95
95
|
requirements: []
|
|
96
96
|
rubyforge_project:
|
|
97
|
-
rubygems_version: 2.5.
|
|
97
|
+
rubygems_version: 2.5.1
|
|
98
98
|
signing_key:
|
|
99
99
|
specification_version: 4
|
|
100
100
|
summary: Zaui.com zAPI interface gem
|