tickethub 0.2.18 → 0.3.0

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: 875a41bce8481c342e2d313296ce1485422f5e7f
4
- data.tar.gz: 8621c3097121ca8c4ed46ad0f449a1bb18561b25
3
+ metadata.gz: a98808d4bd0da93284b9ae2169dfa7562f571222
4
+ data.tar.gz: 9a189fbea8a94f9f70fc7a8181d64413ba1fd965
5
5
  SHA512:
6
- metadata.gz: 0fbafe02661bd9aa6af3e42669d3e54158f4fa96d86869cd5c9e8d6b6fbd5e3b6d6f68be1a026013247f43b708094a5b971be7516053a836731ede42825f2459
7
- data.tar.gz: bbd7695dcaab03aad02d696006212f5df05f61ad2f7e93474034a2cff4094dd3a6a4eab3cd7a1105e731563d3cba716d6027364483bc14fc76566403d1084aab
6
+ metadata.gz: 6d87e18e542f6d9e9a140e2f8c1e3ec53ea0b24e2c3a0c9405ae1b0271129128babf5eb26bdf2c68cf2f009601af4678c48073495687c2e84e5d98d524673033
7
+ data.tar.gz: 0fbeaca26afbe8e3295c15f2380cf11bf6806745e8a032b87a08a5526ce84e4aa3f47407e64266d81062fdf0863a42abfa52624d2aa992636f542b0877b4fb76
@@ -9,7 +9,6 @@ module Tickethub
9
9
 
10
10
  attribute :amount, type: :money
11
11
  attribute :vat, type: :money
12
- attribute :total, type: :money
13
12
 
14
13
  attribute :created_at, type: :datetime
15
14
  end
@@ -7,13 +7,13 @@ module Tickethub
7
7
  require_relative 'booking'
8
8
  require_relative 'ticket'
9
9
  require_relative 'message'
10
- require_relative 'card'
10
+ require_relative 'source'
11
11
 
12
12
  require_relative '../address'
13
13
 
14
- collection :cards, Supplier::Card
15
14
  collection :orders, Supplier::Booking
16
15
  collection :tickets, Supplier::Ticket
16
+ collection :sources, Supplier::Source
17
17
  collection :messages, Supplier::Message
18
18
 
19
19
  association :address, Tickethub::Address
@@ -6,10 +6,10 @@ module Tickethub
6
6
 
7
7
  require_relative 'charge'
8
8
 
9
- require_relative 'payment/card'
10
9
  require_relative 'payment/cash'
11
10
  require_relative 'payment/credit'
12
11
  require_relative 'payment/direct'
12
+ require_relative 'payment/stripe'
13
13
  require_relative 'payment/complimentary'
14
14
 
15
15
  require_relative 'order'
@@ -1,17 +1,17 @@
1
1
  require_relative '../payment'
2
2
 
3
3
  module Tickethub
4
- class Supplier::Payment::Card < Supplier::Payment
5
- polymorphic 'card'
4
+ class Supplier::Payment::Stripe < Supplier::Payment
5
+ polymorphic 'stripe'
6
6
 
7
- require_relative '../card'
7
+ require_relative '../source'
8
8
  require_relative '../dispute'
9
9
  require_relative '../../address'
10
10
  require_relative '../charge/gateway'
11
11
  require_relative '../charge/service'
12
12
 
13
13
  association :dispute, Supplier::Dispute
14
- association :card, Supplier::Card
14
+ association :source, Supplier::Source
15
15
  association :address, Tickethub::Address
16
16
 
17
17
  association :gateway_charge, Supplier::Charge::Gateway
@@ -8,7 +8,6 @@ module Tickethub
8
8
  require_relative 'product'
9
9
  require_relative 'message'
10
10
  require_relative 'rate'
11
- require_relative 'card'
12
11
 
13
12
  require_relative '../token'
14
13
  require_relative '../contact'
@@ -17,7 +16,6 @@ module Tickethub
17
16
  collection :invoices, Supplier::Invoice
18
17
  collection :products, Supplier::Product
19
18
  collection :messages, Supplier::Message
20
- collection :cards, Supplier::Card
21
19
  collection :rates, Supplier::Rate
22
20
 
23
21
  association :token, Tickethub::Token
@@ -0,0 +1,7 @@
1
+ require_relative '../resource'
2
+
3
+ module Tickethub
4
+ class Supplier::Source < Resource
5
+ path '/supplier/sources'
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ require_relative '../source'
2
+
3
+ module Tickethub
4
+ class Supplier::Source::Alipay < Supplier::Source
5
+ polymorphic 'alipay'
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ require_relative '../source'
2
+
3
+ module Tickethub
4
+ class Supplier::Source::Bitcoin < Supplier::Source
5
+ polymorphic 'bitcoin'
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ require_relative '../source'
2
+
3
+ module Tickethub
4
+ class Supplier::Source::Card < Supplier::Source
5
+ polymorphic 'card'
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module Tickethub
2
- VERSION = '0.2.18'
2
+ VERSION = '0.3.0'
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.18
4
+ version: 0.3.0
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-03-02 00:00:00.000000000 Z
11
+ date: 2015-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -115,7 +115,6 @@ files:
115
115
  - lib/tickethub/supplier/booking.rb
116
116
  - lib/tickethub/supplier/booking/ticket.rb
117
117
  - lib/tickethub/supplier/booking/voucher.rb
118
- - lib/tickethub/supplier/card.rb
119
118
  - lib/tickethub/supplier/charge.rb
120
119
  - lib/tickethub/supplier/charge/gateway.rb
121
120
  - lib/tickethub/supplier/charge/service.rb
@@ -132,11 +131,11 @@ files:
132
131
  - lib/tickethub/supplier/option.rb
133
132
  - lib/tickethub/supplier/order.rb
134
133
  - lib/tickethub/supplier/payment.rb
135
- - lib/tickethub/supplier/payment/card.rb
136
134
  - lib/tickethub/supplier/payment/cash.rb
137
135
  - lib/tickethub/supplier/payment/complimentary.rb
138
136
  - lib/tickethub/supplier/payment/credit.rb
139
137
  - lib/tickethub/supplier/payment/direct.rb
138
+ - lib/tickethub/supplier/payment/stripe.rb
140
139
  - lib/tickethub/supplier/product.rb
141
140
  - lib/tickethub/supplier/question.rb
142
141
  - lib/tickethub/supplier/rate.rb
@@ -144,6 +143,10 @@ files:
144
143
  - lib/tickethub/supplier/reseller.rb
145
144
  - lib/tickethub/supplier/scan.rb
146
145
  - lib/tickethub/supplier/season.rb
146
+ - lib/tickethub/supplier/source.rb
147
+ - lib/tickethub/supplier/source/alipay.rb
148
+ - lib/tickethub/supplier/source/bitcoin.rb
149
+ - lib/tickethub/supplier/source/card.rb
147
150
  - lib/tickethub/supplier/subscription.rb
148
151
  - lib/tickethub/supplier/tax.rb
149
152
  - lib/tickethub/supplier/ticket.rb
@@ -177,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
180
  version: '0'
178
181
  requirements: []
179
182
  rubyforge_project:
180
- rubygems_version: 2.4.5
183
+ rubygems_version: 2.2.1
181
184
  signing_key:
182
185
  specification_version: 4
183
186
  summary: API client for tickethub.io
@@ -1,11 +0,0 @@
1
- require_relative '../resource'
2
-
3
- module Tickethub
4
- class Supplier::Card < Resource
5
- path '/supplier/cards'
6
-
7
- require_relative 'payment'
8
-
9
- collection :payments, Supplier::Payment
10
- end
11
- end