six_saferpay 2.6.0 → 2.7.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/api/six_payment_page/responses/assert_response.rb +8 -2
- data/lib/six_saferpay/api/six_transaction/requests/alternative_payment.rb +11 -2
- data/lib/six_saferpay/api/six_transaction/responses/authorize_response.rb +8 -2
- data/lib/six_saferpay/models/fraud_prevention.rb +24 -0
- data/lib/six_saferpay/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03e0eace2103ec5446da64571f30eedc0b0f4bcfbcbd74050337b93fc02edda2
|
4
|
+
data.tar.gz: 307059349c19c718f10645483f0a0eb050c518818de88652919e095fdfdbf136
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80511c7044ea2e9473d3374ca01d3c7fe59d8610ec6cf49f9d15ad8919cf9b6c19e34f385ebf4681fa33b4993f066bda92e7fa09c4cd40c817048cdbc93b1089
|
7
|
+
data.tar.gz: 55b8fc010d7fbb0ed2bd53b38aa25ae4bab302ed2977637f351688f2c9fcf0e0381f6fbb7bdb38e55028a077026a1bcf1c74f408035e0ab03cce9cbc5a38dc0b
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/six_saferpay/api.rb
CHANGED
@@ -9,7 +9,8 @@ module SixSaferpay
|
|
9
9
|
:registration_result,
|
10
10
|
:liability,
|
11
11
|
:dcc,
|
12
|
-
:mastercard_issuer_installments
|
12
|
+
:mastercard_issuer_installments,
|
13
|
+
:fraud_prevention,
|
13
14
|
)
|
14
15
|
|
15
16
|
def initialize(response_header:,
|
@@ -19,7 +20,8 @@ module SixSaferpay
|
|
19
20
|
registration_result: nil,
|
20
21
|
liability: nil,
|
21
22
|
dcc: nil,
|
22
|
-
mastercard_issuer_installments: nil
|
23
|
+
mastercard_issuer_installments: nil,
|
24
|
+
fraud_prevention: nil
|
23
25
|
)
|
24
26
|
@response_header = SixSaferpay::ResponseHeader.new(response_header.to_h)
|
25
27
|
@transaction = SixSaferpay::Transaction.new(transaction.to_h)
|
@@ -32,6 +34,7 @@ module SixSaferpay
|
|
32
34
|
@mastercard_issuer_installments = SixSaferpay::MastercardIssuerInstallments
|
33
35
|
.new(mastercard_issuer_installments.to_h)
|
34
36
|
end
|
37
|
+
@fraud_prevention = SixSaferpay::FraudPrevention.new(fraud_prevention.to_h) if fraud_prevention
|
35
38
|
end
|
36
39
|
|
37
40
|
def to_hash
|
@@ -46,6 +49,9 @@ module SixSaferpay
|
|
46
49
|
if @mastercard_issuer_installments
|
47
50
|
hash.merge!(mastercard_issuer_installments: mastercard_issuer_installments.to_h)
|
48
51
|
end
|
52
|
+
if @fraud_prevention
|
53
|
+
hash.merge!(fraud_prevention: fraud_prevention.to_h)
|
54
|
+
end
|
49
55
|
hash
|
50
56
|
end
|
51
57
|
alias_method :to_h, :to_hash
|
@@ -8,7 +8,9 @@ module SixSaferpay
|
|
8
8
|
:payment_method,
|
9
9
|
:payment_method_options,
|
10
10
|
:payer,
|
11
|
-
:notification
|
11
|
+
:notification,
|
12
|
+
:order,
|
13
|
+
:risk_factors,
|
12
14
|
)
|
13
15
|
|
14
16
|
|
@@ -19,7 +21,10 @@ module SixSaferpay
|
|
19
21
|
payment_method:,
|
20
22
|
payment_method_options: nil,
|
21
23
|
payer: nil,
|
22
|
-
notification
|
24
|
+
notification:,
|
25
|
+
order: nil,
|
26
|
+
risk_factors: nil
|
27
|
+
)
|
23
28
|
@request_header = request_header || SixSaferpay::RequestHeader.new()
|
24
29
|
@terminal_id = terminal_id
|
25
30
|
@payment = SixSaferpay::Payment.new(payment.to_h)
|
@@ -27,6 +32,8 @@ module SixSaferpay
|
|
27
32
|
@payment_method_options = SixSaferpay::PaymentMethodOptions.new(payment_method_options.to_h) if payment_method_options
|
28
33
|
@payer = SixSaferpay::Payer.new(payer.to_h) if payer
|
29
34
|
@notification = SixSaferpay::Notification.new(notification.to_h)
|
35
|
+
@order = SixSaferpay::Order.new(order.to_h) if order
|
36
|
+
@risk_factors = SixSaferpay::RiskFactors.new(risk_factors.to_h) if risk_factors
|
30
37
|
end
|
31
38
|
|
32
39
|
def to_hash
|
@@ -38,6 +45,8 @@ module SixSaferpay
|
|
38
45
|
hash.merge!(payment_method_options: @payment_method_options.to_h) if @payment_method_options
|
39
46
|
hash.merge!(payer: @payer.to_h) if @payer
|
40
47
|
hash.merge!(notification: @notification.to_h)
|
48
|
+
hash.merge!(order: @order.to_h) if @order
|
49
|
+
hash.merge!(risk_factors: @risk_factors.to_h) if @risk_factors
|
41
50
|
hash
|
42
51
|
end
|
43
52
|
alias_method :to_h, :to_hash
|
@@ -9,7 +9,8 @@ module SixSaferpay
|
|
9
9
|
:registration_result,
|
10
10
|
:liability,
|
11
11
|
:dcc,
|
12
|
-
:mastercard_issuer_installments
|
12
|
+
:mastercard_issuer_installments,
|
13
|
+
:fraud_prevention,
|
13
14
|
)
|
14
15
|
|
15
16
|
|
@@ -20,7 +21,8 @@ module SixSaferpay
|
|
20
21
|
registration_result: nil,
|
21
22
|
liability: nil,
|
22
23
|
dcc: nil,
|
23
|
-
mastercard_issuer_installments: nil
|
24
|
+
mastercard_issuer_installments: nil,
|
25
|
+
fraud_prevention: nil
|
24
26
|
)
|
25
27
|
@response_header = SixSaferpay::ResponseHeader.new(response_header.to_h) if response_header
|
26
28
|
@transaction = SixSaferpay::Transaction.new(transaction.to_h) if transaction
|
@@ -33,6 +35,7 @@ module SixSaferpay
|
|
33
35
|
@mastercard_issuer_installments = SixSaferpay::MastercardIssuerInstallments
|
34
36
|
.new(mastercard_issuer_installments.to_h)
|
35
37
|
end
|
38
|
+
@fraud_prevention = SixSaferpay::FraudPrevention.new(fraud_prevention.to_h) if fraud_prevention
|
36
39
|
end
|
37
40
|
|
38
41
|
def to_hash
|
@@ -47,6 +50,9 @@ module SixSaferpay
|
|
47
50
|
if @mastercard_issuer_installments
|
48
51
|
hash.merge!(mastercard_issuer_installments: mastercard_issuer_installments.to_h)
|
49
52
|
end
|
53
|
+
if @fraud_prevention
|
54
|
+
hash.merge!(fraud_prevention: fraud_prevention.to_h)
|
55
|
+
end
|
50
56
|
hash
|
51
57
|
end
|
52
58
|
alias_method :to_h, :to_hash
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module SixSaferpay
|
2
|
+
class FraudPrevention
|
3
|
+
|
4
|
+
attr_accessor(
|
5
|
+
:result,
|
6
|
+
)
|
7
|
+
|
8
|
+
def initialize(
|
9
|
+
result: nil
|
10
|
+
)
|
11
|
+
@result = result
|
12
|
+
end
|
13
|
+
|
14
|
+
def to_hash
|
15
|
+
hash = Hash.new
|
16
|
+
if @result
|
17
|
+
hash.merge!(result: @result)
|
18
|
+
end
|
19
|
+
hash
|
20
|
+
end
|
21
|
+
alias_method :to_h, :to_hash
|
22
|
+
|
23
|
+
end
|
24
|
+
end
|
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.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fadendaten GmbH
|
@@ -321,6 +321,7 @@ files:
|
|
321
321
|
- lib/six_saferpay/models/fee_refund.rb
|
322
322
|
- lib/six_saferpay/models/first_installment_amount.rb
|
323
323
|
- lib/six_saferpay/models/fraud_free.rb
|
324
|
+
- lib/six_saferpay/models/fraud_prevention.rb
|
324
325
|
- lib/six_saferpay/models/ideal.rb
|
325
326
|
- lib/six_saferpay/models/installment.rb
|
326
327
|
- lib/six_saferpay/models/installment_fee.rb
|