Skip to content
Snippets Groups Projects
Commit 64a12873 authored by mattwire's avatar mattwire
Browse files

Cleanup managed custom fields

parent 33d3c8ba
No related branches found
No related tags found
No related merge requests found
......@@ -11,20 +11,18 @@
namespace Civi\Api4;
/**
* CiviCRM settings api.
* CiviCRM StripeCharge API
*
* Used to read/write persistent setting data from CiviCRM.
* Used to get info about Stripe Charges
*
* @see \Civi\Core\SettingsBag
* @searchable none
* @since 5.19
* @package Civi\Api4
*/
class StripeCharge extends Generic\AbstractEntity {
/**
* @param bool $checkPermissions
* @return Action\Setting\Get
* @return Action\StripeCharge\GetBalanceTransactionDetails
*/
public static function getBalanceTransactionDetails($checkPermissions = TRUE) {
return (new Action\StripeCharge\GetBalanceTransactionDetails(__CLASS__, __FUNCTION__))
......
......@@ -21,7 +21,7 @@ else {
[
'name' => 'CustomGroup_Payment_details_CustomField_available_on',
'entity' => 'CustomField',
'cleanup' => 'never',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
......@@ -31,39 +31,26 @@ else {
'label' => E::ts('Available On'),
'data_type' => 'Date',
'html_type' => 'Select Date',
'default_value' => NULL,
'is_required' => FALSE,
'is_searchable' => TRUE,
'is_search_range' => FALSE,
'help_pre' => E::ts('If there is a delay between your payment provider receiving the payment and it arriving in your bank account this is the date that it should be available in your account.'),
'help_post' => NULL,
'attributes' => NULL,
'is_active' => TRUE,
'is_view' => TRUE,
'options_per_line' => NULL,
'text_length' => 255,
'start_date_years' => NULL,
'end_date_years' => NULL,
'date_format' => 'yy-mm-dd',
'time_format' => 2,
'note_columns' => 60,
'note_rows' => 4,
'column_name' => 'available_on',
'option_group_id' => NULL,
'serialize' => 0,
'filter' => NULL,
'in_selector' => FALSE,
'fk_entity' => NULL,
],
'match' => [
'name',
'custom_group_id',
],
],
],
[
'name' => 'CustomGroup_Payment_details_CustomField_exchange_rate',
'entity' => 'CustomField',
'cleanup' => 'never',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
......@@ -73,116 +60,63 @@ else {
'label' => E::ts('Exchange Rate'),
'data_type' => 'Float',
'html_type' => 'Text',
'default_value' => NULL,
'is_required' => FALSE,
'is_searchable' => TRUE,
'is_search_range' => FALSE,
'help_pre' => NULL,
'help_post' => NULL,
'attributes' => NULL,
'is_active' => TRUE,
'is_view' => FALSE,
'options_per_line' => NULL,
'text_length' => 255,
'start_date_years' => NULL,
'end_date_years' => NULL,
'date_format' => NULL,
'time_format' => NULL,
'note_columns' => 60,
'note_rows' => 4,
'column_name' => 'exchange_rate',
'option_group_id' => NULL,
'serialize' => 0,
'filter' => NULL,
'in_selector' => FALSE,
'fk_entity' => NULL,
],
'match' => [
'name',
'custom_group_id',
],
],
],
[
'name' => 'CustomGroup_Payment_details_CustomField_payout_amount',
'entity' => 'CustomField',
'cleanup' => 'never',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'custom_group_id.name' => 'Payment_details',
'name' => 'payout_amount',
'label' => 'Payout Amount',
'data_type' => 'Money',
'label' => E::ts('Payout Amount'),
'data_type' => 'Float',
'html_type' => 'Text',
'default_value' => NULL,
'is_required' => FALSE,
'is_searchable' => TRUE,
'is_search_range' => FALSE,
'help_pre' => NULL,
'help_post' => NULL,
'attributes' => NULL,
'javascript' => NULL,
'is_active' => TRUE,
'is_view' => FALSE,
'options_per_line' => NULL,
'text_length' => 255,
'start_date_years' => NULL,
'end_date_years' => NULL,
'date_format' => NULL,
'time_format' => NULL,
'note_columns' => 60,
'note_rows' => 4,
'column_name' => 'payout_amount',
'option_group_id' => NULL,
'serialize' => 0,
'filter' => NULL,
'in_selector' => FALSE,
],
'match' => [
'name',
'custom_group_id',
],
],
],
[
'name' => 'CustomGroup_Payment_details_CustomField_payout_currency',
'entity' => 'CustomField',
'cleanup' => 'never',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'custom_group_id.name' => 'Payment_details',
'name' => 'payout_currency',
'label' => 'Payout Currency',
'data_type' => 'String',
'label' => E::ts('Payout Currency'),
'html_type' => 'Text',
'default_value' => NULL,
'is_required' => FALSE,
'is_searchable' => FALSE,
'is_search_range' => FALSE,
'help_pre' => NULL,
'help_post' => NULL,
'attributes' => NULL,
'javascript' => NULL,
'is_active' => TRUE,
'is_view' => FALSE,
'options_per_line' => NULL,
'text_length' => 255,
'start_date_years' => NULL,
'end_date_years' => NULL,
'date_format' => NULL,
'time_format' => NULL,
'note_columns' => 60,
'note_rows' => 4,
'column_name' => 'payout_currency',
'option_group_id' => NULL,
'serialize' => 0,
'filter' => NULL,
'in_selector' => FALSE,
],
'match' => [
'name',
'custom_group_id',
],
],
],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment