Skip to content

Adyen Node API Library v32.1.0

Latest

Choose a tag to compare

@AdyenAutomationBot AdyenAutomationBot released this 03 Sep 08:31

What's Changed

This release adds Checkout session updates and richer payment, travel, lodging, and enhanced-scheme models; introduces the Document Collector API with multipart file uploads; and exposes Session Authentication types. It also removes obsolete Checkout error models and two deprecated payment-method enum values.

New Features 💎

Checkout API

  • Add PaymentsApi.updateSession(sessionId, checkoutSessionPatchSessionRequest, requestOptions?) with CheckoutSessionPatchSessionRequest, CheckoutSessionPatchSessionResponse, and SessionAmountUpdate to update a session's amount and payable state. (#1735)
  • Add AuPayDetails, DBaraiDetails, and SepaDirectDebitDonations, including their TypeEnum values, and update discriminator mappings for payment methods and response actions. (#1735)
  • Add enhanced-scheme models CarRental, PickupInfo, RentalSurcharges, ReturnInfo, Healthcare, Lodging, Folio, Room, and TemporaryServices; expose them through EnhancedSchemeData.carRental, healthcare, lodging, and temporaryServices. (#1735)
  • Add ThirdPartyTokenRedundancyInfo with requestParameters and requestTemplateCode; expose it on CreateCheckoutSessionRequest, CreateCheckoutSessionResponse, and PaymentRequest, and add CreateCheckoutSessionRequest.shopperConversionId. (#1735)
  • Add LineItem.returnShippingCompany, returnTrackingNumber, returnTrackingUri, shippingCompany, shippingMethod, trackingNumber, and trackingUri; add PaypalUpdateOrderRequest.deliveryAddress, discountAmount, and shippingAmount. (#1735)
  • Add AffirmDetails.financingProgram, CardBrandDetails.healthcare, DonationCampaignsRequest.label, KlarnaDetails.merchantData, RivertyDetails.merchantData, and StoredPaymentMethod.externalToken. (#1735)
  • Make SepaDirectDebitDetails.iban and SepaDirectDebitDetails.ownerName optional. (#1380) (#1735)

Document Collector API

Payment API

  • Add transactionLinkId to AdditionalDataCommon and ResponseAdditionalDataCommon. (#1738)

Fixes ⛑️

  • Export the Types.sessionAuthentication namespace so request and response models used by SessionAuthenticationAPI are available from the public package entry point. (#1751) (#1760)
  • Update the Banking webhook HMAC README example to use validateHMACSignature(hmacKey, hmacSignature, data) instead of the deprecated, misleading call. (#1744)

Notes

Few unused attributes have been removed:

  • Remove Types.checkout.DefaultErrorResponseEntity, its constructor(), and its serialized properties detail, errorCode, instance, invalidFields, requestId, status, title, and type. (#1735)
  • Remove Types.checkout.InvalidField, its constructor(), and its serialized properties message, name, and value. (#1735)
  • Remove Types.checkout.PaymentDetails.TypeEnum.Paybright and move the gopay_wallet value from Types.checkout.PaymentDetails.TypeEnum.GopayWallet to Types.checkout.StoredPaymentMethodDetails.TypeEnum.GopayWallet. (#1735)

Contributor Notes 🔧

  • Add form-data 4.0.6 as a runtime dependency and reusable multipart and URL-encoded request helpers; update the generated API template for file uploads. (#1761)
  • Patch transitive security-sensitive dependencies: fast-uri 3.1.5, brace-expansion 1.1.18, ajv 6.15.0, js-yaml 3.15.1/4.3.1, and an override for micromatch 4.0.8. (#1753) (#1754) (#1755) (#1756) (#1757)
  • Update contributor tooling: eslint-plugin-unused-imports 4.x, ts-loader 9.6.2, and acorn 8.17.0. (#1402) (#1646) (#1724)
  • Update release, stale, and Node setup actions, and improve the SonarCloud scanner configuration. (#1719) (#1722) (#1723) (#1752)
  • Remove redundant generated void statements so SDK Automation can continue removing unused imports. (#1779)

Other Changes 🖇️

  • Add a SaleToAcquirerData.additionalData usage example, fix the classic Platforms API documentation link, and list Document Collector API v1 in the supported APIs table. (#1741) (#1743) (#1782)

PRs 📋️

Contributors

Full Changelog: v32.0.0...HEAD