ibanity 2.0.0 → 2.0.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: fc2cf04d1de0868831487eb4923e738c4484f536f3e4a2749d326e0a18cc3f23
4
- data.tar.gz: 2e4706bc1712469f99ebfac2afd3a8a8c56f50d97544a31cb9356f50a91bb5f8
3
+ metadata.gz: fc779e16b7658943269fa2f63e2682dc34ab7050bf2751dcdcfd10200b30b206
4
+ data.tar.gz: 92a9a49ddb5afddca15232d9e49690beaa209aba8c1c5957013bcf39a9a06f0b
5
5
  SHA512:
6
- metadata.gz: 2cc32d999ac1ce54089ef7be839778017a204efa1e0fea3e900c6934f653c9646ab837c60b2105b0f67b552ad96742448c68d9b884f4ab888eb14fb580fe15ae
7
- data.tar.gz: 47f4dd5ba11dafe5018a85404bf377dac5fc81ec666674f96c8d6e8f2acddb3fc9c653aef8954890108646fde1409ccef4459845ccc88069a11dfb7e58efcb91
6
+ metadata.gz: b64cd808868849afae6727dc0c6f2717840da42b875d8d033efacf46fdff5124792e5828fd4a9b7e9d5bd3979ecce12e5d93dd12df62282625db704466d2f4f0
7
+ data.tar.gz: 91267c064ce5bc62b438c422a258cc7c18186c3a035867b2734a756365bf6a65abd9ef2f4648815bc1e53b5c2c7ddd44b9bec06786ce83c029906c730df7af77
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.1
4
+
5
+ * [Ponto Connect] Fix UpdatedTransactions relationship parsing for synchronization
6
+ * [XS2A] Fix initialAccountTransactionsSynchronizations relationship parsing for accountInformationAccessRequest
7
+
3
8
  ## 2.0
4
9
 
5
10
  * [Isabel Connect] Upgrade to version 2 of the API.
@@ -1,8 +1,15 @@
1
1
  module Ibanity
2
2
  module PontoConnect
3
3
  class Transaction < Ibanity::BaseResource
4
- def self.list(access_token:, account_id:, **query_params)
5
- uri = Ibanity.ponto_connect_api_schema["account"]["transactions"].sub("{accountId}", account_id).sub("{transactionId}", "")
4
+ def self.list(access_token:, account_id: nil, synchronization_id: nil, **query_params)
5
+ uri = if synchronization_id
6
+ Ibanity.ponto_connect_api_schema["synchronization"]["updatedTransactions"]
7
+ .sub("{synchronizationId}", synchronization_id)
8
+ else
9
+ Ibanity.ponto_connect_api_schema["account"]["transactions"]
10
+ .sub("{accountId}", account_id)
11
+ .sub("{transactionId}", "")
12
+ end
6
13
  list_by_uri(uri: uri, query_params: query_params, customer_access_token: access_token)
7
14
  end
8
15
 
@@ -1,6 +1,13 @@
1
1
  module Ibanity
2
2
  module Xs2a
3
3
  class Synchronization < Ibanity::BaseResource
4
+ def self.list(financial_institution_id:, account_information_access_request_id:, customer_access_token:, headers: nil, **query_params)
5
+ uri = Ibanity.xs2a_api_schema["customer"]["financialInstitution"]["accountInformationAccessRequest"]["initialAccountTransactionsSynchronizations"]
6
+ .sub("{financialInstitutionId}", financial_institution_id)
7
+ .sub("{accountInformationAccessRequestId}", account_information_access_request_id)
8
+ list_by_uri(uri: uri, query_params: query_params, customer_access_token: customer_access_token, headers: headers)
9
+ end
10
+
4
11
  def self.create(customer_access_token:, **attributes)
5
12
  uri = Ibanity.xs2a_api_schema["customer"]["synchronizations"]
6
13
  .sub("{synchronizationId}", "")
@@ -1,3 +1,3 @@
1
1
  module Ibanity
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibanity
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ibanity
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-07 00:00:00.000000000 Z
11
+ date: 2022-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client