Mangopay / mangopay2-java-sdk

Java SDK for MANGOPAY
https://search.maven.org/artifact/com.mangopay/mangopay2-java-sdk
MIT License
25 stars 28 forks source link

Outdated idempotency source url ID matcher #336

Closed AntoineDuComptoirDesPharmacies closed 3 months ago

AntoineDuComptoirDesPharmacies commented 4 months ago

Since 26th march 2024, resource IDs have change format. Previously : “4659626451” Now : “po_b_02HMVJH4ZJWX9E5K66KTN9H118”

In IdempotencyApiImpl.java, method instantiateResourceObject guess the resource class according to requested URL pattern matcher. However, the ID regexp have not been updated.

At the moment, the ID pattern matcher is "[0-9a-zA-Z]+" It is not authorizing underscore. Thus, it do not cast the ressource correctly.