tickethub 0.3.68 → 0.3.70

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
  SHA1:
3
- metadata.gz: 433a02361c6c852967e3faa7796fc0e920df5bd8
4
- data.tar.gz: a998a97a94c7b25b938a8ab0394c476ec836df76
3
+ metadata.gz: 63d9bdc81e10cc4ea3485f73f35cee54adf3437a
4
+ data.tar.gz: eec0b75bd9e02164d0652d08e6104f702dfb2872
5
5
  SHA512:
6
- metadata.gz: d52ac5a9afb737fa1cda4c34d08f16466caf14636672e328be99e88fae7d29623e31b891f6acf0c23363180f1650fee0cc122882bacd7d3ac0c43b462a1526cd
7
- data.tar.gz: cb530e1d9235c209222e9f27532c620ab4ebd453ee0f57498759b401f00eac489df20a26f6de16d8d3542c124b34551ac9e6b721eb64e5cd2580ee3120680e99
6
+ metadata.gz: 65aff58262f9d607cbb49d121159d46112b09b2c2404f556ee0450793ead57134d397ec98f9ff071c77a71422d7d9693c17c807c032dc1ea8cccd0c0d97ac30b
7
+ data.tar.gz: 699cabf7a78c280640aed6ca2608243e41d39f8d9c0d1fb55966942b54da709f783dabb62a46ade1ebe148fde122dc228e86fae571d77573cf6564f7383d04cd
@@ -0,0 +1,17 @@
1
+ require_relative '../resource'
2
+
3
+ module Tickethub
4
+ class Supplier::Shift < Resource
5
+ path '/supplier/shifts'
6
+
7
+ require_relative 'user'
8
+
9
+ collection :user, Supplier::User
10
+ collection :approved_by, Supplier::User
11
+
12
+ attribute :closed_at, type: :datetime
13
+ attribute :approved_at, type: :datetime
14
+ attribute :updated_at, type: :datetime
15
+ attribute :created_at, type: :datetime
16
+ end
17
+ end
@@ -2,6 +2,10 @@ module Tickethub
2
2
  class Supplier::User < Resource
3
3
  path '/supplier/users'
4
4
 
5
+ require_relative 'shift'
6
+
7
+ collection :shifts, Supplier::Shift
8
+
5
9
  def full_name
6
10
  [first_name, last_name].reject(&:nil?).join ' '
7
11
  end
@@ -31,6 +31,7 @@ module Tickethub
31
31
  require_relative 'supplier/discount'
32
32
  require_relative 'supplier/partner'
33
33
  require_relative 'supplier/session'
34
+ require_relative 'supplier/shift'
34
35
 
35
36
  require_relative 'contact'
36
37
  require_relative 'address'
@@ -66,6 +67,7 @@ module Tickethub
66
67
  collection :discounts, Discount
67
68
  collection :partners, Partner
68
69
  collection :sessions, Session
70
+ collection :shifts, Shift
69
71
 
70
72
  association :address, Tickethub::Address
71
73
  association :contact, Tickethub::Contact
@@ -1,3 +1,3 @@
1
1
  module Tickethub
2
- VERSION = '0.3.68'
2
+ VERSION = '0.3.70'
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.68
4
+ version: 0.3.70
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-12-18 00:00:00.000000000 Z
11
+ date: 2015-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -168,6 +168,7 @@ files:
168
168
  - lib/tickethub/supplier/scan.rb
169
169
  - lib/tickethub/supplier/season.rb
170
170
  - lib/tickethub/supplier/session.rb
171
+ - lib/tickethub/supplier/shift.rb
171
172
  - lib/tickethub/supplier/source.rb
172
173
  - lib/tickethub/supplier/source/alipay.rb
173
174
  - lib/tickethub/supplier/source/bitcoin.rb