idempotencypackage has moved from themolliedirectory to thepkgdirectory.paginationpackage has moved from themolliedirectory to thepkgdirectory.connectpackage has moved from themolliedirectory to thepkgdirectory.- 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
paymentsthere is aCreatePaymentstruct, aUpdatePaymentstruct and aPaymentstruct. 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
ListPaymentsOptionsobject 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.Suitewas removed from all testing.- Improvements for devcontainer files
- Major versions of multiple github actions updated
- Base
Dockerfileusing Go 1.22.x - Tests were update to use the new types.
- Test coverage was slightly improved.