Skip to content

Commit 0d2722f

Browse files
committed
Merge branch '2.1.3' of github.com:magento/magento2ce into MAGETWO-59078
2 parents a715671 + a97238c commit 0d2722f

File tree

179 files changed

+15098
-456
lines changed

Some content is hidden

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

179 files changed

+15098
-456
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 text.
27+
*
28+
* @return string Comment.
29+
*/
30+
public function getComment();
31+
32+
/**
33+
* Sets the comment text.
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 comment.
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 comment.
49+
*
50+
* @param int $isVisibleOnFront
51+
* @return $this
52+
*/
53+
public function setIsVisibleOnFront($isVisibleOnFront);
54+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
use Magento\Framework\Api\ExtensibleDataInterface;
9+
10+
/**
11+
* Interface CreditmemoCommentCreationInterface
12+
*
13+
* @api
14+
*/
15+
interface CreditmemoCommentCreationInterface extends ExtensibleDataInterface, CommentInterface
16+
{
17+
/**
18+
* Retrieve existing extension attributes object or create a new one.
19+
*
20+
* @return \Magento\Sales\Api\Data\CreditmemoCommentCreationExtensionInterface|null
21+
*/
22+
public function getExtensionAttributes();
23+
24+
/**
25+
* Set an extension attributes object.
26+
*
27+
* @param \Magento\Sales\Api\Data\CreditmemoCommentCreationExtensionInterface $extensionAttributes
28+
* @return $this
29+
*/
30+
public function setExtensionAttributes(
31+
\Magento\Sales\Api\Data\CreditmemoCommentCreationExtensionInterface $extensionAttributes
32+
);
33+
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
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 CreditmemoCreationArgumentsInterface
10+
*
11+
* @api
12+
*/
13+
interface CreditmemoCreationArgumentsInterface
14+
{
15+
/**
16+
* Gets the credit memo shipping amount.
17+
*
18+
* @return float|null Credit memo shipping amount.
19+
*/
20+
public function getShippingAmount();
21+
22+
/**
23+
* Gets the credit memo positive adjustment.
24+
*
25+
* @return float|null Credit memo positive adjustment.
26+
*/
27+
public function getAdjustmentPositive();
28+
29+
/**
30+
* Gets the credit memo negative adjustment.
31+
*
32+
* @return float|null Credit memo negative adjustment.
33+
*/
34+
public function getAdjustmentNegative();
35+
36+
/**
37+
* Sets the credit memo shipping amount.
38+
*
39+
* @param float $amount
40+
* @return $this
41+
*/
42+
public function setShippingAmount($amount);
43+
44+
/**
45+
* Sets the credit memo positive adjustment.
46+
*
47+
* @param float $amount
48+
* @return $this
49+
*/
50+
public function setAdjustmentPositive($amount);
51+
52+
/**
53+
* Sets the credit memo negative adjustment.
54+
*
55+
* @param float $amount
56+
* @return $this
57+
*/
58+
public function setAdjustmentNegative($amount);
59+
60+
/**
61+
* Gets existing extension attributes.
62+
*
63+
* @return \Magento\Sales\Api\Data\CreditmemoCreationArgumentsExtensionInterface|null
64+
*/
65+
public function getExtensionAttributes();
66+
67+
/**
68+
* Sets extension attributes.
69+
*
70+
* @param \Magento\Sales\Api\Data\CreditmemoCreationArgumentsExtensionInterface $extensionAttributes
71+
*
72+
* @return $this
73+
*/
74+
public function setExtensionAttributes(
75+
\Magento\Sales\Api\Data\CreditmemoCreationArgumentsExtensionInterface $extensionAttributes
76+
);
77+
}
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+
use Magento\Framework\Api\ExtensibleDataInterface;
9+
10+
/**
11+
* Interface CreditmemoItemCreationInterface
12+
* @api
13+
*/
14+
interface CreditmemoItemCreationInterface extends LineItemInterface, ExtensibleDataInterface
15+
{
16+
/**
17+
* Retrieve existing extension attributes object or create a new one.
18+
*
19+
* @return \Magento\Sales\Api\Data\CreditmemoItemCreationExtensionInterface|null
20+
*/
21+
public function getExtensionAttributes();
22+
23+
/**
24+
* Set an extension attributes object.
25+
*
26+
* @param \Magento\Sales\Api\Data\CreditmemoItemCreationExtensionInterface $extensionAttributes
27+
* @return $this
28+
*/
29+
public function setExtensionAttributes(
30+
\Magento\Sales\Api\Data\CreditmemoItemCreationExtensionInterface $extensionAttributes
31+
);
32+
}
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+
}

0 commit comments

Comments
 (0)