unit-ruby 0.4.3 → 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: 1077022efe59f2bb8e77f2bc881383dc53830cd2c9d03c1db0ea3bc8c136de28
4
- data.tar.gz: 65d7e891b1e713931850155b87558ad8946229bb96220829fdf44fe969a0ffb0
3
+ metadata.gz: f7cb7026d5f889029b04f9d2f57cdfaf2df6b32c744db4005cfe7215310b519e
4
+ data.tar.gz: 04ff7674aa7e1c757f66cf599c02d36a707d1bdc2301bd92b85a5a8d3414672e
5
5
  SHA512:
6
- metadata.gz: 4754bdc3366b78e317eac5d4f107641a881d671c5cd88a2ce706a7b0744362f76897a4321f210173bc983b97d3479980ced8931d1141b7c6d8897b34a6d9afb8
7
- data.tar.gz: 93e6bbaffdde4c69dfcf03dfdf8ad0b9be944b67c9b06b175567ad89464bbced73c108151e7e1da9fb8d42e34c57910c45aaa187d50819ca1f22214e03a164d0
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.4.3)
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
@@ -0,0 +1,22 @@
1
+ module Unit
2
+ class CustomerBankMigration < APIResource
3
+ path '/migrations'
4
+
5
+ attribute :from_bank, Types::String
6
+ attribute :to_bank, Types::String
7
+ attribute :idempotency_key, Types::String
8
+ attribute :deadline, Types::Date
9
+ attribute :balance_transfer_timing, Types::String # Optional. The timing of the balance transfer. Default is "NewAccountCreation"
10
+ attribute :status, Types::String, readonly: true
11
+ attribute :migration_url, Types::String, readonly: true
12
+ attribute :created_at, Types::DateTime, readonly: true
13
+ attribute :updated_at, Types::DateTime, readonly: true
14
+
15
+ belongs_to :customer, class_name: 'Unit::IndividualCustomer'
16
+ belongs_to :white_label_theme, class_name: 'Unit::WhiteLabelTheme'
17
+ belongs_to :outreach_settings, class_name: 'Unit::OutreachSettings'
18
+
19
+ include ResourceOperations::Create
20
+ include ResourceOperations::Find
21
+ end
22
+ end
@@ -0,0 +1,4 @@
1
+ module Unit
2
+ class OutreachSettings < APIResource
3
+ end
4
+ end
@@ -96,7 +96,7 @@ module Unit
96
96
 
97
97
  define_method("#{resource_name}=") do |resource|
98
98
  relationships[resource_name] = {
99
- data: { type: resource_name, id: resource.id }
99
+ data: { type: resource_name.to_s.camelize(:lower).to_sym, id: resource.id }
100
100
  }
101
101
  end
102
102
  end
@@ -1,3 +1,3 @@
1
1
  module Unit
2
- VERSION = '0.4.3'
2
+ VERSION = '0.6.0'
3
3
  end
@@ -0,0 +1,4 @@
1
+ module Unit
2
+ class WhiteLabelTheme < APIResource
3
+ end
4
+ 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'
@@ -31,10 +32,13 @@ require 'unit-ruby/individual_application'
31
32
  require 'unit-ruby/individual_customer'
32
33
  require 'unit-ruby/individual_debit_card'
33
34
  require 'unit-ruby/institution'
35
+ require 'unit-ruby/customer_bank_migration'
36
+ require 'unit-ruby/outreach_settings'
34
37
  require 'unit-ruby/pin_status'
35
38
  require 'unit-ruby/statement'
36
39
  require 'unit-ruby/transaction'
37
40
  require 'unit-ruby/version'
41
+ require 'unit-ruby/white_label_theme'
38
42
 
39
43
  module Unit
40
44
  # Usage:
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.4.3
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-06-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,10 +166,12 @@ 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
172
173
  - lib/unit-ruby/authorization.rb
174
+ - lib/unit-ruby/customer_bank_migration.rb
173
175
  - lib/unit-ruby/customer_token.rb
174
176
  - lib/unit-ruby/customer_token_verification.rb
175
177
  - lib/unit-ruby/deposit_account.rb
@@ -177,6 +179,7 @@ files:
177
179
  - lib/unit-ruby/individual_customer.rb
178
180
  - lib/unit-ruby/individual_debit_card.rb
179
181
  - lib/unit-ruby/institution.rb
182
+ - lib/unit-ruby/outreach_settings.rb
180
183
  - lib/unit-ruby/pin_status.rb
181
184
  - lib/unit-ruby/statement.rb
182
185
  - lib/unit-ruby/transaction.rb
@@ -201,6 +204,7 @@ files:
201
204
  - lib/unit-ruby/util/resource_operations.rb
202
205
  - lib/unit-ruby/util/schema.rb
203
206
  - lib/unit-ruby/version.rb
207
+ - lib/unit-ruby/white_label_theme.rb
204
208
  - unit-ruby.gemspec
205
209
  homepage: https://github.com/retirable/unit-ruby
206
210
  licenses: