@@ -88,7 +88,7 @@ |
||
88 | 88 | * |
89 | 89 | * xsd note: minimum value 0 |
90 | 90 | * maximum precision 2 decimal places |
91 | - * @return float |
|
91 | + * @return string |
|
92 | 92 | */ |
93 | 93 | public function getAmount() |
94 | 94 | { |
@@ -23,7 +23,6 @@ |
||
23 | 23 | use eBayEnterprise\RetailOrderManagement\Payload\Payment\TAmount; |
24 | 24 | use eBayEnterprise\RetailOrderManagement\Payload\TPayload; |
25 | 25 | use Psr\Log\LoggerInterface; |
26 | -use Psr\Log\NullLogger; |
|
27 | 26 | |
28 | 27 | class TaxedPriceGroup implements ITaxedPriceGroup |
29 | 28 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload; |
17 | 17 |
@@ -251,6 +251,9 @@ |
||
251 | 251 | * @param string |
252 | 252 | * @param float |
253 | 253 | * @param string |
254 | + * @param string $amountType |
|
255 | + * @param double $amount |
|
256 | + * @param string $currencyCode |
|
254 | 257 | * @return string |
255 | 258 | */ |
256 | 259 | protected function serializeAmounts($amountType, $amount, $currencyCode) |
@@ -23,7 +23,6 @@ |
||
23 | 23 | use eBayEnterprise\RetailOrderManagement\Payload\Payment\TAmount; |
24 | 24 | use eBayEnterprise\RetailOrderManagement\Payload\TPayload; |
25 | 25 | use Psr\Log\LoggerInterface; |
26 | -use Psr\Log\NullLogger; |
|
27 | 26 | |
28 | 27 | class TaxedPriceGroup implements ITaxedPriceGroup |
29 | 28 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload; |
17 | 17 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | |
35 | 35 | protected $responseCode; |
36 | 36 | /** @var array response codes that are considered a success */ |
37 | - protected $successResponseCodes = ['Success']; |
|
37 | + protected $successResponseCodes = [ 'Success' ]; |
|
38 | 38 | |
39 | 39 | /** |
40 | 40 | * @param IValidatorIterator |
@@ -76,6 +76,7 @@ discard block |
||
76 | 76 | |
77 | 77 | /** |
78 | 78 | * @param string |
79 | + * @param string $tenderType |
|
79 | 80 | * @return self |
80 | 81 | */ |
81 | 82 | public function setTenderType($tenderType) |
@@ -96,6 +97,7 @@ discard block |
||
96 | 97 | |
97 | 98 | /** |
98 | 99 | * @param string |
100 | + * @param string $responseCode |
|
99 | 101 | * @return self |
100 | 102 | */ |
101 | 103 | public function setResponseCode($responseCode) |
@@ -109,8 +109,8 @@ discard block |
||
109 | 109 | */ |
110 | 110 | public function getResponseMessage() |
111 | 111 | { |
112 | - return isset($this->responseCodeMessage[$this->getResponseCode()]) |
|
113 | - ? $this->responseCodeMessage[$this->getResponseCode()] |
|
112 | + return isset($this->responseCodeMessage[ $this->getResponseCode() ]) |
|
113 | + ? $this->responseCodeMessage[ $this->getResponseCode() ] |
|
114 | 114 | : ''; |
115 | 115 | } |
116 | 116 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | |
131 | 131 | protected function validateResponseCode() |
132 | 132 | { |
133 | - if (!isset($this->responseCodeMessage[$this->getResponseCode()])) { |
|
133 | + if (!isset($this->responseCodeMessage[ $this->getResponseCode() ])) { |
|
134 | 134 | throw new InvalidPayload("Unrecognized response code '{$this->getResponseCode()}'"); |
135 | 135 | } |
136 | 136 | } |
@@ -86,6 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | /** |
88 | 88 | * @param float |
89 | + * @param double $amount |
|
89 | 90 | * @return self |
90 | 91 | */ |
91 | 92 | public function setLineItemsTotal($amount) |
@@ -134,6 +135,11 @@ discard block |
||
134 | 135 | return $this; |
135 | 136 | } |
136 | 137 | |
138 | + /** |
|
139 | + * @param string $nodeName |
|
140 | + * @param double $amount |
|
141 | + * @param string|null $currencyCode |
|
142 | + */ |
|
137 | 143 | abstract protected function serializeCurrencyAmount($nodeName, $amount, $currencyCode); |
138 | 144 | abstract protected function sanitizeAmount($amount); |
139 | 145 | |
@@ -206,6 +212,7 @@ discard block |
||
206 | 212 | * otherwise simply return the null parameter. |
207 | 213 | * |
208 | 214 | * @param string|null |
215 | + * @param string $value |
|
209 | 216 | * @return string|null |
210 | 217 | */ |
211 | 218 | abstract protected function xmlEncode($value = null); |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload; |
17 | 17 |
@@ -21,8 +21,6 @@ |
||
21 | 21 | use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator; |
22 | 22 | use eBayEnterprise\RetailOrderManagement\Payload\PayloadFactory; |
23 | 23 | use eBayEnterprise\RetailOrderManagement\Payload\TPayload; |
24 | -use eBayEnterprise\RetailOrderManagement\Payload\TIdentity; |
|
25 | - |
|
26 | 24 | use Psr\Log\LoggerInterface; |
27 | 25 | |
28 | 26 | abstract class AbstractCustomization |
@@ -89,7 +89,7 @@ |
||
89 | 89 | |
90 | 90 | protected function getRootAttributes() |
91 | 91 | { |
92 | - return $this->getId() ? ['id' => $this->getId()] : []; |
|
92 | + return $this->getId() ? [ 'id' => $this->getId() ] : [ ]; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | protected function getRootNodeName() |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\Validator\Order; |
17 | 17 |
@@ -106,7 +106,7 @@ |
||
106 | 106 | /** |
107 | 107 | * Get a new, empty store location destination object. |
108 | 108 | * |
109 | - * @return IStoreLocation |
|
109 | + * @return IPayload |
|
110 | 110 | */ |
111 | 111 | public function getEmptyStoreLocation() |
112 | 112 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload; |
17 | 17 |
@@ -102,6 +102,7 @@ |
||
102 | 102 | |
103 | 103 | /** |
104 | 104 | * @param float |
105 | + * @param double $amount |
|
105 | 106 | * @return self |
106 | 107 | */ |
107 | 108 | public function setAmount($amount) |
@@ -152,13 +152,13 @@ |
||
152 | 152 | */ |
153 | 153 | protected function getRootAttributes() |
154 | 154 | { |
155 | - $attrs = []; |
|
155 | + $attrs = [ ]; |
|
156 | 156 | if ($this->getId()) { |
157 | - $attrs['id'] = $this->getId(); |
|
157 | + $attrs[ 'id' ] = $this->getId(); |
|
158 | 158 | } |
159 | 159 | $flag = $this->getCalculateDutyFlag(); |
160 | 160 | if ($flag === true || $flag === false) { |
161 | - $attrs['calculateDuty'] = $this->convertBooleanToString($this->getCalculateDutyFlag()); |
|
161 | + $attrs[ 'calculateDuty' ] = $this->convertBooleanToString($this->getCalculateDutyFlag()); |
|
162 | 162 | } |
163 | 163 | return $attrs; |
164 | 164 | } |
@@ -23,7 +23,6 @@ |
||
23 | 23 | use eBayEnterprise\RetailOrderManagement\Payload\Payment\TAmount; |
24 | 24 | use eBayEnterprise\RetailOrderManagement\Payload\TPayload; |
25 | 25 | use Psr\Log\LoggerInterface; |
26 | -use Psr\Log\NullLogger; |
|
27 | 26 | |
28 | 27 | class TaxedPriceGroup implements ITaxedPriceGroup |
29 | 28 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2014-2015 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2014-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2014-2015 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2014-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee; |
17 | 17 |
@@ -15,15 +15,12 @@ |
||
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee; |
17 | 17 | |
18 | -use eBayEnterprise\RetailOrderManagement\Payload\Checkout\TPersonName; |
|
19 | 18 | use eBayEnterprise\RetailOrderManagement\Payload\IPayload; |
20 | 19 | use eBayEnterprise\RetailOrderManagement\Payload\IPayloadMap; |
21 | 20 | use eBayEnterprise\RetailOrderManagement\Payload\ISchemaValidator; |
22 | 21 | use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator; |
23 | 22 | use eBayEnterprise\RetailOrderManagement\Payload\Order\EmailAddressDestination as OrderEmailAddressDestination; |
24 | - |
|
25 | 23 | use Psr\Log\LoggerInterface; |
26 | -use Psr\Log\NullLogger; |
|
27 | 24 | |
28 | 25 | class EmailAddressDestination extends OrderEmailAddressDestination implements IEmailAddressDestination |
29 | 26 | { |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\Validator\Order; |
17 | 17 |
@@ -15,7 +15,6 @@ |
||
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee; |
17 | 17 | |
18 | -use DOMXPath; |
|
19 | 18 | use eBayEnterprise\RetailOrderManagement\Payload\IPayload; |
20 | 19 | use eBayEnterprise\RetailOrderManagement\Payload\IPayloadMap; |
21 | 20 | use eBayEnterprise\RetailOrderManagement\Payload\ISchemaValidator; |
@@ -1,17 +1,17 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | - * |
|
5 | - * NOTICE OF LICENSE |
|
6 | - * |
|
7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | - * that is bundled with this package in the file LICENSE.md. |
|
9 | - * It is also available through the world-wide-web at this URL: |
|
10 | - * http://opensource.org/licenses/osl-3.0.php |
|
11 | - * |
|
12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | - */ |
|
3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
4 | + * |
|
5 | + * NOTICE OF LICENSE |
|
6 | + * |
|
7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
8 | + * that is bundled with this package in the file LICENSE.md. |
|
9 | + * It is also available through the world-wide-web at this URL: |
|
10 | + * http://opensource.org/licenses/osl-3.0.php |
|
11 | + * |
|
12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
14 | + */ |
|
15 | 15 | |
16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload; |
17 | 17 |