Releases: Adyen/adyen-go-api-library
Releases · Adyen/adyen-go-api-library
Adyen Go API Library v7.0.0
What's Changed
This version is strictly based on our OpenAPI specifications.
Breaking Changes 🛠
- Service versions have been upgraded to the latest ones (see supported versions)
- Models have methods like constructors, getters and setters to assist with default/optional values, e.g.:
card := checkout.NewCardDetails()
card.SetEncryptedCardNumber("test_4111111111111111")
fmt.Println(card.GetEncryptedCardNumber(), card.GetType())
// Output: test_4111111111111111 scheme
- Webhook handler is now a function
webhook.HandleRequest
instead of a method - The previous usage pattern (
client.Checkout.PaymentMethods(&checkout.PaymentMethodsRequest{...})
) has been removed in order to support features available in new services. Here it's the new pattern:- Instantiate a service via it's respective "constructor":
svc := client.Checkout()
- Create a request input object:
req := svc.PaymentsApi.PaymentMethodsInput()
- Attach parameters:
req = req.PaymentMethodsRequest(checkout.PaymentMethodsRequest{ MerchantAccount: "your merchant account", })
- Send the request with a context:
res, httpRes, err := svc.PaymentsApi.PaymentMethods(context.Background(), req)
- Instantiate a service via it's respective "constructor":
New Features 💎
- LEM api by @gcatanese in #173
- ITT-84: Add Stored Value API by @michaelpaul in #189
- ITT-83: Add Balance Platform Configuration API by @michaelpaul in #191
- ITT-67: Add Management API by @michaelpaul in #195
- create initial version of pos terminal management API by @wboereboom in #200
- Itt 82/add transfers service by @wboereboom in #196
- Itt 573/add banking webhook models by @wboereboom in #213
Other Changes 🖇️
- Configure Renovate by @renovate in #161
- fix(deps): update module github.com/stretchr/testify to v1.8.1 by @renovate in #163
- Delete dependabot configuration file by @gcatanese in #166
- chore(deps): update actions/setup-go action to v3 by @renovate in #169
- chore(deps): update actions/checkout action to v3 by @renovate in #168
- chore(deps): update github/codeql-action action to v2 by @renovate in #170
- PW-7988: Upgrade to Checkout v70 by @michaelpaul in #172
- fix(deps): update module github.com/joho/godotenv to v1.5.1 by @renovate in #171
- fix(deps): update module golang.org/x/oauth2 to v0.5.0 by @renovate in #167
- Update CODEOWNERS by @wboereboom in #174
- LEM API: integration tests by @gcatanese in #175
- Correct live url for LEM by @gcatanese in #176
- ITT-38: Application info via headers by @michaelpaul in #178
- ITT-39: Generate Checkout automatically by @michaelpaul in #181
- Fix models workflow by @michaelpaul in #183
- fix(deps): update module github.com/stretchr/testify to v1.8.2 by @renovate in #177
- chore(deps): update peter-evans/create-pull-request action to v5 by @renovate in #182
- chore(deps): update actions/setup-go action to v4 by @renovate in #180
- fix(deps): update module golang.org/x/oauth2 to v0.7.0 by @renovate in #179
- generated payments models by @wboereboom in #185
- update binLookup to v54 by @wboereboom in #186
- update makefile and generate payouts by @wboereboom in #184
- update legalEntity models to v3 by @wboereboom in #187
- [redo] Fix models workflow by @michaelpaul in #188
- ITT-87: Upgrade Recurring to v68 by @michaelpaul in #192
- [ITT-448] Rename notification to webhook by @AlexandrosMor in #194
- ITT-567: Upgrade LEM to v3 by @michaelpaul in #198
- Remove notification folder and fix unit tests by @AlexandrosMor in #199
- ITT-541: Upgrade Checkout to the new API style by @michaelpaul in #201
- ITT-541: Upgrade Payout to v68 by @michaelpaul in #204
- ITT-541: Upgrade BIN lookup to v54 by @michaelpaul in #203
- ITT-541: Upgrade Classic Payments to v68 by @michaelpaul in #202
- Do not skip JSON serialization for readOnly fields by @gcatanese in #212
- Setup Go for model formatting by @michaelpaul in #211
- ITT-110: Bump to v7 by @michaelpaul in #206
- Constructor for every service by @michaelpaul in #210
- ITT-110: Readme changes for the upcoming major by @michaelpaul in #207
- [ITT-6] Map the error to RestServiceError by @AlexandrosMor in #209
- ITT-110: Update StoredValue API by @michaelpaul in #214
- docs: fix api-explorer links by @wilsonpinto in #217
- ITT-587: Developer experience feedback by @michaelpaul in #216
- ITT-593: Implement RestServiceError for other services by @michaelpaul in #218
- ITT-110: Release v7 by @michaelpaul in #215
New Contributors
- @renovate made their first contribution in #161
- @michaelpaul made their first contribution in #172
- @wboereboom made their first contribution in #174
- @wilsonpinto made their first contribution in #217
Full Changelog: v6.0.1...v7.0.0
v6.0.1
What's Changed
- Fix panic when NotificationItems is nil by @strobil in #152
- Bump Checkout API version to v69 by @strobil in #154
- Add RELEASE PROCESS doc (ie update API version) by @gcatanese in #156
- Fix PaymentPspReference hardcoded in endpoint URL by @gcatanese in #157
- Update library version v6.0.1 by @gcatanese in #158
- Release v6.0.1 by @gcatanese in #159
New Contributors
Full Changelog: v6.0.0...v6.0.1
v6.0.0
What's Changed
- Update CODEOWNERS: @gcatanese in #137
- Upgrade to checkout-v68 by @gcatanese in #136
- Update CODEOWNERS by @AlexandrosMor in #140
- Upgrade to support Checkout api v69 by @gcatanese in #145
- Bump github.com/stretchr/testify from 1.7.1 to 1.8.0 by @dependabot in #146
- Improve doc files by @gcatanese in #147
- fix: typo in notifications by @c-seeger in #149
- Remove omitempty to retain default value (false) by @gcatanese in #148
New Contributors
- @gcatanese made their first contribution in #137
Full Changelog: v5.1.0...v6.0.0
v5.1.0
What's Changed
- Update Readme.md with the new template by @cyattilakiss in #111
- fix: added all missing default event codes by @c-seeger in #123
- Rename master to main by @acampos1916 in #131
- Update Readme.md - fix indent by @kentokento in #118
- Update CODEOWNERS by @deepu105 in #113
- Update recurring details tests by @AlexandrosMor in #130
- Recurrent India by @mderasse in #126
- Release v5.1.0 by @acampos1916 in #132
New Contributors
- @c-seeger made their first contribution in #123
- @acampos1916 made their first contribution in #131
- @kentokento made their first contribution in #118
- @AlexandrosMor made their first contribution in #130
- @mderasse made their first contribution in #126
Full Changelog: v5.0.2...v5.1.0
v5.0.2
Fix switch case fallthrough issue in the JSON Unmarshall methods for PaymentRequest.PaymentMethod
and PaymentResponse.Action
Supported API versions:
- Checkout API version: v67
- Payments API version: v64
- Recurring API version: v49
- Payouts API version: v64
- Account API version: v6
- Fund API version: v6
- Notification Configuration API version: v6
v5.0.1
Patch release for bug fixes
- Add JSON deserializers for
PaymentRequest.PaymentMethod
- Add JSON deserializers for
PaymentResponse.Action
- Fix version number of library
- Fix issue with
ResultCode
serialization - Minor cleanup and improvements of generated models
- Fix some model field types
Supported API versions:
- Checkout API version: v67
- Payments API version: v64
- Recurring API version: v49
- Payouts API version: v64
- Account API version: v6
- Fund API version: v6
- Notification Configuration API version: v6
v5.0.0
Breaking:
- Update API versions:
- Checkout from
64
to67
- Checkout from
The related API release notes can be found here: https://docs.adyen.com/online-payments/release-notes#checkout-api-v67
Supported API versions:
- Checkout API version: v67
- Payments API version: v64
- Recurring API version: v49
- Payouts API version: v64
- Account API version: v6
- Fund API version: v6
- Notification Configuration API version: v6
Adyen Go API Library v4.0.0
Feature:
- Add
Disputes
API
Breaking:
- Update API versions:
- Marketpay from
5
to6
- Payments from
52
to64
- Checkout from
52
to64
- Marketpay from
Supported API versions:
- Checkout API version: v64
- Payments API version: v64
- Recurring API version: v49
- Payouts API version: v64
- Account API version: v6
- Fund API version: v6
- Notification Configuration API version: v6
Adyen Go API Library v3.0.0
Breaking changes:
SetIdempotencyKey
method is removed and now it's available at the API level.
Adyen Go API Library v2.1.0
A major version update for import path to fix the issue with v2 release that was not being picked up by go get