tickethub 0.2.14 → 0.2.15
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/booking.rb +1 -0
- data/lib/tickethub/supplier/charge.rb +1 -0
- data/lib/tickethub/supplier/order.rb +1 -0
- data/lib/tickethub/supplier/payment/card.rb +6 -1
- data/lib/tickethub/supplier/payment.rb +2 -3
- data/lib/tickethub/supplier/product.rb +0 -4
- data/lib/tickethub/supplier.rb +2 -5
- data/lib/tickethub/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d740bf7ed5f7a47130cc0783c2ef8c3e8c98449
|
4
|
+
data.tar.gz: ca924857562d5cd52860c3f9ec7f4b4915ecaba9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53b7881f0883094d37fab9556dc0401561f132d008b54dc39b717d2127b4a1744b4fb668107acdafef84f71ea29b2efc240df03897c0cf06f4ad349087acc88b
|
7
|
+
data.tar.gz: 18a9e93c970c0aa7b9cb2176cc0f4afe9a07186ad127ade65d3bc40f2c6622506e04b36a560a56ca533e24805352fef070238d2d4883ee2aa6a6bf65238660a5
|
@@ -8,10 +8,15 @@ module Tickethub
|
|
8
8
|
require_relative '../dispute'
|
9
9
|
require_relative '../../address'
|
10
10
|
require_relative '../charge/gateway'
|
11
|
+
require_relative '../charge/service'
|
11
12
|
|
12
13
|
association :dispute, Supplier::Dispute
|
13
14
|
association :card, Supplier::Card
|
14
15
|
association :address, Tickethub::Address
|
15
|
-
|
16
|
+
|
17
|
+
association :gateway_charge, Supplier::Charge::Gateway
|
18
|
+
association :service_charge, Supplier::Charge::Service
|
19
|
+
|
20
|
+
attribute :charges, type: :money
|
16
21
|
end
|
17
22
|
end
|
@@ -4,6 +4,8 @@ module Tickethub
|
|
4
4
|
class Supplier::Payment < Resource
|
5
5
|
path '/supplier/payments'
|
6
6
|
|
7
|
+
require_relative 'charge'
|
8
|
+
|
7
9
|
require_relative 'payment/card'
|
8
10
|
require_relative 'payment/cash'
|
9
11
|
require_relative 'payment/credit'
|
@@ -12,15 +14,12 @@ module Tickethub
|
|
12
14
|
|
13
15
|
require_relative 'order'
|
14
16
|
require_relative 'user'
|
15
|
-
require_relative 'charge/service'
|
16
17
|
|
17
|
-
association :service_charge, Supplier::Charge::Service
|
18
18
|
association :order, Supplier::Order
|
19
19
|
association :user, Supplier::User
|
20
20
|
|
21
21
|
attribute :amount, type: :money
|
22
22
|
attribute :refunded, type: :money
|
23
|
-
attribute :charges, type: :money
|
24
23
|
attribute :currency, type: :currency
|
25
24
|
attribute :refunded_at, type: :datetime
|
26
25
|
attribute :created_at, type: :datetime
|
data/lib/tickethub/supplier.rb
CHANGED
@@ -61,7 +61,8 @@ module Tickethub
|
|
61
61
|
|
62
62
|
attribute :country, type: :country
|
63
63
|
attribute :currency, type: :currency
|
64
|
-
|
64
|
+
attribute :balance, type: :money
|
65
|
+
|
65
66
|
attribute :created_at, type: :datetime
|
66
67
|
attribute :updated_at, type: :datetime
|
67
68
|
|
@@ -81,9 +82,5 @@ module Tickethub
|
|
81
82
|
|
82
83
|
super(endpoint, attributes)
|
83
84
|
end
|
84
|
-
|
85
|
-
def settings
|
86
|
-
@endpoint[:settings].get.decoded
|
87
|
-
end
|
88
85
|
end
|
89
86
|
end
|
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.2.
|
4
|
+
version: 0.2.15
|
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-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|