Skip to content

Commit 99c4b71

Browse files
committed
Format
1 parent 51f8208 commit 99c4b71

File tree

9 files changed

+69
-5
lines changed

9 files changed

+69
-5
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHANGELOG: https://www.mageplaza.com/releases/sms-notification/

LICENSE

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Copyright © 2016-present Mageplaza Co. Ltd.
2+
3+
This License is entered by Mageplaza to govern the usage or redistribution of Mageplaza software. This is a legal agreement between you (either an individual or a single entity) and Mageplaza for Mageplaza software product(s) which may include extensions, templates and services.
4+
5+
By purchasing, installing, or otherwise using Mageplaza products, you acknowledge that you have read this License and agree to be bound by the terms of this Agreement. If you do not agree to the terms of this License, do not install or use Mageplaza products.
6+
7+
The Agreement becomes effective at the moment when you acquire software from our site or receive it through email or on data medium or by any other means. Mageplaza reserves the right to make reasonable changes to the terms of this license agreement and impose its clauses at any given time.
8+
9+
1. GRANT OF LICENSE: By purchasing a product of Mageplaza:
10+
11+
1. Customer will receive source code open 100%.
12+
13+
2. Customer will obtain a License Certificate which will remain valid until the Customer stops using the Product or until Mageplaza terminates this License because of Customer’s failure to comply with any of its Terms and Conditions. Each License Certificate includes a license serial which is valid for one live Magento installation only and unlimited test Magento installations.
14+
15+
3. You are allowed to customize our products to fit with your using purpose.
16+
17+
4. DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS
18+
19+
5. Installation and Use
20+
21+
6. For each new Software installation, you are obliged to purchase a separate License. You are not permitted to use any part of the code in whole or part in any other software or product or website. You are legally bound to preserve the copyright information intact including the text/link at bottom.
22+
23+
2. Distribution: You are not allowed to distribute Mageplaza software to third parties. Any distribution without our permission, including non commercial distribution is considered as violation of this Agreement and entails liability, according to the current law. You may not place the Software onto a server that allows access to the Software via a public network or the Internet for distribution purposes.
24+
25+
3. Rental: You may not give, sell, sub-license, rent, lease or lend any portion of the Software to anyone.
26+
27+
4. Compliance with Applicable Laws: You must comply with all applicable laws regarding use of software products. Mageplaza software and a portion of it are protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. Accordingly, customer is required to treat the software like any other copyrighted material. Any activity violating copyright law will be prosecuted according to the current law. We retain the right to revoke the license of any user holding an invalid license.
28+
29+
5. TERMINATION: Without prejudice to any other rights, Mageplaza may terminate this License at any time if you fail to comply with the terms and conditions of this License. In such event, it constitutes a breach of the agreement, and your license to use the program is revoked and you must destroy all copies of Mageplaza products in your possession. After being notified of termination of your license, if you continue to use Mageplaza software, you hereby agree to accept an injunction to prevent you from its further use and to pay all costs (including but not limited to reasonable attorney fees) to enforce our revocation of your license and any damages suffered by us because of your misuse of the Software. We are not bound to return you the amount spent for purchase of the Software for the termination of this License.
30+
31+
6. LIMITATION OF LIABILITY: In no event shall Mageplaza be liable for any damages (including, without limitation, lost profits, business interruption, or lost information) rising out of ‘Authorized Users’ use of or inability to use the Mageplaza products, even if Mageplaza has been advised of the possibility of such damages. In no event will Mageplaza be liable for prosecution arising from use of the Software against law or for any illegal use.
32+
33+
The latest License: https://www.mageplaza.com/LICENSE.txt

Model/Resolver/MpSmsMutation.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
use Magento\CustomerGraphQl\Model\Customer\GetCustomer;
2727
use Magento\Framework\GraphQl\Config\Element\Field;
28+
use Magento\Framework\GraphQl\Query\Resolver\ContextInterface;
2829
use Magento\Framework\GraphQl\Query\ResolverInterface;
2930
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
3031
use Mageplaza\SmsNotification\Helper\Data;
@@ -83,7 +84,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
8384
}
8485

8586
/**
86-
* @param $context
87+
* @param ContextInterface $context
8788
* @param array $args
8889
*
8990
* @return bool

Model/Resolver/Mutation/CheckTelephone.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
use Magento\Framework\Webapi\Exception;
2727
use Mageplaza\SmsNotificationGraphQl\Model\Resolver\MpSmsMutation;
28+
use Magento\Framework\GraphQl\Query\Resolver\ContextInterface;
2829

2930
/**
3031
* Class CheckTelephone
@@ -33,7 +34,7 @@
3334
class CheckTelephone extends MpSmsMutation
3435
{
3536
/**
36-
* @param $context
37+
* @param ContextInterface $context
3738
* @param array $args
3839
*
3940
* @return bool|string

Model/Resolver/Mutation/CheckVerify.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
namespace Mageplaza\SmsNotificationGraphQl\Model\Resolver\Mutation;
2525

26+
use Magento\Framework\GraphQl\Query\Resolver\ContextInterface;
2627
use Magento\Framework\Webapi\Exception;
2728
use Mageplaza\SmsNotificationGraphQl\Model\Resolver\MpSmsMutation;
2829

@@ -33,7 +34,7 @@
3334
class CheckVerify extends MpSmsMutation
3435
{
3536
/**
36-
* @param $context
37+
* @param ContextInterface $context
3738
* @param array $args
3839
*
3940
* @return bool|string

Model/Resolver/Mutation/Send.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
namespace Mageplaza\SmsNotificationGraphQl\Model\Resolver\Mutation;
2525

2626
use Magento\Framework\Exception\LocalizedException;
27+
use Magento\Framework\GraphQl\Query\Resolver\ContextInterface;
2728
use Mageplaza\SmsNotificationGraphQl\Model\Resolver\MpSmsMutation;
2829

2930
/**
@@ -33,7 +34,7 @@
3334
class Send extends MpSmsMutation
3435
{
3536
/**
36-
* @param $context
37+
* @param ContextInterface $context
3738
* @param array $args
3839
*
3940
* @return bool

Model/Resolver/Mutation/SignUp.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
use Magento\Framework\Exception\LocalizedException;
2727
use Magento\Framework\GraphQl\Exception\GraphQlInputException;
28+
use Magento\Framework\GraphQl\Query\Resolver\ContextInterface;
2829
use Mageplaza\SmsNotificationGraphQl\Model\Resolver\MpSmsMutation;
2930

3031
/**
@@ -34,7 +35,7 @@
3435
class SignUp extends MpSmsMutation
3536
{
3637
/**
37-
* @param $context
38+
* @param ContextInterface $context
3839
* @param array $args
3940
*
4041
* @return bool

composer.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "mageplaza/module-sms-notification-graphql",
3+
"description": "Magento 2 Sms Notification GraphQl Extension",
4+
"type": "magento2-module",
5+
"version": "1.0.0",
6+
"license": "proprietary",
7+
"authors": [
8+
{
9+
"name": "Mageplaza",
10+
"email": "support@mageplaza.com",
11+
"homepage": "https://www.mageplaza.com",
12+
"role": "Technical Support"
13+
}
14+
],
15+
"autoload": {
16+
"files": [
17+
"registration.php"
18+
],
19+
"psr-4": {
20+
"Mageplaza\\SmsNotificationGraphQl\\": ""
21+
}
22+
}
23+
}

i18n/en_US.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"The module is disabled","The module is disabled"
2+
"Can not sign up sms notification.","Can not sign up sms notification."

0 commit comments

Comments
 (0)