Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
valid_communication_input.php
Go to the documentation of this file.
1 <?php
7 return [
8  'communication' => [
9  'topics' => [
10  'customerCreated' => [
11  'name' => 'customerCreated',
12  'is_synchronous' => true,
13  'request' => \Magento\Customer\Api\Data\CustomerInterface::class,
14  'request_type' => 'object_interface',
15  'response' => \Magento\Customer\Api\Data\CustomerInterface::class,
16  'handlers' => [
17  'default' => [
18  'type' => \Magento\Customer\Api\CustomerRepositoryInterface::class,
19  'method' => 'save',
20  ],
21  ],
22  ],
23  'customerAdded' => [
24  'name' => 'customerAdded',
25  'is_synchronous' => false,
26  'request' => 'string[]',
27  'request_type' => 'object_interface',
28  'response' => null,
29  'handlers' => [
30  'customerCreatedFirst' => [
31  'type' => \Magento\Customer\Api\CustomerRepositoryInterface::class,
32  'method' => 'save',
33  ],
34  'customerCreatedSecond' => [
35  'type' => \Magento\Customer\Api\CustomerRepositoryInterface::class,
36  'method' => 'delete',
37  ],
38  'saveNameNotDisabled' => [
39  'type' => \Magento\Customer\Api\CustomerRepositoryInterface::class,
40  'method' => 'save',
41  ],
42  'saveNameNotDisabledDigit' => [
43  'type' => \Magento\Customer\Api\CustomerRepositoryInterface::class,
44  'method' => 'save',
45  ],
46  ],
47  ],
48  'customerUpdated' => [
49  'name' => 'customerUpdated',
50  'is_synchronous' => true,
51  'request' => \Magento\Customer\Api\Data\CustomerInterface::class,
52  'request_type' => 'object_interface',
53  'response' => 'Magento\Customer\Api\Data\CustomerInterface[]',
54  'handlers' => [
55  'updateName' => [
56  'type' => \Magento\Customer\Api\CustomerRepositoryInterface::class,
57  'method' => 'save',
58  ],
59  ],
60  ],
61  'customerModified' => [
62  'name' => 'customerModified',
63  'is_synchronous' => false,
64  'request' => \Magento\Customer\Api\Data\CustomerInterface::class,
65  'request_type' => 'object_interface',
66  'response' => null,
67  'handlers' => [
68  'updateName' => [
69  'type' => \Magento\Customer\Api\CustomerRepositoryInterface::class,
70  'method' => 'save',
71  ],
72  ],
73  ],
74  'customerRetrieved' => [
75  'name' => 'customerRetrieved',
76  'is_synchronous' => true,
77  'request' => [
78  [
79  'param_name' => 'email',
80  'param_position' => 0,
81  'is_required' => true,
82  'param_type' => 'string',
83  ],
84  [
85  'param_name' => 'websiteId',
86  'param_position' => 1,
87  'is_required' => false,
88  'param_type' => 'int',
89  ],
90  ],
91  'request_type' => 'service_method_interface',
92  'response' => \Magento\Customer\Api\Data\CustomerInterface::class,
93  'handlers' => [
94  'defaultHandler' => [
95  'type' => \Magento\Customer\Api\CustomerRepositoryInterface::class,
96  'method' => 'get',
97  ],
98  ],
99  ],
100  'customerDeleted' => [
101  'name' => 'customerDeleted',
102  'is_synchronous' => true,
103  'request' => [
104  [
105  'param_name' => 'customer',
106  'param_position' => 0,
107  'is_required' => true,
108  'param_type' => \Magento\Customer\Api\Data\CustomerInterface::class,
109  ],
110  ],
111  'request_type' => 'service_method_interface',
112  'response' => 'bool',
113  'handlers' => [
114  'customHandler' => [
115  'type' => \Magento\Customer\Api\CustomerRepositoryInterface::class,
116  'method' => 'deleteById',
117  ],
118  ],
119  ],
120  ],
121  ]
122 ];