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 +4 -4
- data/lib/tickethub/supplier/charge/gateway.rb +7 -0
- data/lib/tickethub/supplier/charge/service.rb +7 -0
- data/lib/tickethub/supplier/charge.rb +15 -0
- data/lib/tickethub/supplier/payment/card.rb +2 -0
- data/lib/tickethub/supplier/payment.rb +2 -0
- data/lib/tickethub/supplier.rb +2 -0
- data/lib/tickethub/version.rb +1 -1
- data/tickethub.gemspec +6 -5
- metadata +17 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8808ced9920510cd5cf56d99d962b80472c40c6e
|
4
|
+
data.tar.gz: 13c9c5d05284091b9b0239f1c6faba42963c552e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8285d578503c10e4fa326ea6f42c57f329bbb4ba57fe30e2cf117037c627484f8356068aab998c864de6c75320f5e0426be11d0a906f7677889ed0006acf205
|
7
|
+
data.tar.gz: 2b959db42d71ae378389a8c4793dc955607212a6e064cb9b9397b56f76981f3b00a51368f989c6f167b6e039af5b6eb8d2e42e5958162cc7323527d1b4f09795
|
@@ -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
|
data/lib/tickethub/supplier.rb
CHANGED
@@ -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
|
data/lib/tickethub/version.rb
CHANGED
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'
|
21
|
-
|
22
|
-
spec.add_dependency '
|
23
|
-
spec.add_dependency '
|
24
|
-
spec.add_dependency '
|
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.
|
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-
|
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: '
|
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: '
|
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
|
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
|
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:
|
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:
|
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
|
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
|
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
|
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
|
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
|