npm @adyen/api-library 12.0.0
Adyen Node API Library v12.0.0

latest releases: 19.3.0, 19.1.0, 19.0.0...
2 years ago

Description

This release contains a major library overhaul. Several API's have been added. Several others have had their models updated to match the latest version of every API. Check The Readme to check which API's have been updated. The corresponding models can also be found in the Adyen API Explorer

⚠ Breaking Changes

We have found some services and end-points have been changed around in this major release. here are the two most notable changes

Modifications service

Modifications service modifications.d.ts has been removed. The following methods are now part of  Checkout service (checkout.d.td): captures, cancels, refunds, reversals, amountUpdates

Required changes

Remove the usage of the Modification constructor

const modification = new Modification(client);

and use instead the CheckoutAPI

const checkout = new CheckoutAPI(client);

The methods' signatures did not change: invoke the method via the Checkout service

const response = await checkout.reversals(paymentStore[req.query.orderRef].paymentRef, payload);

Recurring model changes

In Recurring Service the models have been modified:

RecurringDetailContainer has been deleted

RecurringDetailsResult details is now Array. (see https://github.com/Adyen/adyen-node-api-library/blob/7f6e1f2a5686c2b62aa50da47dd886daf292779e/src/typings/recurring/recurringDetailsResult.ts)

Required changes

Update access to RecurringDetailsResult

const reference = recurringDetailsRequest.details.[0].recurringDetailReference;

What's Changed

New Contributors

Full Changelog: v11.0.0...v12.0.0

Don't miss a new api-library release

NewReleases is sending notifications on new releases.