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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad6ce329906e3637162ceec4bc1f5e4e332053f36c35062d9eb3022b9c5b01b0
4
- data.tar.gz: 6aa4715cc53630b12bb69b8ab91300eb02011edf57fa5d856199c3a5474ac531
3
+ metadata.gz: 03e0eace2103ec5446da64571f30eedc0b0f4bcfbcbd74050337b93fc02edda2
4
+ data.tar.gz: 307059349c19c718f10645483f0a0eb050c518818de88652919e095fdfdbf136
5
5
  SHA512:
6
- metadata.gz: 15ff9f7bcbf264337275e4f2ee73a68d267c4e0e2bcfb0c1eaf58453bb9ae523a502d88a9c222979e04f743ea16614c8b66fe2a255fed9fdd510503f2e7f07e8
7
- data.tar.gz: f9381e3c98e9d2ce9021873c19395cb3572c14f49e9c665cfe4dccb724059771f00bfa8b2c66cfbe9c0c1fc32a75111d97e2f0906c3334044a9d5d694b34cf1e
6
+ metadata.gz: 80511c7044ea2e9473d3374ca01d3c7fe59d8610ec6cf49f9d15ad8919cf9b6c19e34f385ebf4681fa33b4993f066bda92e7fa09c4cd40c817048cdbc93b1089
7
+ data.tar.gz: 55b8fc010d7fbb0ed2bd53b38aa25ae4bab302ed2977637f351688f2c9fcf0e0381f6fbb7bdb38e55028a077026a1bcf1c74f408035e0ab03cce9cbc5a38dc0b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- six_saferpay (2.6.0)
4
+ six_saferpay (2.7.0)
5
5
  activesupport (~> 6.1, >= 6.1.3)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  ## Current API Version
8
8
 
9
- This gem is compatible with the SIX API version: `1.18`
9
+ This gem is compatible with the SIX API version: `1.19`
10
10
 
11
11
  ## Installation
12
12
 
@@ -1,5 +1,5 @@
1
1
  module SixSaferpay
2
2
  module API
3
- VERSION = '1.18'
3
+ VERSION = '1.19'
4
4
  end
5
5
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module SixSaferpay
2
- VERSION = "2.6.0"
2
+ VERSION = "2.7.0"
3
3
  end
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.6.0
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