minfraud 2.7.0.beta1 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48d0ecc771382609286c6c96297b5c452163d99f8657a176bdaa3c25344b7667
4
- data.tar.gz: bbb364d67a5172f3e1134833acb3835e4de6582eb079341f727963b058fe2df0
3
+ metadata.gz: 2abf19bed1e7f84df745ea0d6fb2564a57cbdb5047f4bf999bcb4812cb3a0c92
4
+ data.tar.gz: 8b6a0cf12fa4ff3f9cbb907fc6e85a67b9c83e49f0f40efd395b4fe8adf2219f
5
5
  SHA512:
6
- metadata.gz: c66d6b084f94957a376636a4ff90ab961e5632f67e1950019dc0acf424cd9c86c8db67cbcea99aae05bfc052cd37c7e08bdc3cbde6fc4099f23009387cc611a8
7
- data.tar.gz: f5a425d99063ca41b1ff4aba8c72f881abd08a35fbbd6d13606f31f8080964d94dc678cf6d03292c1150fcab7e67ef62ae2b05ee7b6d56a39df82a44201f966e
6
+ metadata.gz: 565e3a8117bba664ae7acdd4e8c8638b24a8bb6140b4239d4839ba431a5b19c27dcf4dd352e44902ba55624757bbbb8617abb26414c38321d2566548ad4164d6
7
+ data.tar.gz: 7425846de023014cbe8aaccde3dcd7d4dc0df494fc2f8b8e7370bb8eb5ed5ca80cddc40f7440c8a443feb83fc574b3a24ac0efc72040e302abf1838295fe239a
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.7
2
+ TargetRubyVersion: '3.0'
3
3
  NewCops: enable
4
4
 
5
5
  # Metrics.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.8.0 (2025-05-23)
4
+
5
+ * Added support for the `/billing_phone/matches_postal` and
6
+ `/shipping_phone/matches_postal` outputs. These are available as the
7
+ `matches_postal` attribute on `Minfraud::Model::Phone`.
8
+ * Added the processor `:cryptomus` to `Minfraud::Components::Payment`.
9
+
10
+ ## v2.7.1 (2025-02-10)
11
+
12
+ * Re-release due to bug in release workflow.
13
+
14
+ ## v2.7.0 (2025-02-10)
15
+
16
+ * The minFraud Factors subscores have been deprecated. They will be removed
17
+ in March 2025. Please see [our release notes](https://dev.maxmind.com/minfraud/release-notes/2024/#deprecation-of-risk-factor-scoressubscores)
18
+ for more information.
19
+ * Ruby 3.0+ is now required. If you're using Ruby 2.7, please use version
20
+ 2.7.0.beta1 or 2.6.0 of this gem.
21
+ * Added the processor `:epayco` to `Minfraud::Components::Payment`.
22
+
3
23
  ## v2.7.0.beta1 (2024-09-06)
4
24
 
5
25
  * Added support for the new risk reasons outputs in minFraud Factors. The risk
data/LICENSE.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
3
  Copyright (c) 2016-2020 kushnir.yb
4
- Copyright (c) 2020-2024 MaxMind, Inc.
4
+ Copyright (c) 2020-2025 MaxMind, Inc.
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -275,7 +275,7 @@ to the client API, please see
275
275
 
276
276
  ## Requirements
277
277
 
278
- This gem works with Ruby 2.7 and above.
278
+ This gem works with Ruby 3.0 and above.
279
279
 
280
280
  ## Contributing
281
281
 
@@ -293,7 +293,7 @@ This API uses [Semantic Versioning](https://semver.org/).
293
293
 
294
294
  Copyright (c) 2016-2020 kushnir.yb.
295
295
 
296
- Copyright (c) 2020-2024 MaxMind, Inc.
296
+ Copyright (c) 2020-2025 MaxMind, Inc.
297
297
 
298
298
  The gem is available as open source under the terms of the [MIT
299
299
  License](https://opensource.org/licenses/MIT).
@@ -42,6 +42,8 @@ module Minfraud
42
42
 
43
43
  # Keys that have to remain boolean
44
44
  BOOLS = %w[was_authorized is_gift has_gift_message].freeze
45
+
46
+ private_constant :BOOLS
45
47
  end
46
48
  end
47
49
  end
@@ -50,6 +50,7 @@ module Minfraud
50
50
  coregateway
51
51
  creditguard
52
52
  credorax
53
+ cryptomus
53
54
  ct_payments
54
55
  cuentadigital
55
56
  curopayments
@@ -68,6 +69,7 @@ module Minfraud
68
69
  elavon
69
70
  emerchantpay
70
71
  epay
72
+ epayco
71
73
  eprocessing_network
72
74
  epx
73
75
  eway
@@ -71,6 +71,8 @@ module Minfraud
71
71
  insights: Minfraud::Model::Insights,
72
72
  score: Minfraud::Model::Score
73
73
  }.freeze
74
+
75
+ private_constant :ENDPOINT_TO_CLASS
74
76
  end
75
77
  end
76
78
  end
@@ -21,6 +21,7 @@ module Minfraud
21
21
  # that are used to calculate the overall risk score.
22
22
  #
23
23
  # @return [Minfraud::Model::Subscores]
24
+ # @deprecated Use {::risk_score_reasons} instead.
24
25
  attr_reader :subscores
25
26
 
26
27
  # @!visibility private
@@ -21,6 +21,15 @@ module Minfraud
21
21
  # @return [Boolean, nil]
22
22
  attr_reader :is_voip
23
23
 
24
+ # This property is true if the phone number's prefix is commonly
25
+ # associated with the postal code. It is false if the prefix is not
26
+ # associated with the postal code. It is non-nil only when the phone
27
+ # number is in the US, the number prefix is in our database, and the
28
+ # postal code and country are provided in the request.
29
+ #
30
+ # @return [Boolean, nil]
31
+ attr_reader :matches_postal
32
+
24
33
  # The name of the original network operator associated with the phone
25
34
  # number. This attribute does not reflect phone numbers that have been
26
35
  # ported from the original operator to another, nor does it identify
@@ -41,6 +50,7 @@ module Minfraud
41
50
 
42
51
  @country = get('country')
43
52
  @is_voip = get('is_voip')
53
+ @matches_postal = get('matches_postal')
44
54
  @network_operator = get('network_operator')
45
55
  @number_type = get('number_type')
46
56
  end
@@ -5,6 +5,8 @@ require 'minfraud/model/abstract'
5
5
  module Minfraud
6
6
  module Model
7
7
  # Score for risk factors that are used in calculating the riskScore.
8
+ #
9
+ # @deprecated Use {RiskScoreReason} instead.
8
10
  class Subscores < Abstract
9
11
  # The risk associated with the AVS result. If present, this is a value in
10
12
  # the range 0.01 to 99.
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Minfraud
4
4
  # The Gem version.
5
- VERSION = '2.7.0.beta1'
5
+ VERSION = '2.8.0'
6
6
  end
data/minfraud.gemspec CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.homepage = 'https://github.com/maxmind/minfraud-api-ruby'
16
16
  spec.license = 'MIT'
17
17
 
18
- spec.required_ruby_version = '>= 2.7.0'
18
+ spec.required_ruby_version = '>= 3.0'
19
19
 
20
20
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^.gitignore$|^(?:\.github|dev-bin|spec)/}) }
21
21
  spec.bindir = 'exe'
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.add_dependency 'connection_pool', '~> 2.2'
26
26
  spec.add_dependency 'http', '>= 4.3', '< 6.0'
27
- spec.add_dependency 'maxmind-geoip2', '~> 1.2'
27
+ spec.add_dependency 'maxmind-geoip2', '~> 1.3'
28
28
  spec.add_dependency 'simpleidn', '~> 0.1', '>= 0.1.1'
29
29
 
30
30
  spec.add_development_dependency 'bundler', '~> 2.2'
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minfraud
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0.beta1
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kushnir.yb
8
8
  - William Storey
9
- autorequire:
10
9
  bindir: exe
11
10
  cert_chain: []
12
- date: 2024-09-06 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: connection_pool
@@ -51,14 +50,14 @@ dependencies:
51
50
  requirements:
52
51
  - - "~>"
53
52
  - !ruby/object:Gem::Version
54
- version: '1.2'
53
+ version: '1.3'
55
54
  type: :runtime
56
55
  prerelease: false
57
56
  version_requirements: !ruby/object:Gem::Requirement
58
57
  requirements:
59
58
  - - "~>"
60
59
  - !ruby/object:Gem::Version
61
- version: '1.2'
60
+ version: '1.3'
62
61
  - !ruby/object:Gem::Dependency
63
62
  name: simpleidn
64
63
  requirement: !ruby/object:Gem::Requirement
@@ -149,7 +148,6 @@ dependencies:
149
148
  - - "~>"
150
149
  - !ruby/object:Gem::Version
151
150
  version: '3.14'
152
- description:
153
151
  email:
154
152
  - support@maxmind.com
155
153
  executables: []
@@ -221,7 +219,6 @@ licenses:
221
219
  - MIT
222
220
  metadata:
223
221
  rubygems_mfa_required: 'true'
224
- post_install_message:
225
222
  rdoc_options: []
226
223
  require_paths:
227
224
  - lib
@@ -229,15 +226,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
229
226
  requirements:
230
227
  - - ">="
231
228
  - !ruby/object:Gem::Version
232
- version: 2.7.0
229
+ version: '3.0'
233
230
  required_rubygems_version: !ruby/object:Gem::Requirement
234
231
  requirements:
235
232
  - - ">="
236
233
  - !ruby/object:Gem::Version
237
234
  version: '0'
238
235
  requirements: []
239
- rubygems_version: 3.5.16
240
- signing_key:
236
+ rubygems_version: 3.6.7
241
237
  specification_version: 4
242
238
  summary: Ruby API for the minFraud Score, Insights, Factors, and Report Transactions
243
239
  services