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()
|
|
|
|
{
|
2022-06-21 11:57:17 +02:00
|
|
|
$data =
|
2021-09-29 13:48:22 +02:00
|
|
|
[
|
|
|
|
[
|
2021-09-30 00:14:48 +02:00
|
|
|
'key' => 'first_name',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => true,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => true,
|
2021-09-29 13:48:22 +02:00
|
|
|
],
|
2021-09-30 00:14:48 +02:00
|
|
|
[
|
|
|
|
'key' => 'last_name',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => true,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => true,
|
2021-09-30 00:14:48 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => 'email',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => true,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => true,
|
2021-09-30 00:14:48 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => 'phone',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => true,
|
2021-09-30 00:14:48 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => 'password',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => true,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => true,
|
2022-06-21 11:57:17 +02:00
|
|
|
],
|
2021-09-30 00:14:48 +02:00
|
|
|
[
|
|
|
|
'key' => 'name',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => false,
|
2021-09-30 00:14:48 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => 'website',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => false,
|
2021-09-30 00:14:48 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => 'address1',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => false,
|
2021-09-30 00:14:48 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => 'address2',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => false,
|
2021-09-30 00:14:48 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => 'city',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => false,
|
2021-09-30 00:14:48 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => 'state',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => false,
|
2021-09-30 00:14:48 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => 'postal_code',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => false,
|
2022-06-21 11:57:17 +02:00
|
|
|
],
|
2021-09-30 00:14:48 +02:00
|
|
|
[
|
|
|
|
'key' => 'country_id',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => false,
|
2022-06-21 11:57:17 +02:00
|
|
|
],
|
2021-09-30 00:14:48 +02:00
|
|
|
[
|
|
|
|
'key' => 'custom_value1',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => false,
|
2022-06-21 11:57:17 +02:00
|
|
|
],
|
2021-09-30 00:14:48 +02:00
|
|
|
[
|
|
|
|
'key' => 'custom_value2',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => false,
|
2021-09-30 00:14:48 +02:00
|
|
|
],
|
|
|
|
[
|
|
|
|
'key' => 'custom_value3',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => false,
|
2022-06-21 11:57:17 +02:00
|
|
|
],
|
2021-09-30 00:14:48 +02:00
|
|
|
[
|
|
|
|
'key' => 'custom_value4',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => false,
|
2022-06-21 11:57:17 +02:00
|
|
|
],
|
2021-09-30 00:14:48 +02:00
|
|
|
[
|
|
|
|
'key' => 'public_notes',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => false,
|
2022-06-21 11:57:17 +02:00
|
|
|
],
|
2021-09-30 00:14:48 +02:00
|
|
|
[
|
|
|
|
'key' => 'vat_number',
|
2022-06-21 11:57:17 +02:00
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => false,
|
2022-06-21 11:57:17 +02:00
|
|
|
],
|
2022-12-20 05:50:02 +01:00
|
|
|
[
|
|
|
|
'key' => 'currency_id',
|
|
|
|
'required' => false,
|
2023-02-28 21:14:07 +01:00
|
|
|
'visible' => false,
|
2022-12-20 05:50:02 +01:00
|
|
|
],
|
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
|
|
|
}
|
2022-06-21 11:57:17 +02:00
|
|
|
}
|