seatsio 28.1.0 → 30.2.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f16665209691ecc5c5be881c2c37580dc4525c3d1e2c067780830241aae5c77b
4
- data.tar.gz: 84ecfa02bb8129ee5bc78f71319201c9ca1650b74cb570666628aa2a57dd9287
3
+ metadata.gz: 6897bc523384fb90e5668bdb6941a4b6677a4f01e68b8630235231ad2f58ed97
4
+ data.tar.gz: faaa58fd76d8fb1fd5b5dc4ef9e3defb65ce11bb51ad8de3f748b3c3a9ef9e72
5
5
  SHA512:
6
- metadata.gz: 8882b8209078d93b30db4f410c27f063a79eea273840e02a060b36b01c28eb6953007e46244abfc3f0f863e3ede87de1d15bd804bdbf121024bdad618b9ec341
7
- data.tar.gz: 13663be3aaf3e6189037d5678c86dc6575785dcb3150a09d197f4a6ab16bd82d20c4edf3822f4d3bcfb7d9cbe414b49a749eae08315b609abe022521d4a442b0
6
+ metadata.gz: 608a83c243161ef3feb9031209485c452a69c13dc16e8561676c156782500a2fd4a584b3158e6339207cc9b43a340a8bc3df5e5511691bfa18c73519489935f3
7
+ data.tar.gz: ea041bae68b966b8b61ef4378cdfab06839b4f3773b9e37390f1b75d52ef4eeee232da70cc2abab14cbf5d67753be2862b7dc32637322262eb0a4493243b55fd
@@ -0,0 +1,21 @@
1
+ on:
2
+ push:
3
+ branches: [ master ]
4
+ pull_request:
5
+ branches: [ master ]
6
+
7
+ jobs:
8
+ test:
9
+
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ matrix:
13
+ ruby-version: ['2.3']
14
+
15
+ steps:
16
+ - uses: actions/checkout@v2
17
+ - uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby-version }}
20
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
21
+ - run: bundle exec rake
@@ -0,0 +1,21 @@
1
+ name: Ruby Gem
2
+
3
+ on:
4
+ release:
5
+ types: [created]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ - run: |
14
+ mkdir -p $HOME/.gem
15
+ touch $HOME/.gem/credentials
16
+ chmod 0600 $HOME/.gem/credentials
17
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
18
+ gem build *.gemspec
19
+ gem push *.gem
20
+ env:
21
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seatsio (28.1.0)
4
+ seatsio (30.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -264,7 +264,7 @@ module Seatsio
264
264
  class ChartReportItem
265
265
 
266
266
  attr_reader :label, :labels, :category_key, :category_label, :section, :entrance, :capacity, :object_type,
267
- :left_neighbour, :right_neighbour
267
+ :left_neighbour, :right_neighbour, :book_as_a_whole
268
268
 
269
269
  def initialize(data)
270
270
  @label = data['label']
@@ -277,6 +277,7 @@ module Seatsio
277
277
  @object_type = data['objectType']
278
278
  @left_neighbour = data['leftNeighbour']
279
279
  @right_neighbour = data['rightNeighbour']
280
+ @book_as_a_whole = data['bookAsAWhole']
280
281
  end
281
282
  end
282
283
 
@@ -327,7 +328,8 @@ module Seatsio
327
328
  :category_key, :entrance, :object_type, :hold_token, :category_label,
328
329
  :ticket_type, :num_booked, :num_free, :num_held, :for_sale, :section,
329
330
  :is_accessible, :is_companion_seat, :has_restricted_view, :displayed_object_type,
330
- :left_neighbour, :right_neighbour, :is_selectable, :is_disabled_by_social_distancing, :channel
331
+ :left_neighbour, :right_neighbour, :is_selectable, :is_disabled_by_social_distancing, :channel,
332
+ :book_as_a_whole
331
333
 
332
334
  def initialize(data)
333
335
  @status = data['status']
@@ -356,6 +358,7 @@ module Seatsio
356
358
  @is_selectable = data['isSelectable']
357
359
  @is_disabled_by_social_distancing = data['isDisabledBySocialDistancing']
358
360
  @channel = data['channel']
361
+ @book_as_a_whole = data['bookAsAWhole']
359
362
  end
360
363
  end
361
364
 
@@ -383,23 +386,14 @@ module Seatsio
383
386
 
384
387
  class UsageDetails
385
388
 
386
- attr_reader :subaccount
389
+ attr_reader :workspace, :usage_by_chart
387
390
 
388
391
  def initialize(data)
389
- @subaccount = data['subaccount'] ? UsageSubaccount.new(data['subaccount']) : nil
392
+ @workspace = data['workspace']
390
393
  @usage_by_chart = data['usageByChart'].map { |usage| UsageByChart.new(usage) }
391
394
  end
392
395
  end
393
396
 
394
- class UsageSubaccount
395
-
396
- attr_reader :id
397
-
398
- def initialize(data)
399
- @id = data['id']
400
- end
401
- end
402
-
403
397
  class UsageByChart
404
398
 
405
399
  attr_reader :chart, :usage_by_event
@@ -15,26 +15,50 @@ module Seatsio
15
15
  fetch_summary_report('byStatus', event_key)
16
16
  end
17
17
 
18
+ def deep_summary_by_status(event_key)
19
+ fetch_deep_summary_report('byStatus', event_key)
20
+ end
21
+
18
22
  def summary_by_category_key(event_key)
19
23
  fetch_summary_report('byCategoryKey', event_key)
20
24
  end
21
25
 
26
+ def deep_summary_by_category_key(event_key)
27
+ fetch_deep_summary_report('byCategoryKey', event_key)
28
+ end
29
+
22
30
  def summary_by_category_label(event_key)
23
31
  fetch_summary_report('byCategoryLabel', event_key)
24
32
  end
25
33
 
34
+ def deep_summary_by_category_label(event_key)
35
+ fetch_deep_summary_report('byCategoryLabel', event_key)
36
+ end
37
+
26
38
  def summary_by_section(event_key)
27
39
  fetch_summary_report('bySection', event_key)
28
40
  end
29
41
 
42
+ def deep_summary_by_section(event_key)
43
+ fetch_deep_summary_report('bySection', event_key)
44
+ end
45
+
30
46
  def summary_by_selectability(event_key)
31
47
  fetch_summary_report('bySelectability', event_key)
32
48
  end
33
49
 
50
+ def deep_summary_by_selectability(event_key)
51
+ fetch_deep_summary_report('bySelectability', event_key)
52
+ end
53
+
34
54
  def summary_by_channel(event_key)
35
55
  fetch_summary_report('byChannel', event_key)
36
56
  end
37
57
 
58
+ def deep_summary_by_channel(event_key)
59
+ fetch_deep_summary_report('byChannel', event_key)
60
+ end
61
+
38
62
  def by_label(event_key, label = nil)
39
63
  fetch_report('byLabel', event_key, label)
40
64
  end
@@ -74,6 +98,11 @@ module Seatsio
74
98
  @http_client.get(url)
75
99
  end
76
100
 
101
+ def fetch_deep_summary_report(report_type, event_key)
102
+ url = "reports/events/#{event_key}/#{report_type}/summary/deep"
103
+ @http_client.get(url)
104
+ end
105
+
77
106
  def fetch_report(report_type, event_key, report_filter = nil)
78
107
  if report_filter
79
108
  url = "reports/events/#{event_key}/#{report_type}/#{report_filter}"
@@ -1,3 +1,3 @@
1
1
  module Seatsio
2
- VERSION = "28.1.0"
2
+ VERSION = "30.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seatsio
3
3
  version: !ruby/object:Gem::Version
4
- version: 28.1.0
4
+ version: 30.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seats.io
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-14 00:00:00.000000000 Z
11
+ date: 2021-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -100,9 +100,10 @@ extensions: []
100
100
  extra_rdoc_files: []
101
101
  files:
102
102
  - ".editorconfig"
103
+ - ".github/workflows/build.yml"
104
+ - ".github/workflows/release.yml"
103
105
  - ".gitignore"
104
106
  - ".ruby-version"
105
- - ".travis.yml"
106
107
  - Gemfile
107
108
  - Gemfile.lock
108
109
  - README.md
@@ -147,7 +148,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
148
  - !ruby/object:Gem::Version
148
149
  version: '0'
149
150
  requirements: []
150
- rubygems_version: 3.0.8
151
+ rubyforge_project:
152
+ rubygems_version: 2.7.6
151
153
  signing_key:
152
154
  specification_version: 4
153
155
  summary: the official Seats.io Ruby client library
@@ -1,19 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.3.0
5
- before_install: gem install bundler -v 1.16.1
6
- notifications:
7
- slack:
8
- rooms:
9
- - seatsio:AGaZISx4HlvoEx6WTbVaX50V
10
- on_pull_requests: false
11
- on_failure: always
12
- on_success: change
13
- deploy:
14
- provider: rubygems
15
- gem: seatsio
16
- on:
17
- tags: true
18
- api_key:
19
- secure: mQmsVgbIYF16i0rzDYQoOzcXwG8ppJl/czjTWf/KaEtSCWG5tQKBzflXFIkrfoP7EyjC+2TvT4Z5tWIBUVR4gG2KjcV2lGgq2vV/sVYrmUIXO2LZHBu5n35QHBF//0IOvbZMufm7W8PIVM6do1tMxdRE+qMZVtb5M9YIQpDHc6jXru/PKxOffwTNEWMVX1Xjfz4wtuJCpvhR+BHuBoi9uE4dyWrF5WgkL2aELUvHpUmc2wn0gGypqJ9Whrcxq8n3EREvO0kiSMww+MMdWd57ACo4q5J8Za+h4tXvVd49EyEdevjWMvT0wYx+nSz+/vk4B9vOmd5Un9/gzoLbq8qEpAgEHXKw/J6l9KHlJDMNy2dVsMzqSOceEtBx5LA0fizWD4U2XfI0GaiM5Rdt96iNtVlU9lQuiXPhcz7igEFVRSZAkzTNHlh0cAr2FJIBBh27fffrblF/xRw1ziLwDnjutTg8lZsxmdjTrnMkAAuNWMIXKzWvh7n2bZ+jqwzp5bSqp1ckOCae7ozsG1Kx1eS8pMepsvMtmb5w6dsuWGVAI8ASd8XmYFHKisKmi6xHYOGw7uy7yE7rXHa0Ypx/K4xKCoqhv+5Y7RdTvT2tkqC0mwMOh/Io2eslgjTA0vy87sVKyLTCU/ElKRTd2165cRL2JRNH3l/X0gxglT4WpXQEEXs=