idempotency
package has moved from themollie
directory to thepkg
directory.pagination
package has moved from themollie
directory to thepkg
directory.connect
package has moved from themollie
directory to thepkg
directory.- root namespace is not
github.com/VictorAvelar/mollie-api-go/v4/
. - Changes in all resources:
- Data structures to describe request content in create, update and get operations are no longer the same, e.g. for
payments
there is aCreatePayment
struct, aUpdatePayment
struct and aPayment
struct. This enables future extensions and modifications without having to check for cross request compatibility. - Data structures that describe available url parameters are consistently names
List{ResourceName}Options
. - Data structures that describe lists responses are consistently named as follows: e.g. for payments:
PaymentsList
- Data structures to describe request content in create, update and get operations are no longer the same, e.g. for
- API aliases now use the parent objects, e.g. for settlements when listing payments the options passed to the request are using the
ListPaymentsOptions
object and not a local object. - All resources were checked for API consistency and parity, optional resources with custom types are now pointers to ensure proper json encoding and decoding to avoid issues as the one mentioned un #271
- All resources embed a struct containing all the fields specific to access tokens, following this pattern the same happens for fields specific to Mollie connect
testify.Suite
was removed from all testing.- Improvements for devcontainer files
- Major versions of multiple github actions updated
- Base
Dockerfile
using Go 1.22.x - Tests were update to use the new types.
- Test coverage was slightly improved.