unit-ruby 0.4.3 → 0.5.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: 381281df1aa51e261c5f2bfbe14e8f02f72027c21e1980d50a9e6017e60eb580
4
+ data.tar.gz: 9f7b8802d809c1093b25733f5ea7f9b210f0f90784a02555818477c25edc23e6
5
5
  SHA512:
6
- metadata.gz: 4754bdc3366b78e317eac5d4f107641a881d671c5cd88a2ce706a7b0744362f76897a4321f210173bc983b97d3479980ced8931d1141b7c6d8897b34a6d9afb8
7
- data.tar.gz: 93e6bbaffdde4c69dfcf03dfdf8ad0b9be944b67c9b06b175567ad89464bbced73c108151e7e1da9fb8d42e34c57910c45aaa187d50819ca1f22214e03a164d0
6
+ metadata.gz: d3f29ee34208973e78f263ab12146ae522c9a7131cd7bf023c8471b895ab07eac52884d3343c2e265d1a16aea559f020c835dad940961b5a3d912c2c99362c1e
7
+ data.tar.gz: 56fbb1fc0e0deb48854d315e1bb374a782a5078a4cb64c50528e4c5155c5769b257d603aa3e06ffddbe0a3e680c40d736ccb7b25165b62ee50c2e03c872e75c0
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.5.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 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.5.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
@@ -31,10 +31,13 @@ require 'unit-ruby/individual_application'
31
31
  require 'unit-ruby/individual_customer'
32
32
  require 'unit-ruby/individual_debit_card'
33
33
  require 'unit-ruby/institution'
34
+ require 'unit-ruby/customer_bank_migration'
35
+ require 'unit-ruby/outreach_settings'
34
36
  require 'unit-ruby/pin_status'
35
37
  require 'unit-ruby/statement'
36
38
  require 'unit-ruby/transaction'
37
39
  require 'unit-ruby/version'
40
+ require 'unit-ruby/white_label_theme'
38
41
 
39
42
  module Unit
40
43
  # 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.5.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-07-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -170,6 +170,7 @@ files:
170
170
  - lib/unit-ruby/application_form.rb
171
171
  - lib/unit-ruby/atm_location.rb
172
172
  - lib/unit-ruby/authorization.rb
173
+ - lib/unit-ruby/customer_bank_migration.rb
173
174
  - lib/unit-ruby/customer_token.rb
174
175
  - lib/unit-ruby/customer_token_verification.rb
175
176
  - lib/unit-ruby/deposit_account.rb
@@ -177,6 +178,7 @@ files:
177
178
  - lib/unit-ruby/individual_customer.rb
178
179
  - lib/unit-ruby/individual_debit_card.rb
179
180
  - lib/unit-ruby/institution.rb
181
+ - lib/unit-ruby/outreach_settings.rb
180
182
  - lib/unit-ruby/pin_status.rb
181
183
  - lib/unit-ruby/statement.rb
182
184
  - lib/unit-ruby/transaction.rb
@@ -201,6 +203,7 @@ files:
201
203
  - lib/unit-ruby/util/resource_operations.rb
202
204
  - lib/unit-ruby/util/schema.rb
203
205
  - lib/unit-ruby/version.rb
206
+ - lib/unit-ruby/white_label_theme.rb
204
207
  - unit-ruby.gemspec
205
208
  homepage: https://github.com/retirable/unit-ruby
206
209
  licenses:
@@ -226,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
229
  - !ruby/object:Gem::Version
227
230
  version: '0'
228
231
  requirements: []
229
- rubygems_version: 3.2.3
232
+ rubygems_version: 3.4.10
230
233
  signing_key:
231
234
  specification_version: 4
232
235
  summary: A Ruby gem for communicating with the Unit API.