@@ -25,12 +25,24 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function getOrders(): Collection; |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @return AddressInterface |
|
| 30 | + */ |
|
| 28 | 31 | public function getDefaultAddress(): ?AddressInterface; |
| 29 | 32 | |
| 33 | + /** |
|
| 34 | + * @return void |
|
| 35 | + */ |
|
| 30 | 36 | public function setDefaultAddress(?AddressInterface $defaultAddress): void; |
| 31 | 37 | |
| 38 | + /** |
|
| 39 | + * @return void |
|
| 40 | + */ |
|
| 32 | 41 | public function addAddress(AddressInterface $address): void; |
| 33 | 42 | |
| 43 | + /** |
|
| 44 | + * @return void |
|
| 45 | + */ |
|
| 34 | 46 | public function removeAddress(AddressInterface $address): void; |
| 35 | 47 | |
| 36 | 48 | public function hasAddress(AddressInterface $address): bool; |
@@ -49,6 +61,7 @@ discard block |
||
| 49 | 61 | |
| 50 | 62 | /** |
| 51 | 63 | * @param ShopUserInterface|UserInterface|null $user |
| 64 | + * @return void |
|
| 52 | 65 | */ |
| 53 | 66 | public function setUser(?UserInterface $user); |
| 54 | 67 | } |
@@ -15,27 +15,63 @@ |
||
| 15 | 15 | |
| 16 | 16 | interface ShopBillingDataInterface |
| 17 | 17 | { |
| 18 | + /** |
|
| 19 | + * @return string|null |
|
| 20 | + */ |
|
| 18 | 21 | public function getTaxId(): ?string; |
| 19 | 22 | |
| 23 | + /** |
|
| 24 | + * @return void |
|
| 25 | + */ |
|
| 20 | 26 | public function setTaxId(?string $taxId): void; |
| 21 | 27 | |
| 28 | + /** |
|
| 29 | + * @return string|null |
|
| 30 | + */ |
|
| 22 | 31 | public function getCompany(): ?string; |
| 23 | 32 | |
| 33 | + /** |
|
| 34 | + * @return void |
|
| 35 | + */ |
|
| 24 | 36 | public function setCompany(?string $company): void; |
| 25 | 37 | |
| 38 | + /** |
|
| 39 | + * @return string|null |
|
| 40 | + */ |
|
| 26 | 41 | public function getCountryCode(): ?string; |
| 27 | 42 | |
| 43 | + /** |
|
| 44 | + * @return void |
|
| 45 | + */ |
|
| 28 | 46 | public function setCountryCode(?string $countryCode): void; |
| 29 | 47 | |
| 48 | + /** |
|
| 49 | + * @return string|null |
|
| 50 | + */ |
|
| 30 | 51 | public function getStreet(): ?string; |
| 31 | 52 | |
| 53 | + /** |
|
| 54 | + * @return void |
|
| 55 | + */ |
|
| 32 | 56 | public function setStreet(?string $street): void; |
| 33 | 57 | |
| 58 | + /** |
|
| 59 | + * @return string|null |
|
| 60 | + */ |
|
| 34 | 61 | public function getCity(): ?string; |
| 35 | 62 | |
| 63 | + /** |
|
| 64 | + * @return void |
|
| 65 | + */ |
|
| 36 | 66 | public function setCity(?string $city): void; |
| 37 | 67 | |
| 68 | + /** |
|
| 69 | + * @return string|null |
|
| 70 | + */ |
|
| 38 | 71 | public function getPostcode(): ?string; |
| 39 | 72 | |
| 73 | + /** |
|
| 74 | + * @return void |
|
| 75 | + */ |
|
| 40 | 76 | public function setPostcode(?string $postcode): void; |
| 41 | 77 | } |
@@ -18,15 +18,30 @@ |
||
| 18 | 18 | |
| 19 | 19 | interface CreateConfigurableProductPageInterface extends BaseCreatePageInterface |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function selectOption(string $optionName): void; |
| 22 | 25 | |
| 26 | + /** |
|
| 27 | + * @return void |
|
| 28 | + */ |
|
| 23 | 29 | public function specifyCode(string $code): void; |
| 24 | 30 | |
| 31 | + /** |
|
| 32 | + * @return void |
|
| 33 | + */ |
|
| 25 | 34 | public function nameItIn(string $name, string $localeCode): void; |
| 26 | 35 | |
| 27 | 36 | public function isMainTaxonChosen(string $taxonName): bool; |
| 28 | 37 | |
| 38 | + /** |
|
| 39 | + * @return void |
|
| 40 | + */ |
|
| 29 | 41 | public function selectMainTaxon(TaxonInterface $taxon): void; |
| 30 | 42 | |
| 43 | + /** |
|
| 44 | + * @return void |
|
| 45 | + */ |
|
| 31 | 46 | public function attachImage(string $path, ?string $type = null): void; |
| 32 | 47 | } |
@@ -19,42 +19,90 @@ |
||
| 19 | 19 | |
| 20 | 20 | interface CreateSimpleProductPageInterface extends BaseCreatePageInterface |
| 21 | 21 | { |
| 22 | + /** |
|
| 23 | + * @return void |
|
| 24 | + */ |
|
| 22 | 25 | public function specifyPrice(string $channelName, string $price): void; |
| 23 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 24 | 30 | public function specifyOriginalPrice(string $channelName, int $originalPrice): void; |
| 25 | 31 | |
| 32 | + /** |
|
| 33 | + * @return void |
|
| 34 | + */ |
|
| 26 | 35 | public function choosePricingCalculator(string $name): void; |
| 27 | 36 | |
| 37 | + /** |
|
| 38 | + * @return void |
|
| 39 | + */ |
|
| 28 | 40 | public function checkChannel(string $channelName): void; |
| 29 | 41 | |
| 42 | + /** |
|
| 43 | + * @return void |
|
| 44 | + */ |
|
| 30 | 45 | public function specifyCode(string $code): void; |
| 31 | 46 | |
| 47 | + /** |
|
| 48 | + * @return void |
|
| 49 | + */ |
|
| 32 | 50 | public function nameItIn(string $name, string $localeCode): void; |
| 33 | 51 | |
| 52 | + /** |
|
| 53 | + * @return void |
|
| 54 | + */ |
|
| 34 | 55 | public function specifySlugIn(?string $slug, string $locale): void; |
| 35 | 56 | |
| 57 | + /** |
|
| 58 | + * @return void |
|
| 59 | + */ |
|
| 36 | 60 | public function addAttribute(string $attributeName, string $value, string $localeCode): void; |
| 37 | 61 | |
| 38 | 62 | public function getAttributeValidationErrors(string $attributeName, string $localeCode): string; |
| 39 | 63 | |
| 64 | + /** |
|
| 65 | + * @return void |
|
| 66 | + */ |
|
| 40 | 67 | public function removeAttribute(string $attributeName, string $localeCode): void; |
| 41 | 68 | |
| 42 | 69 | public function isMainTaxonChosen(string $taxonName): bool; |
| 43 | 70 | |
| 71 | + /** |
|
| 72 | + * @return void |
|
| 73 | + */ |
|
| 44 | 74 | public function selectMainTaxon(TaxonInterface $taxon): void; |
| 45 | 75 | |
| 76 | + /** |
|
| 77 | + * @param string $type |
|
| 78 | + * |
|
| 79 | + * @return void |
|
| 80 | + */ |
|
| 46 | 81 | public function attachImage(string $path, ?string $type = null): void; |
| 47 | 82 | |
| 48 | 83 | /** |
| 49 | 84 | * @param string[] $productsNames |
| 85 | + * @return void |
|
| 50 | 86 | */ |
| 51 | 87 | public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames): void; |
| 52 | 88 | |
| 89 | + /** |
|
| 90 | + * @return void |
|
| 91 | + */ |
|
| 53 | 92 | public function removeAssociatedProduct(string $productName, ProductAssociationTypeInterface $productAssociationType): void; |
| 54 | 93 | |
| 94 | + /** |
|
| 95 | + * @return void |
|
| 96 | + */ |
|
| 55 | 97 | public function activateLanguageTab(string $locale): void; |
| 56 | 98 | |
| 99 | + /** |
|
| 100 | + * @return void |
|
| 101 | + */ |
|
| 57 | 102 | public function selectShippingCategory(string $shippingCategoryName): void; |
| 58 | 103 | |
| 104 | + /** |
|
| 105 | + * @return void |
|
| 106 | + */ |
|
| 59 | 107 | public function setShippingRequired(bool $isShippingRequired): void; |
| 60 | 108 | } |
@@ -25,43 +25,94 @@ |
||
| 25 | 25 | CurrenciesAwareInterface, |
| 26 | 26 | LocalesAwareInterface |
| 27 | 27 | { |
| 28 | + /** |
|
| 29 | + * @return CurrencyInterface |
|
| 30 | + */ |
|
| 28 | 31 | public function getBaseCurrency(): ?CurrencyInterface; |
| 29 | 32 | |
| 33 | + /** |
|
| 34 | + * @return void |
|
| 35 | + */ |
|
| 30 | 36 | public function setBaseCurrency(?CurrencyInterface $currency): void; |
| 31 | 37 | |
| 38 | + /** |
|
| 39 | + * @return LocaleInterface |
|
| 40 | + */ |
|
| 32 | 41 | public function getDefaultLocale(): ?LocaleInterface; |
| 33 | 42 | |
| 43 | + /** |
|
| 44 | + * @return void |
|
| 45 | + */ |
|
| 34 | 46 | public function setDefaultLocale(?LocaleInterface $locale): void; |
| 35 | 47 | |
| 48 | + /** |
|
| 49 | + * @return ZoneInterface |
|
| 50 | + */ |
|
| 36 | 51 | public function getDefaultTaxZone(): ?ZoneInterface; |
| 37 | 52 | |
| 53 | + /** |
|
| 54 | + * @return void |
|
| 55 | + */ |
|
| 38 | 56 | public function setDefaultTaxZone(?ZoneInterface $defaultTaxZone): void; |
| 39 | 57 | |
| 58 | + /** |
|
| 59 | + * @return string |
|
| 60 | + */ |
|
| 40 | 61 | public function getTaxCalculationStrategy(): ?string; |
| 41 | 62 | |
| 63 | + /** |
|
| 64 | + * @return void |
|
| 65 | + */ |
|
| 42 | 66 | public function setTaxCalculationStrategy(?string $taxCalculationStrategy): void; |
| 43 | 67 | |
| 68 | + /** |
|
| 69 | + * @return string |
|
| 70 | + */ |
|
| 44 | 71 | public function getThemeName(): ?string; |
| 45 | 72 | |
| 73 | + /** |
|
| 74 | + * @return void |
|
| 75 | + */ |
|
| 46 | 76 | public function setThemeName(?string $themeName): void; |
| 47 | 77 | |
| 78 | + /** |
|
| 79 | + * @return string |
|
| 80 | + */ |
|
| 48 | 81 | public function getContactEmail(): ?string; |
| 49 | 82 | |
| 83 | + /** |
|
| 84 | + * @return void |
|
| 85 | + */ |
|
| 50 | 86 | public function setContactEmail(?string $contactEmail): void; |
| 51 | 87 | |
| 52 | 88 | public function isSkippingShippingStepAllowed(): bool; |
| 53 | 89 | |
| 90 | + /** |
|
| 91 | + * @return void |
|
| 92 | + */ |
|
| 54 | 93 | public function setSkippingShippingStepAllowed(bool $skippingShippingStepAllowed): void; |
| 55 | 94 | |
| 56 | 95 | public function isSkippingPaymentStepAllowed(): bool; |
| 57 | 96 | |
| 97 | + /** |
|
| 98 | + * @return void |
|
| 99 | + */ |
|
| 58 | 100 | public function setSkippingPaymentStepAllowed(bool $skippingPaymentStepAllowed): void; |
| 59 | 101 | |
| 60 | 102 | public function isAccountVerificationRequired(): bool; |
| 61 | 103 | |
| 104 | + /** |
|
| 105 | + * @return void |
|
| 106 | + */ |
|
| 62 | 107 | public function setAccountVerificationRequired(bool $accountVerificationRequired): void; |
| 63 | 108 | |
| 109 | + /** |
|
| 110 | + * @return ShopBillingDataInterface|null |
|
| 111 | + */ |
|
| 64 | 112 | public function getShopBillingData(): ?ShopBillingDataInterface; |
| 65 | 113 | |
| 114 | + /** |
|
| 115 | + * @return void |
|
| 116 | + */ |
|
| 66 | 117 | public function setShopBillingData(ShopBillingDataInterface $shopBillingData): void; |
| 67 | 118 | } |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | } |
| 146 | 146 | } |
| 147 | 147 | } |
| 148 | -EOT; |
|
| 148 | +eot; |
|
| 149 | 149 | |
| 150 | 150 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 151 | 151 | |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | } |
| 175 | 175 | } |
| 176 | 176 | } |
| 177 | -EOT; |
|
| 177 | +eot; |
|
| 178 | 178 | |
| 179 | 179 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 180 | 180 | |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | } |
| 216 | 216 | } |
| 217 | 217 | } |
| 218 | -EOT; |
|
| 218 | +eot; |
|
| 219 | 219 | $this->client->request('PUT', $this->getProductUrl($product), [], [], static::$authorizedHeaderWithContentType, $data); |
| 220 | 220 | $response = $this->client->getResponse(); |
| 221 | 221 | |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | } |
| 242 | 242 | } |
| 243 | 243 | } |
| 244 | -EOT; |
|
| 244 | +eot; |
|
| 245 | 245 | $this->client->request('PATCH', $this->getProductUrl($product), [], [], static::$authorizedHeaderWithContentType, $data); |
| 246 | 246 | $response = $this->client->getResponse(); |
| 247 | 247 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -299,7 +299,7 @@ discard block |
||
| 299 | 299 | } |
| 300 | 300 | } |
| 301 | 301 | } |
| 302 | -EOT; |
|
| 302 | +eot; |
|
| 303 | 303 | |
| 304 | 304 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 305 | 305 | |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | } |
| 329 | 329 | } |
| 330 | 330 | } |
| 331 | -EOT; |
|
| 331 | +eot; |
|
| 332 | 332 | |
| 333 | 333 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 334 | 334 | |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | }, |
| 358 | 358 | "productTaxons": "category,mugs" |
| 359 | 359 | } |
| 360 | -EOT; |
|
| 360 | +eot; |
|
| 361 | 361 | |
| 362 | 362 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 363 | 363 | |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | } |
| 386 | 386 | } |
| 387 | 387 | } |
| 388 | -EOT; |
|
| 388 | +eot; |
|
| 389 | 389 | |
| 390 | 390 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 391 | 391 | |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | } |
| 426 | 426 | } |
| 427 | 427 | } |
| 428 | -EOT; |
|
| 428 | +eot; |
|
| 429 | 429 | |
| 430 | 430 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 431 | 431 | |
@@ -463,7 +463,7 @@ discard block |
||
| 463 | 463 | } |
| 464 | 464 | } |
| 465 | 465 | } |
| 466 | -EOT; |
|
| 466 | +eot; |
|
| 467 | 467 | |
| 468 | 468 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 469 | 469 | |
@@ -498,7 +498,7 @@ discard block |
||
| 498 | 498 | } |
| 499 | 499 | } |
| 500 | 500 | } |
| 501 | -EOT; |
|
| 501 | +eot; |
|
| 502 | 502 | |
| 503 | 503 | $this->client->request( |
| 504 | 504 | 'POST', |
@@ -541,7 +541,7 @@ discard block |
||
| 541 | 541 | } |
| 542 | 542 | } |
| 543 | 543 | } |
| 544 | -EOT; |
|
| 544 | +eot; |
|
| 545 | 545 | |
| 546 | 546 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
| 547 | 547 | |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | "channel": "WEB", |
| 130 | 130 | "localeCode": "en_US" |
| 131 | 131 | } |
| 132 | -EOT; |
|
| 132 | +eot; |
|
| 133 | 133 | |
| 134 | 134 | $this->client->request('POST', $this->getCartApiUrl(), [], [], static::$authorizedHeaderWithContentType, $data); |
| 135 | 135 | |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | "variant": "MUG_SW", |
| 291 | 291 | "quantity": 1 |
| 292 | 292 | } |
| 293 | -EOT; |
|
| 293 | +eot; |
|
| 294 | 294 | $this->client->request('POST', $this->getCartItemListUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data); |
| 295 | 295 | |
| 296 | 296 | $response = $this->client->getResponse(); |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | "variant": "MUG_SW", |
| 315 | 315 | "quantity": -1 |
| 316 | 316 | } |
| 317 | -EOT; |
|
| 317 | +eot; |
|
| 318 | 318 | $this->client->request('POST', $this->getCartItemListUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data); |
| 319 | 319 | |
| 320 | 320 | $response = $this->client->getResponse(); |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | "variant": "MUG_SW", |
| 339 | 339 | "quantity": 3 |
| 340 | 340 | } |
| 341 | -EOT; |
|
| 341 | +eot; |
|
| 342 | 342 | $this->client->request('POST', $this->getCartItemListUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data); |
| 343 | 343 | |
| 344 | 344 | $response = $this->client->getResponse(); |
@@ -362,7 +362,7 @@ discard block |
||
| 362 | 362 | "variant": "HARD_AVAILABLE_MUG", |
| 363 | 363 | "quantity": 1 |
| 364 | 364 | } |
| 365 | -EOT; |
|
| 365 | +eot; |
|
| 366 | 366 | $this->client->request('POST', $this->getCartItemListUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data); |
| 367 | 367 | |
| 368 | 368 | $response = $this->client->getResponse(); |
@@ -386,7 +386,7 @@ discard block |
||
| 386 | 386 | "variant": "HARD_AVAILABLE_MUG", |
| 387 | 387 | "quantity": 3 |
| 388 | 388 | } |
| 389 | -EOT; |
|
| 389 | +eot; |
|
| 390 | 390 | $this->client->request('POST', $this->getCartItemListUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data); |
| 391 | 391 | |
| 392 | 392 | $response = $this->client->getResponse(); |
@@ -422,7 +422,7 @@ discard block |
||
| 422 | 422 | { |
| 423 | 423 | "variant": "MUG_SW" |
| 424 | 424 | } |
| 425 | -EOT; |
|
| 425 | +eot; |
|
| 426 | 426 | |
| 427 | 427 | $this->client->request('PUT', $this->getCartItemUrl($cart, $cartItem), [], [], static::$authorizedHeaderWithContentType, $data); |
| 428 | 428 | |
@@ -448,7 +448,7 @@ discard block |
||
| 448 | 448 | { |
| 449 | 449 | "quantity": 3 |
| 450 | 450 | } |
| 451 | -EOT; |
|
| 451 | +eot; |
|
| 452 | 452 | $this->client->request('PUT', $this->getCartItemUrl($cart, $cartItem), [], [], static::$authorizedHeaderWithContentType, $data); |
| 453 | 453 | |
| 454 | 454 | $response = $this->client->getResponse(); |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | { |
| 479 | 479 | "quantity": 3 |
| 480 | 480 | } |
| 481 | -EOT; |
|
| 481 | +eot; |
|
| 482 | 482 | $this->client->request('PUT', $this->getCartItemUrl($cart, $cartItem), [], [], static::$authorizedHeaderWithContentType, $data); |
| 483 | 483 | |
| 484 | 484 | $response = $this->client->getResponse(); |
@@ -22,18 +22,21 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * @throws UnsupportedDriverActionException |
| 24 | 24 | * @throws DriverException |
| 25 | + * @return void |
|
| 25 | 26 | */ |
| 26 | 27 | public function authorize(); |
| 27 | 28 | |
| 28 | 29 | /** |
| 29 | 30 | * @throws UnsupportedDriverActionException |
| 30 | 31 | * @throws DriverException |
| 32 | + * @return void |
|
| 31 | 33 | */ |
| 32 | 34 | public function pay(); |
| 33 | 35 | |
| 34 | 36 | /** |
| 35 | 37 | * @throws UnsupportedDriverActionException |
| 36 | 38 | * @throws DriverException |
| 39 | + * @return void |
|
| 37 | 40 | */ |
| 38 | 41 | public function cancel(); |
| 39 | 42 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | ->setDescription('Install sample data into Sylius.') |
| 33 | 33 | ->setHelp(<<<EOT |
| 34 | 34 | The <info>%command.name%</info> command loads the sample data for Sylius. |
| 35 | -EOT |
|
| 35 | +eot |
|
| 36 | 36 | ) |
| 37 | 37 | ->addOption('fixture-suite', 's', InputOption::VALUE_OPTIONAL, 'Load specified fixture suite during install', null) |
| 38 | 38 | ; |