wes-data-api 14.1.1 → 14.2.0
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/wes/data/api/brand_user.rb +6 -0
- data/lib/wes/data/api/model/creator_user.rb +2 -2
- data/lib/wes/data/api.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d633da611f8525e543ee2965976e44d6c03c7b5
|
|
4
|
+
data.tar.gz: 5bdb3116db33da2d61cbb21c1df8c1b34688e3d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 063f8aa688e1e295dc36adc7f9cd591c85e5267727a97018056edab127d68a608f45238263d5fa0847d7872a6218bc4842e71ae3bde8ea53fa9526e5846ab220
|
|
7
|
+
data.tar.gz: 37f33b8a6e5af39b122a4fa95cc2259121ae76d2e9dcc5ded9b1169f4cdb0281b29c9211c61db38a8e46d113769223575bbac75c6fbd9b899d3d8c275168ee35
|
|
@@ -19,6 +19,12 @@ module Wes
|
|
|
19
19
|
attributes.nil? ? nil : model_klass.new(attributes)
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
+
def find_by_auth0_id(value)
|
|
23
|
+
route = "#{routes.brand_user}?auth0_id=#{value}"
|
|
24
|
+
attributes = client.get(route).first
|
|
25
|
+
attributes.nil? ? nil : model_klass.new(attributes)
|
|
26
|
+
end
|
|
27
|
+
|
|
22
28
|
private
|
|
23
29
|
|
|
24
30
|
def model_klass
|
|
@@ -63,7 +63,7 @@ module Wes
|
|
|
63
63
|
|
|
64
64
|
def transactions(limit = 50, offset = nil)
|
|
65
65
|
route = apply_pagination(
|
|
66
|
-
[routes.payments, routes.creator_user,
|
|
66
|
+
[routes.payments, routes.creator_user, @attributes.external_id, routes.transactions].join('/'),
|
|
67
67
|
limit,
|
|
68
68
|
offset
|
|
69
69
|
)
|
|
@@ -88,7 +88,7 @@ module Wes
|
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
def id
|
|
91
|
-
attributes.
|
|
91
|
+
attributes.id
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
def validate_collectives(input)
|
data/lib/wes/data/api.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wes-data-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 14.
|
|
4
|
+
version: 14.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ''
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-12-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
180
180
|
version: '0'
|
|
181
181
|
requirements: []
|
|
182
182
|
rubyforge_project:
|
|
183
|
-
rubygems_version: 2.5.2
|
|
183
|
+
rubygems_version: 2.5.2.3
|
|
184
184
|
signing_key:
|
|
185
185
|
specification_version: 4
|
|
186
186
|
summary: ''
|