Skip to content

Commit 1a444dc

Browse files
committed
MAGETWO-54964: Shopping cart page - Reordered items count is not getting updated at mini cart #6121
2 parents 3486c37 + b8826e3 commit 1a444dc

File tree

101 files changed

+7098
-353
lines changed

Some content is hidden

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

101 files changed

+7098
-353
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?php
2+
/**
3+
* Copyright © 2016 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Sales\Api\Data;
7+
8+
/**
9+
* Interface CommentInterface
10+
*
11+
* @api
12+
*/
13+
interface CommentInterface
14+
{
15+
/*
16+
* Is-visible-on-storefront flag.
17+
*/
18+
const IS_VISIBLE_ON_FRONT = 'is_visible_on_front';
19+
20+
/*
21+
* Comment.
22+
*/
23+
const COMMENT = 'comment';
24+
25+
/**
26+
* Gets the comment for the invoice.
27+
*
28+
* @return string Comment.
29+
*/
30+
public function getComment();
31+
32+
/**
33+
* Sets the comment for the invoice.
34+
*
35+
* @param string $comment
36+
* @return $this
37+
*/
38+
public function setComment($comment);
39+
40+
/**
41+
* Gets the is-visible-on-storefront flag value for the invoice.
42+
*
43+
* @return int Is-visible-on-storefront flag value.
44+
*/
45+
public function getIsVisibleOnFront();
46+
47+
/**
48+
* Sets the is-visible-on-storefront flag value for the invoice.
49+
*
50+
* @param int $isVisibleOnFront
51+
* @return $this
52+
*/
53+
public function setIsVisibleOnFront($isVisibleOnFront);
54+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
/**
3+
* Copyright © 2016 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Sales\Api\Data;
7+
8+
/**
9+
* Interface EntityInterface
10+
* @api
11+
*/
12+
interface EntityInterface
13+
{
14+
/*
15+
* Entity ID.
16+
*/
17+
const ENTITY_ID = 'entity_id';
18+
19+
/*
20+
* Created-at timestamp.
21+
*/
22+
const CREATED_AT = 'created_at';
23+
24+
/**
25+
* Gets the created-at timestamp for the invoice.
26+
*
27+
* @return string|null Created-at timestamp.
28+
*/
29+
public function getCreatedAt();
30+
31+
/**
32+
* Sets the created-at timestamp for the invoice.
33+
*
34+
* @param string $createdAt timestamp
35+
* @return $this
36+
*/
37+
public function setCreatedAt($createdAt);
38+
39+
/**
40+
* Gets the ID for the invoice.
41+
*
42+
* @return int|null Invoice ID.
43+
*/
44+
public function getEntityId();
45+
46+
/**
47+
* Sets entity ID.
48+
*
49+
* @param int $entityId
50+
* @return $this
51+
*/
52+
public function setEntityId($entityId);
53+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
/**
3+
* Copyright © 2016 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
namespace Magento\Sales\Api\Data;
8+
9+
use Magento\Framework\Api\ExtensibleDataInterface;
10+
11+
/**
12+
* Interface InvoiceCommentCreationInterface
13+
*
14+
* @api
15+
*/
16+
interface InvoiceCommentCreationInterface extends ExtensibleDataInterface, CommentInterface
17+
{
18+
/**
19+
* Retrieve existing extension attributes object or create a new one.
20+
*
21+
* @return \Magento\Sales\Api\Data\InvoiceCommentCreationExtensionInterface|null
22+
*/
23+
public function getExtensionAttributes();
24+
25+
/**
26+
* Set an extension attributes object.
27+
*
28+
* @param \Magento\Sales\Api\Data\InvoiceCommentCreationExtensionInterface $extensionAttributes
29+
* @return $this
30+
*/
31+
public function setExtensionAttributes(
32+
\Magento\Sales\Api\Data\InvoiceCommentCreationExtensionInterface $extensionAttributes
33+
);
34+
}

app/code/Magento/Sales/Api/Data/InvoiceCommentInterface.php

Lines changed: 3 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,20 @@
55
*/
66
namespace Magento\Sales\Api\Data;
77

8+
use Magento\Framework\Api\ExtensibleDataInterface;
9+
810
/**
911
* Invoice comment interface.
1012
*
1113
* An invoice is a record of the receipt of payment for an order. An invoice can include comments that detail the
1214
* invoice history.
1315
* @api
1416
*/
15-
interface InvoiceCommentInterface extends \Magento\Framework\Api\ExtensibleDataInterface
17+
interface InvoiceCommentInterface extends ExtensibleDataInterface, CommentInterface, EntityInterface
1618
{
1719
/**#@+
1820
* Constants for keys of data array. Identical to the name of the getter in snake case.
1921
*/
20-
/*
21-
* Entity ID.
22-
*/
23-
const ENTITY_ID = 'entity_id';
2422
/*
2523
* Parent ID.
2624
*/
@@ -29,55 +27,6 @@ interface InvoiceCommentInterface extends \Magento\Framework\Api\ExtensibleDataI
2927
* Is-customer-notified flag.
3028
*/
3129
const IS_CUSTOMER_NOTIFIED = 'is_customer_notified';
32-
/*
33-
* Is-visible-on-storefront flag.
34-
*/
35-
const IS_VISIBLE_ON_FRONT = 'is_visible_on_front';
36-
/*
37-
* Comment.
38-
*/
39-
const COMMENT = 'comment';
40-
/*
41-
* Created-at timestamp.
42-
*/
43-
const CREATED_AT = 'created_at';
44-
45-
/**
46-
* Gets the comment for the invoice.
47-
*
48-
* @return string Comment.
49-
*/
50-
public function getComment();
51-
52-
/**
53-
* Gets the created-at timestamp for the invoice.
54-
*
55-
* @return string|null Created-at timestamp.
56-
*/
57-
public function getCreatedAt();
58-
59-
/**
60-
* Sets the created-at timestamp for the invoice.
61-
*
62-
* @param string $createdAt timestamp
63-
* @return $this
64-
*/
65-
public function setCreatedAt($createdAt);
66-
67-
/**
68-
* Gets the ID for the invoice.
69-
*
70-
* @return int|null Invoice ID.
71-
*/
72-
public function getEntityId();
73-
74-
/**
75-
* Sets entity ID.
76-
*
77-
* @param int $entityId
78-
* @return $this
79-
*/
80-
public function setEntityId($entityId);
8130

8231
/**
8332
* Gets the is-customer-notified flag value for the invoice.
@@ -86,13 +35,6 @@ public function setEntityId($entityId);
8635
*/
8736
public function getIsCustomerNotified();
8837

89-
/**
90-
* Gets the is-visible-on-storefront flag value for the invoice.
91-
*
92-
* @return int Is-visible-on-storefront flag value.
93-
*/
94-
public function getIsVisibleOnFront();
95-
9638
/**
9739
* Gets the parent ID for the invoice.
9840
*
@@ -116,22 +58,6 @@ public function setParentId($id);
11658
*/
11759
public function setIsCustomerNotified($isCustomerNotified);
11860

119-
/**
120-
* Sets the is-visible-on-storefront flag value for the invoice.
121-
*
122-
* @param int $isVisibleOnFront
123-
* @return $this
124-
*/
125-
public function setIsVisibleOnFront($isVisibleOnFront);
126-
127-
/**
128-
* Sets the comment for the invoice.
129-
*
130-
* @param string $comment
131-
* @return $this
132-
*/
133-
public function setComment($comment);
134-
13561
/**
13662
* Retrieve existing extension attributes object or create a new one.
13763
*
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
/**
3+
* Copyright © 2016 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Sales\Api\Data;
7+
8+
/**
9+
* Interface for creation arguments for Invoice.
10+
*
11+
* @api
12+
*/
13+
interface InvoiceCreationArgumentsInterface extends \Magento\Framework\Api\ExtensibleDataInterface
14+
{
15+
/**
16+
* Gets existing extension attributes.
17+
*
18+
* @return \Magento\Sales\Api\Data\InvoiceCreationArgumentsExtensionInterface|null
19+
*/
20+
public function getExtensionAttributes();
21+
22+
/**
23+
* Sets extension attributes.
24+
*
25+
* @param \Magento\Sales\Api\Data\InvoiceCreationArgumentsExtensionInterface $extensionAttributes
26+
*
27+
* @return $this
28+
*/
29+
public function setExtensionAttributes(
30+
\Magento\Sales\Api\Data\InvoiceCreationArgumentsExtensionInterface $extensionAttributes
31+
);
32+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
/**
3+
* Copyright © 2016 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
namespace Magento\Sales\Api\Data;
8+
9+
use Magento\Framework\Api\ExtensibleDataInterface;
10+
11+
/**
12+
* Input argument for invoice creation
13+
*
14+
* Interface InvoiceItemCreationInterface
15+
*
16+
* @api
17+
*/
18+
interface InvoiceItemCreationInterface extends LineItemInterface, ExtensibleDataInterface
19+
{
20+
/**
21+
* Retrieve existing extension attributes object or create a new one.
22+
*
23+
* @return \Magento\Sales\Api\Data\InvoiceItemCreationExtensionInterface|null
24+
*/
25+
public function getExtensionAttributes();
26+
27+
/**
28+
* Set an extension attributes object.
29+
*
30+
* @param \Magento\Sales\Api\Data\InvoiceItemCreationExtensionInterface $extensionAttributes
31+
* @return $this
32+
*/
33+
public function setExtensionAttributes(
34+
\Magento\Sales\Api\Data\InvoiceItemCreationExtensionInterface $extensionAttributes
35+
);
36+
}

0 commit comments

Comments
 (0)