omnivore-io 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omnivore-io/api/ticket.rb +5 -0
- data/lib/omnivore-io/api/version.rb +1 -1
- 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: 54b354e678bda87356144550ca4443c0401b8d0c
|
4
|
+
data.tar.gz: 55f517bf1cdd3eef1f433bea6d1801b115c3e03c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fecd42e340607b476259c2b3ec9c0c9dbf8904ce9ca4966cea91a149a712f07c7da5744afeb8e6a7137a05fff55440ce0d821245d715a05a6d4a76826168c9c
|
7
|
+
data.tar.gz: a8c7996be9eaec2a41467b29d597f3915217a7df47a62325eeac47e7b3570e29d4b09befb5f8ba7e59abcbda605a3f6a36b5a2b9e708b6e62c1d37d2a470cd05
|
@@ -49,6 +49,11 @@ module OmnivoreIO
|
|
49
49
|
OmnivoreIO::Ticket.new self, response.merge(location_id: location_id)
|
50
50
|
end
|
51
51
|
|
52
|
+
def void_ticket(location_id, ticket_id)
|
53
|
+
response = request(:post, "/locations/#{location_id}/tickets/#{ticket_id}", {"void": true})
|
54
|
+
OmnivoreIO::Ticket.new self, response.merge(location_id: location_id)
|
55
|
+
end
|
56
|
+
|
52
57
|
def add_menu_item_to_ticket(location_id, ticket_id, payload_json)
|
53
58
|
response = request(:post, "/locations/#{location_id}/tickets/#{ticket_id}/items", payload_json)
|
54
59
|
OmnivoreIO::Ticket.new self, response.merge(location_id: location_id)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omnivore-io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zane Shannon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest_client
|
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
version: '0'
|
66
66
|
requirements: []
|
67
67
|
rubyforge_project:
|
68
|
-
rubygems_version: 2.4.
|
68
|
+
rubygems_version: 2.4.6
|
69
69
|
signing_key:
|
70
70
|
specification_version: 4
|
71
71
|
summary: Ruby Client for the Omnivore.io API
|