tickethub 0.3.15 → 0.3.16
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/tickethub/supplier/booking.rb +2 -2
- data/lib/tickethub/supplier/extra.rb +2 -3
- data/lib/tickethub/supplier/order.rb +2 -0
- data/lib/tickethub/supplier/product.rb +2 -0
- data/lib/tickethub/supplier/purchase.rb +19 -0
- data/lib/tickethub/supplier/session.rb +14 -0
- data/lib/tickethub/supplier/widget.rb +16 -0
- data/lib/tickethub/supplier.rb +4 -0
- data/lib/tickethub/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78b9253dcd60c0629a49deb3ba126e9d89b4505f
|
4
|
+
data.tar.gz: 94ef979d08f004bba7a2b07683bb381d0d02dc23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ed8387c64cbb0a651435286ac11f37fe090d2bac4c83ba1e4189f3debd02ad65a149a7d57fd9b417d41c07f0c8a87cf2d367bb6789b5e66e569a4739ae6c00a
|
7
|
+
data.tar.gz: 2dfa8cbcdc97004a765ee7f75543c044b26e5782484286254ab95f4f503109b23651ca063d05a583eddaf6de095950787bad18d25f38f7a6a0eac4d49d39f34e
|
@@ -13,7 +13,7 @@ module Tickethub
|
|
13
13
|
require_relative 'product'
|
14
14
|
require_relative 'variant'
|
15
15
|
require_relative 'message'
|
16
|
-
require_relative '
|
16
|
+
require_relative 'purchase'
|
17
17
|
require_relative 'fee'
|
18
18
|
require_relative 'broadcast'
|
19
19
|
|
@@ -27,7 +27,7 @@ module Tickethub
|
|
27
27
|
|
28
28
|
collection :answers, Supplier::Answer
|
29
29
|
collection :messages, Supplier::Message
|
30
|
-
collection :
|
30
|
+
collection :purchases, Supplier::Purchase
|
31
31
|
collection :fees, Supplier::Fee
|
32
32
|
|
33
33
|
association :order, Supplier::Order
|
@@ -4,12 +4,11 @@ module Tickethub
|
|
4
4
|
class Supplier::Extra < Resource
|
5
5
|
path '/supplier/extras'
|
6
6
|
|
7
|
-
require_relative '
|
7
|
+
require_relative 'product'
|
8
8
|
|
9
|
-
association :
|
9
|
+
association :product, Supplier::Product
|
10
10
|
|
11
11
|
attribute :price, type: :money
|
12
|
-
attribute :total, type: :money
|
13
12
|
|
14
13
|
attribute :created_at, type: :datetime
|
15
14
|
attribute :updated_at, type: :datetime
|
@@ -15,6 +15,7 @@ module Tickethub
|
|
15
15
|
require_relative 'user'
|
16
16
|
require_relative 'answer'
|
17
17
|
require_relative 'message'
|
18
|
+
require_relative 'session'
|
18
19
|
require_relative 'broadcast'
|
19
20
|
|
20
21
|
require_relative '../address'
|
@@ -33,6 +34,7 @@ module Tickethub
|
|
33
34
|
|
34
35
|
association :app, Supplier::App
|
35
36
|
association :user, Supplier::User
|
37
|
+
association :session, Supplier::Session
|
36
38
|
association :address, Tickethub::Address
|
37
39
|
|
38
40
|
attribute :total, type: :money
|
@@ -25,6 +25,7 @@ module Tickethub
|
|
25
25
|
require_relative 'answer'
|
26
26
|
require_relative 'tax'
|
27
27
|
require_relative 'scan'
|
28
|
+
require_relative 'widget'
|
28
29
|
require_relative 'import'
|
29
30
|
|
30
31
|
collection :bookings, Supplier::Booking
|
@@ -41,6 +42,7 @@ module Tickethub
|
|
41
42
|
collection :answers, Supplier::Answer
|
42
43
|
collection :taxes, Supplier::Tax
|
43
44
|
collection :scans, Supplier::Scan
|
45
|
+
collection :widgets, Supplier::Widget
|
44
46
|
collection :imports, Supplier::Import
|
45
47
|
|
46
48
|
collection :options, Supplier::Option do
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require_relative '../resource'
|
2
|
+
|
3
|
+
module Tickethub
|
4
|
+
class Supplier::Purchase < Resource
|
5
|
+
path '/supplier/purchases'
|
6
|
+
|
7
|
+
require_relative 'booking'
|
8
|
+
require_relative 'extra'
|
9
|
+
|
10
|
+
association :booking, Supplier::Booking
|
11
|
+
association :extra, Supplier::Extra
|
12
|
+
|
13
|
+
attribute :price, type: :money
|
14
|
+
attribute :charges, type: :money
|
15
|
+
|
16
|
+
attribute :updated_at, type: :datetime
|
17
|
+
attribute :created_at, type: :datetime
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require_relative '../resource'
|
2
|
+
|
3
|
+
module Tickethub
|
4
|
+
class Supplier::Session < Resource
|
5
|
+
path '/supplier/sessions'
|
6
|
+
|
7
|
+
require_relative 'widget'
|
8
|
+
|
9
|
+
association :widget, Supplier::Widget
|
10
|
+
|
11
|
+
attribute :updated_at, type: :datetime
|
12
|
+
attribute :created_at, type: :datetime
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require_relative '../resource'
|
2
|
+
|
3
|
+
module Tickethub
|
4
|
+
class Supplier::Widget < Resource
|
5
|
+
path '/supplier/widgets'
|
6
|
+
|
7
|
+
require_relative 'session'
|
8
|
+
require_relative 'product'
|
9
|
+
|
10
|
+
association :product, Supplier::Product
|
11
|
+
collection :sessions, Supplier::Session
|
12
|
+
|
13
|
+
attribute :updated_at, type: :datetime
|
14
|
+
attribute :created_at, type: :datetime
|
15
|
+
end
|
16
|
+
end
|
data/lib/tickethub/supplier.rb
CHANGED
@@ -28,8 +28,10 @@ module Tickethub
|
|
28
28
|
require_relative 'supplier/charge'
|
29
29
|
require_relative 'supplier/import'
|
30
30
|
require_relative 'supplier/broadcast'
|
31
|
+
require_relative 'supplier/widget'
|
31
32
|
|
32
33
|
require_relative 'contact'
|
34
|
+
require_relative 'address'
|
33
35
|
require_relative 'token'
|
34
36
|
|
35
37
|
collection :bills, Bill
|
@@ -59,7 +61,9 @@ module Tickethub
|
|
59
61
|
collection :charges, Charge
|
60
62
|
collection :imports, Import
|
61
63
|
collection :broadcasts, Broadcast
|
64
|
+
collection :widgets, Widget
|
62
65
|
|
66
|
+
association :address, Tickethub::Address
|
63
67
|
association :contact, Tickethub::Contact
|
64
68
|
association :token, Tickethub::Token
|
65
69
|
|
data/lib/tickethub/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tickethub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oliver Morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -138,12 +138,14 @@ files:
|
|
138
138
|
- lib/tickethub/supplier/payment/direct.rb
|
139
139
|
- lib/tickethub/supplier/payment/stripe.rb
|
140
140
|
- lib/tickethub/supplier/product.rb
|
141
|
+
- lib/tickethub/supplier/purchase.rb
|
141
142
|
- lib/tickethub/supplier/question.rb
|
142
143
|
- lib/tickethub/supplier/rate.rb
|
143
144
|
- lib/tickethub/supplier/receipt.rb
|
144
145
|
- lib/tickethub/supplier/reseller.rb
|
145
146
|
- lib/tickethub/supplier/scan.rb
|
146
147
|
- lib/tickethub/supplier/season.rb
|
148
|
+
- lib/tickethub/supplier/session.rb
|
147
149
|
- lib/tickethub/supplier/source.rb
|
148
150
|
- lib/tickethub/supplier/source/alipay.rb
|
149
151
|
- lib/tickethub/supplier/source/bitcoin.rb
|
@@ -155,6 +157,7 @@ files:
|
|
155
157
|
- lib/tickethub/supplier/user.rb
|
156
158
|
- lib/tickethub/supplier/variant.rb
|
157
159
|
- lib/tickethub/supplier/voucher.rb
|
160
|
+
- lib/tickethub/supplier/widget.rb
|
158
161
|
- lib/tickethub/token.rb
|
159
162
|
- lib/tickethub/user.rb
|
160
163
|
- lib/tickethub/user/app.rb
|