Skip to content

Commit bac1ff6

Browse files
authored
Merge pull request #978 from magento-mpi/api-coverage
- MAGETWO-65690 Cover Payment module with @api annotation - MAGETWO-66607 Cover OfflinePayments module with @api annotation - MAGETWO-66608 Cover OfflineShipping module with @api annotation - MAGETWO-66609 Cover Vault module with @api annotation
2 parents 86d67e4 + d8a4d0e commit bac1ff6

File tree

91 files changed

+272
-41
lines changed

Some content is hidden

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

91 files changed

+272
-41
lines changed

app/code/Magento/OfflinePayments/Model/Banktransfer.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* Bank Transfer payment method model
1010
*
1111
* @method \Magento\Quote\Api\Data\PaymentMethodExtensionInterface getExtensionAttributes()
12+
*
13+
* @api
1214
*/
1315
class Banktransfer extends \Magento\Payment\Model\Method\AbstractMethod
1416
{

app/code/Magento/OfflinePayments/Model/Cashondelivery.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* Cash on delivery payment method model
1010
*
1111
* @method \Magento\Quote\Api\Data\PaymentMethodExtensionInterface getExtensionAttributes()
12+
*
13+
* @api
1214
*/
1315
class Cashondelivery extends \Magento\Payment\Model\Method\AbstractMethod
1416
{

app/code/Magento/OfflinePayments/Model/Checkmo.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* Class Checkmo
1010
*
1111
* @method \Magento\Quote\Api\Data\PaymentMethodExtensionInterface getExtensionAttributes()
12+
*
13+
* @api
1214
*/
1315
class Checkmo extends \Magento\Payment\Model\Method\AbstractMethod
1416
{

app/code/Magento/OfflinePayments/Model/Purchaseorder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
* Class Purchaseorder
1010
*
1111
* @method \Magento\Quote\Api\Data\PaymentMethodExtensionInterface getExtensionAttributes()
12+
*
13+
* @api
1214
*/
1315
class Purchaseorder extends \Magento\Payment\Model\Method\AbstractMethod
1416
{

app/code/Magento/OfflinePayments/view/frontend/web/js/view/payment/method-renderer/banktransfer-method.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* See COPYING.txt for license details.
44
*/
55

6+
/* @api */
67
define([
78
'ko',
89
'Magento_Checkout/js/view/payment/default'

app/code/Magento/OfflinePayments/view/frontend/web/js/view/payment/method-renderer/cashondelivery-method.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* See COPYING.txt for license details.
44
*/
55

6+
/* @api */
67
define([
78
'Magento_Checkout/js/view/payment/default'
89
], function (Component) {

app/code/Magento/OfflinePayments/view/frontend/web/js/view/payment/method-renderer/checkmo-method.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* See COPYING.txt for license details.
44
*/
55

6+
/* @api */
67
define([
78
'Magento_Checkout/js/view/payment/default'
89
], function (Component) {

app/code/Magento/OfflinePayments/view/frontend/web/js/view/payment/method-renderer/purchaseorder-method.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* See COPYING.txt for license details.
44
*/
55

6+
/* @api */
67
define([
78
'Magento_Checkout/js/view/payment/default',
89
'jquery',

app/code/Magento/OfflinePayments/view/frontend/web/js/view/payment/offline-payments.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* See COPYING.txt for license details.
44
*/
55

6+
/* @api */
67
define([
78
'uiComponent',
89
'Magento_Checkout/js/model/payment/renderer-list'

app/code/Magento/OfflineShipping/Model/Carrier/Flatrate.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
/**
1515
* Flat rate shipping model
16+
*
17+
* @api
1618
*/
1719
class Flatrate extends AbstractCarrier implements CarrierInterface
1820
{

0 commit comments

Comments
 (0)