feat(BTI-23): add eMandate solution (B2C + B2B)#15
Merged
Conversation
Add eMandate as a DataRequest-based solution with five actions: GetIssuerList, CreateMandate, GetStatus, ModifyMandate, CancelMandate. - EmandateBuilder (SolutionBuilder) + EmandateB2BBuilder subclass for the emandateb2b service code; both registered in SolutionMethodFactory. - Per-action allowed/required service-parameter validation (debtorReference for create; mandateId for status/modify/cancel). - Reuses PaymentResponse; no bespoke per-action response model. - Unit + feature tests for every action (success + validation paths), runnable examples/emandate.py, and a README eMandate section. Verified against Buckaroo Plaza test: GetIssuerList succeeds and CreateMandate is accepted (redirect returned) for both B2C and B2B.
AlbinaBaraliu
approved these changes
Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds eMandate as a DataRequest-based solution (reached via
app.solutions), matching the shape of the PHP and Node SDKs. Covers both service codes —emandate(B2C) andemandateb2b(B2B) — and all five actions.How
EmandateBuilderextendsSolutionBuilder;EmandateB2BBuildersubclass overrides only the service name (emandateb2b). Both registered inSolutionMethodFactory.get_allowed_service_parameters, enforced by the existingServiceParameterValidatorbefore the request hits the wire.PaymentResponse— no bespoke per-action response model (same convention as iDIN / PHP / Node).examples/emandate.py(env-gated, B2C + B2B, all five actions) and a README### eMandatesection.Tests
Live verification (Buckaroo Plaza, test mode)
190success (B2C + B2B).791pending + redirect URL (B2C + B2B) — correct; the consumer approves at their bank.Notes
debtorReference,mandateId, …).PayWithEmandate(collecting against a mandate), async push handling.Jira: BTI-23 (epic BTI-552).