@@ -26,18 +26,30 @@ discard block |
||
26 | 26 | |
27 | 27 | public function hasShipment(string $shippingMethodName): bool; |
28 | 28 | |
29 | + /** |
|
30 | + * @return void |
|
31 | + */ |
|
29 | 32 | public function specifyTrackingCode(string $code): void; |
30 | 33 | |
31 | 34 | public function canShipOrder(OrderInterface $order): bool; |
32 | 35 | |
36 | + /** |
|
37 | + * @return void |
|
38 | + */ |
|
33 | 39 | public function shipOrder(OrderInterface $order): void; |
34 | 40 | |
35 | 41 | public function hasPayment(string $paymentMethodName): bool; |
36 | 42 | |
37 | 43 | public function canCompleteOrderLastPayment(OrderInterface $order): bool; |
38 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
39 | 48 | public function completeOrderLastPayment(OrderInterface $order): void; |
40 | 49 | |
50 | + /** |
|
51 | + * @return void |
|
52 | + */ |
|
41 | 53 | public function refundOrderLastPayment(OrderInterface $order): void; |
42 | 54 | |
43 | 55 | public function countItems(): int; |
@@ -90,8 +102,14 @@ discard block |
||
90 | 102 | |
91 | 103 | public function getShippingState(): string; |
92 | 104 | |
105 | + /** |
|
106 | + * @return void |
|
107 | + */ |
|
93 | 108 | public function cancelOrder(): void; |
94 | 109 | |
110 | + /** |
|
111 | + * @return void |
|
112 | + */ |
|
95 | 113 | public function deleteOrder(): void; |
96 | 114 | |
97 | 115 | public function hasNote(string $note): bool; |
@@ -33,6 +33,9 @@ |
||
33 | 33 | $this->specifyAddress($address, self::TYPE_SHIPPING); |
34 | 34 | } |
35 | 35 | |
36 | + /** |
|
37 | + * @param string $addressType |
|
38 | + */ |
|
36 | 39 | private function specifyAddress(AddressInterface $address, $addressType): void |
37 | 40 | { |
38 | 41 | $this->specifyElementValue($addressType . '_first_name', $address->getFirstName()); |
@@ -18,8 +18,14 @@ |
||
18 | 18 | |
19 | 19 | interface UpdatePageInterface extends BaseUpdatePageInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function specifyShippingAddress(AddressInterface $address): void; |
22 | 25 | |
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
23 | 29 | public function specifyBillingAddress(AddressInterface $address): void; |
24 | 30 | |
25 | 31 | public function checkValidationMessageFor(string $element, string $message): bool; |
@@ -17,28 +17,64 @@ |
||
17 | 17 | |
18 | 18 | interface CreatePageInterface extends BaseCreatePageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function enable(): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function disable(): void; |
23 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
24 | 33 | public function nameIt(string $name, string $languageCode): void; |
25 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
26 | 38 | public function specifyCode(string $code): void; |
27 | 39 | |
40 | + /** |
|
41 | + * @return void |
|
42 | + */ |
|
28 | 43 | public function checkChannel(string $channelName): void; |
29 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
30 | 48 | public function describeIt(string $description, string $languageCode): void; |
31 | 49 | |
50 | + /** |
|
51 | + * @return void |
|
52 | + */ |
|
32 | 53 | public function setInstructions(string $instructions, string $languageCode): void; |
33 | 54 | |
55 | + /** |
|
56 | + * @return void |
|
57 | + */ |
|
34 | 58 | public function setPaypalGatewayUsername(string $username): void; |
35 | 59 | |
60 | + /** |
|
61 | + * @return void |
|
62 | + */ |
|
36 | 63 | public function setPaypalGatewayPassword(string $password): void; |
37 | 64 | |
65 | + /** |
|
66 | + * @return void |
|
67 | + */ |
|
38 | 68 | public function setPaypalGatewaySignature(string $signature): void; |
39 | 69 | |
70 | + /** |
|
71 | + * @return void |
|
72 | + */ |
|
40 | 73 | public function setStripeSecretKey(string $secretKey): void; |
41 | 74 | |
75 | + /** |
|
76 | + * @return void |
|
77 | + */ |
|
42 | 78 | public function setStripePublishableKey(string $publishableKey): void; |
43 | 79 | |
44 | 80 | public function isCodeDisabled(): bool; |
@@ -17,16 +17,34 @@ |
||
17 | 17 | |
18 | 18 | interface UpdatePageInterface extends BaseUpdatePageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function enable(): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function disable(): void; |
23 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
24 | 33 | public function nameIt(string $name, string $languageCode): void; |
25 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
26 | 38 | public function setPaypalGatewayUsername(string $username): void; |
27 | 39 | |
40 | + /** |
|
41 | + * @return void |
|
42 | + */ |
|
28 | 43 | public function setPaypalGatewayPassword(string $password): void; |
29 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
30 | 48 | public function setPaypalGatewaySignature(string $signature): void; |
31 | 49 | |
32 | 50 | public function isCodeDisabled(): bool; |
@@ -17,14 +17,24 @@ |
||
17 | 17 | |
18 | 18 | interface CreateConfigurableProductPageInterface extends BaseCreatePageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function selectOption(string $optionName): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function specifyCode(string $code): void; |
23 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
24 | 33 | public function nameItIn(string $name, string $localeCode): void; |
25 | 34 | |
26 | 35 | /** |
27 | 36 | * @param string $type |
37 | + * @return void |
|
28 | 38 | */ |
29 | 39 | public function attachImage(string $path, string $type = null): void; |
30 | 40 | } |
@@ -18,41 +18,82 @@ |
||
18 | 18 | |
19 | 19 | interface CreateSimpleProductPageInterface extends BaseCreatePageInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function specifyPrice(string $channelName, string $price): void; |
22 | 25 | |
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
23 | 29 | public function specifyOriginalPrice(string $channelName, int $originalPrice): void; |
24 | 30 | |
31 | + /** |
|
32 | + * @return void |
|
33 | + */ |
|
25 | 34 | public function choosePricingCalculator(string $name): void; |
26 | 35 | |
36 | + /** |
|
37 | + * @return void |
|
38 | + */ |
|
27 | 39 | public function checkChannel(string $channelName): void; |
28 | 40 | |
41 | + /** |
|
42 | + * @return void |
|
43 | + */ |
|
29 | 44 | public function specifyCode(string $code): void; |
30 | 45 | |
46 | + /** |
|
47 | + * @return void |
|
48 | + */ |
|
31 | 49 | public function nameItIn(string $name, string $localeCode): void; |
32 | 50 | |
51 | + /** |
|
52 | + * @return void |
|
53 | + */ |
|
33 | 54 | public function specifySlugIn(?string $slug, string $locale): void; |
34 | 55 | |
56 | + /** |
|
57 | + * @return void |
|
58 | + */ |
|
35 | 59 | public function addAttribute(string $attributeName, string $value, string $localeCode): void; |
36 | 60 | |
37 | 61 | public function getAttributeValidationErrors(string $attributeName, string $localeCode): string; |
38 | 62 | |
63 | + /** |
|
64 | + * @return void |
|
65 | + */ |
|
39 | 66 | public function removeAttribute(string $attributeName, string $localeCode): void; |
40 | 67 | |
41 | 68 | /** |
42 | 69 | * @param string $type |
70 | + * @return void |
|
43 | 71 | */ |
44 | 72 | public function attachImage(string $path, string $type = null): void; |
45 | 73 | |
46 | 74 | /** |
47 | 75 | * @param string[] $productsNames |
76 | + * @return void |
|
48 | 77 | */ |
49 | 78 | public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames): void; |
50 | 79 | |
80 | + /** |
|
81 | + * @return void |
|
82 | + */ |
|
51 | 83 | public function removeAssociatedProduct(string $productName, ProductAssociationTypeInterface $productAssociationType): void; |
52 | 84 | |
85 | + /** |
|
86 | + * @return void |
|
87 | + */ |
|
53 | 88 | public function activateLanguageTab(string $locale): void; |
54 | 89 | |
90 | + /** |
|
91 | + * @return void |
|
92 | + */ |
|
55 | 93 | public function selectShippingCategory(string $shippingCategoryName): void; |
56 | 94 | |
95 | + /** |
|
96 | + * @return void |
|
97 | + */ |
|
57 | 98 | public function setShippingRequired(bool $isShippingRequired): void; |
58 | 99 | } |
@@ -17,6 +17,9 @@ |
||
17 | 17 | |
18 | 18 | interface IndexPageInterface extends CrudIndexPageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function filterByTaxon(string $taxonName): void; |
21 | 24 | |
22 | 25 | public function hasProductAccessibleImage(string $productCode): bool; |
@@ -19,7 +19,13 @@ |
||
19 | 19 | { |
20 | 20 | public function hasProductsInOrder(array $productNames): bool; |
21 | 21 | |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function setPositionOfProduct(string $productName, int $position): void; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function savePositions(): void; |
25 | 31 | } |