afterbanks-api-ruby 0.1.1 → 0.2.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: 5268cac27fef764ba752b976080b0d75000967a933396a6b095bb572b358b5b2
4
- data.tar.gz: c246452d2534ee337fca3f1eadad02d411d4dbd6bfebd10313fb5fe23383a6e6
3
+ metadata.gz: b950e0c205ccad340e3151cf3b30e059ede78eaa2537decdf34df8f5069ca00d
4
+ data.tar.gz: 297d4e9482c49b6c3513d5d33a005456490411b2337e9f4c287e23dddbe3807e
5
5
  SHA512:
6
- metadata.gz: bd515ee40f3d079f85ba8a0f26629f2ddd1115df70a456fd2d27db930bdaec63a13ed7e0d600675a0d1806f15c8d96dfa5d54c275409bf0a343d2ebf67b66a19
7
- data.tar.gz: e604b21bd233f53e544566c4d307a9a40c2c72c27b3884978f38a9a52e13e579cf0ee845ab1c9f2b8fbe5b6cafda4319c195b09223bced49e6cd269440ffadfa
6
+ metadata.gz: c8b8e439e5c5d28925050f97f0bff83d8358b492c13f3b9ba7f4f437b6819a821c1515d291d08d3152e05d7e455cb5a2b9315d11f78a87eaf2da9e7cb06b1d1a
7
+ data.tar.gz: d59b18b57fb1a0f7acad963cce8faf2b50fbe4ae5f5c7c27dd6940b240ea5284d9dff83c0430aafdcc21ed86faba26ecb8a6447c325a9b5e74b4dc6ded90f2c8
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- afterbanks-api-ruby (0.1.1)
4
+ afterbanks-api-ruby (0.2.0)
5
5
  rest-client (~> 2.0.2)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -33,8 +33,9 @@ You can set a `logger` as well.
33
33
  Changelog
34
34
  ---------
35
35
 
36
- * v.0.1.0 First vull version, including resource wrapping (for banks, accounts, transactions and the user) and separate exceptions for each different code.
36
+ * v.0.1.2 Allow adding an (opt-in) random parameter to Afterbanks::Account.list to avoid caching
37
37
  * v.0.1.1 Fix rake security issue and remove specific Ruby version dependency.
38
+ * v.0.1.0 First vull version, including resource wrapping (for banks, accounts, transactions and the user) and separate exceptions for each different code.
38
39
 
39
40
  TODO
40
41
  ----
@@ -11,7 +11,8 @@ module Afterbanks
11
11
  holders: :hash
12
12
 
13
13
  def self.list(service:, username:, password:, password2: nil,
14
- document_type: nil, session_id: nil, otp: nil, counter_id: nil)
14
+ document_type: nil, session_id: nil, otp: nil, counter_id: nil,
15
+ avoid_caching: false)
15
16
 
16
17
  params = {
17
18
  servicekey: Afterbanks.configuration.servicekey,
@@ -27,6 +28,8 @@ module Afterbanks
27
28
  params.merge!(OTP: otp) unless otp.nil?
28
29
  params.merge!(counterId: counter_id) unless counter_id.nil?
29
30
 
31
+ params.merge!(randomizer: Time.now.to_i) if avoid_caching
32
+
30
33
  response, debug_id = Afterbanks.api_call(
31
34
  method: :post,
32
35
  path: '/V3/',
@@ -1,3 +1,3 @@
1
1
  module Afterbanks
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: afterbanks-api-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Albert Bellonch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-28 00:00:00.000000000 Z
11
+ date: 2020-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client