Skip to content

Commit 0ba9911

Browse files
committed
Add moneybird_payments_mandate field and getPaymentsMandate method
1 parent edafecc commit 0ba9911

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Picqer/Financials/Moneybird/Entities/Contact.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class Contact extends Model
4545
'tax_number',
4646
'chamber_of_commerce',
4747
'bank_account',
48+
'moneybird_payments_mandate',
4849
'send_invoices_to_attention',
4950
'send_invoices_to_email',
5051
'send_estimates_to_attention',
@@ -112,4 +113,14 @@ public function findByCustomerId($customerId)
112113

113114
return $this->makeFromResponse($result);
114115
}
116+
117+
/**
118+
* @throws ApiException
119+
*/
120+
public function getPaymentsMandate(): array
121+
{
122+
return $this->connection()->get(
123+
$this->getEndpoint() . '/' . $this->id . '/moneybird_payments_mandate'
124+
);
125+
}
115126
}

0 commit comments

Comments
 (0)