1 | <?php |
||
12 | class ArticleService extends AbstractService |
||
13 | { |
||
14 | /** |
||
15 | * Get the articles. |
||
16 | * |
||
17 | * @param string $articleNumber Article number to filter on. |
||
18 | * @return Get\ApiResponse |
||
19 | */ |
||
20 | 3 | public function getArticles($articleNumber = null) |
|
29 | |||
30 | /** |
||
31 | * Get one article by article number. |
||
32 | * |
||
33 | * @param string $articleNumber Article number of the article to get. |
||
34 | * @return Article|null |
||
35 | */ |
||
36 | 12 | public function getArticle($articleNumber) |
|
50 | |||
51 | 9 | public function getArticleCheckoutURL(Article $article, Customer $customer = null) |
|
59 | |||
60 | /** |
||
61 | * Get the checkout URL for an article. |
||
62 | * |
||
63 | * @param string $articleNumber Article number of the article to get the checkout URL. |
||
64 | * @param Customer $customer The customer for witch the checkout URL should be created. |
||
65 | * @return string |
||
66 | */ |
||
67 | 9 | public function getArticleNumberCheckoutURL($articleNumber, Customer $customer = null) |
|
76 | |||
77 | /** |
||
78 | * Get the checkout URL for an article. |
||
79 | * |
||
80 | * @deprecated Use getArticleNumberCheckoutURL |
||
81 | * |
||
82 | * @param string $articleNumber Article number of the article to get the checkout URL. |
||
83 | * @param Customer $customer The customer for witch the checkout URL should be created. |
||
84 | * @return string |
||
85 | */ |
||
86 | public function getCheckoutURL($articleNumber, Customer $customer = null) |
||
90 | |||
91 | /** |
||
92 | * Get the checkout URL of an article for a customer. |
||
93 | * |
||
94 | * @param string $customerHash The customer hash. |
||
95 | * @param string $articleNumber The article number. |
||
96 | * @return string |
||
97 | */ |
||
98 | 6 | protected function generateCheckoutURLForCustomer($customerHash, $articleNumber) |
|
107 | } |
||
108 |