-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #327 from VictorAvelar/review-structs-vs-api-refer…
…ence Ensure API parity on all resources
- Loading branch information
Showing
53 changed files
with
4,759 additions
and
1,870 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Notable changes included in v4 | ||
|
||
## Breaking changes | ||
|
||
- `idempotency` package has moved from the `mollie` directory to the `pkg` directory. | ||
- `pagination` package has moved from the`mollie` directory to the `pkg` directory. | ||
- `connect` package has moved from the `mollie` directory to the `pkg` 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 a `CreatePayment` struct, a `UpdatePayment` struct and a `Payment` 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` | ||
- 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 | ||
|
||
## Other changes | ||
|
||
- `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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.