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 +4 -4
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +20 -0
- data/LICENSE.txt +1 -1
- data/README.md +2 -2
- data/lib/minfraud/components/base.rb +2 -0
- data/lib/minfraud/components/payment.rb +2 -0
- data/lib/minfraud/http_service/response.rb +2 -0
- data/lib/minfraud/model/factors.rb +1 -0
- data/lib/minfraud/model/phone.rb +10 -0
- data/lib/minfraud/model/subscores.rb +2 -0
- data/lib/minfraud/version.rb +1 -1
- data/minfraud.gemspec +2 -2
- metadata +6 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2abf19bed1e7f84df745ea0d6fb2564a57cbdb5047f4bf999bcb4812cb3a0c92
|
4
|
+
data.tar.gz: 8b6a0cf12fa4ff3f9cbb907fc6e85a67b9c83e49f0f40efd395b4fe8adf2219f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 565e3a8117bba664ae7acdd4e8c8638b24a8bb6140b4239d4839ba431a5b19c27dcf4dd352e44902ba55624757bbbb8617abb26414c38321d2566548ad4164d6
|
7
|
+
data.tar.gz: 7425846de023014cbe8aaccde3dcd7d4dc0df494fc2f8b8e7370bb8eb5ed5ca80cddc40f7440c8a443feb83fc574b3a24ac0efc72040e302abf1838295fe239a
|
data/.rubocop.yml
CHANGED
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-
|
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
|
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-
|
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).
|
data/lib/minfraud/model/phone.rb
CHANGED
@@ -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.
|
data/lib/minfraud/version.rb
CHANGED
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 = '>=
|
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.
|
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.
|
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:
|
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.
|
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.
|
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:
|
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.
|
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
|