tickethub 0.3.37 → 0.3.38

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: cef201ce3ff0e3fe70a8c7b85ea4153996fa469b
4
- data.tar.gz: 38556058483bb42ce9ac733e10286b60a9e4ba19
3
+ metadata.gz: 2f4a0902669222709a6e8846f5c0e3bf440a1a06
4
+ data.tar.gz: 6ed0472c61dc86d1c535d650cca1053a940229b2
5
5
  SHA512:
6
- metadata.gz: b02ce6d86378ae1a67504e0c4402d83e14e62bd7d3e4cea34bcc6f10bc10ee5ee498c4829c2ad76df7817c34b5a0f630544c24fb26854812146d47f740f415f5
7
- data.tar.gz: 0ff15effb35656a64a377c3c74327785f5efd0a6f368fb0804272b28da1548a2eee56ea5ff93333acf7ea630fb943da3a8c8afcd18ed8a0b2959a5ea5f320e9e
6
+ metadata.gz: 9e4bd252b87a48e0539d77a432d3e85a2244cdb1388f27f6c023ceba538c235f4d32ffcc3ff8eb7d392546b515073bd36429793033a3a011e57ad2036a2a9bdd
7
+ data.tar.gz: 89bccd5def652f9ca7a03919825be8898a137706b8c1ca44dca3ef49de9060b505a88fba26b950d4cef866657e6c538b4d49e82b1196dcb5bd41252bbe1b7940
@@ -21,6 +21,7 @@ module Tickethub
21
21
  require_relative 'reseller/tax'
22
22
  require_relative 'reseller/fee'
23
23
  require_relative 'reseller/source'
24
+ require_relative 'reseller/discount'
24
25
 
25
26
  require_relative 'contact'
26
27
  require_relative 'address'
@@ -45,6 +46,7 @@ module Tickethub
45
46
  collection :taxes, Tax
46
47
  collection :fees, Fee
47
48
  collection :sources, Source
49
+ collection :discount, Discount
48
50
 
49
51
  association :contact, Tickethub::Contact
50
52
  association :address, Tickethub::Address
@@ -27,7 +27,6 @@ module Tickethub
27
27
  attribute :amount, type: :money
28
28
  attribute :tax, type: :money
29
29
  attribute :total, type: :money
30
- attribute :charges, type: :money
31
30
 
32
31
  attribute :currency, type: :currency
33
32
  attribute :created_at, type: :datetime
@@ -0,0 +1,13 @@
1
+ require_relative '../resource'
2
+
3
+ module Tickethub
4
+ class Reseller::Discount < Resource
5
+ path '/reseller/discounts'
6
+
7
+ attribute :amount, type: :money
8
+
9
+ attribute :currency, type: :currency
10
+ attribute :created_at, type: :datetime
11
+ attribute :updated_at, type: :datetime
12
+ end
13
+ end
@@ -7,6 +7,7 @@ module Tickethub
7
7
  require_relative 'customer'
8
8
  require_relative 'booking'
9
9
  require_relative 'payment'
10
+ require_relative 'discount'
10
11
 
11
12
  require_relative 'customer'
12
13
  require_relative 'user'
@@ -17,6 +18,7 @@ module Tickethub
17
18
  collection :bookings, Reseller::Booking
18
19
  collection :payments, Reseller::Payment
19
20
  collection :answers, Reseller::Answer
21
+ collection :discounts, Reseller::Discount
20
22
 
21
23
  association :customer, Reseller::Customer
22
24
  association :user, Reseller::User
@@ -24,7 +26,7 @@ module Tickethub
24
26
 
25
27
  attribute :total, type: :money
26
28
  attribute :balance, type: :money
27
- attribute :commission, type: :money
29
+ attribute :discount, type: :money
28
30
  attribute :currency, type: :currency
29
31
 
30
32
  attribute :expires_at, type: :datetime
@@ -11,7 +11,6 @@ module Tickethub
11
11
  association :extra, Reseller::Extra
12
12
 
13
13
  attribute :price, type: :money
14
- attribute :charges, type: :money
15
14
 
16
15
  attribute :updated_at, type: :datetime
17
16
  attribute :created_at, type: :datetime
@@ -30,6 +30,7 @@ module Tickethub
30
30
  require_relative 'supplier/widget'
31
31
  require_relative 'supplier/transfer'
32
32
  require_relative 'supplier/channel'
33
+ require_relative 'supplier/discount'
33
34
 
34
35
  require_relative 'contact'
35
36
  require_relative 'address'
@@ -64,6 +65,7 @@ module Tickethub
64
65
  collection :widgets, Widget
65
66
  collection :transfers, Transfer
66
67
  collection :channels, Channel
68
+ collection :discounts, Discount
67
69
 
68
70
  association :address, Tickethub::Address
69
71
  association :contact, Tickethub::Contact
@@ -39,7 +39,6 @@ module Tickethub
39
39
  attribute :amount, type: :money
40
40
  attribute :tax, type: :money
41
41
  attribute :total, type: :money
42
- attribute :charges, type: :money
43
42
 
44
43
  attribute :currency, type: :currency
45
44
  attribute :created_at, type: :datetime
@@ -0,0 +1,17 @@
1
+ require_relative '../resource'
2
+
3
+ module Tickethub
4
+ class Supplier::Discount < Resource
5
+ path '/supplier/discounts'
6
+
7
+ require_relative 'order'
8
+
9
+ association :order, Supplier::Order
10
+
11
+ attribute :amount, type: :money
12
+
13
+ attribute :currency, type: :currency
14
+ attribute :created_at, type: :datetime
15
+ attribute :updated_at, type: :datetime
16
+ end
17
+ end
@@ -7,6 +7,7 @@ module Tickethub
7
7
  require_relative 'customer'
8
8
  require_relative 'booking'
9
9
  require_relative 'payment'
10
+ require_relative 'discount'
10
11
 
11
12
  require_relative 'reseller'
12
13
  require_relative 'customer'
@@ -28,6 +29,7 @@ module Tickethub
28
29
  collection :payments, Supplier::Payment
29
30
  collection :messages, Supplier::Message
30
31
  collection :answers, Supplier::Answer
32
+ collection :discounts, Supplier::Discount
31
33
 
32
34
  association :reseller, Supplier::Reseller
33
35
  association :customer, Supplier::Customer
@@ -39,8 +41,7 @@ module Tickethub
39
41
 
40
42
  attribute :total, type: :money
41
43
  attribute :balance, type: :money
42
- attribute :charges, type: :money
43
- attribute :commission, type: :money
44
+ attribute :discount, type: :money
44
45
  attribute :currency, type: :currency
45
46
 
46
47
  attribute :expires_at, type: :datetime
@@ -11,7 +11,6 @@ module Tickethub
11
11
  association :extra, Supplier::Extra
12
12
 
13
13
  attribute :price, type: :money
14
- attribute :charges, type: :money
15
14
 
16
15
  attribute :updated_at, type: :datetime
17
16
  attribute :created_at, type: :datetime
@@ -1,3 +1,3 @@
1
1
  module Tickethub
2
- VERSION = '0.3.37'
2
+ VERSION = '0.3.38'
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.3.37
4
+ version: 0.3.38
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-08-04 00:00:00.000000000 Z
11
+ date: 2015-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -112,6 +112,7 @@ files:
112
112
  - lib/tickethub/reseller/booking/voucher.rb
113
113
  - lib/tickethub/reseller/channel.rb
114
114
  - lib/tickethub/reseller/customer.rb
115
+ - lib/tickethub/reseller/discount.rb
115
116
  - lib/tickethub/reseller/extra.rb
116
117
  - lib/tickethub/reseller/fee.rb
117
118
  - lib/tickethub/reseller/invoice.rb
@@ -153,6 +154,7 @@ files:
153
154
  - lib/tickethub/supplier/charge/service.rb
154
155
  - lib/tickethub/supplier/coupon.rb
155
156
  - lib/tickethub/supplier/customer.rb
157
+ - lib/tickethub/supplier/discount.rb
156
158
  - lib/tickethub/supplier/dispute.rb
157
159
  - lib/tickethub/supplier/extra.rb
158
160
  - lib/tickethub/supplier/fee.rb