seatsio 40.1.0 → 41.1.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: 4b8822f5a0c8488e65a7291c414a1425fbb3d499bf77a4621c43dc46a11afd8b
4
- data.tar.gz: a79e55c7a602c061cdc39ac05bcc3c73e5e6497d4c3af76327c98b55ae041905
3
+ metadata.gz: 9e26c4f5acaa14ec57d48cdf21d7f5485cccef99d6b5ee8870217af893ff880f
4
+ data.tar.gz: eb282ada76ca8e0c7ebd1efc1f3a24117148e76174b9f92284dc2bcc60433038
5
5
  SHA512:
6
- metadata.gz: 3db73b2ababeefb303f173e20fcabf96e97b025c6a6d773229a1e194ab7c5885a27aeef84fa667b9dafc1d7b3a0f438f0b0b03091eb2b55dccc22b468066792e
7
- data.tar.gz: b98d89bea756c377f98ec4857a1a980359a19bdb6d65cfd99fdf534006090588814a4eb35e5ee8690342e929ab2875a8cf55173eb8958db6606e9cf27ca98e10
6
+ metadata.gz: 5c91b99a9e83e3c5ff84021f4a564d4da5ccd37eaf6a29bc9e8e106d20a1543bc3d5789987861bb48eaa0483847783354d8dfe6632f3d235e842745fb7641f9a
7
+ data.tar.gz: 9d500c05e2df1619ef5177ca6e7308fa707ecab377c4950b24cdb6ac5c1aacaff6632af7fb3695bf086b399dab0bdc53e886b593dc9a68a142e1e2eccef86d81
@@ -12,7 +12,7 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  strategy:
14
14
  matrix:
15
- ruby-version: ['2.4', '3.0']
15
+ ruby-version: ['2.7', '3.1']
16
16
 
17
17
  steps:
18
18
  - uses: actions/checkout@v2
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.4.0
1
+ 2.7.4
data/Gemfile.lock CHANGED
@@ -1,13 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seatsio (40.1.0)
4
+ seatsio (41.1.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- addressable (2.8.0)
10
- public_suffix (>= 2.0.2, < 5.0)
9
+ addressable (2.8.1)
10
+ public_suffix (>= 2.0.2, < 6.0)
11
11
  crack (0.4.5)
12
12
  rexml
13
13
  domain_name (0.5.20190701)
@@ -19,9 +19,11 @@ GEM
19
19
  mime-types (3.3.1)
20
20
  mime-types-data (~> 3.2015)
21
21
  mime-types-data (3.2021.0225)
22
- minitest (5.15.0)
22
+ minitest (5.16.3)
23
+ minitest-parallel_fork (1.3.0)
24
+ minitest (>= 5.15.0)
23
25
  netrc (0.11.0)
24
- public_suffix (4.0.6)
26
+ public_suffix (5.0.0)
25
27
  rake (13.0.6)
26
28
  rest-client (2.1.0)
27
29
  http-accept (>= 1.7.0, < 2.0)
@@ -32,7 +34,7 @@ GEM
32
34
  unf (0.1.4)
33
35
  unf_ext
34
36
  unf_ext (0.0.7.7)
35
- webmock (3.14.0)
37
+ webmock (3.18.1)
36
38
  addressable (>= 2.8.0)
37
39
  crack (>= 0.3.2)
38
40
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -43,6 +45,7 @@ PLATFORMS
43
45
  DEPENDENCIES
44
46
  bundler (~> 2.2)
45
47
  minitest (~> 5.0)
48
+ minitest-parallel_fork (~> 1.3)
46
49
  rake (~> 13.0)
47
50
  rest-client (~> 2.0, >= 2.0.2)
48
51
  seatsio!
data/README.md CHANGED
@@ -3,7 +3,7 @@
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.4.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 2.7.0+
7
7
 
8
8
  ## Versioning
9
9
 
@@ -59,12 +59,13 @@ module Seatsio
59
59
 
60
60
  class ForSaleConfig
61
61
 
62
- attr_reader :for_sale, :objects, :categories
62
+ attr_reader :for_sale, :objects, :area_places, :categories
63
63
 
64
64
  def initialize(data)
65
65
  if data
66
66
  @for_sale = data['forSale']
67
67
  @objects = data['objects']
68
+ @area_places = data['areaPlaces']
68
69
  @categories = data['categories']
69
70
  end
70
71
  end
@@ -55,7 +55,7 @@ module Seatsio
55
55
 
56
56
  def retrieve_object_infos(key:, labels:)
57
57
  url = "events/#{key}/objects"
58
- query_params = URI.encode_www_form(labels.map { |label| ['label', label]})
58
+ query_params = URI.encode_www_form(labels.map { |label| ['label', label] })
59
59
  response = @http_client.get(url, query_params)
60
60
  response.each do |key, value|
61
61
  response[key] = EventObjectInfo.new(value)
@@ -70,7 +70,7 @@ module Seatsio
70
70
  def change_object_status(event_key_or_keys, object_or_objects, status, hold_token: nil, order_id: nil, keep_extra_data: nil, ignore_channels: nil, channel_keys: nil, ignore_social_distancing: nil, allowed_previous_statuses: nil, rejected_previous_statuses: nil)
71
71
  request = create_change_object_status_request(object_or_objects, status, hold_token, order_id, event_key_or_keys, keep_extra_data, ignore_channels, channel_keys, ignore_social_distancing, allowed_previous_statuses, rejected_previous_statuses)
72
72
  request[:params] = {
73
- :expand => 'objects'
73
+ :expand => 'objects'
74
74
  }
75
75
  response = @http_client.post("events/groups/actions/change-object-status", request)
76
76
  ChangeObjectStatusResult.new(response)
@@ -78,8 +78,8 @@ module Seatsio
78
78
 
79
79
  def change_object_status_in_batch(status_change_requests)
80
80
  request = {
81
- :statusChanges => status_change_requests,
82
- :params => {:expand => 'objects'}
81
+ :statusChanges => status_change_requests,
82
+ :params => { :expand => 'objects' }
83
83
  }
84
84
  response = @http_client.post("events/actions/change-object-status", request)
85
85
  ChangeObjectStatusInBatchResult.new(response).results
@@ -132,8 +132,8 @@ module Seatsio
132
132
  Pagination::Cursor.new(StatusChange, "/events/#{key}/objects/#{object_id}/status-changes", @http_client)
133
133
  end
134
134
 
135
- def mark_as_not_for_sale(key:, objects: nil, categories: nil)
136
- request = build_parameters_for_mark_as_sale objects: objects, categories: categories
135
+ def mark_as_not_for_sale(key:, objects: nil, area_places: nil, categories: nil)
136
+ request = build_parameters_for_mark_as_sale objects, area_places, categories
137
137
  @http_client.post("events/#{key}/actions/mark-as-not-for-sale", request)
138
138
  end
139
139
 
@@ -141,16 +141,17 @@ module Seatsio
141
141
  @http_client.post("events/#{key}/actions/mark-everything-as-for-sale")
142
142
  end
143
143
 
144
- def mark_as_for_sale(key:, objects: nil, categories: nil)
145
- request = build_parameters_for_mark_as_sale objects: objects, categories: categories
144
+ def mark_as_for_sale(key:, objects: nil, area_places: nil, categories: nil)
145
+ request = build_parameters_for_mark_as_sale objects, area_places, categories
146
146
  @http_client.post("events/#{key}/actions/mark-as-for-sale", request)
147
147
  end
148
148
 
149
149
  private
150
150
 
151
- def build_parameters_for_mark_as_sale(objects: nil, categories: nil)
151
+ def build_parameters_for_mark_as_sale(objects, area_places, categories)
152
152
  request = {}
153
153
  request[:objects] = objects if objects
154
+ request[:areaPlaces] = area_places if area_places
154
155
  request[:categories] = categories if categories
155
156
  request
156
157
  end
@@ -1,3 +1,3 @@
1
1
  module Seatsio
2
- VERSION = "40.1.0"
2
+ VERSION = "41.1.0"
3
3
  end
data/seatsio.gemspec CHANGED
@@ -25,4 +25,5 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency "minitest", "~> 5.0"
26
26
  spec.add_development_dependency "rest-client", '~> 2.0', '>= 2.0.2'
27
27
  spec.add_development_dependency 'webmock', '~> 3.4', '>= 3.4.2'
28
+ spec.add_development_dependency 'minitest-parallel_fork', '~> 1.3'
28
29
  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: 40.1.0
4
+ version: 41.1.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: 2022-06-20 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -92,6 +92,20 @@ dependencies:
92
92
  - - ">="
93
93
  - !ruby/object:Gem::Version
94
94
  version: 3.4.2
95
+ - !ruby/object:Gem::Dependency
96
+ name: minitest-parallel_fork
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '1.3'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '1.3'
95
109
  description: This is the official Ruby client library for the Seats.io V2 REST API
96
110
  email:
97
111
  - nahuel@seats.io