Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Moneybird Payments Mandate #267

Open
holtkamp opened this issue Aug 11, 2022 · 1 comment
Open

Add support for Moneybird Payments Mandate #267

holtkamp opened this issue Aug 11, 2022 · 1 comment

Comments

@holtkamp
Copy link
Contributor

holtkamp commented Aug 11, 2022

As of 12-04-2022 the Moneybird API added the /moneybird_payments_mandate resource on a contact.

This allows to request and delete Moneybird Payment mandates for Contacts.

Currently this can be accessed like this:

$contactId = '123456789';
$contact = $apiClient->contact();
$paymentsMandate = $contact->connection()->get($contact->getEndpoint() . '/' . $contactId. '/moneybird_payments_mandate');

It would be nice if this API Client would offer a this "out-of-the-box".

I could try to come up with a PR.

What would be the best approach?

Simplest approach seems to be add a new method: \Picqer\Financials\Moneybird\Entities\Contact::getPaymentsMandate(): ?array, but I am not sure whether that is the proper approach...

@mbardelmeijer
Copy link
Contributor

Would be interested in this as well :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants