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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30ea047fcd13377239854728069cc360d8a7b4f8
4
- data.tar.gz: 65775a6b67f2a5274c891c36ad5c20aac9eb5fa2
3
+ metadata.gz: 4d740bf7ed5f7a47130cc0783c2ef8c3e8c98449
4
+ data.tar.gz: ca924857562d5cd52860c3f9ec7f4b4915ecaba9
5
5
  SHA512:
6
- metadata.gz: cf0180050dcc426b31bb5a31411fd368d7c0f9f25a4035a55242b6d049a179048dafd288b7899fb560fd22fc561ec88365ad769da931c80db189e8bc62cf2c40
7
- data.tar.gz: c8b4a829d688efaea66d560384689b1d483999812dccc5e00367376e6257992407f9976a1f04e593d190b22125ea4b922b0748987da8d49665b63df3f324e739
6
+ metadata.gz: 53b7881f0883094d37fab9556dc0401561f132d008b54dc39b717d2127b4a1744b4fb668107acdafef84f71ea29b2efc240df03897c0cf06f4ad349087acc88b
7
+ data.tar.gz: 18a9e93c970c0aa7b9cb2176cc0f4afe9a07186ad127ade65d3bc40f2c6622506e04b36a560a56ca533e24805352fef070238d2d4883ee2aa6a6bf65238660a5
@@ -30,6 +30,7 @@ module Tickethub
30
30
  attribute :amount, type: :money
31
31
  attribute :tax, type: :money
32
32
  attribute :total, type: :money
33
+ attribute :charges, type: :money
33
34
 
34
35
  attribute :currency, type: :currency
35
36
  attribute :created_at, type: :datetime
@@ -9,6 +9,7 @@ module Tickethub
9
9
 
10
10
  attribute :amount, type: :money
11
11
  attribute :vat, type: :money
12
+ attribute :total, type: :money
12
13
 
13
14
  attribute :created_at, type: :datetime
14
15
  end
@@ -29,6 +29,7 @@ module Tickethub
29
29
 
30
30
  attribute :total, type: :money
31
31
  attribute :balance, type: :money
32
+ attribute :charges, type: :money
32
33
  attribute :currency, type: :currency
33
34
 
34
35
  attribute :expires_at, type: :datetime
@@ -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
- association :gateway_charge, Supplier::Charge::Service
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
@@ -57,9 +57,5 @@ module Tickethub
57
57
  def resellers
58
58
  Collection.new @endpoint['/supplier/resellers'], Supplier::Reseller, filters: { products: [id] }
59
59
  end
60
-
61
- def settings
62
- @endpoint[:settings].get.decoded
63
- end
64
60
  end
65
61
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Tickethub
2
- VERSION = '0.2.14'
2
+ VERSION = '0.2.15'
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.2.14
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-02-25 00:00:00.000000000 Z
11
+ date: 2015-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler