seatsio 25.1.0 → 25.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: 4dc27d7e5f0d565ab8f3572144b7d43fa968759e5d195e522064e31fe2123ab1
4
- data.tar.gz: 7ad0fd8cd2d5b157e70fa19f1d497cff9cc3fb8fc930cad3b0806da8e488b40a
3
+ metadata.gz: 1820cf5207f9bc8eb9319c9cf61fbc20d018c040491b9c38e16c236d43a2c2b7
4
+ data.tar.gz: 2764070302f5b4e32534fd2b9454424916ea5cc2ba91a1c18943a353903d2b3e
5
5
  SHA512:
6
- metadata.gz: 364c143d16dff2d97fd2a34e109346449b53789dfb65a9d8f53b9a9a583ab2b9b429145a0c4cc27958ce6e1403ec76a5073582ba4f76d0a1b1b0d2626337496f
7
- data.tar.gz: 5f2bb90a1cbee523c8a9c385bad51bf16f170d6c08754bd34c466638ef4c8a8ba4aa8a1067334eacf004d28add9f4399b30e17c2842f33d2c9d06889b65d2c08
6
+ metadata.gz: eec0fd22db7aa7a6cf4a1695e10c915da5014c5629f99866f26c5f77896f500809ec3b6a2dde216d82d495b841235add72d9868f8caf25feb12dda52afb5c22f
7
+ data.tar.gz: c401bb02abc284f62f899a382774f61c8bbfa5414dbff5234c53ea1725111508995eeaa5b0db8f1c46112a505b54d977907d8e25a4e446459fd37b8c44380973
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- seatsio (25.1.0)
4
+ seatsio (25.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -76,18 +76,18 @@ module Seatsio
76
76
  change_object_status(event_key_or_keys, object_or_objects, Domain::ObjectStatus::HELD, hold_token: hold_token, order_id: order_id, keep_extra_data: keep_extra_data, ignore_channels: ignore_channels, channel_keys: channel_keys)
77
77
  end
78
78
 
79
- def change_best_available_object_status(key, number, status, categories: nil, hold_token: nil, extra_data: nil, order_id: nil, keep_extra_data: nil, ignore_channels: nil, channel_keys: nil)
80
- request = create_change_best_available_object_status_request(number, status, categories, extra_data, hold_token, order_id, keep_extra_data, ignore_channels, channel_keys)
79
+ def change_best_available_object_status(key, number, status, categories: nil, hold_token: nil, extra_data: nil, ticket_types: nil, order_id: nil, keep_extra_data: nil, ignore_channels: nil, channel_keys: nil)
80
+ request = create_change_best_available_object_status_request(number, status, categories, extra_data, ticket_types, hold_token, order_id, keep_extra_data, ignore_channels, channel_keys)
81
81
  response = @http_client.post("events/#{key}/actions/change-object-status", request)
82
82
  Domain::BestAvailableObjects.new(response)
83
83
  end
84
84
 
85
- def book_best_available(key, number, categories: nil, hold_token: nil, order_id: nil, keep_extra_data: nil, extra_data: nil, ignore_channels: nil, channel_keys: nil)
86
- change_best_available_object_status(key, number, Domain::ObjectStatus::BOOKED, categories: categories, hold_token: hold_token, order_id: order_id, keep_extra_data: keep_extra_data, extra_data: extra_data, ignore_channels: ignore_channels, channel_keys: channel_keys)
85
+ def book_best_available(key, number, categories: nil, hold_token: nil, order_id: nil, keep_extra_data: nil, extra_data: nil, ticket_types: nil, ignore_channels: nil, channel_keys: nil)
86
+ change_best_available_object_status(key, number, Domain::ObjectStatus::BOOKED, categories: categories, hold_token: hold_token, order_id: order_id, keep_extra_data: keep_extra_data, extra_data: extra_data, ticket_types: ticket_types, ignore_channels: ignore_channels, channel_keys: channel_keys)
87
87
  end
88
88
 
89
- def hold_best_available(key, number, hold_token, categories: nil, order_id: nil, keep_extra_data: nil, extra_data: nil, ignore_channels: nil, channel_keys: nil)
90
- change_best_available_object_status(key, number, Domain::ObjectStatus::HELD, categories: categories, hold_token: hold_token, order_id: order_id, keep_extra_data: keep_extra_data, extra_data: extra_data, ignore_channels: ignore_channels, channel_keys: channel_keys)
89
+ def hold_best_available(key, number, hold_token, categories: nil, order_id: nil, keep_extra_data: nil, extra_data: nil, ticket_types: nil, ignore_channels: nil, channel_keys: nil)
90
+ change_best_available_object_status(key, number, Domain::ObjectStatus::HELD, categories: categories, hold_token: hold_token, order_id: order_id, keep_extra_data: keep_extra_data, extra_data: extra_data, ticket_types: ticket_types, ignore_channels: ignore_channels, channel_keys: channel_keys)
91
91
  end
92
92
 
93
93
  def release(event_key_or_keys, object_or_objects, hold_token: nil, order_id: nil, keep_extra_data: nil, ignore_channels: nil, channel_keys: nil)
@@ -1,8 +1,9 @@
1
- def create_change_best_available_object_status_request(number, status, categories, extra_data, hold_token, order_id, keep_extra_data, ignore_channels, channel_keys)
1
+ def create_change_best_available_object_status_request(number, status, categories, extra_data, ticket_types, hold_token, order_id, keep_extra_data, ignore_channels, channel_keys)
2
2
  result = {}
3
3
  best_available = {'number': number}
4
4
  best_available[:categories] = categories if categories != nil
5
5
  best_available[:extraData] = extra_data if extra_data != nil
6
+ best_available[:ticketTypes] = ticket_types if ticket_types != nil
6
7
  result[:status] = status
7
8
  result[:bestAvailable] = best_available
8
9
  result[:holdToken] = hold_token if hold_token != nil
@@ -1,3 +1,3 @@
1
1
  module Seatsio
2
- VERSION = "25.1.0"
2
+ VERSION = "25.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: 25.1.0
4
+ version: 25.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-07-27 00:00:00.000000000 Z
11
+ date: 2020-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler