tickethub 0.0.14 → 0.1.2

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: ddf603e85b4fc466e5715bca259296dda8c8ae0f
4
- data.tar.gz: 1e5aa2a58a80a7d2e9b39120a10d98614eebd6cc
3
+ metadata.gz: 8808ced9920510cd5cf56d99d962b80472c40c6e
4
+ data.tar.gz: 13c9c5d05284091b9b0239f1c6faba42963c552e
5
5
  SHA512:
6
- metadata.gz: 253d04d45eed29449395b0024f1fd5356342936f3650b8976a7048aa840cd8fe83bf9d733ec7773896f38218e995034b3ddeea8af37ad3d8ce5c0db29b4fb1d2
7
- data.tar.gz: e327f8dbbdb4b0c224c82e155df339af151c9f58069b8f270be5ea993346709497f574744ca2052f9327cbe9198c42fa888881b3ca7561ba9b7b5ddeff44bfcb
6
+ metadata.gz: f8285d578503c10e4fa326ea6f42c57f329bbb4ba57fe30e2cf117037c627484f8356068aab998c864de6c75320f5e0426be11d0a906f7677889ed0006acf205
7
+ data.tar.gz: 2b959db42d71ae378389a8c4793dc955607212a6e064cb9b9397b56f76981f3b00a51368f989c6f167b6e039af5b6eb8d2e42e5958162cc7323527d1b4f09795
@@ -0,0 +1,7 @@
1
+ require_relative '../charge'
2
+
3
+ module Tickethub
4
+ class Supplier::Charge::Gateway < Supplier::Charge
5
+ polymorphic 'gateway'
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ require_relative '../charge'
2
+
3
+ module Tickethub
4
+ class Supplier::Charge::Service < Supplier::Charge
5
+ polymorphic 'service'
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ require_relative '../resource'
2
+
3
+ module Tickethub
4
+ class Supplier::Charge < Resource
5
+ path '/supplier/charges'
6
+
7
+ require_relative 'charge/gateway'
8
+ require_relative 'charge/service'
9
+
10
+ attribute :amount, type: :money
11
+ attribute :vat, type: :money
12
+
13
+ attribute :created_at, type: :datetime
14
+ end
15
+ end
@@ -6,8 +6,10 @@ module Tickethub
6
6
 
7
7
  require_relative '../card'
8
8
  require_relative '../../address'
9
+ require_relative '../charge/gateway'
9
10
 
10
11
  association :card, Supplier::Card
11
12
  association :address, Tickethub::Address
13
+ association :gateway_charge, Supplier::Charge::Service
12
14
  end
13
15
  end
@@ -12,7 +12,9 @@ module Tickethub
12
12
 
13
13
  require_relative 'order'
14
14
  require_relative 'user'
15
+ require_relative 'charge/service'
15
16
 
17
+ association :service_charge, Supplier::Charge::Service
16
18
  association :order, Supplier::Order
17
19
  association :user, Supplier::User
18
20
 
@@ -24,6 +24,7 @@ module Tickethub
24
24
  require_relative 'supplier/tax'
25
25
  require_relative 'supplier/fee'
26
26
  require_relative 'supplier/message'
27
+ require_relative 'supplier/charge'
27
28
 
28
29
  require_relative 'contact'
29
30
  require_relative 'token'
@@ -51,6 +52,7 @@ module Tickethub
51
52
  collection :taxes, Tax
52
53
  collection :fees, Fee
53
54
  collection :messages, Message
55
+ collection :charges, Charge
54
56
 
55
57
  association :contact, Tickethub::Contact
56
58
  association :token, Tickethub::Token
@@ -1,3 +1,3 @@
1
1
  module Tickethub
2
- VERSION = '0.0.14'
2
+ VERSION = '0.1.2'
3
3
  end
data/tickethub.gemspec CHANGED
@@ -17,9 +17,10 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_development_dependency 'bundler', '~> 1.3'
21
- spec.add_dependency 'timezone', '~> 0.3', '>= 0.3.2'
22
- spec.add_dependency 'money', '~> 6.1', '>= 6.1.1'
23
- spec.add_dependency 'countries', '~> 0.9', '>= 0.9.3'
24
- spec.add_dependency 'iso8601-basic', '~> 0.1', '>= 0.1.0'
20
+ spec.add_development_dependency 'bundler'
21
+
22
+ spec.add_dependency 'timezone'
23
+ spec.add_dependency 'money'
24
+ spec.add_dependency 'countries'
25
+ spec.add_dependency 'iso8601-basic'
25
26
  end
metadata CHANGED
@@ -1,109 +1,85 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tickethub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oliver Morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-18 00:00:00.000000000 Z
11
+ date: 2014-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: timezone
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.3'
34
31
  - - ">="
35
32
  - !ruby/object:Gem::Version
36
- version: 0.3.2
33
+ version: '0'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
- - - "~>"
42
- - !ruby/object:Gem::Version
43
- version: '0.3'
44
38
  - - ">="
45
39
  - !ruby/object:Gem::Version
46
- version: 0.3.2
40
+ version: '0'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: money
49
43
  requirement: !ruby/object:Gem::Requirement
50
44
  requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '6.1'
54
45
  - - ">="
55
46
  - !ruby/object:Gem::Version
56
- version: 6.1.1
47
+ version: '0'
57
48
  type: :runtime
58
49
  prerelease: false
59
50
  version_requirements: !ruby/object:Gem::Requirement
60
51
  requirements:
61
- - - "~>"
62
- - !ruby/object:Gem::Version
63
- version: '6.1'
64
52
  - - ">="
65
53
  - !ruby/object:Gem::Version
66
- version: 6.1.1
54
+ version: '0'
67
55
  - !ruby/object:Gem::Dependency
68
56
  name: countries
69
57
  requirement: !ruby/object:Gem::Requirement
70
58
  requirements:
71
- - - "~>"
72
- - !ruby/object:Gem::Version
73
- version: '0.9'
74
59
  - - ">="
75
60
  - !ruby/object:Gem::Version
76
- version: 0.9.3
61
+ version: '0'
77
62
  type: :runtime
78
63
  prerelease: false
79
64
  version_requirements: !ruby/object:Gem::Requirement
80
65
  requirements:
81
- - - "~>"
82
- - !ruby/object:Gem::Version
83
- version: '0.9'
84
66
  - - ">="
85
67
  - !ruby/object:Gem::Version
86
- version: 0.9.3
68
+ version: '0'
87
69
  - !ruby/object:Gem::Dependency
88
70
  name: iso8601-basic
89
71
  requirement: !ruby/object:Gem::Requirement
90
72
  requirements:
91
- - - "~>"
92
- - !ruby/object:Gem::Version
93
- version: '0.1'
94
73
  - - ">="
95
74
  - !ruby/object:Gem::Version
96
- version: 0.1.0
75
+ version: '0'
97
76
  type: :runtime
98
77
  prerelease: false
99
78
  version_requirements: !ruby/object:Gem::Requirement
100
79
  requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '0.1'
104
80
  - - ">="
105
81
  - !ruby/object:Gem::Version
106
- version: 0.1.0
82
+ version: '0'
107
83
  description: API client for tickethub.io
108
84
  email:
109
85
  - olly@tickethub.io
@@ -140,6 +116,9 @@ files:
140
116
  - lib/tickethub/supplier/booking/ticket.rb
141
117
  - lib/tickethub/supplier/booking/voucher.rb
142
118
  - lib/tickethub/supplier/card.rb
119
+ - lib/tickethub/supplier/charge.rb
120
+ - lib/tickethub/supplier/charge/gateway.rb
121
+ - lib/tickethub/supplier/charge/service.rb
143
122
  - lib/tickethub/supplier/coupon.rb
144
123
  - lib/tickethub/supplier/customer.rb
145
124
  - lib/tickethub/supplier/fee.rb