Skip to content

Commit 87f1812

Browse files
author
Nihar Ranjan
committed
Review Changes - 18thNov2020
1 parent 5c5b75a commit 87f1812

File tree

6 files changed

+11
-64
lines changed

6 files changed

+11
-64
lines changed

app/code/Magento/LoginAsCustomerGraphQl/Model/LoginAsCustomer/CreateCustomerToken.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
/**
1818
* Create customer token from customer email
19-
*
20-
* Class CreateCustomerToken
2119
*/
2220
class CreateCustomerToken
2321
{
@@ -32,7 +30,6 @@ class CreateCustomerToken
3230
private $tokenModelFactory;
3331

3432
/**
35-
* CreateCustomerToken constructor.
3633
* @param TokenFactory $tokenModelFactory
3734
* @param CustomerFactory $customerFactory
3835
*/

app/code/Magento/LoginAsCustomerGraphQl/Model/Resolver/RequestCustomerToken.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class RequestCustomerToken implements ResolverInterface
4242
private $createCustomerToken;
4343

4444
/**
45-
* RequestCustomerToken constructor.
4645
* @param AuthorizationInterface $authorization
4746
* @param LoginAsCustomerConfig $config
4847
* @param CreateCustomerToken $createCustomerToken
Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,3 @@
1-
# Module Magento LoginAsCustomerGraphQl
2-
3-
``magento/module-loginascustomergraphql``
4-
5-
- [Main Functionalities](#markdown-header-main-functionalities)
6-
- [Installation](#markdown-header-installation)
7-
- [Configuration](#markdown-header-configuration)
8-
- [Specifications](#markdown-header-specifications)
9-
- [Attributes](#markdown-header-attributes)
10-
11-
12-
## Main Functionalities
13-
Flexible login as a customer so a merchant or merchant admin can log into an end customer's account to assist them with their account.
14-
15-
## Installation
16-
\* = in production please use the `--keep-generated` option
17-
18-
### Type 1: Zip file
19-
20-
- Unzip the zip file in `app/code/Magento`
21-
- Enable the module by running `php bin/magento module:enable Magento_LoginAsCustomerGraphQl`
22-
- Apply database updates by running `php bin/magento setup:upgrade`\*
23-
- Flush the cache by running `php bin/magento cache:flush`
24-
25-
### Type 2: Composer
26-
27-
- Make the module available in a composer repository for example:
28-
- private repository `repo.magento.com`
29-
- public repository `packagist.org`
30-
- public github repository as vcs
31-
- Add the composer repository to the configuration by running `composer config repositories.repo.magento.com composer https://repo.magento.com/`
32-
- Install the module composer by running `composer require magento/module-loginascustomergraphql`
33-
- enable the module by running `php bin/magento module:enable Magento_LoginAsCustomerGraphQl`
34-
- apply database updates by running `php bin/magento setup:upgrade`\*
35-
- Flush the cache by running `php bin/magento cache:flush`
36-
37-
38-
## Configuration
39-
40-
41-
42-
43-
## Specifications
44-
45-
46-
47-
48-
## Attributes
49-
50-
1+
# LoginAsCustomerGraphQl
512

3+
**LoginAsCustomerGraphQl** provides flexible login as a customer so a merchant or merchant admin can log into an end customer's account to assist them with their account.

app/code/Magento/LoginAsCustomerGraphQl/composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"php": "~7.3.0||~7.4.0",
66
"magento/framework": "*",
77
"magento/module-login-as-customer-api": "*",
8-
"magento/module-integration": "*",
98
"magento/module-store": "*",
109
"magento/module-customer": "*",
1110
"magento/module-catalog-graph-ql": "*"

app/code/Magento/LoginAsCustomerGraphQl/etc/module.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
99
<module name="Magento_LoginAsCustomerGraphQl">
1010
<sequence>
11-
<module name="Magento_LoginAsCustomer"/>
11+
<module name="Magento_LoginAsCustomerApi"/>
1212
<module name="Magento_Customer"/>
13-
<module name="Magento_Authorization"/>
14-
<module name="Magento_GraphQl"/>
13+
<module name="Magento_Store"/>
14+
<module name="Magento_CatalogGraphQl"/>
1515
</sequence>
1616
</module>
1717
</config>

app/code/Magento/LoginAsCustomerGraphQl/etc/schema.graphqls

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ type Mutation {
66
input: GenerateCustomerTokenAsAdminInput!
77
): GenerateCustomerTokenAsAdminOutput
88
@resolver(class: "Magento\\LoginAsCustomerGraphQl\\Model\\Resolver\\RequestCustomerToken")
9-
@doc(description: "Request a token using Customer email")
9+
@doc(description: "Request a customer token so that an administrator can perform remote shopping assistance")
1010
}
1111

1212
input GenerateCustomerTokenAsAdminInput {
13-
customer_email: String!
13+
customer_email: String! @doc(description: "The email address of the customer requesting remote shopping assistance")
1414
}
1515

1616
type GenerateCustomerTokenAsAdminOutput {
17-
customer_token: String!
17+
customer_token: String! @doc(description: "The generated customer token")
1818
}
1919

2020
type Customer {
21-
allow_remote_shopping_assistance: Boolean!
21+
allow_remote_shopping_assistance: Boolean! @doc(description: "Indicates whether the customer has enabled remote shopping assistance")
2222
}
2323

2424
input CustomerCreateInput {
25-
allow_remote_shopping_assistance: Boolean
25+
allow_remote_shopping_assistance: Boolean @doc(description: "Indicates whether the customer has enabled remote shopping assistance")
2626
}
2727

2828
input CustomerUpdateInput {
29-
allow_remote_shopping_assistance: Boolean
29+
allow_remote_shopping_assistance: Boolean @doc(description: "Indicates whether the customer has enabled remote shopping assistance")
3030
}

0 commit comments

Comments
 (0)