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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a092c143999291283024d52a7c5300be0eafd1c4
4
- data.tar.gz: 7d0f669293510392d2208baf3f651d50859bd2be
3
+ metadata.gz: 6d633da611f8525e543ee2965976e44d6c03c7b5
4
+ data.tar.gz: 5bdb3116db33da2d61cbb21c1df8c1b34688e3d3
5
5
  SHA512:
6
- metadata.gz: 500a56f18ecfef20806197de10a9cf626868b46963c0b648680b9b8c2ddda0f7e658f5033c15d84571ac34d30bea4d59765a2f99924ab03ba59aac23a010053c
7
- data.tar.gz: ecd592db21c18148661c7650361ba094cf612a9a455189137f9f567878694b8dfb03d85cb8c7a7ab9e6ac1657cfc7c17caf173f51ceff5d4cc0ca304460acfb4
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, id, routes.transactions].join('/'),
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.auth0_id
91
+ attributes.id
92
92
  end
93
93
 
94
94
  def validate_collectives(input)
data/lib/wes/data/api.rb CHANGED
@@ -5,7 +5,7 @@ require 'wes/data/api/configuration'
5
5
  module Wes
6
6
  module Data
7
7
  module API
8
- VERSION = '14.1.1'.freeze
8
+ VERSION = '14.2.0'.freeze
9
9
  end
10
10
  end
11
11
  end
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.1.1
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-08-15 00:00:00.000000000 Z
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: ''