unit-ruby 0.7.0 → 0.8.1

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: 40e6853f18c626e65e80304e8136701347c69e77b1f3a847a616e8ac5695ec2a
4
- data.tar.gz: b3debed74f1f43a874c804b42d6c843346d97bb8f79c7fdee679c729172c9907
3
+ metadata.gz: f1a6c04ad65f5d0ef586e445563067bb1ce8037b4461930cab5f53cdc77c77ee
4
+ data.tar.gz: 70eadc4ec0a0a63470bd6dafa10db1dd9c136a8fa7e01aa607dd5d7b8e5b6bc2
5
5
  SHA512:
6
- metadata.gz: 7fdac7147fdc333044c1bb07f765d739ddccf3d47a169ea8987a49e9ca2342634b9a547bbf3c569e938aaddf661a4395ffe58f43c66488d6151016cbbd16b7e4
7
- data.tar.gz: 4e50d0b332986d09a0093efd0c3c2c10d0712ad75d97a22938411c197616babceeb5bcb94cf6b36a2fa058808f1a889d74c4fc87074cdaf861299c0b3e5ab738
6
+ metadata.gz: 24f197252fc0ed771ec3b2813caa3006c8992434c2307148d1faf76a9cb21dd701a071c24de236cef75b3e1f881152c96f0451039613ba89377e37fede86c826
7
+ data.tar.gz: 13ecfe0403f28c2f509bd445b4e3b5a7c11779e353a905f81ea19a6dd34973bfe4f77ed64290c175d5311c34e21d58f5e6fc72e6357223cf4d81e6287ee126c5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unit-ruby (0.6.0)
4
+ unit-ruby (0.8.1)
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,30 @@
1
+ module Unit
2
+ class ReceivedPayment < APIResource
3
+ path '/received-payments'
4
+
5
+ attribute :status, Types::String, readonly: true
6
+ attribute :direction, Types::String, readonly: true
7
+ attribute :was_advanced, Types::Boolean, readonly: true
8
+ attribute :is_advanceable, Types::Boolean, readonly: true
9
+ attribute :amount, Types::Integer, readonly: true
10
+ attribute :return_reason, Types::String, readonly: true
11
+ attribute :ach_return_reason, Types::String, readonly: true
12
+ attribute :completion_date, Types::DateTime, readonly: true
13
+ attribute :company_name, Types::String, readonly: true
14
+ attribute :counterparty_routing_number, Types::String, readonly: true
15
+ attribute :description, Types::String, readonly: true
16
+ attribute :addenda, Types::String, readonly: true
17
+ attribute :trace_number, Types::String, readonly: true
18
+ attribute :sec_code, Types::String, readonly: true
19
+ attribute :receiving_entity_name, Types::String, readonly: true
20
+ attribute :tags, Types::Hash # Optional
21
+
22
+ attribute :created_at, Types::DateTime, readonly: true
23
+
24
+ belongs_to :account, class_name: 'Unit::DepositAccount'
25
+ belongs_to :customer, class_name: 'Unit::IndividualCustomer'
26
+
27
+ include ResourceOperations::Find
28
+ include ResourceOperations::List
29
+ end
30
+ end
@@ -1,3 +1,3 @@
1
1
  module Unit
2
- VERSION = '0.7.0'
2
+ VERSION = '0.8.1'
3
3
  end
data/lib/unit-ruby.rb CHANGED
@@ -38,6 +38,7 @@ require 'unit-ruby/individual_debit_card'
38
38
  require 'unit-ruby/institution'
39
39
  require 'unit-ruby/customer_bank_migration'
40
40
  require 'unit-ruby/outreach_settings'
41
+ require 'unit-ruby/received_payment'
41
42
  require 'unit-ruby/pin_status'
42
43
  require 'unit-ruby/statement'
43
44
  require 'unit-ruby/transaction'
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.7.0
4
+ version: 0.8.1
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-10-08 00:00:00.000000000 Z
12
+ date: 2024-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -181,6 +181,7 @@ files:
181
181
  - lib/unit-ruby/institution.rb
182
182
  - lib/unit-ruby/outreach_settings.rb
183
183
  - lib/unit-ruby/pin_status.rb
184
+ - lib/unit-ruby/received_payment.rb
184
185
  - lib/unit-ruby/statement.rb
185
186
  - lib/unit-ruby/transaction.rb
186
187
  - lib/unit-ruby/types/account_limits.rb