Skip to content

feat: add missing payment links params#471

Merged
janpaepke merged 3 commits intomasterfrom
feature/add-missing-payment-links-params
Jan 14, 2026
Merged

feat: add missing payment links params#471
janpaepke merged 3 commits intomasterfrom
feature/add-missing-payment-links-params

Conversation

@janpaepke
Copy link
Collaborator

Summary

  • Add missing fields to PaymentLinkData: lines, billingAddress, shippingAddress, sequenceType, customerId
  • Update CreateParameters to include all new fields
  • Fix JSDoc inconsistencies (webhookUrl description, allowedMethods values)

Closes #434

Based on contribution from @RubenSmn in #470 (re-submitted from main repo per #387)

References

RubenSmn and others added 2 commits January 12, 2026 12:22
- Add missing customerId field for recurring payment links
- Update CreateParameters to include all new fields (lines,
  billingAddress, shippingAddress, sequenceType, customerId)
- Fix webhookUrl JSDoc (was incorrectly copied from redirectUrl)
- Fix billingAddress/shippingAddress JSDoc to match API docs
- Update allowedMethods with 9 missing payment methods
- Correct JSDoc URLs that had typos
@janpaepke janpaepke added the API discrepancy Inconsistency between Mollie's REST API and this SDK. label Jan 14, 2026
@janpaepke janpaepke requested a review from Copilot January 14, 2026 07:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds missing payment link parameters to align the SDK with the Mollie API documentation, including support for order lines, address details, recurring payments, and updated payment method options.

Changes:

  • Added support for order lines, billing/shipping addresses, and recurring payment setup (lines, billingAddress, shippingAddress, sequenceType, customerId)
  • Fixed JSDoc descriptions for webhookUrl and allowedMethods to match current API documentation
  • Updated CreateParameters to include all newly added fields

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/data/paymentLinks/data.ts Added new optional fields (lines, addresses, customer/sequence for recurring), fixed JSDoc for webhookUrl, updated allowedMethods documentation with complete list of payment methods
src/binders/paymentLinks/parameters.ts Updated CreateParameters to make all new fields available as optional parameters, changed structure to use PickOptional for better type safety

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@janpaepke janpaepke requested a review from edorivai January 14, 2026 08:44
Copy link
Collaborator

@edorivai edorivai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, the one comment I had has been addressed.

@janpaepke janpaepke merged commit 5299a9a into master Jan 14, 2026
5 of 8 checks passed
@janpaepke janpaepke deleted the feature/add-missing-payment-links-params branch January 14, 2026 14:34
@janpaepke janpaepke mentioned this pull request Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API discrepancy Inconsistency between Mollie's REST API and this SDK.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Payment Links support sequenceType, lines, billingAddress, shippingAddress

3 participants