Adyen Go API Library v8.0.0
·
176 commits
to main
since this release
What's Changed
This major version contains mainly service updates.
service | from | to | details |
---|---|---|---|
Checkout | v70 | v71 | Release Notes |
Management (and Webhooks) | v1 | v3 | Release Notes |
Transfers (and Webhooks) | v3 | v4 | Release Notes |
You can see the complete list of supported versions and their respective webhook versions.
Checkout API v71
Multiple models have been renamed.
- CreatePaymentCaptureRequest -> PaymentCaptureRequest
- CreateStandalonePaymentCancelRequest -> StandalonePaymentCancelRequest
- CreatePaymentRefundRequest -> PaymentRefundRequest
- CreatePaymentReversalRequest -> PaymentReversalRequest
- DetailsRequest -> PaymentDetailsRequest
- CreatePaymentLinkRequest -> PaymentLinkRequest
- CheckoutUtilityRequest -> UtilityRequest
- CheckoutBalanceCheckRequest -> BalanceCheckRequest
- CheckoutCreateOrderRequest -> CreateOrderRequest
- CheckoutCancelOrderRequest -> CancelOrderRequest
Classic Payments Integration v68
The group General has been renamed to Payments. From:
service := client.Payments()
req := service.GeneralApi.AuthoriseInput().PaymentRequest(body)
service.GeneralApi.Authorise(context.Background(), req)
To:
service := client.Payments()
req := service.PaymentsApi.AuthoriseInput().PaymentRequest(body)
service.PaymentsApi.Authorise(context.Background(), req)
Disputes API v30
Service API and models have been rebuilt into the v7 format. They have getters/setters and use pointers for optional fields. Example:
req := service.RetrieveApplicableDefenseReasonsInput().DefenseReasonsRequest(disputes.DefenseReasonsRequest{
DisputePspReference: pspReference,
MerchantAccountCode: merchantAccount,
})
res, httpRes, err := service.RetrieveApplicableDefenseReasons(context.Background(), req)
Removed /downloadDisputeDefenseDocument
endpoint.
Breaking Changes 🛠
- Upgrade Checkout to v71 by @michaelpaul in #263
- ITT-604: Update Checkout models by @michaelpaul in #223
- Upgrade Management and Transfers by @michaelpaul in #231
- Upgrade Disputes API to v30 by @michaelpaul in #247
- Update all models/services by @michaelpaul in #260
New Features 💎
- Transaction webhooks by @michaelpaul in #265
Other Changes 🖇️
- Fix management webhooks by @michaelpaul in #251
- fix(deps): update module github.com/google/uuid to v1.4.0 by @renovate in #259
- Run integration tests only before releases by @michaelpaul in #257
- Delete downloadDisputeDefenseDocument by @michaelpaul in #264
- Update models by @AdyenAutomationBot in #266
Full Changelog: v7.3.1...v8.0.0