Add sample data from contribution & contribution recur
[civicrm-core.git] / Civi / WorkflowMessage / GenericWorkflowMessage / Alex.ex.php
1 <?php
2
3 namespace Civi\WorkflowMessage\GenericWorkflowMessage;
4
5 class Alex extends \Civi\WorkflowMessage\WorkflowMessageExample {
6
7 /**
8 * @inheritDoc
9 */
10 public function getExamples(): iterable {
11 yield [
12 'name' => "workflow/{$this->wfName}/{$this->exName}",
13 'tags' => [],
14 ];
15 }
16
17 /**
18 * @inheritDoc
19 */
20 public function build(array &$example): void {
21 $example['data'] = [
22 'modelProps' => [
23 'contact' => [
24 'contact_id' => '100',
25 'contact_type' => 'Individual',
26 'contact_sub_type' => NULL,
27 'sort_name' => 'D\u00edaz, Alex',
28 'display_name' => 'Dr. Alex D\u00edaz',
29 'do_not_email' => '1',
30 'do_not_phone' => '1',
31 'do_not_mail' => '0',
32 'do_not_sms' => '0',
33 'do_not_trade' => '0',
34 'is_opt_out' => '0',
35 'legal_identifier' => NULL,
36 'external_identifier' => NULL,
37 'nick_name' => NULL,
38 'legal_name' => NULL,
39 'image_URL' => NULL,
40 'preferred_communication_method' => NULL,
41 'preferred_language' => NULL,
42 'preferred_mail_format' => 'Both',
43 'first_name' => 'Alex',
44 'middle_name' => '',
45 'last_name' => 'D\u00edaz',
46 'prefix_id' => '4',
47 'suffix_id' => NULL,
48 'formal_title' => NULL,
49 'communication_style_id' => NULL,
50 'job_title' => NULL,
51 'gender_id' => '1',
52 'birth_date' => '1994-04-21',
53 'is_deceased' => '0',
54 'deceased_date' => NULL,
55 'household_name' => NULL,
56 'organization_name' => NULL,
57 'sic_code' => NULL,
58 'contact_is_deleted' => '0',
59 'current_employer' => NULL,
60 'address_id' => NULL,
61 'street_address' => NULL,
62 'supplemental_address_1' => NULL,
63 'supplemental_address_2' => NULL,
64 'supplemental_address_3' => NULL,
65 'city' => NULL,
66 'postal_code_suffix' => NULL,
67 'postal_code' => NULL,
68 'geo_code_1' => NULL,
69 'geo_code_2' => NULL,
70 'state_province_id' => NULL,
71 'country_id' => NULL,
72 'phone_id' => '7',
73 'phone_type_id' => '1',
74 'phone' => '293-6934',
75 'email_id' => '7',
76 'email' => 'daz.alex67@testing.net',
77 'on_hold' => '0',
78 'im_id' => NULL,
79 'provider_id' => NULL,
80 'im' => NULL,
81 'worldregion_id' => NULL,
82 'world_region' => NULL,
83 'languages' => NULL,
84 'individual_prefix' => 'Dr.',
85 'individual_suffix' => NULL,
86 'communication_style' => NULL,
87 'gender' => 'Female',
88 'state_province_name' => NULL,
89 'state_province' => NULL,
90 'country' => NULL,
91 ],
92 ],
93 ];
94 }
95
96 }