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