fractal_api 0.1.3 → 0.1.4
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 +6 -2
- 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 +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83b8fbaf1c2dc16331bc43504fc5b9748f2f1947998081c890376dae66198b93
|
4
|
+
data.tar.gz: 98cea142b107367f31f439b3fffc17f4e22913fe27d8c32cafdf1ebc957a18b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 253f7357eb116e28ed42a41cb9378368a83feefb5c8646a4958f85419672397ec5eb2da8bc6567a8b5908922ee51e235237467a1c1b6de2812d5c1767503a878
|
7
|
+
data.tar.gz: 93d66f69913bed7385bd8603067619b3dca01c71421c105375f323a8c94beb4f4afb4d9e5e4d1bed6b768ade1911b20e03cfc8e2d0d4ba58c96f316215247cc6
|
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.4)
|
5
5
|
faraday
|
6
6
|
faraday_middleware
|
7
7
|
faraday_middleware-multi_json
|
@@ -17,12 +17,16 @@ GEM
|
|
17
17
|
rexml
|
18
18
|
diff-lcs (1.4.4)
|
19
19
|
dotenv (2.7.6)
|
20
|
-
faraday (1.4.
|
20
|
+
faraday (1.4.2)
|
21
|
+
faraday-em_http (~> 1.0)
|
22
|
+
faraday-em_synchrony (~> 1.0)
|
21
23
|
faraday-excon (~> 1.1)
|
22
24
|
faraday-net_http (~> 1.0)
|
23
25
|
faraday-net_http_persistent (~> 1.1)
|
24
26
|
multipart-post (>= 1.2, < 3)
|
25
27
|
ruby2_keywords (>= 0.0.4)
|
28
|
+
faraday-em_http (1.0.0)
|
29
|
+
faraday-em_synchrony (1.0.0)
|
26
30
|
faraday-excon (1.1.0)
|
27
31
|
faraday-net_http (1.0.1)
|
28
32
|
faraday-net_http_persistent (1.1.0)
|
@@ -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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Finpoint
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -205,6 +205,7 @@ 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: {}
|