wire4_auth 1.0.1 → 1.0.3

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
  SHA256:
3
- metadata.gz: 7cc203bd9934f2eba3455f6b805df2456e7fc2d3fa30b1bb918e4cb9801bd68e
4
- data.tar.gz: dfa71f4eaf55806c5af5138ab04fce185c19687b8e4d08af6272473538b85dc2
3
+ metadata.gz: 4fd2430cb43f273cdee5c8af44d37da774c6c6b30d9ea219f19ed5eeb34475b1
4
+ data.tar.gz: 9408b9d5f8a8ed9121dbbb841e51fc8cbe1fbf1c0d7817168eadbb0ade5b3516
5
5
  SHA512:
6
- metadata.gz: 554aa51aff78048a0e0cd7856e8aeebcca0d74278d18e57ba057e641d4e863255dc39530572f6552401c07e5fdaa5af56ac93c6f6fcb46b9075a6032d33cae8d
7
- data.tar.gz: b11a465f5b368f48a1e5e197212070fd89dda17888e17f2135ed35b4167d4c9d44cd2157c28bf6bf9c4e544292a3dcd84c89007a9c6680045077ec27cb4c95dc
6
+ metadata.gz: 5d143702786369d5217e53f2dfa9d0bee468477b940f3e02cc915bdc4c83a6c9f770465f87de471491c85ccee302901708ff3db33cad05ae5e7504c7901cff8d
7
+ data.tar.gz: 2cd2d6d6ef043213af030b574ed6bd977236572cb5941e7aca6b1883a79fbe8b8e2ddb2b2f6c94d6e78536155d1ddf2e780c9a5cdfd69678316e455a533d5a9b
data/Gemfile CHANGED
@@ -3,6 +3,6 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
- gem 'oauth2', '~> 1.4.2'
7
- gem 'wire4_client', '~> 1.0'
6
+ gem 'oauth2', '~> 1.4.3'
7
+ gem 'wire4_client', '~> 1.0.3'
8
8
  end
@@ -1,16 +1,23 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wire4_auth (1.0.1)
5
- oauth2 (~> 1.4, >= 1.4.2)
6
- wire4_client (~> 1.0.0, >= 1.0)
4
+ wire4_auth (1.0.3)
5
+ oauth2 (~> 1.4, >= 1.4.3)
6
+ wire4_client (~> 1.0, >= 1.0.3)
7
+
8
+ PATH
9
+ remote: /Users/saintiago/tcpip/git-repositories/speiok/wire4-api-sdk-ruby/sdk-client
10
+ specs:
11
+ wire4_client (1.0.3)
12
+ json (~> 2.1, >= 2.1.0)
13
+ typhoeus (~> 1.0, >= 1.0.1)
7
14
 
8
15
  GEM
9
16
  remote: https://rubygems.org/
10
17
  specs:
11
18
  ethon (0.12.0)
12
19
  ffi (>= 1.3.0)
13
- faraday (0.17.1)
20
+ faraday (1.0.0)
14
21
  multipart-post (>= 1.2, < 3)
15
22
  ffi (1.12.1)
16
23
  json (2.3.0)
@@ -18,30 +25,27 @@ GEM
18
25
  multi_json (1.14.1)
19
26
  multi_xml (0.6.0)
20
27
  multipart-post (2.1.1)
21
- oauth2 (1.4.2)
28
+ oauth2 (1.4.3)
22
29
  faraday (>= 0.8, < 2.0)
23
30
  jwt (>= 1.0, < 3.0)
24
31
  multi_json (~> 1.3)
25
32
  multi_xml (~> 0.5)
26
33
  rack (>= 1.2, < 3)
27
34
  power_assert (1.1.3)
28
- rack (2.0.7)
35
+ rack (2.1.2)
29
36
  test-unit (3.3.5)
30
37
  power_assert
31
38
  typhoeus (1.3.1)
32
39
  ethon (>= 0.9.0)
33
- wire4_client (1.0.0)
34
- json (~> 2.1, >= 2.1.0)
35
- typhoeus (~> 1.0, >= 1.0.1)
36
40
 
37
41
  PLATFORMS
38
42
  ruby
39
43
 
40
44
  DEPENDENCIES
41
- oauth2 (~> 1.4.2)
42
- test-unit (~> 3.3, >= 3.3.0)
45
+ oauth2 (~> 1.4.3)
46
+ test-unit (~> 3.3, >= 3.3.5)
43
47
  wire4_auth!
44
- wire4_client (~> 1.0)
48
+ wire4_client (~> 1.0.3)!
45
49
 
46
50
  BUNDLED WITH
47
51
  1.17.3
@@ -385,6 +385,43 @@ class Wire4ExamplesTest < Test::Unit::TestCase
385
385
  end
386
386
  end
387
387
 
388
+ def test_obtain_beneficiaries_by_request_id
389
+ #omit('Reason')
390
+ # Create the authenticator to obtain access token
391
+ # The token URL and Service URL are defined for this environment enum value.
392
+ # e.g. for Sandbox environment: Wire4Auth::EnvironmentEnum::SANDBOX
393
+ oauth_wire4 = Wire4Auth::OAuthWire4.new("kIinyEIYWUIF3pflFxhRdKft2_ga", "A_ffMFosMhm5j7l0L7Ptvbfrp9Ma", Wire4Auth::EnvironmentEnum::DEVELOPMENT)
394
+ #CLIENT_ID, CLIENT_SECRET, Wire4Auth::EnvironmentEnum::SANDBOX)
395
+
396
+ begin
397
+ # Obtain an access token use application flow and scope "spei_admin" and add to request
398
+ oauth_wire4.config_default_api_client
399
+ authorization = oauth_wire4.obtain_access_token_app_user("0bb13bfb99d461a8a0e18746b25e7d@develop.wire4.mx", "0b6ea839f33467a81631b380d37472", 'spei_admin')
400
+ # USER_KEY, SECRET_KEY, 'spei_admin')
401
+ rescue Wire4Client::ApiError => e
402
+ puts "Exception to obtain access token #{e}"
403
+ # Optional manage exception in access token flow
404
+ return
405
+ end
406
+
407
+ # create an instance of the API class
408
+ api_instance = Wire4Client::CuentasDeBeneficiariosSPEIApi.new
409
+
410
+ # build body with info (check references for more info: types, required fields, etc.)
411
+ subscription = SUBSCRIPTION
412
+ request_id = ""
413
+
414
+ begin
415
+ # Call the API
416
+ response = api_instance.get_beneficiaries_by_request_id(authorization, request_id, subscription)
417
+ p response
418
+ rescue Wire4Client::ApiError => e
419
+ puts "Exception when calling the API: #{e}"
420
+ # Optional manage exception in call API
421
+ return
422
+ end
423
+ end
424
+
388
425
  #noinspection RubyInstanceMethodNamingConvention
389
426
  def test_change_amount_limit_beneficiary
390
427
  omit('Reason')
@@ -15,5 +15,5 @@ version: 1.0
15
15
  =end
16
16
 
17
17
  module Wire4Auth
18
- VERSION = '1.0.1'
18
+ VERSION = '1.0.3'
19
19
  end
@@ -31,10 +31,10 @@ Gem::Specification.new do |s|
31
31
  s.license = "Unlicense"
32
32
  s.required_ruby_version = ">= 1.9"
33
33
 
34
- s.add_runtime_dependency 'oauth2', '~> 1.4', '>= 1.4.2'
35
- s.add_runtime_dependency 'wire4_client', '~> 1.0.0', '>= 1.0'
34
+ s.add_runtime_dependency 'oauth2', '~> 1.4', '>= 1.4.3'
35
+ s.add_runtime_dependency 'wire4_client', '~> 1.0', '>= 1.0.3'
36
36
 
37
- s.add_development_dependency 'test-unit', '~> 3.3', '>= 3.3.0'
37
+ s.add_development_dependency 'test-unit', '~> 3.3', '>= 3.3.5'
38
38
 
39
39
  s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
40
40
  s.executables = []
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wire4_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wire4
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-30 00:00:00.000000000 Z
11
+ date: 2020-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '1.4'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.4.2
22
+ version: 1.4.3
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,47 +29,47 @@ dependencies:
29
29
  version: '1.4'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.4.2
32
+ version: 1.4.3
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: wire4_client
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
37
+ - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '1.0'
40
- - - "~>"
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 1.0.0
42
+ version: 1.0.3
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
47
+ - - "~>"
48
48
  - !ruby/object:Gem::Version
49
49
  version: '1.0'
50
- - - "~>"
50
+ - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 1.0.0
52
+ version: 1.0.3
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: test-unit
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- version: 3.3.0
60
57
  - - "~>"
61
58
  - !ruby/object:Gem::Version
62
59
  version: '3.3'
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: 3.3.5
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: 3.3.0
70
67
  - - "~>"
71
68
  - !ruby/object:Gem::Version
72
69
  version: '3.3'
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: 3.3.5
73
73
  description: Herramienta para autenticacion de la API de Wire4
74
74
  email:
75
75
  - ''