tickethub 0.2.8 → 0.2.9
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/import.rb +20 -0
- data/lib/tickethub/supplier/product.rb +2 -0
- data/lib/tickethub/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcfac34126fbaa55f6e0ee0617fe5fc9f17e15e8
|
4
|
+
data.tar.gz: a72db358bd334752913ca0a5d0d0aac5e9a889a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b2f610c115d75121d0e25ae4be00ca7b725970a5b8b54768e66093bce5cc73e5265e7373a133144328bef14f23e1b1a881ae2c27ee4f7bf48586c5e55ca2dcb
|
7
|
+
data.tar.gz: 44c1a10f0ff198b33c2c8fb6a79bd7066eb6e687a663ef844f858b6e6091ebc95ebac2349498cee6d56d4f32ac9e7fb89af61b208d0c4f70abd126025dd972ef
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require_relative '../resource'
|
2
|
+
|
3
|
+
module Tickethub
|
4
|
+
class Supplier::Import < Resource
|
5
|
+
path '/supplier/imports'
|
6
|
+
|
7
|
+
require_relative 'rate'
|
8
|
+
require_relative 'tier'
|
9
|
+
require_relative 'reseller'
|
10
|
+
require_relative 'product'
|
11
|
+
|
12
|
+
association :rate, Supplier::Tier
|
13
|
+
association :tier, Supplier::Tier
|
14
|
+
association :reseller, Supplier::Reseller
|
15
|
+
association :product, Supplier::Product
|
16
|
+
|
17
|
+
attribute :updated_at, type: :datetime
|
18
|
+
attribute :created_at, type: :datetime
|
19
|
+
end
|
20
|
+
end
|
@@ -23,6 +23,7 @@ module Tickethub
|
|
23
23
|
require_relative 'answer'
|
24
24
|
require_relative 'tax'
|
25
25
|
require_relative 'scan'
|
26
|
+
require_relative 'import'
|
26
27
|
|
27
28
|
collection :bookings, Supplier::Booking
|
28
29
|
collection :vouchers, Supplier::Voucher
|
@@ -36,6 +37,7 @@ module Tickethub
|
|
36
37
|
collection :answers, Supplier::Answer
|
37
38
|
collection :taxes, Supplier::Tax
|
38
39
|
collection :scans, Supplier::Scan
|
40
|
+
collection :imports, Supplier::Import
|
39
41
|
|
40
42
|
collection :options, Supplier::Option do
|
41
43
|
def dates(from, to, booking = {})
|
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.9
|
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-01-
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -122,6 +122,7 @@ files:
|
|
122
122
|
- lib/tickethub/supplier/coupon.rb
|
123
123
|
- lib/tickethub/supplier/customer.rb
|
124
124
|
- lib/tickethub/supplier/fee.rb
|
125
|
+
- lib/tickethub/supplier/import.rb
|
125
126
|
- lib/tickethub/supplier/invoice.rb
|
126
127
|
- lib/tickethub/supplier/message.rb
|
127
128
|
- lib/tickethub/supplier/message/email.rb
|