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 @@ -5,6 +5,8 @@ CHANGELOG
------------------

* Added `FAT_ZEBRA` to the `Payment.Processor` enum.
* Added `CLEAR` to the `TransactionReport.Tag` enum for use with the Report
Transaction API.

4.2.0 (2026-02-26)
------------------
Expand Down
30 changes: 30 additions & 0 deletions mise.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# @generated - this file is auto-generated by `mise lock` https://mise.jdx.dev/dev-tools/mise-lock.html

[[tools.java]]
version = "26.0.0"
backend = "core:java"

[[tools.maven]]
version = "3.9.15"
backend = "aqua:apache/maven"

[tools.maven."platforms.linux-arm64"]
url = "https://archive.apache.org/dist/maven/maven-3/3.9.15/binaries/apache-maven-3.9.15-bin.tar.gz"

[tools.maven."platforms.linux-arm64-musl"]
url = "https://archive.apache.org/dist/maven/maven-3/3.9.15/binaries/apache-maven-3.9.15-bin.tar.gz"

[tools.maven."platforms.linux-x64"]
url = "https://archive.apache.org/dist/maven/maven-3/3.9.15/binaries/apache-maven-3.9.15-bin.tar.gz"

[tools.maven."platforms.linux-x64-musl"]
url = "https://archive.apache.org/dist/maven/maven-3/3.9.15/binaries/apache-maven-3.9.15-bin.tar.gz"

[tools.maven."platforms.macos-arm64"]
url = "https://archive.apache.org/dist/maven/maven-3/3.9.15/binaries/apache-maven-3.9.15-bin.tar.gz"

[tools.maven."platforms.macos-x64"]
url = "https://archive.apache.org/dist/maven/maven-3/3.9.15/binaries/apache-maven-3.9.15-bin.tar.gz"

[tools.maven."platforms.windows-x64"]
url = "https://archive.apache.org/dist/maven/maven-3/3.9.15/binaries/apache-maven-3.9.15-bin.tar.gz"
18 changes: 18 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[settings]
experimental = true
lockfile = true
disable_backends = [
"asdf",
"vfox",
]

[tools]
java = "latest"
maven = "latest"
Comment on lines +10 to +11
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Using latest for tool versions can lead to non-deterministic environments if the lockfile is regenerated or bypassed. Since the project explicitly requires Java 17 (as noted in the CHANGELOG.md), it is safer to specify the major version to ensure the environment remains compatible with the project's requirements.

Suggested change
java = "latest"
maven = "latest"
java = "17"
maven = "3.9"


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

[[watch_files]]
patterns = ["mise.toml", "mise.lock"]
run = "mise install --quiet --locked"
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,11 @@ public enum Tag {
/**
* Chargeback
*/
CHARGEBACK;
CHARGEBACK,
/**
* Clear a previous transaction report tag
*/
CLEAR;

/**
* @return a string representation of the object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ public void testTransactionID() {
assertEquals(id, report.transactionId());
}

@Test
public void testClearTag() throws Exception {
final var report = new Builder(Tag.CLEAR).ipAddress(ip).build();
assertEquals(Tag.CLEAR, report.tag());

final var expectedJSON = "{ip_address:'1.1.1.1',tag:'clear'}";
JSONAssert.assertEquals(expectedJSON, report.toJson(), true);
}

// Test the example in the README
@Test
public void testAllFields() throws Exception {
Expand Down
Loading