fractal_api 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +24 -9
- data/fractal_api.gemspec +1 -1
- data/lib/fractal_api/configuration.rb +2 -1
- data/lib/fractal_api/version.rb +1 -1
- data/lib/fractal_api/webhook_notification.rb +16 -0
- data/lib/fractal_api.rb +1 -0
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f781155e5457786b5cf172c0c1fd926254844c371c8e939ea7709c3cb0765448
|
4
|
+
data.tar.gz: d79fa1c0a523af63f9b33093407e2ceb45beaa678b2838a3d8deeb4986b423db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 001da6b43019dc64e7f28a8bf86c6ebe10c8637a4e9fe2ca5a91641c0db9e747cc6569eddcbf94eb3c1b60ab8430d6a5ec890692ba06091303133e13cbacb7fb
|
7
|
+
data.tar.gz: bf4706fa8fe13df32d990a947d7349830213bcaa7b6a0ed0afeac2af79177cbd51afd2588186c7a569b7df54499ac3a077df46d8e39a38a0ad2db1ed29ede4ca
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fractal_api (0.1.
|
4
|
+
fractal_api (0.1.5)
|
5
5
|
faraday
|
6
6
|
faraday_middleware
|
7
7
|
faraday_middleware-multi_json
|
@@ -17,16 +17,30 @@ GEM
|
|
17
17
|
rexml
|
18
18
|
diff-lcs (1.4.4)
|
19
19
|
dotenv (2.7.6)
|
20
|
-
faraday (1.
|
20
|
+
faraday (1.10.0)
|
21
|
+
faraday-em_http (~> 1.0)
|
22
|
+
faraday-em_synchrony (~> 1.0)
|
21
23
|
faraday-excon (~> 1.1)
|
24
|
+
faraday-httpclient (~> 1.0)
|
25
|
+
faraday-multipart (~> 1.0)
|
22
26
|
faraday-net_http (~> 1.0)
|
23
|
-
faraday-net_http_persistent (~> 1.
|
24
|
-
|
27
|
+
faraday-net_http_persistent (~> 1.0)
|
28
|
+
faraday-patron (~> 1.0)
|
29
|
+
faraday-rack (~> 1.0)
|
30
|
+
faraday-retry (~> 1.0)
|
25
31
|
ruby2_keywords (>= 0.0.4)
|
32
|
+
faraday-em_http (1.0.0)
|
33
|
+
faraday-em_synchrony (1.0.0)
|
26
34
|
faraday-excon (1.1.0)
|
35
|
+
faraday-httpclient (1.0.1)
|
36
|
+
faraday-multipart (1.0.4)
|
37
|
+
multipart-post (~> 2)
|
27
38
|
faraday-net_http (1.0.1)
|
28
|
-
faraday-net_http_persistent (1.
|
29
|
-
|
39
|
+
faraday-net_http_persistent (1.2.0)
|
40
|
+
faraday-patron (1.0.0)
|
41
|
+
faraday-rack (1.0.0)
|
42
|
+
faraday-retry (1.0.3)
|
43
|
+
faraday_middleware (1.2.0)
|
30
44
|
faraday (~> 1.0)
|
31
45
|
faraday_middleware-multi_json (0.0.6)
|
32
46
|
faraday_middleware
|
@@ -34,7 +48,7 @@ GEM
|
|
34
48
|
hashdiff (1.0.1)
|
35
49
|
method_source (1.0.0)
|
36
50
|
multi_json (1.15.0)
|
37
|
-
multipart-post (2.
|
51
|
+
multipart-post (2.2.3)
|
38
52
|
pry (0.13.1)
|
39
53
|
coderay (~> 1.1)
|
40
54
|
method_source (~> 1.0)
|
@@ -54,7 +68,7 @@ GEM
|
|
54
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
55
69
|
rspec-support (~> 3.10.0)
|
56
70
|
rspec-support (3.10.2)
|
57
|
-
ruby2_keywords (0.0.
|
71
|
+
ruby2_keywords (0.0.5)
|
58
72
|
vcr (6.0.0)
|
59
73
|
webmock (3.12.1)
|
60
74
|
addressable (>= 2.3.6)
|
@@ -62,6 +76,7 @@ GEM
|
|
62
76
|
hashdiff (>= 0.4.0, < 2.0.0)
|
63
77
|
|
64
78
|
PLATFORMS
|
79
|
+
-darwin-21
|
65
80
|
x86_64-darwin-19
|
66
81
|
x86_64-linux
|
67
82
|
|
@@ -76,4 +91,4 @@ DEPENDENCIES
|
|
76
91
|
webmock
|
77
92
|
|
78
93
|
BUNDLED WITH
|
79
|
-
2.
|
94
|
+
2.3.10
|
data/fractal_api.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ['lib']
|
25
25
|
|
26
|
-
spec.required_ruby_version = '
|
26
|
+
spec.required_ruby_version = '> 2.0'
|
27
27
|
|
28
28
|
spec.add_dependency 'faraday'
|
29
29
|
spec.add_dependency 'faraday_middleware'
|
@@ -11,11 +11,12 @@ module FractalApi
|
|
11
11
|
sandbox: 'https://auth.julia-laces.co.uk'
|
12
12
|
}.freeze
|
13
13
|
|
14
|
-
attr_accessor :api_key, :partner_id, :environment, :debug
|
14
|
+
attr_accessor :api_key, :partner_id, :webhook_secret, :environment, :debug
|
15
15
|
|
16
16
|
def initialize
|
17
17
|
@api_key = ''
|
18
18
|
@partner_id = ''
|
19
|
+
@webhook_secret = ''
|
19
20
|
@environment = :sandbox # can be either :sandbox or :production
|
20
21
|
@debug = false
|
21
22
|
end
|
data/lib/fractal_api/version.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'fractal_api/base_model'
|
4
|
+
|
5
|
+
module FractalApi
|
6
|
+
class WebhookNotification < BaseModel
|
7
|
+
attributes :notification_id, :company_id, :bank_id,
|
8
|
+
:account_id, :partner_id,
|
9
|
+
:event, :status,
|
10
|
+
:error_message, :error_code, :creation_date
|
11
|
+
|
12
|
+
def success?
|
13
|
+
status == 'SUCCESS'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/fractal_api.rb
CHANGED
@@ -13,6 +13,7 @@ require 'fractal_api/transaction'
|
|
13
13
|
require 'fractal_api/forecasting/forecast'
|
14
14
|
require 'fractal_api/forecasting/balance'
|
15
15
|
require 'fractal_api/forecasting/transaction'
|
16
|
+
require 'fractal_api/webhook_notification'
|
16
17
|
|
17
18
|
module FractalApi
|
18
19
|
module_function
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fractal_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Finpoint
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -205,16 +205,17 @@ files:
|
|
205
205
|
- lib/fractal_api/paginator.rb
|
206
206
|
- lib/fractal_api/transaction.rb
|
207
207
|
- lib/fractal_api/version.rb
|
208
|
+
- lib/fractal_api/webhook_notification.rb
|
208
209
|
homepage: https://www.finpoint.co.uk
|
209
210
|
licenses: []
|
210
211
|
metadata: {}
|
211
|
-
post_install_message:
|
212
|
+
post_install_message:
|
212
213
|
rdoc_options: []
|
213
214
|
require_paths:
|
214
215
|
- lib
|
215
216
|
required_ruby_version: !ruby/object:Gem::Requirement
|
216
217
|
requirements:
|
217
|
-
- - "
|
218
|
+
- - ">"
|
218
219
|
- !ruby/object:Gem::Version
|
219
220
|
version: '2.0'
|
220
221
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -223,8 +224,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
223
224
|
- !ruby/object:Gem::Version
|
224
225
|
version: '0'
|
225
226
|
requirements: []
|
226
|
-
rubygems_version: 3.
|
227
|
-
signing_key:
|
227
|
+
rubygems_version: 3.0.3
|
228
|
+
signing_key:
|
228
229
|
specification_version: 4
|
229
230
|
summary: FractalApi client
|
230
231
|
test_files: []
|