*
* Generated from xml/schema/CRM/Financial/FinancialTrxn.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:fec5d6572bfe0de3f9dc41afd33fee9b)
+ * (GenCodeChecksum:52a627d344bca95d30eb8b22aad1e245)
*/
require_once 'CRM/Core/DAO.php';
require_once 'CRM/Utils/Type.php';
+/**
+ * CRM_Financial_DAO_FinancialTrxn constructor.
+ */
class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
/**
- * static instance to hold the table name
+ * Static instance to hold the table name.
*
* @var string
*/
static $_tableName = 'civicrm_financial_trxn';
/**
- * static value to see if we should log any modifications to
- * this table in the civicrm_log table
+ * Should CiviCRM log any modifications to this table in the civicrm_log table.
*
* @var boolean
*/
* @var int unsigned
*/
public $payment_instrument_id;
+ /**
+ * FK to accept_creditcard option group values
+ *
+ * @var int unsigned
+ */
+ public $card_type;
/**
* Check number
*
*/
public $check_number;
/**
- * class constructor
+ * Last 4 digits of credit card
*
- * @return civicrm_financial_trxn
+ * @var int unsigned
+ */
+ public $pan_truncation;
+ /**
+ * Class constructor.
*/
function __construct() {
$this->__table = 'civicrm_financial_trxn';
parent::__construct();
}
/**
- * Returns foreign keys and entity references
+ * Returns foreign keys and entity references.
*
* @return array
* [CRM_Core_Reference_Interface]
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Transaction ID') ,
'required' => true,
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
) ,
'from_financial_account_id' => array(
'name' => 'from_financial_account_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Transaction From Account') ,
'description' => 'FK to financial_account table.',
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'FKClassName' => 'CRM_Financial_DAO_FinancialAccount',
'html' => array(
'type' => 'Select',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Transaction To Account') ,
'description' => 'FK to financial_financial_account table.',
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'FKClassName' => 'CRM_Financial_DAO_FinancialAccount',
'html' => array(
'type' => 'Select',
'title' => ts('Financial Transaction Date') ,
'description' => 'date transaction occurred',
'default' => 'NULL',
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
) ,
'total_amount' => array(
'name' => 'total_amount',
20,
2
) ,
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
) ,
'fee_amount' => array(
'name' => 'fee_amount',
20,
2
) ,
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
) ,
'net_amount' => array(
'name' => 'net_amount',
20,
2
) ,
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
) ,
'currency' => array(
'name' => 'currency',
'dataPattern' => '/^[A-Z]{3}$/',
'export' => true,
'default' => 'NULL',
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'html' => array(
'type' => 'Select',
) ,
'headerPattern' => '',
'dataPattern' => '',
'export' => true,
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
) ,
'trxn_id' => array(
'name' => 'trxn_id',
'description' => 'Transaction id supplied by external processor. This may not be unique.',
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
) ,
'trxn_result_code' => array(
'name' => 'trxn_result_code',
'description' => 'processor result code',
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
) ,
'status_id' => array(
'name' => 'status_id',
'headerPattern' => '/status/i',
'dataPattern' => '',
'export' => true,
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'pseudoconstant' => array(
'optionGroupName' => 'contribution_status',
'optionEditPath' => 'civicrm/admin/options/contribution_status',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Payment Processor') ,
'description' => 'Payment Processor for this financial transaction',
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'FKClassName' => 'CRM_Financial_DAO_PaymentProcessor',
) ,
'financial_trxn_payment_instrument_id' => array(
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Payment Method') ,
'description' => 'FK to payment_instrument option group values',
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'html' => array(
'type' => 'Select',
) ,
'optionEditPath' => 'civicrm/admin/options/payment_instrument',
)
) ,
+ 'financial_trxn_card_type' => array(
+ 'name' => 'card_type',
+ 'type' => CRM_Utils_Type::T_INT,
+ 'title' => ts('Card Type') ,
+ 'description' => 'FK to accept_creditcard option group values',
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
+ 'html' => array(
+ 'type' => 'Select',
+ ) ,
+ 'pseudoconstant' => array(
+ 'optionGroupName' => 'accept_creditcard',
+ 'optionEditPath' => 'civicrm/admin/options/accept_creditcard',
+ )
+ ) ,
'financial_trxn_check_number' => array(
'name' => 'check_number',
'type' => CRM_Utils_Type::T_STRING,
'description' => 'Check number',
'maxlength' => 255,
'size' => 6,
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
+ 'html' => array(
+ 'type' => 'Text',
+ ) ,
+ ) ,
+ 'financial_trxn_pan_truncation' => array(
+ 'name' => 'pan_truncation',
+ 'type' => CRM_Utils_Type::T_INT,
+ 'title' => ts('Pan Truncation') ,
+ 'description' => 'Last 4 digits of credit card',
+ 'table_name' => 'civicrm_financial_trxn',
+ 'entity' => 'FinancialTrxn',
+ 'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'html' => array(
'type' => 'Text',
) ,