Skip to content

Commit edf1c75

Browse files
committed
MAGETWO-62556: Subscription Request
1 parent 1f4a877 commit edf1c75

File tree

62 files changed

+163
-63
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+163
-63
lines changed

app/code/Magento/Analytics/Block/Adminhtml/System/Config/SubscriptionStatusLabel.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2013-2017 Magento. All rights reserved.
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Analytics\Block\Adminhtml\System\Config;
@@ -11,6 +11,9 @@
1111

1212
/**
1313
* Class SubscriptionStatusLabel.
14+
*
15+
* Provides labels for subscription status
16+
* Status can be reviewed in System Configuration
1417
*/
1518
class SubscriptionStatusLabel extends \Magento\Config\Block\System\Config\Form\Field
1619
{
@@ -52,6 +55,8 @@ public function render(\Magento\Framework\Data\Form\Element\AbstractElement $ele
5255
}
5356

5457
/**
58+
* Prepare label for subscription status
59+
*
5560
* @return string
5661
*/
5762
private function prepareLabelValue()

app/code/Magento/Analytics/Controller/Adminhtml/Subscription/Activate.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2013-2017 Magento. All rights reserved.
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

@@ -17,6 +17,8 @@
1717

1818
/**
1919
* Class Activate
20+
*
21+
* Activates subscription with Free Tier program
2022
*/
2123
class Activate extends Action
2224
{

app/code/Magento/Analytics/Controller/Adminhtml/Subscription/Postpone.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2013-2017 Magento. All rights reserved.
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

@@ -17,6 +17,8 @@
1717

1818
/**
1919
* Class Postpone
20+
*
21+
* Postpones notification about Free Tier program
2022
*/
2123
class Postpone extends Action
2224
{

app/code/Magento/Analytics/Cron/SignUp.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2013-2017 Magento. All rights reserved.
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Analytics\Cron;
@@ -77,7 +77,9 @@ public function __construct(
7777
}
7878

7979
/**
80-
* Method executes by cron
80+
* Execute scheduled subscription operation
81+
* In case of failure writes message to notifications inbox
82+
*
8183
* @return bool
8284
*/
8385
public function execute()

app/code/Magento/Analytics/Model/AnalyticsConnector.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2013-2017 Magento. All rights reserved.
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Analytics\Model;
@@ -10,6 +10,8 @@
1010

1111
/**
1212
* Class AnalyticsConnector
13+
*
14+
* Connector to MA services, aggregates calls to external services.
1315
*/
1416
class AnalyticsConnector
1517
{

app/code/Magento/Analytics/Model/AnalyticsConnector/AnalyticsCommandInterface.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
<?php
22
/**
3-
* Copyright © 2013-2017 Magento. All rights reserved.
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Analytics\Model\AnalyticsConnector;
77

88
/**
99
* Interface AnalyticsCommandInterface
10+
* Introduces family of integration calls.
11+
* Each implementation represents call to external service.
1012
*/
1113
interface AnalyticsCommandInterface
1214
{
1315
/**
16+
* Execute call to external service
17+
* Information about destination and arguments appears from config
1418
* @return void
1519
*/
1620
public function execute();

app/code/Magento/Analytics/Model/AnalyticsConnector/SignUpCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2013-2017 Magento. All rights reserved.
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Analytics\Model\AnalyticsConnector;
@@ -11,6 +11,8 @@
1111

1212
/**
1313
* Class SignUpCommand
14+
*
15+
* SignUp merchant for Free Tier project
1416
*/
1517
class SignUpCommand implements AnalyticsCommandInterface
1618
{

app/code/Magento/Analytics/Model/AnalyticsConnector/SignUpRequest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2013-2017 Magento. All rights reserved.
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

@@ -15,6 +15,9 @@
1515

1616
/**
1717
* Class SignUpRequest
18+
*
19+
* Perform direct call to MA services for subscription.
20+
* In case of success returns MA access token.
1821
*/
1922
class SignUpRequest
2023
{

app/code/Magento/Analytics/Model/AnalyticsToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2013-2017 Magento. All rights reserved.
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Analytics\Model;

app/code/Magento/Analytics/Model/Condition/CanViewNotification.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2013-2017 Magento. All rights reserved.
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

@@ -12,6 +12,9 @@
1212

1313
/**
1414
* Class CanViewNotification
15+
*
16+
* Dynamic validator for UI signUp notification form, manage Ui component visibility.
17+
* Return true if last notification was shipped seven days ago.
1518
*/
1619
class CanViewNotification implements ConditionInterface
1720
{

0 commit comments

Comments
 (0)