bs2_api 1.5.0 → 1.5.1

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: 5ad83195aa09b4ddbe8e9860c63f16ac1fe93429f14e243eebcc611c643f886d
4
- data.tar.gz: 64c37b6828752620d665c60da3a5db499effc88ddf227f806387dad4e54fe098
3
+ metadata.gz: 92386deadc6c231d882caac48d3092acab5c69ab50a176757768ab074635a5e4
4
+ data.tar.gz: 90896ecd3a4dd6d60dcd3c69bcd6b56697ba5e33ab6a0e909c4dd7cf63ddae44
5
5
  SHA512:
6
- metadata.gz: 52cff9953cb6a4a5c60c0c3c7488415ce962d256dc6af90959d2c195009bc6c53a3285d9026667557854a50bdf58d51aa9b26987bf9de2967b9c07395ffa12e7
7
- data.tar.gz: e30185ccb6d3ce95bec3679e79a27c9c7e4f2a6e13cd1f8819b02aaf33f8d6f9a47d9d5fc5f1eaa44cccabb7ea34b12d6965f155823b176b475bee0bf8180763
6
+ metadata.gz: b2be2b78bbcedb9af38193898d62f7fa0cd0bf5e6217fefd39ed2e84db47bf7d2a604b3e2e88af338706936067f5baf290de268e32e7114d803809656df85325
7
+ data.tar.gz: c5e8632080a64039a8d99e6a9ca112b5dad3cf766dd08387c5341427da3a055144417feeb44f7bbc7f409092f46d966076aedf1aa29a7520c01371e428cde853
@@ -3,7 +3,15 @@ module Bs2Api
3
3
  class Confirmation < Base
4
4
  attr_reader :success
5
5
 
6
- def initialize payment, value: nil
6
+ def initialize(
7
+ payment,
8
+ value: nil,
9
+ client_id: Bs2Api.configuration.client_id,
10
+ client_secret: Bs2Api.configuration.client_secret
11
+ )
12
+ @client_id = client_id
13
+ @client_secret = client_secret
14
+
7
15
  raise Bs2Api::Errors::ConfirmationError, 'invalid payment' unless payment.present? && payment.is_a?(Bs2Api::Entities::Payment)
8
16
  raise Bs2Api::Errors::ConfirmationError, 'invalid value' unless value.to_f.positive?
9
17
  @payment = payment
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bs2Api
4
- VERSION = '1.5.0'
4
+ VERSION = '1.5.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bs2_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kim Pastro