Merge pull request #9072 from jeromelebleu/patch-19386
[civicrm-core.git] / CRM / Financial / DAO / FinancialTrxn.php
index ac720d408829a1be710ce2c51c488f5f110f94a3..2a13482928053b129850c7595615ed4e74fc272b 100644 (file)
  *
  * 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
    */
@@ -131,6 +133,12 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
    * @var int unsigned
    */
   public $payment_instrument_id;
+  /**
+   * FK to accept_creditcard option group values
+   *
+   * @var int unsigned
+   */
+  public $card_type;
   /**
    * Check number
    *
@@ -138,16 +146,20 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
    */
   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]
@@ -175,12 +187,18 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           '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',
@@ -196,6 +214,9 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           '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',
@@ -212,6 +233,9 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           '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',
@@ -223,6 +247,9 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
             20,
             2
           ) ,
+          'table_name' => 'civicrm_financial_trxn',
+          'entity' => 'FinancialTrxn',
+          'bao' => 'CRM_Financial_DAO_FinancialTrxn',
         ) ,
         'fee_amount' => array(
           'name' => 'fee_amount',
@@ -233,6 +260,9 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
             20,
             2
           ) ,
+          'table_name' => 'civicrm_financial_trxn',
+          'entity' => 'FinancialTrxn',
+          'bao' => 'CRM_Financial_DAO_FinancialTrxn',
         ) ,
         'net_amount' => array(
           'name' => 'net_amount',
@@ -243,6 +273,9 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
             20,
             2
           ) ,
+          'table_name' => 'civicrm_financial_trxn',
+          'entity' => 'FinancialTrxn',
+          'bao' => 'CRM_Financial_DAO_FinancialTrxn',
         ) ,
         'currency' => array(
           'name' => 'currency',
@@ -257,6 +290,9 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'dataPattern' => '/^[A-Z]{3}$/',
           'export' => true,
           'default' => 'NULL',
+          'table_name' => 'civicrm_financial_trxn',
+          'entity' => 'FinancialTrxn',
+          'bao' => 'CRM_Financial_DAO_FinancialTrxn',
           'html' => array(
             'type' => 'Select',
           ) ,
@@ -277,6 +313,9 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           'headerPattern' => '',
           'dataPattern' => '',
           'export' => true,
+          'table_name' => 'civicrm_financial_trxn',
+          'entity' => 'FinancialTrxn',
+          'bao' => 'CRM_Financial_DAO_FinancialTrxn',
         ) ,
         'trxn_id' => array(
           'name' => 'trxn_id',
@@ -285,6 +324,9 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           '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',
@@ -293,6 +335,9 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           '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',
@@ -304,6 +349,9 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           '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',
@@ -314,6 +362,9 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           '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(
@@ -321,6 +372,9 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           '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',
           ) ,
@@ -329,6 +383,22 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
             '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,
@@ -336,6 +406,21 @@ class CRM_Financial_DAO_FinancialTrxn extends CRM_Core_DAO {
           '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',
           ) ,