Skip to content

Commit

Permalink
Merge pull request #1025 from magento-folks/api_coverage
Browse files Browse the repository at this point in the history
[Folks] Api Annotation Coverage of OMS-related Modules
  • Loading branch information
Alexander Akimov authored Apr 14, 2017
2 parents 6fe5623 + b75a39d commit 6e95f7f
Show file tree
Hide file tree
Showing 44 changed files with 144 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
*/
namespace Magento\Checkout\Block\Checkout;

/**
* Layout processor interface.
*
* Can be used to provide a custom logic for checkout JS layout preparation.
*
* @see \Magento\Checkout\Block\Onepage
*
* @api
*/
interface LayoutProcessorInterface
{
/**
Expand Down
2 changes: 2 additions & 0 deletions app/code/Magento/Checkout/CustomerData/AbstractItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

/**
* Abstract item
*
* @api
*/
abstract class AbstractItem implements ItemInterface
{
Expand Down
2 changes: 2 additions & 0 deletions app/code/Magento/Checkout/CustomerData/ItemInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

/**
* Item interface
*
* @api
*/
interface ItemInterface
{
Expand Down
1 change: 1 addition & 0 deletions app/code/Magento/Checkout/Model/Cart/ImageProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

/**
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
* @api
*/
class ImageProvider
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

/**
* Class RequestInfoFilterComposite
* @api
*/
class RequestInfoFilterComposite implements RequestInfoFilterInterface
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

/**
* Interface RequestInfoFilterInterface used by composite and leafs to implement filtering
* @api
*/
interface RequestInfoFilterInterface
{
Expand Down
6 changes: 6 additions & 0 deletions app/code/Magento/Checkout/Model/CompositeConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
*/
namespace Magento\Checkout\Model;

/**
* Composite checkout configuration provider.
*
* @see \Magento\Checkout\Model\ConfigProviderInterface
* @api
*/
class CompositeConfigProvider implements ConfigProviderInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@

use Magento\Framework\App\Config\ScopeConfigInterface;

/**
* Abstract totals processor.
*
* Can be used to process totals information that will be rendered during checkout.
* Abstract class provides sorting routing to sort total information based on configuration settings.
*
* @api
*/
abstract class AbstractTotalsProcessor
{
/**
Expand Down
4 changes: 3 additions & 1 deletion app/code/Magento/Checkout/Model/Session/SuccessValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
namespace Magento\Checkout\Model\Session;

/**
* Test is checkout session valid for success action
* Test if checkout session valid for success action
*
* @api
*/
class SuccessValidator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'Magento_Checkout/js/model/address-converter'
], function (addressConverter) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'Magento_Customer/js/model/address-list',
'Magento_Checkout/js/model/address-converter'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'jquery',
'Magento_Checkout/js/model/quote',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'jquery',
'../model/quote',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'Magento_Checkout/js/model/quote',
'Magento_Checkout/js/model/url-builder',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

/**
* @api
*/
define(
[
'mage/url'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'jquery',
'../model/quote'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'../model/quote'
], function (quote) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'Magento_Checkout/js/model/quote'
], function (quote) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'../model/quote'
], function (quote) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

/**
* @api
*/
define(
[
'jquery',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'Magento_Checkout/js/model/quote',
'Magento_Checkout/js/model/url-builder',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'../model/quote',
'Magento_Checkout/js/model/shipping-save-processor'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

/**
* Checkout adapter for customer data storage
*
* @api
*/
define([
'jquery',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'jquery',
'Magento_Checkout/js/model/new-customer-address',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'mage/url',
'Magento_Ui/js/model/messageList'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([], function () {
'use strict';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([], function () {
'use strict';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* @api
*/
define(
[
'mage/storage',
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/Checkout/view/frontend/web/js/model/quote.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/**
* @api
*/
define([
'ko',
'underscore'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'Magento_Customer/js/model/customer',
'Magento_Checkout/js/model/url-builder',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define(['jquery'], function ($) {
'use strict';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'jquery',
'ko',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'Magento_Checkout/js/model/shipping-save-processor/default'
], function (defaultProcessor) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'jquery',
'ko'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'ko',
'Magento_Checkout/js/model/quote'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@

use Magento\Quote\Model\Quote\Item\AbstractItem;

/**
* Layout processor interface.
*
* Classes that implement this interface can be used to modify cart JS layout before rendering.
* Interface method accepts quote item, so the required data can be easily retrieved.
* @see \Magento\GiftMessage\Block\Cart\Item\Renderer\Actions\GiftOptions
*
* @api
*/
interface LayoutProcessorInterface
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'Magento_GiftMessage/js/model/url-builder',
'mage/storage',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* See COPYING.txt for license details.
*/

/**
* @api
*/
define([
'uiElement',
'underscore',
Expand Down
Loading

0 comments on commit 6e95f7f

Please sign in to comment.