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
-
add openapi templates to repo by @wboereboom in #890
-
PW-6628: Update ReversalRequest model by @michaelpaul in #899
-
PW-6592: Publish on NPM automatically by @michaelpaul in #896
-
PW-6591: Add new job to generate models by @michaelpaul in #902
-
Pw 6663/fix checkout + payments services by @wboereboom in #903
-
Update models by @AdyenAutomationBot in #917
-
Terminal API barcodetype enum value 'Qrcode' should not be all caps by @jillingk in #900
-
Pw 6826/storedvalue api by @wboereboom in #918
-
update recurringService to v68 by @wboereboom in #919
-
update HOP API by @wboereboom in #921
-
PW-6881: Generate more models by @michaelpaul in #915
-
Update models by @AdyenAutomationBot in #932
library/pull/931 -
Pw 6904/management api by @wboereboom in #926
-
PW-6903: Add more services to model generator by @michaelpaul in #934
-
PW-6843: Add /debitAccountHolder endpoint by @michaelpaul in #938
-
PW-6832: Parse datetime fields as
Date
by @michaelpaul in #936 -
Checkout Idempotency keys by @wboereboom in #943
-
fix linting warnings for using "any" as type by @wboereboom in #927
-
PW-6668: POS Terminal Management API by @michaelpaul in #922
-
PW-6846: Platforms and financial products - Configuration by @michaelpaul in #949
-
Update models by @AdyenAutomationBot in #956
-
move payouts from interface models to generated models by @wboereboom in #962
-
add BinLookup to model generator pipeline by @wboereboom in #963
-
Update models by @AdyenAutomationBot in #958
-
PW-6940: Management API merchant endpoints by @michaelpaul in #953
-
remove binlookup interface in favor of generated models by @wboereboom in #965
-
Update dependabot reviewers by @acampos1916 in #966
-
allow splits terminal for marketplace by @IcebergRage in #967
-
fix unit tests by @wboereboom in #972
-
Update models by @AdyenAutomationBot in #969
-
Update models by @AdyenAutomationBot in #973
-
Release 12.0.0 by @wboereboom in #975
New Contributors
- @michaelpaul made their first contribution in #899
- @AdyenAutomationBot made their first contribution in #917
- @jillingk made their first contribution in #900
- @IcebergRage made their first contribution in #967
Full Changelog: v11.0.0...v12.0.0