1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-16 16:13:20 +01:00
invoiceninja/app/DataMapper/ClientRegistrationFields.php

125 lines
3.2 KiB
PHP
Raw Normal View History

2021-09-29 13:48:22 +02:00
<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
2023-01-28 23:21:40 +01:00
* @copyright Copyright (c) 2023. Invoice Ninja LLC (https://invoiceninja.com)
2021-09-29 13:48:22 +02:00
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\DataMapper;
class ClientRegistrationFields
{
public static function generate()
{
$data =
2021-09-29 13:48:22 +02:00
[
[
2021-09-30 00:14:48 +02:00
'key' => 'first_name',
'required' => true,
'visible' => true,
2021-09-29 13:48:22 +02:00
],
2021-09-30 00:14:48 +02:00
[
'key' => 'last_name',
'required' => true,
'visible' => true,
2021-09-30 00:14:48 +02:00
],
[
'key' => 'email',
'required' => true,
'visible' => true,
2021-09-30 00:14:48 +02:00
],
[
'key' => 'phone',
'required' => false,
'visible' => true,
2021-09-30 00:14:48 +02:00
],
[
'key' => 'password',
'required' => true,
'visible' => true,
],
2021-09-30 00:14:48 +02:00
[
'key' => 'name',
'required' => false,
'visible' => false,
2021-09-30 00:14:48 +02:00
],
[
'key' => 'website',
'required' => false,
'visible' => false,
2021-09-30 00:14:48 +02:00
],
[
'key' => 'address1',
'required' => false,
'visible' => false,
2021-09-30 00:14:48 +02:00
],
[
'key' => 'address2',
'required' => false,
'visible' => false,
2021-09-30 00:14:48 +02:00
],
[
'key' => 'city',
'required' => false,
'visible' => false,
2021-09-30 00:14:48 +02:00
],
[
'key' => 'state',
'required' => false,
'visible' => false,
2021-09-30 00:14:48 +02:00
],
[
'key' => 'postal_code',
'required' => false,
'visible' => false,
],
2021-09-30 00:14:48 +02:00
[
'key' => 'country_id',
'required' => false,
'visible' => false,
],
2021-09-30 00:14:48 +02:00
[
'key' => 'custom_value1',
'required' => false,
'visible' => false,
],
2021-09-30 00:14:48 +02:00
[
'key' => 'custom_value2',
'required' => false,
'visible' => false,
2021-09-30 00:14:48 +02:00
],
[
'key' => 'custom_value3',
'required' => false,
'visible' => false,
],
2021-09-30 00:14:48 +02:00
[
'key' => 'custom_value4',
'required' => false,
'visible' => false,
],
2021-09-30 00:14:48 +02:00
[
'key' => 'public_notes',
'required' => false,
'visible' => false,
],
2021-09-30 00:14:48 +02:00
[
'key' => 'vat_number',
'required' => false,
'visible' => false,
],
[
'key' => 'currency_id',
'required' => false,
'visible' => false,
],
2021-09-29 13:48:22 +02:00
];
2021-09-30 00:14:48 +02:00
return $data;
2021-09-29 13:48:22 +02:00
}
}