tickethub 0.3.15 → 0.3.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9cf11642c8d84b8cc21a67f358c445b8e3e6a6ee
4
- data.tar.gz: 8defb126878f577e19f24783cc4e64fdb44e679a
3
+ metadata.gz: 78b9253dcd60c0629a49deb3ba126e9d89b4505f
4
+ data.tar.gz: 94ef979d08f004bba7a2b07683bb381d0d02dc23
5
5
  SHA512:
6
- metadata.gz: 5feb23bd1145796769321b504547575f04591a074ea74b279283bd04a12dcad4e33b849c3fd6ad6115c5e49b59c2a9775fb06e7a7dfb83ecb691f3b89a53c7f6
7
- data.tar.gz: ab3d0bdbd457921172728c5ef582d48b7b184cd4d62056cb955c9c0745ac3eeb0b0121c589c931cb1e614ca6780a2e90ca669606a66501273940d5cea47096a3
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 'extra'
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 :extras, Supplier::Extra
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 'booking'
7
+ require_relative 'product'
8
8
 
9
- association :booking, Supplier::Booking
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
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Tickethub
2
- VERSION = '0.3.15'
2
+ VERSION = '0.3.16'
3
3
  end
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.15
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-03-29 00:00:00.000000000 Z
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