iwoca 1.1.0 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 198e9be11e22df1a0eeaaf7aeadf91a8d915890c83c034232f6c4f6bdf950d6b
4
- data.tar.gz: 36a2b9b54228c00b077e2bb8a4f4be34e3f71b32631ae90a23fbc5a1d88c32a4
3
+ metadata.gz: 10e7e70e4bc86bf5cbe397ce2ebd5418bd8dfbc7655c2e15dbd18037ad75467c
4
+ data.tar.gz: e03e669cceee0cd7a6f5246250c3cbea119f5e7d1e0ba40ed0490f16ac5e0b57
5
5
  SHA512:
6
- metadata.gz: 9551708a25561b0ea8355ad4372e6fb65161d9e2b0ad418d48938fab648efe07b26d5191d8b80b99151f206873bef71662c7ad96485dd864629e03ac9f6ae446
7
- data.tar.gz: 4683b1b27606c672d0feecc6c1160ec51218b223f57c253f4e4a266544587dba07393f6465752a916b0bf6788d2e24050d4252d7a410d0c55ad952bd96d46cbe
6
+ metadata.gz: 7080ed4cd71220278cea6f700d029a45813dade65e47dd6bc7a54fb8e2231d3eb00edbcadeb4c87e8af45a5c5c1cd08aed853af393949ded48d112884b930e06
7
+ data.tar.gz: 99278443edb7c5f13c8c2f9f4d5e5f53c068157c70f0900a7927046d009272c06206ff0848d77e0ffb9089b7dc9d7c308769798c3924bd9cc937067992a7d8cf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- iwoca (1.1.0)
4
+ iwoca (1.1.2)
5
5
  addressable
6
6
  faraday (~> 2.7)
7
7
  json-schema
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'json-schema'
4
+
3
5
  module Iwoca
4
6
  class Application
5
7
  # This needs to be used after the customer has been created. It returns an application_id that
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'json-schema'
4
+
3
5
  module Iwoca
4
6
  class Customer
5
7
  # The POST request should be used to create an iwoca account for the customer. It's always the
data/lib/iwoca/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Iwoca
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.2'
5
5
  end
@@ -65,14 +65,6 @@ module Iwoca
65
65
  connection.post('subscriptions/', json)
66
66
  end
67
67
 
68
- {
69
- "data": {
70
- "webhook_event_types": [
71
- "approval_status_changed"
72
- ]
73
- }
74
- }
75
-
76
68
  def self.unsubscribe(event_types:)
77
69
  json = {}
78
70
  connection.delete('subscriptions/', json)
data/lib/iwoca.rb CHANGED
@@ -12,6 +12,10 @@ require 'rainbow'
12
12
  module Iwoca
13
13
  module_function
14
14
 
15
+ def root
16
+ File.dirname(__dir__)
17
+ end
18
+
15
19
  def configuration
16
20
  @configuration ||= Configuration.new
17
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iwoca
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - rikas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-29 00:00:00.000000000 Z
11
+ date: 2023-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable