Skip to content

add hide products#24

Merged
victormendoza96 merged 85 commits into
mainfrom
develop
May 14, 2026
Merged

add hide products#24
victormendoza96 merged 85 commits into
mainfrom
develop

Conversation

@victormendoza96
Copy link
Copy Markdown
Contributor

This pull request introduces several improvements and new features, most notably the addition of a full controller for Patpass Comercio, enhancements to error handling and JSON serialization, and updates to documentation and dependencies. The changes are grouped below by theme.

New Features

  • Added a new products , patpass, trasaction compllete /malll/ deferred, oncllck promotions

Error Handling and Serialization Improvements

  • Enhanced error handling in BaseController and related controllers by introducing a getDisplayableErrorMessage method, which extracts user-friendly error messages from exceptions, especially for TransbankException. This improves the error messages shown to users.
  • Improved JSON serialization in BaseController by registering a custom serializer for Double values, ensuring consistent formatting in API responses.

Dependency and Configuration Updates

  • Upgraded the transbank-sdk-java dependency from version 6.0.0 to 6.1.0 in pom.xml to ensure compatibility with the latest features and fixes.
  • Added new environment variables for Oneclick Mall Promotions to .env.example and documented their usage in README.md for easier configuration and onboarding.
    This pull request introduces several improvements and new features to the project. The most significant change is the addition of a new controller for handling Patpass Comercio flows. Other notable updates include enhanced error handling, improved JSON serialization, updated documentation, and a dependency upgrade.

Error Handling Improvements

  • Enhanced error handling in BaseController by adding a method to extract user-friendly error messages from exceptions, prioritizing messages from TransbankException. This method is now used in all relevant exception handlers. (src/main/java/cl/transbank/webpay/example/controllers/BaseController.java, OneclickMallController.java, OneclickMallDeferredController.java) [1] [2] [3]

JSON Serialization Enhancements

  • Improved JSON serialization in BaseController by customizing the serialization of Double values to avoid unnecessary trailing zeros and handle special values (NaN, Infinity) gracefully. (src/main/java/cl/transbank/webpay/example/controllers/BaseController.java)

Documentation and Configuration

  • Added required environment variables for the Oneclick Mall Promotions flow to .env.example and documented them in the README.md. (.env.example, README.md) [1] [2]

Dependency Updates

  • Upgraded the transbank-sdk-java dependency from version 6.0.0 to 6.1.0 in pom.xml. (pom.xml)

…lete-deferred

Feat/transaction complete deferred
…ete-mall-deferred

Tbk 178 feat: tx complete mall deferred
@sonarqubecloud
Copy link
Copy Markdown

@victormendoza96 victormendoza96 merged commit 0ecbec9 into main May 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants