|
| 1 | +<?php |
| 2 | + |
| 3 | +declare(strict_types=1); |
| 4 | +/** |
| 5 | + * This file has been auto generated |
| 6 | + * Do not change it. |
| 7 | + */ |
| 8 | + |
| 9 | +namespace Commercetools\Api\Models\Error; |
| 10 | + |
| 11 | +use Commercetools\Api\Models\Channel\ChannelResourceIdentifier; |
| 12 | +use Commercetools\Api\Models\CustomerGroup\CustomerGroupResourceIdentifier; |
| 13 | +use Commercetools\Api\Models\RecurrencePolicy\RecurrencePolicyReference; |
| 14 | +use Commercetools\Base\DateTimeImmutableCollection; |
| 15 | +use Commercetools\Base\JsonObject; |
| 16 | +use DateTimeImmutable; |
| 17 | + |
| 18 | +interface ExactLockConflictError extends ErrorObject |
| 19 | +{ |
| 20 | + public const FIELD_SKU = 'sku'; |
| 21 | + public const FIELD_CURRENCY = 'currency'; |
| 22 | + public const FIELD_COUNTRY = 'country'; |
| 23 | + public const FIELD_CUSTOMER_GROUP = 'customerGroup'; |
| 24 | + public const FIELD_CHANNEL = 'channel'; |
| 25 | + public const FIELD_VALID_FROM = 'validFrom'; |
| 26 | + public const FIELD_VALID_UNTIL = 'validUntil'; |
| 27 | + public const FIELD_RECURRENCE_POLICY = 'recurrencePolicy'; |
| 28 | + |
| 29 | + /** |
| 30 | +
|
| 31 | + * @return null|string |
| 32 | + */ |
| 33 | + public function getCode(); |
| 34 | + |
| 35 | + /** |
| 36 | + * <p><code>"Modification already in progress for the combination of SKU and price scope fields."</code></p> |
| 37 | + * |
| 38 | +
|
| 39 | + * @return null|string |
| 40 | + */ |
| 41 | + public function getMessage(); |
| 42 | + |
| 43 | + /** |
| 44 | + * <p>SKU for which the modification conflict occurred.</p> |
| 45 | + * |
| 46 | +
|
| 47 | + * @return null|string |
| 48 | + */ |
| 49 | + public function getSku(); |
| 50 | + |
| 51 | + /** |
| 52 | + * <p>Currency code of the Standalone Price.</p> |
| 53 | + * |
| 54 | +
|
| 55 | + * @return null|string |
| 56 | + */ |
| 57 | + public function getCurrency(); |
| 58 | + |
| 59 | + /** |
| 60 | + * <p>Country code of the geographic location.</p> |
| 61 | + * |
| 62 | +
|
| 63 | + * @return null|string |
| 64 | + */ |
| 65 | + public function getCountry(); |
| 66 | + |
| 67 | + /** |
| 68 | + * <p><a href="ctp:api:type:CustomerGroup">CustomerGroup</a> for which the Standalone Price is valid.</p> |
| 69 | + * |
| 70 | +
|
| 71 | + * @return null|CustomerGroupResourceIdentifier |
| 72 | + */ |
| 73 | + public function getCustomerGroup(); |
| 74 | + |
| 75 | + /** |
| 76 | + * <p><a href="ctp:api:type:Channel">Channel</a> for which the Standalone Price is valid.</p> |
| 77 | + * |
| 78 | +
|
| 79 | + * @return null|ChannelResourceIdentifier |
| 80 | + */ |
| 81 | + public function getChannel(); |
| 82 | + |
| 83 | + /** |
| 84 | + * <p>Date and time (UTC) from which the Standalone Price is valid.</p> |
| 85 | + * |
| 86 | +
|
| 87 | + * @return null|DateTimeImmutable |
| 88 | + */ |
| 89 | + public function getValidFrom(); |
| 90 | + |
| 91 | + /** |
| 92 | + * <p>Date and time (UTC) until which the Standalone Price is valid.</p> |
| 93 | + * |
| 94 | +
|
| 95 | + * @return null|DateTimeImmutable |
| 96 | + */ |
| 97 | + public function getValidUntil(); |
| 98 | + |
| 99 | + /** |
| 100 | + * <p><a href="ctp:api:type:RecurrencePolicy">RecurrencePolicy</a> that applies to the Standalone Price.</p> |
| 101 | + * |
| 102 | +
|
| 103 | + * @return null|RecurrencePolicyReference |
| 104 | + */ |
| 105 | + public function getRecurrencePolicy(); |
| 106 | + |
| 107 | + /** |
| 108 | + * @param ?string $message |
| 109 | + */ |
| 110 | + public function setMessage(?string $message): void; |
| 111 | + |
| 112 | + /** |
| 113 | + * @param ?string $sku |
| 114 | + */ |
| 115 | + public function setSku(?string $sku): void; |
| 116 | + |
| 117 | + /** |
| 118 | + * @param ?string $currency |
| 119 | + */ |
| 120 | + public function setCurrency(?string $currency): void; |
| 121 | + |
| 122 | + /** |
| 123 | + * @param ?string $country |
| 124 | + */ |
| 125 | + public function setCountry(?string $country): void; |
| 126 | + |
| 127 | + /** |
| 128 | + * @param ?CustomerGroupResourceIdentifier $customerGroup |
| 129 | + */ |
| 130 | + public function setCustomerGroup(?CustomerGroupResourceIdentifier $customerGroup): void; |
| 131 | + |
| 132 | + /** |
| 133 | + * @param ?ChannelResourceIdentifier $channel |
| 134 | + */ |
| 135 | + public function setChannel(?ChannelResourceIdentifier $channel): void; |
| 136 | + |
| 137 | + /** |
| 138 | + * @param ?DateTimeImmutable $validFrom |
| 139 | + */ |
| 140 | + public function setValidFrom(?DateTimeImmutable $validFrom): void; |
| 141 | + |
| 142 | + /** |
| 143 | + * @param ?DateTimeImmutable $validUntil |
| 144 | + */ |
| 145 | + public function setValidUntil(?DateTimeImmutable $validUntil): void; |
| 146 | + |
| 147 | + /** |
| 148 | + * @param ?RecurrencePolicyReference $recurrencePolicy |
| 149 | + */ |
| 150 | + public function setRecurrencePolicy(?RecurrencePolicyReference $recurrencePolicy): void; |
| 151 | +} |
0 commit comments