unit-ruby 0.2.6 → 0.3.7

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: 3de97a1740f4eccb8b4afba7feee092d42f7aec1a1a17125b0a512b12b704fac
4
- data.tar.gz: 8eaec1f14a300006bf99dea3336db46295f875f55b23d9d637372c6df123424a
3
+ metadata.gz: 85cc2b45531a2209cca9996808adf08499c99ca20c7c46ffa2546199b2233970
4
+ data.tar.gz: f7aa80fa8ef3ba7f96ed2f508ec4da0a53f76414d239ecb66b495831affea55c
5
5
  SHA512:
6
- metadata.gz: e8599644fb9e58615349538b9a6b73c99200c555b59504d68bcf405fcf95a30bc6d7a1da2f517eb258fa9fa3b5a6a21427f1993249ae8da12ac27df0788bf10c
7
- data.tar.gz: 647419597cc13b8062bc5baf98f8693ec2ba52415694c4df7ee0aaf87444abaeb3fbcab96b791fb78bc52f131293c3ce93a1f05d5266da5309d2f892be639bce
6
+ metadata.gz: d8b539b90bc395e4437dc85d31f5653b2c9b27b304205f882eaae923028e4edf6b6f8c6b56c3ceb241dadbbaaa8577fb76bdb08bb6057c3ec514e20633401c6e
7
+ data.tar.gz: e283b5244f7b8692f2c37d4418c03bbbdbc614daa9e8f7956745744530f9d85ea6761c8756a87e9db1180eeb109ff6efbdc657795a0847919f43bc8b9e058a8d
data/Gemfile.lock CHANGED
@@ -1,23 +1,22 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unit-ruby (0.2.5)
5
- activesupport (~> 6.1.5)
4
+ unit-ruby (0.3.7)
5
+ activesupport (>= 6.1.5, < 7.1.0)
6
6
  faraday (~> 1.8.0)
7
7
  faraday_middleware (~> 1.0.0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (6.1.7.1)
12
+ activesupport (7.0.4.3)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (>= 1.6, < 2)
15
15
  minitest (>= 5.1)
16
16
  tzinfo (~> 2.0)
17
- zeitwerk (~> 2.3)
18
17
  ast (2.4.2)
19
18
  coderay (1.1.3)
20
- concurrent-ruby (1.1.10)
19
+ concurrent-ruby (1.2.2)
21
20
  diff-lcs (1.5.0)
22
21
  dotenv (2.7.6)
23
22
  faraday (1.8.0)
@@ -44,8 +43,8 @@ GEM
44
43
  i18n (1.12.0)
45
44
  concurrent-ruby (~> 1.0)
46
45
  method_source (1.0.0)
47
- minitest (5.17.0)
48
- multipart-post (2.2.3)
46
+ minitest (5.18.0)
47
+ multipart-post (2.3.0)
49
48
  parallel (1.21.0)
50
49
  parser (3.1.0.0)
51
50
  ast (~> 2.4.1)
@@ -82,16 +81,15 @@ GEM
82
81
  parser (>= 3.0.1.1)
83
82
  ruby-progressbar (1.11.0)
84
83
  ruby2_keywords (0.0.5)
85
- tzinfo (2.0.5)
84
+ tzinfo (2.0.6)
86
85
  concurrent-ruby (~> 1.0)
87
86
  unicode-display_width (2.1.0)
88
- zeitwerk (2.6.6)
89
87
 
90
88
  PLATFORMS
91
89
  ruby
92
90
 
93
91
  DEPENDENCIES
94
- bundler (~> 1.17)
92
+ bundler (~> 2.4.0)
95
93
  dotenv (~> 2.7.6)
96
94
  pry
97
95
  rake (~> 13.0)
@@ -100,4 +98,4 @@ DEPENDENCIES
100
98
  unit-ruby!
101
99
 
102
100
  BUNDLED WITH
103
- 1.17.2
101
+ 2.4.19
@@ -0,0 +1,12 @@
1
+ module Unit
2
+ class Authorization < APIResource
3
+ path '/authorizations'
4
+
5
+ attribute :amount, Types::Integer
6
+ attribute :status, Types::String
7
+ attribute :summary, Types::String
8
+ attribute :created_at, Types::DateTime, readonly: true
9
+
10
+ include ResourceOperations::List
11
+ end
12
+ end
@@ -17,6 +17,7 @@ module Unit
17
17
  attribute :tags, Types::Hash # Optional. Tags that will be copied to the customer that this application creates
18
18
  attribute :idempotency_key, Types::String # Optional
19
19
  attribute :device_fingerprints, Types::Array # array of Device Fingerprint Optional. A list of device fingerprints for fraud and risk prevention
20
+ attribute :occupation, Types::String # Occupation of the individual
20
21
 
21
22
  attribute :created_at, Types::DateTime, readonly: true
22
23
  attribute :status, Types::String, readonly: true
@@ -1,3 +1,5 @@
1
+ require 'active_support/core_ext/module/delegation'
2
+
1
3
  module Unit
2
4
  module Types
3
5
  class Hash
@@ -1,3 +1,3 @@
1
1
  module Unit
2
- VERSION = '0.2.6'
2
+ VERSION = '0.3.7'
3
3
  end
data/lib/unit-ruby.rb CHANGED
@@ -23,6 +23,7 @@ require 'unit-ruby/types/string'
23
23
  require 'unit-ruby/ach_payment'
24
24
  require 'unit-ruby/application_form'
25
25
  require 'unit-ruby/atm_location'
26
+ require 'unit-ruby/authorization'
26
27
  require 'unit-ruby/customer_token_verification'
27
28
  require 'unit-ruby/customer_token'
28
29
  require 'unit-ruby/deposit_account'
data/unit-ruby.gemspec CHANGED
@@ -34,11 +34,11 @@ Gem::Specification.new do |spec|
34
34
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
35
35
  spec.require_paths = ['lib']
36
36
 
37
- spec.add_dependency 'activesupport', '~> 6.1.5'
37
+ spec.add_dependency 'activesupport', '>= 6.1.5', '< 7.1.0'
38
38
  spec.add_dependency 'faraday', '~> 1.8.0'
39
39
  spec.add_dependency 'faraday_middleware', '~> 1.0.0'
40
40
 
41
- spec.add_development_dependency 'bundler', '~> 1.17'
41
+ spec.add_development_dependency 'bundler', '~> 2.4.0'
42
42
  spec.add_development_dependency 'dotenv', '~> 2.7.6'
43
43
  spec.add_development_dependency 'pry'
44
44
  spec.add_development_dependency 'rake', '~> 13.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unit-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chloe Isacke
@@ -9,22 +9,28 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-03-01 00:00:00.000000000 Z
12
+ date: 2023-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 6.1.5
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: 7.1.0
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
- - - "~>"
28
+ - - ">="
26
29
  - !ruby/object:Gem::Version
27
30
  version: 6.1.5
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: 7.1.0
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: faraday
30
36
  requirement: !ruby/object:Gem::Requirement
@@ -59,14 +65,14 @@ dependencies:
59
65
  requirements:
60
66
  - - "~>"
61
67
  - !ruby/object:Gem::Version
62
- version: '1.17'
68
+ version: 2.4.0
63
69
  type: :development
64
70
  prerelease: false
65
71
  version_requirements: !ruby/object:Gem::Requirement
66
72
  requirements:
67
73
  - - "~>"
68
74
  - !ruby/object:Gem::Version
69
- version: '1.17'
75
+ version: 2.4.0
70
76
  - !ruby/object:Gem::Dependency
71
77
  name: dotenv
72
78
  requirement: !ruby/object:Gem::Requirement
@@ -163,6 +169,7 @@ files:
163
169
  - lib/unit-ruby/ach_payment.rb
164
170
  - lib/unit-ruby/application_form.rb
165
171
  - lib/unit-ruby/atm_location.rb
172
+ - lib/unit-ruby/authorization.rb
166
173
  - lib/unit-ruby/customer_token.rb
167
174
  - lib/unit-ruby/customer_token_verification.rb
168
175
  - lib/unit-ruby/deposit_account.rb
@@ -219,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
219
226
  - !ruby/object:Gem::Version
220
227
  version: '0'
221
228
  requirements: []
222
- rubygems_version: 3.4.7
229
+ rubygems_version: 3.2.3
223
230
  signing_key:
224
231
  specification_version: 4
225
232
  summary: A Ruby gem for communicating with the Unit API.