From e7a59ab0a311bb0be7e9d3d0273d0934d055d2d6 Mon Sep 17 00:00:00 2001 From: Matthew Wire <mjw@mjwconsult.co.uk> Date: Mon, 1 May 2023 15:50:00 +0100 Subject: [PATCH] Add custom fields for payout amount/currency --- managed/stripecustomdata.mgd.php | 84 ++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/managed/stripecustomdata.mgd.php b/managed/stripecustomdata.mgd.php index 65b4424d..1bf91003 100644 --- a/managed/stripecustomdata.mgd.php +++ b/managed/stripecustomdata.mgd.php @@ -99,5 +99,89 @@ if (!empty($customGroup)) { ], ], ], + [ + 'name' => 'CustomGroup_Payment_details_CustomField_payout_amount', + 'entity' => 'CustomField', + 'cleanup' => 'never', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'custom_group_id.name' => 'Payment_details', + 'name' => 'payout_amount', + 'label' => 'Payout Amount', + 'data_type' => 'Money', + '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', + ], + ], + ], + [ + 'name' => 'CustomGroup_Payment_details_CustomField_payout_currency', + 'entity' => 'CustomField', + 'cleanup' => 'never', + 'update' => 'unmodified', + 'params' => [ + 'version' => 4, + 'values' => [ + 'custom_group_id.name' => 'Payment_details', + 'name' => 'payout_currency', + 'label' => 'Payout Currency', + 'data_type' => 'String', + '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', + ], + ], + ], ]; } \ No newline at end of file -- GitLab