six_saferpay 2.2.0 → 2.3.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/README.md +1 -1
- data/lib/six_saferpay/api.rb +1 -1
- data/lib/six_saferpay/models/ideal.rb +18 -0
- data/lib/six_saferpay/models/payment_methods_options.rb +4 -2
- data/lib/six_saferpay/version.rb +1 -1
- 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: d687fdb33b4ad8481d45df8cea786a0dbbc0c118f5e74605ee7987b106f10a2a
|
4
|
+
data.tar.gz: 1d795f26b2f12d99ac6c37d2d11cb04ab202a7f05b8fea69a197705604bea963
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b65ff8895aa89d30ec62e359816566981d10d794dc8ddf35a57ed2df65b5d3a3d48652471c1687c0b284bf767ff22c8d10058feebbbf04db647999fc0e4f4778
|
7
|
+
data.tar.gz: a9e49fe23874fb60316a43342b3f1832092959b780c4a8305583fe33355a097e9b7559a46024a3b17c24692d840c5f76724734b0770874f0cbbc8490360b7d98
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/six_saferpay/api.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
module SixSaferpay
|
2
|
+
class Ideal
|
3
|
+
|
4
|
+
attr_accessor(:issuer_id)
|
5
|
+
|
6
|
+
def initialize(issuer_id:)
|
7
|
+
@issuer_id = issuer_id
|
8
|
+
end
|
9
|
+
|
10
|
+
def to_hash
|
11
|
+
hash = Hash.new
|
12
|
+
hash.merge!(issuer_id: @issuer_id) if @issuer_id
|
13
|
+
hash
|
14
|
+
end
|
15
|
+
alias_method :to_h, :to_hash
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
@@ -1,15 +1,17 @@
|
|
1
1
|
module SixSaferpay
|
2
2
|
class PaymentMethodsOptions
|
3
3
|
|
4
|
-
attr_accessor(:alipay)
|
4
|
+
attr_accessor(:alipay, :ideal)
|
5
5
|
|
6
|
-
def initialize(alipay: nil)
|
6
|
+
def initialize(alipay: nil, ideal: nil)
|
7
7
|
@alipay = SixSaferpay::Alipay.new(alipay.to_h) if alipay
|
8
|
+
@ideal = SixSaferpay::Ideal.new(ideal.to_h) if ideal
|
8
9
|
end
|
9
10
|
|
10
11
|
def to_hash
|
11
12
|
hash = Hash.new
|
12
13
|
hash.merge!(alipay: @alipay.to_h) if @alipay
|
14
|
+
hash.merge!(ideal: @ideal.to_h) if @ideal
|
13
15
|
hash
|
14
16
|
end
|
15
17
|
alias_method :to_h, :to_hash
|
data/lib/six_saferpay/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: six_saferpay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fadendaten GmbH
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-01-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -297,6 +297,7 @@ files:
|
|
297
297
|
- lib/six_saferpay/models/fee.rb
|
298
298
|
- lib/six_saferpay/models/fee_refund.rb
|
299
299
|
- lib/six_saferpay/models/fraud_free.rb
|
300
|
+
- lib/six_saferpay/models/ideal.rb
|
300
301
|
- lib/six_saferpay/models/installment.rb
|
301
302
|
- lib/six_saferpay/models/invoice.rb
|
302
303
|
- lib/six_saferpay/models/liability.rb
|