Skip to content

Commit

Permalink
Merge pull request #283 from graphicgenie/payments_mandate
Browse files Browse the repository at this point in the history
Add moneybird_payments_mandate field and getPaymentsMandate method
  • Loading branch information
stephangroen authored Aug 14, 2023
2 parents c21978a + 0ba9911 commit 91871e0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Picqer/Financials/Moneybird/Entities/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class Contact extends Model
'tax_number',
'chamber_of_commerce',
'bank_account',
'moneybird_payments_mandate',
'send_invoices_to_attention',
'send_invoices_to_email',
'send_estimates_to_attention',
Expand Down Expand Up @@ -112,4 +113,14 @@ public function findByCustomerId($customerId)

return $this->makeFromResponse($result);
}

/**
* @throws ApiException
*/
public function getPaymentsMandate(): array
{
return $this->connection()->get(
$this->getEndpoint() . '/' . $this->id . '/moneybird_payments_mandate'
);
}
}

0 comments on commit 91871e0

Please sign in to comment.