seatsio 47.3.0 → 48.0.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: 02c9599040afe998e09fe22298139853c5c9d453951be629c09cac413bc035b2
4
- data.tar.gz: e093463b519625b0d9d5840e4608b1ea8391353f17a36a8a3ce3c8f5ded61ae4
3
+ metadata.gz: b43441cc7be6abb9892f7b2d8352688eb223711852acccbe80fcc479685d64e6
4
+ data.tar.gz: a55ad7922c0097751cdd3f1c7a44de2ba3ba8f28295f0049378474a0eab3f2d5
5
5
  SHA512:
6
- metadata.gz: 7cb3e7b54ceff96dbb8c1a24469a69da6a5a4376caa66070290f95ecd0a0d2bf5eb2d5ff219def7ff7d37a9064ec29ecc7353365cd8b342715b01832b30f5e65
7
- data.tar.gz: b975856894a6645e659072f9a14116773114895f001b24b2df21125e98d9963ad1b7e0b1e16748ba12b351a2a66bf42ff2a91ffc5918a6d313b6bd8ca2fdf99f
6
+ metadata.gz: c97ab64665f67bd249f568d874a7a1008dcea717668c4723c43c2c70eda5512013255cdaf1785e43dc14162c529c61416c4dd67bb3324918fb6e2f07ddd864a3
7
+ data.tar.gz: 1c418b69a1be41e8f7ddc7c77548ba276e8a91fcad121e7b014af7a1aef634e2386ece74c4a80296162ea1a373817ad4a93d3c951acf0e2e13ed7460c5335ef7
@@ -12,7 +12,7 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  strategy:
14
14
  matrix:
15
- ruby-version: ['2.7', '3.1']
15
+ ruby-version: ['3.0', '3.3']
16
16
 
17
17
  steps:
18
18
  - uses: actions/checkout@v2
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.4
1
+ 3.3.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seatsio (47.3.0)
4
+ seatsio (48.0.0)
5
5
  rest-client (~> 2.0, >= 2.0.2)
6
6
 
7
7
  GEM
@@ -20,7 +20,7 @@ GEM
20
20
  mime-types (3.3.1)
21
21
  mime-types-data (~> 3.2015)
22
22
  mime-types-data (3.2021.0225)
23
- minitest (5.20.0)
23
+ minitest (5.21.2)
24
24
  minitest-parallel_fork (2.0.0)
25
25
  minitest (>= 5.15.0)
26
26
  netrc (0.11.0)
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # seatsio-ruby, the official Seats.io Ruby client library
1
+ # seatsio-ruby, the official Seats.io Ruby SDK
2
2
 
3
3
  [![Build](https://github.com/seatsio/seatsio-ruby/workflows/Build/badge.svg)](https://github.com/seatsio/seatsio-ruby/actions/workflows/build.yml)
4
4
  [![Gem Version](https://badge.fury.io/rb/seatsio.svg)](https://badge.fury.io/rb/seatsio)
5
5
 
6
- This is the official Ruby client library for the [Seats.io V2 REST API](https://docs.seats.io/docs/api-overview), supporting Ruby 2.7.0+
6
+ This is the official Ruby client library for the [Seats.io V2 REST API](https://docs.seats.io/docs/api-overview), supporting Ruby 3.0+
7
7
 
8
8
  ## Versioning
9
9
 
@@ -259,6 +259,18 @@ module Seatsio
259
259
  end
260
260
  end
261
261
 
262
+ class EventLogItem
263
+ attr_reader :id, :workspace_key, :type, :date, :data
264
+
265
+ def initialize(data)
266
+ @id = data['id']
267
+ @workspace_key = data['workspaceKey']
268
+ @type = data['type']
269
+ @date = DateTime.iso8601(data['date'])
270
+ @data = data['data']
271
+ end
272
+ end
273
+
262
274
  class ChangeObjectStatusResult
263
275
 
264
276
  attr_reader :objects
@@ -0,0 +1,27 @@
1
+ require "seatsio/exception"
2
+ require "base64"
3
+ require "seatsio/httpClient"
4
+ require "seatsio/domain"
5
+ require "json"
6
+ require "cgi"
7
+
8
+ module Seatsio
9
+ class EventLogClient
10
+
11
+ def initialize(http_client)
12
+ @http_client = http_client
13
+ end
14
+
15
+ def list(filter: nil)
16
+ extended_cursor = cursor
17
+ extended_cursor.set_query_param('filter', filter)
18
+ extended_cursor
19
+ end
20
+
21
+ private
22
+
23
+ def cursor()
24
+ Pagination::Cursor.new(EventLogItem, 'event-log', @http_client)
25
+ end
26
+ end
27
+ end
@@ -1,3 +1,3 @@
1
1
  module Seatsio
2
- VERSION = "47.3.0"
2
+ VERSION = "48.0.0"
3
3
  end
data/lib/seatsio.rb CHANGED
@@ -7,11 +7,12 @@ require 'seatsio/hold_tokens'
7
7
  require 'seatsio/chart_reports'
8
8
  require 'seatsio/event_reports'
9
9
  require 'seatsio/usage_reports'
10
+ require 'seatsio/event_log'
10
11
 
11
12
  module Seatsio
12
13
  class Client
13
14
  attr_reader :charts, :workspaces, :events, :seasons,
14
- :hold_tokens, :chart_reports, :event_reports, :usage_reports
15
+ :hold_tokens, :chart_reports, :event_reports, :usage_reports, :event_log
15
16
 
16
17
  def initialize(region, secret_key, workspace_key = nil, max_retries = 5)
17
18
  base_url = region.url
@@ -24,6 +25,7 @@ module Seatsio
24
25
  @chart_reports = ChartReportsClient.new(@http_client)
25
26
  @event_reports = EventReportsClient.new(@http_client)
26
27
  @usage_reports = UsageReportsClient.new(@http_client)
28
+ @event_log = EventLogClient.new(@http_client)
27
29
  end
28
30
  end
29
31
 
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: 47.3.0
4
+ version: 48.0.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: 2023-12-04 00:00:00.000000000 Z
11
+ date: 2024-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -131,6 +131,7 @@ files:
131
131
  - lib/seatsio/chart_reports.rb
132
132
  - lib/seatsio/charts.rb
133
133
  - lib/seatsio/domain.rb
134
+ - lib/seatsio/event_log.rb
134
135
  - lib/seatsio/event_reports.rb
135
136
  - lib/seatsio/events.rb
136
137
  - lib/seatsio/events/change_best_available_object_status_request.rb