/** * Get contact by customer id * @param string $customerId * @return Contact */ public function getByCustomerId($customerId) { return $this->connector->getByNamedId('Contact', 'customer_id', $customerId); }
/** * Get invoice by invoice number * @param string $invoiceId * @return Invoice */ public function getByInvoiceId($invoiceId) { return $this->connector->getByNamedId('Invoice', 'invoice_id', $invoiceId); }