seatsio 49.0.0 → 49.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/seatsio/domain.rb +1 -0
- data/lib/seatsio/events.rb +4 -0
- data/lib/seatsio/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e759ed6b746bb53cb8eb199507479705cfa7796d32353b33c4ddc993bfb6ce76
|
4
|
+
data.tar.gz: 14851178dfabcf9a676e92a14e7755ef1e4e22c63b3c9ff1849accea7c3d6fcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8251f917e42c1386d661f44aa2e74c1a6600bf5c6309899ad52dd2ab9ecf7501f27dcfa08bea7b560d4447b4a035b20b34d2dda1a63c2273674128159819bb8d
|
7
|
+
data.tar.gz: 27bbbb8fcbb80f16aabbf391bdc855b73201885d7f76fa8b30308baca85918499f5225335d3a4ec8208f8c0db717b93fa8555631145c8e76e4fecff3dbb240d1
|
data/Gemfile.lock
CHANGED
data/lib/seatsio/domain.rb
CHANGED
@@ -419,6 +419,7 @@ module Seatsio
|
|
419
419
|
FREE = 'free'
|
420
420
|
BOOKED = 'booked'
|
421
421
|
HELD = 'reservedByToken'
|
422
|
+
RESALE = 'resale'
|
422
423
|
|
423
424
|
attr_reader :labels, :ids, :label, :order_id, :extra_data, :capacity, :status,
|
424
425
|
:category_key, :entrance, :object_type, :hold_token, :category_label,
|
data/lib/seatsio/events.rb
CHANGED
@@ -76,6 +76,10 @@ module Seatsio
|
|
76
76
|
self.change_object_status(event_key_or_keys, object_or_objects, Seatsio::EventObjectInfo::BOOKED, 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 put_up_for_resale(event_key_or_keys, object_or_objects)
|
80
|
+
self.change_object_status(event_key_or_keys, object_or_objects, Seatsio::EventObjectInfo::RESALE)
|
81
|
+
end
|
82
|
+
|
79
83
|
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, allowed_previous_statuses: nil, rejected_previous_statuses: nil)
|
80
84
|
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, allowed_previous_statuses, rejected_previous_statuses)
|
81
85
|
request[:params] = {
|
data/lib/seatsio/version.rb
CHANGED