Skip to content

Adyen Ruby API Library v11.3.0

Choose a tag to compare

@AdyenAutomationBot AdyenAutomationBot released this 21 Apr 08:21
· 21 commits to main since this release

This v11.3.0 release introduces several improvements and fixes.

Note

It is also the last version that supports Ruby 2.7 - 3.2. Please read the note below.

Announcement: Upcoming End-of-Support for Ruby 2.7 - 3.2

Please be advised that the next release (v12.0.0) will require Ruby version 3.3 or higher.

To maintain high security standards and align with the official Ruby maintenance lifecycle, we are removing support for Ruby versions 3.2 and older in our next update. While v11.3.0 remains compatible with these older environments, as of v12.0.0, future versions of this library will only function on Ruby 3.3+.

We recommend preparing your environment for this change if you plan to adopt future library updates.

What's Changed

New Features 💎

Balance Platform

  • Added new DirectDebitMandatesApi service with four endpoints: cancel_mandate, get_list_of_mandates, get_mandate_by_id, and update_mandate.

Capital

  • Added new DynamicOffersApi service with three endpoints: get_all_dynamic_offers, calculate_preliminary_offer_from_dynamic_offer, and create_static_offer_from_dynamic_offer.

Fixes ⛑️

  • Fixed Client#initialize to validate env and live_url_prefix arguments immediately on construction, raising ArgumentError on invalid values.
  • Fixed create_query_string appending a trailing ? to URLs when query_params is empty.
  • Fixed error message typo in env= setter (doubled single-quote).
  • Removed a stray puts debug statement from HmacValidator#valid_webhook_payload_hmac?.

Other Changes 🖇️

  • Extracted duplicated endpoint URL-building logic into a private build_endpoint(path, *params) helper on the base Service class; all generated services updated accordingly.
  • Extended RSpec coverage for new services, Service#build_endpoint, Service#create_query_string, and Client initialization edge-cases.

PRs

New Contributors

Full Changelog: v11.2.0...v11.3.0