unit-ruby 0.1.1 → 0.1.2

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: 59f7e21224f067de8f06a1a569279ce2d3a6d242f44725c10d44f9d723627a4a
4
- data.tar.gz: 58a09d8c0de08370dc789d15968893acfcfa449d0aa0d1f9acb7d2c1f0c84fce
3
+ metadata.gz: fa587b106ef43cc6d8855b0743fee4759c9cf1637740271cab313f3b3838f07b
4
+ data.tar.gz: 9a5b9e38834ea195abf6e4cb41ccb8435df23737a2c657dc5dcdb4fb8510cf76
5
5
  SHA512:
6
- metadata.gz: 7bdca7d29ac184aaa4fa095bd9f5f1f4e4e027a8d889a608e4d3f11dbfd53991ab9f17f198a8a29c4f212ce17a2903015ae8183f7580c5463e7e331cd238d492
7
- data.tar.gz: '0782d46df4e8cfdf9659945939fb40fbb7e8f5d5cfc965745e88b1d2249b18e8230efcb80079e559f97670bb46341bc533b0abc4f21bac76818ba1737062a398'
6
+ metadata.gz: f0e1b3f46ee5ee71a50cb237ac68166db3bb7fa1889021799e67da881812b821f484f49c8ed1f6c73c64090fb4ed39a1811c3bf237ed0e4e19438dc2762cd6c0
7
+ data.tar.gz: da42517ea3121fd29e09d89e0eb5249f3c0e98fd28d7ee8e9df7e7af87b66e9820ada30ffb212b1a60e32b7bd8525538be4bda1c5e574a3a0d94877a26d7dc3f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- unit-ruby (0.1.1)
4
+ unit-ruby (0.1.2)
5
5
  faraday (~> 1.8.0)
6
6
 
7
7
  GEM
@@ -0,0 +1,13 @@
1
+ module Unit
2
+ class PinStatus < APIResource
3
+ path '/cards'
4
+
5
+ attribute :status, Types::String
6
+
7
+ def self.resource_path(id)
8
+ "#{super(id)}/secure-data/pin/status"
9
+ end
10
+
11
+ include ResourceOperations::Find
12
+ end
13
+ end
@@ -0,0 +1,9 @@
1
+ module Unit
2
+ class Statement < APIResource
3
+ path '/statements'
4
+
5
+ attribute :period, Types::String
6
+
7
+ include ResourceOperations::List
8
+ end
9
+ end
@@ -79,10 +79,6 @@ module Unit
79
79
  self.class.name.split('::').last.camelize(:lower)
80
80
  end
81
81
 
82
- def resource_path
83
- "#{self.class.path}/#{id}"
84
- end
85
-
86
82
  # Creates an association to a related resource
87
83
  # This will create a helper method to traverse into a resource's related resource(s)
88
84
  def self.belongs_to(resource_name, class_name: nil)
@@ -1,3 +1,3 @@
1
1
  module Unit
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
data/lib/unit-ruby.rb CHANGED
@@ -26,6 +26,8 @@ require 'unit-ruby/individual_application'
26
26
  require 'unit-ruby/individual_customer'
27
27
  require 'unit-ruby/individual_debit_card'
28
28
  require 'unit-ruby/institution'
29
+ require 'unit-ruby/pin_status'
30
+ require 'unit-ruby/statement'
29
31
  require 'unit-ruby/transaction'
30
32
  require 'unit-ruby/version'
31
33
 
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.1.1
4
+ version: 0.1.2
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: 2022-02-15 00:00:00.000000000 Z
12
+ date: 2022-02-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -111,6 +111,8 @@ files:
111
111
  - lib/unit-ruby/individual_customer.rb
112
112
  - lib/unit-ruby/individual_debit_card.rb
113
113
  - lib/unit-ruby/institution.rb
114
+ - lib/unit-ruby/pin_status.rb
115
+ - lib/unit-ruby/statement.rb
114
116
  - lib/unit-ruby/transaction.rb
115
117
  - lib/unit-ruby/types/address.rb
116
118
  - lib/unit-ruby/types/application_form_prefill.rb