bs2_api 1.4.3 → 1.5.0

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: 1a7018dd3325d7ac310c8869cf63552485888cc1b5fb3328ce1334980bcbe8d8
4
- data.tar.gz: ae5ba28ee4e2608ac117556475c64f348dabeae82313eb8e05b157f69ddb87d9
3
+ metadata.gz: 5ad83195aa09b4ddbe8e9860c63f16ac1fe93429f14e243eebcc611c643f886d
4
+ data.tar.gz: 64c37b6828752620d665c60da3a5db499effc88ddf227f806387dad4e54fe098
5
5
  SHA512:
6
- metadata.gz: 9468bc0b29d50b61a8610ea4e5f1cc6b12cff84d30b8ff729af6df4c611be7adee1c059828de7e963c3890c4ddc1f9dc5c0476c5c7ca593114602910b17e42ed
7
- data.tar.gz: 45d57722d47244643b1a38752ab8f84a1d83aa783b03b40486592ba60decab97a0e27111f1af7dc75d1799d207e9e85511195a60c2abbae891c383c926913018
6
+ metadata.gz: 52cff9953cb6a4a5c60c0c3c7488415ce962d256dc6af90959d2c195009bc6c53a3285d9026667557854a50bdf58d51aa9b26987bf9de2967b9c07395ffa12e7
7
+ data.tar.gz: e30185ccb6d3ce95bec3679e79a27c9c7e4f2a6e13cd1f8819b02aaf33f8d6f9a47d9d5fc5f1eaa44cccabb7ea34b12d6965f155823b176b475bee0bf8180763
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bs2_api (1.4.3)
4
+ bs2_api (1.5.0)
5
5
  activesupport
6
6
  builder
7
7
  bundler
@@ -3,7 +3,13 @@
3
3
  module Bs2Api
4
4
  module Payment
5
5
  class Key < Base
6
- def initialize key
6
+ def initialize(
7
+ key,
8
+ client_id: Bs2Api.configuration.client_id,
9
+ client_secret: Bs2Api.configuration.client_secret
10
+ )
11
+ @client_id = client_id
12
+ @client_secret = client_secret
7
13
  @key = key
8
14
  end
9
15
 
@@ -3,7 +3,14 @@
3
3
  module Bs2Api
4
4
  module Payment
5
5
  class Manual < Base
6
- def initialize bank
6
+ def initialize(
7
+ bank,
8
+ client_id: Bs2Api.configuration.client_id,
9
+ client_secret: Bs2Api.configuration.client_secret
10
+ )
11
+
12
+ @client_id = client_id
13
+ @client_secret = client_secret
7
14
  raise Bs2Api::Errors::InvalidBank, 'Invalid Bank' unless bank.is_a?(Bs2Api::Entities::Bank)
8
15
  @bank = bank
9
16
  end
@@ -20,4 +27,4 @@ module Bs2Api
20
27
  end
21
28
  end
22
29
  end
23
- end
30
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bs2Api
4
- VERSION = '1.4.3'
4
+ VERSION = '1.5.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bs2_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kim Pastro
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-30 00:00:00.000000000 Z
11
+ date: 2022-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder