Skip to content

Commit 7447869

Browse files
author
Mike Weis
committed
Merge remote-tracking branch 'mainline/develop' into develop
2 parents 69ca16e + cf7df72 commit 7447869

18 files changed

+1456
-14
lines changed

app/code/Magento/Backend/Model/Url.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ class Url extends \Magento\Framework\Url implements \Magento\Backend\Model\UrlIn
8686
* @param \Magento\Framework\Url\RouteParamsResolverFactory $routeParamsResolverFactory
8787
* @param \Magento\Framework\Url\QueryParamsResolverInterface $queryParamsResolver
8888
* @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
89+
* @param \Magento\Framework\Url\RouteParamsPreprocessorInterface $routeParamsPreprocessor
8990
* @param string $scopeType
9091
* @param \Magento\Backend\Helper\Data $backendHelper
9192
* @param Menu\Config $menuConfig
@@ -108,6 +109,7 @@ public function __construct(
108109
\Magento\Framework\Url\RouteParamsResolverFactory $routeParamsResolverFactory,
109110
\Magento\Framework\Url\QueryParamsResolverInterface $queryParamsResolver,
110111
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
112+
\Magento\Framework\Url\RouteParamsPreprocessorInterface $routeParamsPreprocessor,
111113
$scopeType,
112114
\Magento\Backend\Helper\Data $backendHelper,
113115
\Magento\Backend\Model\Menu\Config $menuConfig,
@@ -129,6 +131,7 @@ public function __construct(
129131
$routeParamsResolverFactory,
130132
$queryParamsResolver,
131133
$scopeConfig,
134+
$routeParamsPreprocessor,
132135
$scopeType,
133136
$data
134137
);
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 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 ShippingAssignmentInterface
12+
*/
13+
interface ShippingAssignmentInterface extends ExtensibleDataInterface
14+
{
15+
/**#@+
16+
* Shipping assignment object data keys
17+
*/
18+
const KEY_SHIPPING = 'shipping';
19+
20+
const KEY_ITEMS = 'items';
21+
22+
const KEY_STOCK_ID = 'stock_id';
23+
/**#@-*/
24+
25+
/**
26+
* Gets shipping object
27+
*
28+
* @return \Magento\Sales\Api\Data\ShippingInterface
29+
*/
30+
public function getShipping();
31+
32+
/**
33+
* Gets order items of shipping assignment
34+
*
35+
* @return \Magento\Sales\Api\Data\OrderItemInterface[]
36+
*/
37+
public function getItems();
38+
39+
/**
40+
* Gets stock id
41+
*
42+
* @return int|null
43+
*/
44+
public function getStockId();
45+
46+
/**
47+
* Sets shipping
48+
*
49+
* @param \Magento\Sales\Api\Data\ShippingInterface $shipping
50+
* @return $this
51+
*/
52+
public function setShipping(\Magento\Sales\Api\Data\ShippingInterface $shipping);
53+
54+
/**
55+
* Sets order items to shipping assignment
56+
*
57+
* @param \Magento\Sales\Api\Data\OrderItemInterface[] $items
58+
* @return $this
59+
*/
60+
public function setItems(array $items);
61+
62+
/**
63+
* Sets stock id
64+
*
65+
* @param int|null $stockId
66+
* @return $this
67+
*/
68+
public function setStockId($stockId = null);
69+
70+
/**
71+
* Retrieve existing extension attributes object or create a new one.
72+
*
73+
* @return \Magento\Sales\Api\Data\ShippingAssignmentExtensionInterface|null
74+
*/
75+
public function getExtensionAttributes();
76+
77+
/**
78+
* Set an extension attributes object.
79+
*
80+
* @param \Magento\Sales\Api\Data\ShippingAssignmentExtensionInterface $extensionAttributes
81+
* @return $this
82+
*/
83+
public function setExtensionAttributes(
84+
\Magento\Sales\Api\Data\ShippingAssignmentExtensionInterface $extensionAttributes
85+
);
86+
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Sales\Api\Data;
7+
8+
/**
9+
* Interface ShippingInterface
10+
*/
11+
interface ShippingInterface extends \Magento\Framework\Api\ExtensibleDataInterface
12+
{
13+
/**#@+
14+
* Shipping object data keys
15+
*/
16+
const KEY_ADDRESS = 'address';
17+
18+
const KEY_METHOD = 'method';
19+
20+
const KEY_TOTAL = 'total';
21+
/**#@-*/
22+
23+
/**
24+
* Gets shipping address
25+
*
26+
* @return \Magento\Sales\Api\Data\OrderAddressInterface|null
27+
*/
28+
public function getAddress();
29+
30+
/**
31+
* Gets shipping method
32+
*
33+
* @return string|null
34+
*/
35+
public function getMethod();
36+
37+
/**
38+
* Gets object with shipping totals
39+
*
40+
* @return \Magento\Sales\Api\Data\TotalInterface|null
41+
*/
42+
public function getTotal();
43+
44+
/**
45+
* Sets address to shipping
46+
*
47+
* @param \Magento\Sales\Api\Data\OrderAddressInterface $address
48+
* @return $this
49+
*/
50+
public function setAddress(\Magento\Sales\Api\Data\OrderAddressInterface $address);
51+
52+
/**
53+
* Sets method to shipping
54+
*
55+
* @param string $method
56+
* @return $this
57+
*/
58+
public function setMethod($method);
59+
60+
/**
61+
* Sets total object to shipping
62+
*
63+
* @param \Magento\Sales\Api\Data\TotalInterface $total
64+
* @return $this
65+
*/
66+
public function setTotal(\Magento\Sales\Api\Data\TotalInterface $total);
67+
68+
/**
69+
* Retrieve existing extension attributes object or create a new one.
70+
*
71+
* @return \Magento\Sales\Api\Data\ShippingExtensionInterface|null
72+
*/
73+
public function getExtensionAttributes();
74+
75+
/**
76+
* Set an extension attributes object.
77+
*
78+
* @param \Magento\Sales\Api\Data\ShippingExtensionInterface $extensionAttributes
79+
* @return $this
80+
*/
81+
public function setExtensionAttributes(
82+
\Magento\Sales\Api\Data\ShippingExtensionInterface $extensionAttributes
83+
);
84+
}

0 commit comments

Comments
 (0)