tickethub 0.3.37 → 0.3.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/tickethub/reseller.rb +2 -0
- data/lib/tickethub/reseller/booking.rb +0 -1
- data/lib/tickethub/reseller/discount.rb +13 -0
- data/lib/tickethub/reseller/order.rb +3 -1
- data/lib/tickethub/reseller/purchase.rb +0 -1
- data/lib/tickethub/supplier.rb +2 -0
- data/lib/tickethub/supplier/booking.rb +0 -1
- data/lib/tickethub/supplier/discount.rb +17 -0
- data/lib/tickethub/supplier/order.rb +3 -2
- data/lib/tickethub/supplier/purchase.rb +0 -1
- data/lib/tickethub/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f4a0902669222709a6e8846f5c0e3bf440a1a06
|
4
|
+
data.tar.gz: 6ed0472c61dc86d1c535d650cca1053a940229b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e4bd252b87a48e0539d77a432d3e85a2244cdb1388f27f6c023ceba538c235f4d32ffcc3ff8eb7d392546b515073bd36429793033a3a011e57ad2036a2a9bdd
|
7
|
+
data.tar.gz: 89bccd5def652f9ca7a03919825be8898a137706b8c1ca44dca3ef49de9060b505a88fba26b950d4cef866657e6c538b4d49e82b1196dcb5bd41252bbe1b7940
|
data/lib/tickethub/reseller.rb
CHANGED
@@ -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
|
@@ -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 :
|
29
|
+
attribute :discount, type: :money
|
28
30
|
attribute :currency, type: :currency
|
29
31
|
|
30
32
|
attribute :expires_at, type: :datetime
|
data/lib/tickethub/supplier.rb
CHANGED
@@ -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
|
@@ -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 :
|
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
|
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.3.
|
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-
|
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
|