Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
for explicit device linking.
* Added the processors `:banquest`, `:fat_zebra`, `:summit_payments`, and
`:yaadpay` to `Minfraud::Components::Payment`.
* Added `:clear` to the valid values for the `tag` attribute on
`Minfraud::Components::Report::Transaction`.
* Unnecessary files were removed from the published .gem.

## v2.9.0 (2025-11-20)
Expand Down
6 changes: 3 additions & 3 deletions lib/minfraud/components/report/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ class Transaction < Base
# A symbol indicating the likelihood that a transaction may be
# fraudulent.
#
# This may be one of +:chargeback+, +:not_fraud+, +:spam_or_abuse+, or
# +:suspected_fraud+.
# This may be one of +:chargeback+, +:clear+ (to retract a previous
# report), +:not_fraud+, +:spam_or_abuse+, or +:suspected_fraud+.
#
# @!attribute tag
#
# @return [Symbol, nil]
enum_accessor :tag, %i[chargeback not_fraud spam_or_abuse suspected_fraud]
enum_accessor :tag, %i[chargeback clear not_fraud spam_or_abuse suspected_fraud]

# A string which is provided by your payment processor indicating the
# reason for the chargeback.
Expand Down
32 changes: 32 additions & 0 deletions mise.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# @generated - this file is auto-generated by `mise lock` https://mise.jdx.dev/dev-tools/mise-lock.html

[[tools.ruby]]
version = "4.0.3"
backend = "core:ruby"

[tools.ruby."platforms.linux-arm64"]
checksum = "sha256:77964acc370d5c8375b9502e5ba6c13c03ef91ab9eb9f521c84fb42b9c9a6b0f"
url = "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.3.tar.gz"

[tools.ruby."platforms.linux-arm64-musl"]
checksum = "sha256:77964acc370d5c8375b9502e5ba6c13c03ef91ab9eb9f521c84fb42b9c9a6b0f"
url = "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.3.tar.gz"

[tools.ruby."platforms.linux-x64"]
checksum = "sha256:77964acc370d5c8375b9502e5ba6c13c03ef91ab9eb9f521c84fb42b9c9a6b0f"
url = "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.3.tar.gz"

[tools.ruby."platforms.linux-x64-musl"]
checksum = "sha256:77964acc370d5c8375b9502e5ba6c13c03ef91ab9eb9f521c84fb42b9c9a6b0f"
url = "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.3.tar.gz"

[tools.ruby."platforms.macos-arm64"]
checksum = "sha256:77964acc370d5c8375b9502e5ba6c13c03ef91ab9eb9f521c84fb42b9c9a6b0f"
url = "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.3.tar.gz"

[tools.ruby."platforms.macos-x64"]
checksum = "sha256:77964acc370d5c8375b9502e5ba6c13c03ef91ab9eb9f521c84fb42b9c9a6b0f"
url = "https://cache.ruby-lang.org/pub/ruby/4.0/ruby-4.0.3.tar.gz"

[tools.ruby."platforms.windows-x64"]
url = "https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-4.0.3-1/rubyinstaller-4.0.3-1-x64.7z"
17 changes: 17 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[settings]
experimental = true
lockfile = true
disable_backends = [
"asdf",
"vfox",
]

[tools]
ruby = "latest"

[hooks]
enter = "mise install --quiet --locked"

[[watch_files]]
patterns = ["mise.toml", "mise.lock"]
run = "mise install --quiet --locked"
2 changes: 1 addition & 1 deletion spec/components/report/transaction_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
end

context 'with all valid tags' do
values = %i[chargeback not_fraud spam_or_abuse suspected_fraud]
values = %i[chargeback clear not_fraud spam_or_abuse suspected_fraud]
values.each do |val|
it "accepts #{val} as a valid tag" do
result = described_class.new(tag: val)
Expand Down
Loading