minfraud 2.7.1 → 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: 94219dcd7ef78fdea77b06565b3a73ff8073ea56755f2a9ab25a0d4ba97eb692
4
- data.tar.gz: a7e3cfa6b732da9f5d23877b4abef0cb7e7641ed30d690af2fc141ee6298cec8
3
+ metadata.gz: 2abf19bed1e7f84df745ea0d6fb2564a57cbdb5047f4bf999bcb4812cb3a0c92
4
+ data.tar.gz: 8b6a0cf12fa4ff3f9cbb907fc6e85a67b9c83e49f0f40efd395b4fe8adf2219f
5
5
  SHA512:
6
- metadata.gz: d79f083900533abbe2fc0d82b5c67d91c8bf81cee4ac95ef37c42c40eb50cf8f1bd1642acc6b80fdc50234f1cded773f47a62548fa0d360bab92c5fcd6b3cbb5
7
- data.tar.gz: 5d868acf7b455dd212b8481e0c31e1cc9156e5c39a38ddf38d9d230b2344250fbae51551aec91556e532a601f2e51e4424e8c2b02eca024e84b4b23a600f0c2b
6
+ metadata.gz: 565e3a8117bba664ae7acdd4e8c8638b24a8bb6140b4239d4839ba431a5b19c27dcf4dd352e44902ba55624757bbbb8617abb26414c38321d2566548ad4164d6
7
+ data.tar.gz: 7425846de023014cbe8aaccde3dcd7d4dc0df494fc2f8b8e7370bb8eb5ed5ca80cddc40f7440c8a443feb83fc574b3a24ac0efc72040e302abf1838295fe239a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
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
+
3
10
  ## v2.7.1 (2025-02-10)
4
11
 
5
12
  * Re-release due to bug in release workflow.
@@ -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
@@ -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,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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Minfraud
4
4
  # The Gem version.
5
- VERSION = '2.7.1'
5
+ VERSION = '2.8.0'
6
6
  end
data/minfraud.gemspec CHANGED
@@ -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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minfraud
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kushnir.yb
8
8
  - William Storey
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-02-10 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '1.2'
53
+ version: '1.3'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '1.2'
60
+ version: '1.3'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: simpleidn
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.6.2
236
+ rubygems_version: 3.6.7
237
237
  specification_version: 4
238
238
  summary: Ruby API for the minFraud Score, Insights, Factors, and Report Transactions
239
239
  services