bs2_api 1.4.3 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bs2_api/payment/key.rb +7 -1
- data/lib/bs2_api/payment/manual.rb +9 -2
- data/lib/bs2_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ad83195aa09b4ddbe8e9860c63f16ac1fe93429f14e243eebcc611c643f886d
|
4
|
+
data.tar.gz: 64c37b6828752620d665c60da3a5db499effc88ddf227f806387dad4e54fe098
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52cff9953cb6a4a5c60c0c3c7488415ce962d256dc6af90959d2c195009bc6c53a3285d9026667557854a50bdf58d51aa9b26987bf9de2967b9c07395ffa12e7
|
7
|
+
data.tar.gz: e30185ccb6d3ce95bec3679e79a27c9c7e4f2a6e13cd1f8819b02aaf33f8d6f9a47d9d5fc5f1eaa44cccabb7ea34b12d6965f155823b176b475bee0bf8180763
|
data/Gemfile.lock
CHANGED
data/lib/bs2_api/payment/key.rb
CHANGED
@@ -3,7 +3,13 @@
|
|
3
3
|
module Bs2Api
|
4
4
|
module Payment
|
5
5
|
class Key < Base
|
6
|
-
def initialize
|
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
|
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
|
data/lib/bs2_api/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2022-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|