gillbus 0.20.9 → 0.21.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 +4 -4
- data/lib/gillbus/structs/ticket.rb +11 -9
- data/lib/gillbus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1145b11518e0a58839e07dc98671ee67c8f5b0a65d6e79f30f9ed58370c1deac
|
4
|
+
data.tar.gz: 8b17a93001e181811031fe07edc04d8dea970c0167dcedbc3add732ccb243b37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a189d2d3db10e14cc0c31363d567d0f576d73a249eda0a3743e610756031c2198ae6c6be33847c1b53a78eb0dca13d31fe0194d5693001975c1f005c68a492f
|
7
|
+
data.tar.gz: 35253bc3806ca1fd8a5d97e3b3bbd5fa5de7ff965bfe12dfaa669efc541a2845d7024a029a26dd81a06a4ff5c711a545853988176ae2ea25cbe58abec640b4e5
|
@@ -1,13 +1,15 @@
|
|
1
1
|
class Gillbus
|
2
2
|
class Ticket
|
3
3
|
STATUS_MAPPING = {
|
4
|
-
'
|
5
|
-
'
|
6
|
-
'
|
7
|
-
'
|
8
|
-
'
|
9
|
-
'
|
10
|
-
'
|
4
|
+
'0' => :voiding, # ticket in processing, interim status during refund;
|
5
|
+
'1' => :reserved, # ticket booked;
|
6
|
+
'2' => :ticketed, # ticket sold;
|
7
|
+
'3' => :ordered, # the booking, that waiting for the confirmation;
|
8
|
+
'4' => :returned, # ticket returned;
|
9
|
+
'5' => :canceled, # booking canceled;
|
10
|
+
'6' => :voided, # ticket canceled;
|
11
|
+
'8' => :booked, # the sale, that waiting for the confirmation;
|
12
|
+
'e' => :ticketing_error, # resource failed to process this ticket;
|
11
13
|
}.freeze
|
12
14
|
|
13
15
|
extend Fields
|
@@ -32,8 +34,8 @@ class Gillbus
|
|
32
34
|
# :ticketed 2 – ticket sold;
|
33
35
|
# :ordered 3 – the booking, that waiting for the confirmation;
|
34
36
|
# :returned 4 – ticket returned;
|
35
|
-
# :canceled 5 – booking
|
36
|
-
# :voided 6 – ticket
|
37
|
+
# :canceled 5 – booking canceled;
|
38
|
+
# :voided 6 – ticket canceled;
|
37
39
|
# :booked 8 – the sale, that waiting for the confirmation
|
38
40
|
field :ticket_status, :ticket_status
|
39
41
|
|
data/lib/gillbus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gillbus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey "codesnik" Trofimenko
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-11-
|
12
|
+
date: 2019-11-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|