investec_open_api 1.0.0 → 1.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: d69402eec4e9726ed5bfe503c817b6b179b53b5cd3658ae5d5906971482908da
4
- data.tar.gz: f98b0b7abc269d4d915787061ae937ce6674a1d3a80bc94627490973e6a74c63
3
+ metadata.gz: bf7fce941e61b6f4a9d707b7a3e5d4ef8c9dc3d8dc993a9a369e1beb0407c467
4
+ data.tar.gz: 1d7edbe5dc1ce2a0c1e2196bbb57e1e4e574be22948f746874c8ce41ac4a5e65
5
5
  SHA512:
6
- metadata.gz: 9fa72caba53822a4ed58cceae465e629044ba5a6b5c0699e546695d1f4ff91694253f410ae81b55bb7e8ad4713cd02f4e1052164fc0991f3e0413a564c94a876
7
- data.tar.gz: 90cdd9eab5eb502edd1f6995a95d91780aa7def38f47c7957bbe0d4b7c64a62bd6a3259238f10b03341bcb0041d86da01bc03ba2389385c37250e8122a42240c
6
+ metadata.gz: c3c84ef25841c7adc025a6651400ecb865e17893b2f082b37b1817a7dc973c864ffe25288839414272e164836f19cc9ffe173923ddc3be461121f5fb5124cae6
7
+ data.tar.gz: 39f1f281e4ce2a5ef718f131dc7c74b1c209e4c6f39273517fde84adaa8df256717c69451f6616333951ec7a9651b84d4b2a6f1205696d5cdc7d5f4bc50577d9
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # InvestecOpenApi Client
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/investec_open_api.svg)](https://badge.fury.io/rb/investec_open_api)
4
+ [![Build Status](https://travis-ci.com/Offerzen/investec_open_api.svg?branch=master)](https://travis-ci.com/Offerzen/investec_open_api)
5
+
3
6
  A simple client wrapper for the [Investec Open API](https://developer.investec.com/programmable-banking/#open-api).
4
7
 
5
8
  *Features:*
@@ -8,6 +8,7 @@ module InvestecOpenApi::Models
8
8
  attribute :card_number
9
9
  attribute :amount
10
10
  attribute :description
11
+ attribute :date, type: Date
11
12
  attribute :posting_date, type: Date
12
13
  attribute :value_date, type: Date
13
14
  attribute :action_date, type: Date
@@ -18,7 +19,7 @@ module InvestecOpenApi::Models
18
19
  [
19
20
  amount.to_i,
20
21
  description,
21
- posting_date.to_s
22
+ date.to_s
22
23
  ].map(&:to_s).join('-')
23
24
  end
24
25
 
@@ -29,6 +30,10 @@ module InvestecOpenApi::Models
29
30
  params['amount'] = Money.new(adjusted_amount, "ZAR")
30
31
  end
31
32
 
33
+ if params['transactionDate']
34
+ params['date'] = params['transactionDate']
35
+ end
36
+
32
37
  super
33
38
  end
34
39
  end
@@ -1,3 +1,3 @@
1
1
  module InvestecOpenApi
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: investec_open_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Kuhn