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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45be8df81ea56b02b94b19fd0e72bb1586de33b2
4
- data.tar.gz: d5234db929409f4bd3c4ddeebb0837b8f6327ca2
3
+ metadata.gz: 54b354e678bda87356144550ca4443c0401b8d0c
4
+ data.tar.gz: 55f517bf1cdd3eef1f433bea6d1801b115c3e03c
5
5
  SHA512:
6
- metadata.gz: 2a063d4d8a67e70412e63271f73f2b6bd4c6bb816d3cad1eaed73f4fc58dd7c0b178cf419c88bb2f1017ca0bcf318bcdbf37f4757007c5edfe7588d3f9794518
7
- data.tar.gz: 03c7a081b78b49833ffd6d5acde2e5e5fab46a97c5dcfb4b47984d9134073e5fb2c9345083a31d79d79430bbedaa85a9ece9495bf9ab131d9525cdeb0a878943
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)
@@ -1,5 +1,5 @@
1
1
  module OmnivoreIO
2
2
  class API
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
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.1
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-21 00:00:00.000000000 Z
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.8
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