Skip to content

#42 - add createInvoiceFormatter() with TenantContext parameter - #43

Merged
xsalefter merged 1 commit into
masterfrom
plugin-api-42
Aug 4, 2026
Merged

#42 - add createInvoiceFormatter() with TenantContext parameter#43
xsalefter merged 1 commit into
masterfrom
plugin-api-42

Conversation

@xsalefter

@xsalefter xsalefter commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Original ticket #42 . Decided to use overload + default method instead of just adding another TenantContext in current method for following reason:

Overload + default method : It is true that 3rd party user forced to re-implements, but current code that call this method without TenantContext will keep working and not breaking.

Change method signature only : 3rd party need to re-implements and changes any code to pass TenantContext, even if it is not needed (and they could just need to pass null anyway).

However, I'm OK if implementation need to do the opposite. I just think this approach could support little bit better for backward compatibility.

@xsalefter xsalefter changed the title #42 - add createInvoiceFormatter() with callContext parameter #42 - add createInvoiceFormatter() with TenantContext parameter Jul 31, 2026
@xsalefter
xsalefter merged commit fa465a2 into master Aug 4, 2026
14 checks passed
@xsalefter
xsalefter deleted the plugin-api-42 branch August 4, 2026 19:33
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.

2 participants