1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* @file |
5
|
|
|
* Magento API Client (SOAP v1). |
6
|
|
|
* Allows wrappers for each call, dependencies injections |
7
|
|
|
* and code completion. |
8
|
|
|
* |
9
|
|
|
* @author Sébastien MALOT <[email protected]> |
10
|
|
|
* @license MIT |
11
|
|
|
* @url <https://github.com/smalot/magento-client> |
12
|
|
|
* |
13
|
|
|
* For the full copyright and license information, please view the LICENSE |
14
|
|
|
* file that was distributed with this source code. |
15
|
|
|
*/ |
16
|
|
|
|
17
|
|
|
namespace Smalot\Magento\GiftMessage; |
18
|
|
|
|
19
|
|
|
use Smalot\Magento\ActionInterface; |
20
|
|
|
use Smalot\Magento\MagentoModuleAbstract; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* Class GiftMessage |
24
|
|
|
* |
25
|
|
|
* @package Smalot\Magento\GiftMessage |
26
|
|
|
*/ |
27
|
|
|
class GiftMessage extends MagentoModuleAbstract |
28
|
|
|
{ |
29
|
|
|
/** |
30
|
|
|
* Allows you to set a global gift message for the shopping cart (quote). |
31
|
|
|
* |
32
|
|
|
* @param string $quoteId |
33
|
|
|
* @param array $giftMessage |
34
|
|
|
* @param string $store |
35
|
|
|
* |
36
|
|
|
* @return ActionInterface |
37
|
|
|
*/ |
38
|
|
|
public function setForQuote($quoteId, $giftMessage, $store) |
|
|
|
|
39
|
|
|
{ |
40
|
|
|
return $this->__createAction('giftmessage.setForQuote', func_get_args()); |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* Allows you to set a gift message for an item in the shopping cart (quote). |
45
|
|
|
* |
46
|
|
|
* @param string $quoteItemId |
47
|
|
|
* @param array $giftMessage |
48
|
|
|
* @param string $store |
49
|
|
|
* |
50
|
|
|
* @return ActionInterface |
51
|
|
|
*/ |
52
|
|
|
public function setForQuoteItem($quoteItemId, $giftMessage, $store) |
|
|
|
|
53
|
|
|
{ |
54
|
|
|
return $this->__createAction('giftmessage.setForQuoteItem', func_get_args()); |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* Allows you to set a gift message for a product in the shopping cart (quote). |
59
|
|
|
* |
60
|
|
|
* @param string $quoteId |
61
|
|
|
* @param array $productsAndMessages |
62
|
|
|
* @param string $store |
63
|
|
|
* |
64
|
|
|
* @return ActionInterface |
65
|
|
|
*/ |
66
|
|
|
public function setForQuoteProduct($quoteId, $productsAndMessages, $store) |
|
|
|
|
67
|
|
|
{ |
68
|
|
|
return $this->__createAction('giftmessage.setForQuoteProduct', func_get_args()); |
69
|
|
|
} |
70
|
|
|
} |
71
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.