}
+ /**
+ * createPayment
+ *
+ * Insert payment into the database
+ *
+ * @param int $account Account id
+ * @param float $payment Payment Amount
+ *
+ * @access public
+ * @return payment id
+ */
public function createPayment( $account, $payment )
{
// Insert the payment
}
+ /**
+ * getInvoiceTypeById
+ *
+ * @param int $id Id to use for type
+ *
+ * @access public
+ * @return array
+ */
public function getInvoiceTypeById( $id )
{
return $this->wpdb->get_row(
);
}
+ /**
+ * getMembersInvoiceTypeByRefDest
+ *
+ * @access public
+ * @return mixed
+ */
public function getMembersInvoiceTypeByRefDest( $ref_dest )
{
return $this->wpdb->get_var(
);
}
+ /**
+ * getAllPayableInvoiceTypes
+ *
+ * Get all invoice types that have amounts
+ *
+ * @access public
+ * @return array
+ */
public function getAllPayableInvoiceTypes()
{
return $this->wpdb->get_results(
);
}
+ /**
+ * getListOfAccountEmployees
+ *
+ * @param int $member_id Member id
+ *
+ * @access public
+ * @return array
+ */
public function getListOfAccountEmployees( $member_id )
{
$accounts = array();
return $accounts;
}
+ /**
+ * createMemberInvoiceWithEmployees
+ *
+ * @access public
+ * @return int
+ */
public function createMemberInvoiceWithEmployees( $invoice_data )
{
// Make sure the required parts of $invoice_data exists.
return $invoice_id;
}
+ /**
+ * createLineItemForInvoice
+ *
+ * @param array $data Data array for the invoice
+ *
+ * @access public
+ * @return void
+ */
public function createLineItemForInvoice( $data )
{
// Make sure the required parts of $data exists.
);
}
+ /**
+ * processMemberRenewal
+ *
+ * @param int $account_id Id of the account
+ * @param int $invoice_id Id of the invoice
+ * @param float $amount Amount of the total invoice
+ * @param array $employees Array of employees
+ *
+ * @access public
+ * @return array
+ */
public function processMemberRenewal( $account_id, $invoice_id, $amount, $employees = array() )
{
$errors = array();
}
+ /**
+ * removeInvoiceById
+ *
+ * @param int $invoice_id Id of invoice to delete.
+ *
+ * @access public
+ * @return void
+ */
public function removeInvoiceById( $invoice_id )
{
$this->wpdb->delete(