unit-ruby 0.5.0 → 0.6.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
  SHA256:
3
- metadata.gz: 381281df1aa51e261c5f2bfbe14e8f02f72027c21e1980d50a9e6017e60eb580
4
- data.tar.gz: 9f7b8802d809c1093b25733f5ea7f9b210f0f90784a02555818477c25edc23e6
3
+ metadata.gz: f7cb7026d5f889029b04f9d2f57cdfaf2df6b32c744db4005cfe7215310b519e
4
+ data.tar.gz: 04ff7674aa7e1c757f66cf599c02d36a707d1bdc2301bd92b85a5a8d3414672e
5
5
  SHA512:
6
- metadata.gz: d3f29ee34208973e78f263ab12146ae522c9a7131cd7bf023c8471b895ab07eac52884d3343c2e265d1a16aea559f020c835dad940961b5a3d912c2c99362c1e
7
- data.tar.gz: 56fbb1fc0e0deb48854d315e1bb374a782a5078a4cb64c50528e4c5155c5769b257d603aa3e06ffddbe0a3e680c40d736ccb7b25165b62ee50c2e03c872e75c0
6
+ metadata.gz: b97986bc5c32f155b99b79bd17fe2d559ba3ca57cbe8ddba591b745b36f3424e53b87f59382eb7ad24c715908ea0a70a3893ffb229b0798a823e451082cd39a6
7
+ data.tar.gz: a2802acbd1879dccba1e0ff868bd63507bbdbb6c8fd3269dc8e326ab3661d4749b8c76f09557067ad3520873e8e050d508f7251a2a8d35b7c06b2afef5560938
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unit-ruby (0.5.0)
4
+ unit-ruby (0.6.0)
5
5
  activesupport (>= 6.1.5, < 7.1.0)
6
6
  faraday (~> 1.8.0)
7
7
  faraday_middleware (~> 1.0.0)
@@ -0,0 +1,22 @@
1
+ module Unit
2
+ class AchCounterparty < APIResource
3
+ path '/counterparties'
4
+
5
+ attribute :idempotency_key, Types::String # Optional
6
+ attribute :tags, Types::Hash # Optional
7
+
8
+ attribute :name, Types::String # Name of the account holder
9
+ attribute :created_at, Types::DateTime
10
+ attribute :routing_number, Types::String # Routing number of account.
11
+ attribute :account_number, Types::String # Account number, together with the routingNumber forms the identifier of the account on the ACH network.
12
+ attribute :account_type, Types::String # Account type, either Checking, Savings or Loan. Default is Checking.
13
+ attribute :type, Types::String # Type of the counterparty, either Business, Person or Unknown.
14
+
15
+ belongs_to :customer, class_name: 'Unit::IndividualCustomer'
16
+
17
+ include ResourceOperations::List
18
+ include ResourceOperations::Create
19
+ include ResourceOperations::Save
20
+ include ResourceOperations::Find
21
+ end
22
+ end
@@ -1,3 +1,3 @@
1
1
  module Unit
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
data/lib/unit-ruby.rb CHANGED
@@ -24,6 +24,7 @@ require 'unit-ruby/ach_payment'
24
24
  require 'unit-ruby/application_form'
25
25
  require 'unit-ruby/atm_location'
26
26
  require 'unit-ruby/authorization'
27
+ require 'unit-ruby/ach_counterparty'
27
28
  require 'unit-ruby/customer_token_verification'
28
29
  require 'unit-ruby/customer_token'
29
30
  require 'unit-ruby/deposit_account'
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.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chloe Isacke
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-07-17 00:00:00.000000000 Z
12
+ date: 2024-09-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -166,6 +166,7 @@ files:
166
166
  - bin/console
167
167
  - bin/setup
168
168
  - lib/unit-ruby.rb
169
+ - lib/unit-ruby/ach_counterparty.rb
169
170
  - lib/unit-ruby/ach_payment.rb
170
171
  - lib/unit-ruby/application_form.rb
171
172
  - lib/unit-ruby/atm_location.rb
@@ -229,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
230
  - !ruby/object:Gem::Version
230
231
  version: '0'
231
232
  requirements: []
232
- rubygems_version: 3.4.10
233
+ rubygems_version: 3.2.3
233
234
  signing_key:
234
235
  specification_version: 4
235
236
  summary: A Ruby gem for communicating with the Unit API.