Skip to content

feat: add missing options parameters to CreateConnectTokenRequest#65

Open
cauecalil wants to merge 1 commit intopluggyai:masterfrom
cauecalil:feat/add-create-connect-token-options
Open

feat: add missing options parameters to CreateConnectTokenRequest#65
cauecalil wants to merge 1 commit intopluggyai:masterfrom
cauecalil:feat/add-create-connect-token-options

Conversation

@cauecalil
Copy link

I was using the SDK and noticed that the Options class for creating connect tokens was missing a couple of parameters compared to the current API docs.

This PR adds oauthRedirectUri and avoidDuplicates to the Options payload.

What changed:

  • Added the two missing fields to Options.java.
  • Updated the internal call in CreateConnectTokenRequest.java.

Note on compatibility: I kept the original legacy constructors in CreateConnectTokenRequest exactly as they were so this doesn't introduce any breaking changes for existing users. The new fields just default to null if the old constructors are used.

Let me know if you need me to adjust anything!

  • Code compiles correctly.
  • Tests run successfully locally.

Added 'oauthRedirectUri' and 'avoidDuplicates' to the Options class to align the SDK with the current Pluggy API documentation. Existing constructors were preserved to guarantee backward compatibility and prevent breaking changes for current users.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant