src/Model/ProductType/EnumType.php 1 location
|
@@ 18-34 (lines=17) @@
|
| 15 |
|
* @method EnumCollection getValues() |
| 16 |
|
* @method EnumType setValues(EnumCollection $values = null) |
| 17 |
|
*/ |
| 18 |
|
class EnumType extends AttributeType |
| 19 |
|
{ |
| 20 |
|
const NAME = 'enum'; |
| 21 |
|
|
| 22 |
|
public function fieldDefinitions() |
| 23 |
|
{ |
| 24 |
|
$definitions = parent::fieldDefinitions(); |
| 25 |
|
$definitions['values'] = [static::TYPE => '\Commercetools\Core\Model\Common\EnumCollection']; |
| 26 |
|
|
| 27 |
|
return $definitions; |
| 28 |
|
} |
| 29 |
|
|
| 30 |
|
public function fieldTypeDefinition() |
| 31 |
|
{ |
| 32 |
|
return [static::TYPE => '\Commercetools\Core\Model\Common\Enum']; |
| 33 |
|
} |
| 34 |
|
} |
| 35 |
|
|
src/Model/ProductType/LocalizedEnumType.php 1 location
|
@@ 18-34 (lines=17) @@
|
| 15 |
|
* @method LocalizedEnumCollection getValues() |
| 16 |
|
* @method LocalizedEnumType setValues(LocalizedEnumCollection $values = null) |
| 17 |
|
*/ |
| 18 |
|
class LocalizedEnumType extends AttributeType |
| 19 |
|
{ |
| 20 |
|
const NAME = 'lenum'; |
| 21 |
|
|
| 22 |
|
public function fieldDefinitions() |
| 23 |
|
{ |
| 24 |
|
$definitions = parent::fieldDefinitions(); |
| 25 |
|
$definitions['values'] = [static::TYPE => '\Commercetools\Core\Model\Common\LocalizedEnumCollection']; |
| 26 |
|
|
| 27 |
|
return $definitions; |
| 28 |
|
} |
| 29 |
|
|
| 30 |
|
public function fieldTypeDefinition() |
| 31 |
|
{ |
| 32 |
|
return [static::TYPE => '\Commercetools\Core\Model\Common\LocalizedEnum']; |
| 33 |
|
} |
| 34 |
|
} |
| 35 |
|
|
src/Model/ProductType/ReferenceType.php 1 location
|
@@ 16-32 (lines=17) @@
|
| 13 |
|
* @method string getReferenceTypeId() |
| 14 |
|
* @method ReferenceType setReferenceTypeId(string $referenceTypeId = null) |
| 15 |
|
*/ |
| 16 |
|
class ReferenceType extends AttributeType |
| 17 |
|
{ |
| 18 |
|
const NAME = 'reference'; |
| 19 |
|
|
| 20 |
|
public function fieldDefinitions() |
| 21 |
|
{ |
| 22 |
|
$definitions = parent::fieldDefinitions(); |
| 23 |
|
$definitions['referenceTypeId'] = [static::TYPE => 'string']; |
| 24 |
|
|
| 25 |
|
return $definitions; |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
public function fieldTypeDefinition() |
| 29 |
|
{ |
| 30 |
|
return [static::TYPE => '\Commercetools\Core\Model\Common\Reference']; |
| 31 |
|
} |
| 32 |
|
} |
| 33 |
|
|
src/Model/Type/EnumType.php 1 location
|
@@ 18-34 (lines=17) @@
|
| 15 |
|
* @method EnumCollection getValues() |
| 16 |
|
* @method EnumType setValues(EnumCollection $values = null) |
| 17 |
|
*/ |
| 18 |
|
class EnumType extends FieldType |
| 19 |
|
{ |
| 20 |
|
const NAME = 'Enum'; |
| 21 |
|
|
| 22 |
|
public function fieldDefinitions() |
| 23 |
|
{ |
| 24 |
|
$definitions = parent::fieldDefinitions(); |
| 25 |
|
$definitions['values'] = [static::TYPE => '\Commercetools\Core\Model\Common\EnumCollection']; |
| 26 |
|
|
| 27 |
|
return $definitions; |
| 28 |
|
} |
| 29 |
|
|
| 30 |
|
public function fieldTypeDefinition() |
| 31 |
|
{ |
| 32 |
|
return [static::TYPE => '\Commercetools\Core\Model\Common\Enum']; |
| 33 |
|
} |
| 34 |
|
} |
| 35 |
|
|
src/Model/Type/LocalizedEnumType.php 1 location
|
@@ 18-34 (lines=17) @@
|
| 15 |
|
* @method LocalizedEnumCollection getValues() |
| 16 |
|
* @method LocalizedEnumType setValues(LocalizedEnumCollection $values = null) |
| 17 |
|
*/ |
| 18 |
|
class LocalizedEnumType extends FieldType |
| 19 |
|
{ |
| 20 |
|
const NAME = 'LocalizedEnum'; |
| 21 |
|
|
| 22 |
|
public function fieldDefinitions() |
| 23 |
|
{ |
| 24 |
|
$definitions = parent::fieldDefinitions(); |
| 25 |
|
$definitions['values'] = [static::TYPE => '\Commercetools\Core\Model\Common\LocalizedEnumCollection']; |
| 26 |
|
|
| 27 |
|
return $definitions; |
| 28 |
|
} |
| 29 |
|
|
| 30 |
|
public function fieldTypeDefinition() |
| 31 |
|
{ |
| 32 |
|
return [static::TYPE => '\Commercetools\Core\Model\Common\LocalizedEnum']; |
| 33 |
|
} |
| 34 |
|
} |
| 35 |
|
|
src/Model/Type/ReferenceType.php 1 location
|
@@ 16-32 (lines=17) @@
|
| 13 |
|
* @method string getReferenceTypeId() |
| 14 |
|
* @method ReferenceType setReferenceTypeId(string $referenceTypeId = null) |
| 15 |
|
*/ |
| 16 |
|
class ReferenceType extends FieldType |
| 17 |
|
{ |
| 18 |
|
const NAME = 'Reference'; |
| 19 |
|
|
| 20 |
|
public function fieldDefinitions() |
| 21 |
|
{ |
| 22 |
|
$definitions = parent::fieldDefinitions(); |
| 23 |
|
$definitions['referenceTypeId'] = [static::TYPE => 'string']; |
| 24 |
|
|
| 25 |
|
return $definitions; |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
public function fieldTypeDefinition() |
| 29 |
|
{ |
| 30 |
|
return [static::TYPE => '\Commercetools\Core\Model\Common\Reference']; |
| 31 |
|
} |
| 32 |
|
} |
| 33 |
|
|
src/Error/ConcurrentModificationError.php 1 location
|
@@ 18-29 (lines=12) @@
|
| 15 |
|
* @method int getCurrentVersion() |
| 16 |
|
* @method ConcurrentModificationError setCurrentVersion(int $currentVersion = null) |
| 17 |
|
*/ |
| 18 |
|
class ConcurrentModificationError extends ApiError |
| 19 |
|
{ |
| 20 |
|
const CODE = 'ConcurrentModification'; |
| 21 |
|
|
| 22 |
|
public function fieldDefinitions() |
| 23 |
|
{ |
| 24 |
|
$definitions = parent::fieldDefinitions(); |
| 25 |
|
$definitions['currentVersion'] = [static::TYPE => 'int']; |
| 26 |
|
|
| 27 |
|
return $definitions; |
| 28 |
|
} |
| 29 |
|
} |
| 30 |
|
|
src/Error/DuplicateAttributeValueError.php 1 location
|
@@ 20-31 (lines=12) @@
|
| 17 |
|
* @method Attribute getAttribute() |
| 18 |
|
* @method DuplicateAttributeValueError setAttribute(Attribute $attribute = null) |
| 19 |
|
*/ |
| 20 |
|
class DuplicateAttributeValueError extends ApiError |
| 21 |
|
{ |
| 22 |
|
const CODE = 'DuplicateAttributeValue'; |
| 23 |
|
|
| 24 |
|
public function fieldDefinitions() |
| 25 |
|
{ |
| 26 |
|
$definitions = parent::fieldDefinitions(); |
| 27 |
|
$definitions['attribute'] = [static::TYPE => '\Commercetools\Core\Model\Common\Attribute']; |
| 28 |
|
|
| 29 |
|
return $definitions; |
| 30 |
|
} |
| 31 |
|
} |
| 32 |
|
|
src/Error/DuplicateAttributeValuesError.php 1 location
|
@@ 20-31 (lines=12) @@
|
| 17 |
|
* @method AttributeCollection getAttributes() |
| 18 |
|
* @method DuplicateAttributeValuesError setAttributes(AttributeCollection $attributes = null) |
| 19 |
|
*/ |
| 20 |
|
class DuplicateAttributeValuesError extends ApiError |
| 21 |
|
{ |
| 22 |
|
const CODE = 'DuplicateAttributeValues'; |
| 23 |
|
|
| 24 |
|
public function fieldDefinitions() |
| 25 |
|
{ |
| 26 |
|
$definitions = parent::fieldDefinitions(); |
| 27 |
|
$definitions['attributes'] = [static::TYPE => '\Commercetools\Core\Model\Common\AttributeCollection']; |
| 28 |
|
|
| 29 |
|
return $definitions; |
| 30 |
|
} |
| 31 |
|
} |
| 32 |
|
|
src/Error/DuplicateFieldError.php 1 location
|
@@ 20-32 (lines=13) @@
|
| 17 |
|
* @method mixed getDuplicateValue() |
| 18 |
|
* @method DuplicateFieldError setDuplicateValue($duplicateValue = null) |
| 19 |
|
*/ |
| 20 |
|
class DuplicateFieldError extends ApiError |
| 21 |
|
{ |
| 22 |
|
const CODE = 'DuplicateField'; |
| 23 |
|
|
| 24 |
|
public function fieldDefinitions() |
| 25 |
|
{ |
| 26 |
|
$definitions = parent::fieldDefinitions(); |
| 27 |
|
$definitions['field'] = [static::TYPE => 'string']; |
| 28 |
|
$definitions['duplicateValue'] = [static::TYPE => null]; |
| 29 |
|
|
| 30 |
|
return $definitions; |
| 31 |
|
} |
| 32 |
|
} |
| 33 |
|
|
src/Error/DuplicatePriceScopeError.php 1 location
|
@@ 20-31 (lines=12) @@
|
| 17 |
|
* @method PriceCollection getConflictingPrices() |
| 18 |
|
* @method DuplicatePriceScopeError setConflictingPrices(PriceCollection $conflictingPrices = null) |
| 19 |
|
*/ |
| 20 |
|
class DuplicatePriceScopeError extends ApiError |
| 21 |
|
{ |
| 22 |
|
const CODE = 'DuplicatePriceScope'; |
| 23 |
|
|
| 24 |
|
public function fieldDefinitions() |
| 25 |
|
{ |
| 26 |
|
$definitions = parent::fieldDefinitions(); |
| 27 |
|
$definitions['conflictingPrices'] = [static::TYPE => '\Commercetools\Core\Model\Common\PriceCollection']; |
| 28 |
|
|
| 29 |
|
return $definitions; |
| 30 |
|
} |
| 31 |
|
} |
| 32 |
|
|
src/Error/DuplicateVariantValuesError.php 1 location
|
@@ 18-29 (lines=12) @@
|
| 15 |
|
* @method array getVariantValues() |
| 16 |
|
* @method DuplicateVariantValuesError setVariantValues(array $variantValues = null) |
| 17 |
|
*/ |
| 18 |
|
class DuplicateVariantValuesError extends ApiError |
| 19 |
|
{ |
| 20 |
|
const CODE = 'DuplicateVariantValues'; |
| 21 |
|
|
| 22 |
|
public function fieldDefinitions() |
| 23 |
|
{ |
| 24 |
|
$definitions = parent::fieldDefinitions(); |
| 25 |
|
$definitions['variantValues'] = [static::TYPE => 'array']; |
| 26 |
|
|
| 27 |
|
return $definitions; |
| 28 |
|
} |
| 29 |
|
} |
| 30 |
|
|
src/Error/PriceChangedError.php 1 location
|
@@ 20-32 (lines=13) @@
|
| 17 |
|
* @method bool getShipping() |
| 18 |
|
* @method PriceChangedError setShipping(bool $shipping = null) |
| 19 |
|
*/ |
| 20 |
|
class PriceChangedError extends ApiError |
| 21 |
|
{ |
| 22 |
|
const CODE = 'PriceChanged'; |
| 23 |
|
|
| 24 |
|
public function fieldDefinitions() |
| 25 |
|
{ |
| 26 |
|
$definitions = parent::fieldDefinitions(); |
| 27 |
|
$definitions['lineItems'] = [static::TYPE => 'array']; |
| 28 |
|
$definitions['shipping'] = [static::TYPE => 'bool']; |
| 29 |
|
|
| 30 |
|
return $definitions; |
| 31 |
|
} |
| 32 |
|
} |
| 33 |
|
|
src/Error/RequiredFieldError.php 1 location
|
@@ 18-29 (lines=12) @@
|
| 15 |
|
* @method string getField() |
| 16 |
|
* @method RequiredFieldError setField(string $field = null) |
| 17 |
|
*/ |
| 18 |
|
class RequiredFieldError extends ApiError |
| 19 |
|
{ |
| 20 |
|
const CODE = 'RequiredField'; |
| 21 |
|
|
| 22 |
|
public function fieldDefinitions() |
| 23 |
|
{ |
| 24 |
|
$definitions = parent::fieldDefinitions(); |
| 25 |
|
$definitions['field'] = [static::TYPE => 'string']; |
| 26 |
|
|
| 27 |
|
return $definitions; |
| 28 |
|
} |
| 29 |
|
} |
| 30 |
|
|
src/Model/Message/ParcelAddedToDeliveryMessage.php 1 location
|
@@ 37-49 (lines=13) @@
|
| 34 |
|
* @method DateTimeDecorator getLastModifiedAt() |
| 35 |
|
* @method ParcelAddedToDeliveryMessage setLastModifiedAt(\DateTime $lastModifiedAt = null) |
| 36 |
|
*/ |
| 37 |
|
class ParcelAddedToDeliveryMessage extends Message |
| 38 |
|
{ |
| 39 |
|
const MESSAGE_TYPE = 'ParcelAddedToDelivery'; |
| 40 |
|
|
| 41 |
|
public function fieldDefinitions() |
| 42 |
|
{ |
| 43 |
|
$definitions = parent::fieldDefinitions(); |
| 44 |
|
$definitions['delivery'] = [static::TYPE => '\Commercetools\Core\Model\Order\Delivery']; |
| 45 |
|
$definitions['parcel'] = [static::TYPE => '\Commercetools\Core\Model\Order\Parcel']; |
| 46 |
|
|
| 47 |
|
return $definitions; |
| 48 |
|
} |
| 49 |
|
} |
| 50 |
|
|
src/Model/Message/StateTransitionMessage.php 1 location
|
@@ 8-18 (lines=11) @@
|
| 5 |
|
|
| 6 |
|
namespace Commercetools\Core\Model\Message; |
| 7 |
|
|
| 8 |
|
abstract class StateTransitionMessage extends Message |
| 9 |
|
{ |
| 10 |
|
public function fieldDefinitions() |
| 11 |
|
{ |
| 12 |
|
$definitions = parent::fieldDefinitions(); |
| 13 |
|
$definitions['state'] = [static::TYPE => '\Commercetools\Core\Model\State\StateReference']; |
| 14 |
|
$definitions['force'] = [static::TYPE => 'bool']; |
| 15 |
|
|
| 16 |
|
return $definitions; |
| 17 |
|
} |
| 18 |
|
} |
| 19 |
|
|
src/Model/Message/ReviewCreatedMessage.php 1 location
|
@@ 34-45 (lines=12) @@
|
| 31 |
|
* @method Review getReview() |
| 32 |
|
* @method ReviewCreatedMessage setReview(Review $review = null) |
| 33 |
|
*/ |
| 34 |
|
class ReviewCreatedMessage extends Message |
| 35 |
|
{ |
| 36 |
|
const MESSAGE_TYPE = 'ReviewCreated'; |
| 37 |
|
|
| 38 |
|
public function fieldDefinitions() |
| 39 |
|
{ |
| 40 |
|
$definitions = parent::fieldDefinitions(); |
| 41 |
|
$definitions['review'] = [static::TYPE => '\Commercetools\Core\Model\Review\Review']; |
| 42 |
|
|
| 43 |
|
return $definitions; |
| 44 |
|
} |
| 45 |
|
} |
| 46 |
|
|
src/Model/ProductType/NestedType.php 1 location
|
@@ 16-32 (lines=17) @@
|
| 13 |
|
* @method ProductTypeReference getTypeReference() |
| 14 |
|
* @method NestedType setTypeReference(ProductTypeReference $typeReference = null) |
| 15 |
|
*/ |
| 16 |
|
class NestedType extends AttributeType |
| 17 |
|
{ |
| 18 |
|
const NAME = 'nested'; |
| 19 |
|
|
| 20 |
|
public function fieldDefinitions() |
| 21 |
|
{ |
| 22 |
|
$definitions = parent::fieldDefinitions(); |
| 23 |
|
$definitions['typeReference'] = [static::TYPE => '\Commercetools\Core\Model\ProductType\ProductTypeReference']; |
| 24 |
|
|
| 25 |
|
return $definitions; |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
public function fieldTypeDefinition() |
| 29 |
|
{ |
| 30 |
|
return [static::TYPE => '\Commercetools\Core\Model\Common\AttributeCollection']; |
| 31 |
|
} |
| 32 |
|
} |
| 33 |
|
|
src/Error/OutOfStockError.php 1 location
|
@@ 20-32 (lines=13) @@
|
| 17 |
|
* @method array getSkus() |
| 18 |
|
* @method OutOfStockError setSkus(array $skus = null) |
| 19 |
|
*/ |
| 20 |
|
class OutOfStockError extends ApiError |
| 21 |
|
{ |
| 22 |
|
const CODE = 'OutOfStock'; |
| 23 |
|
|
| 24 |
|
public function fieldDefinitions() |
| 25 |
|
{ |
| 26 |
|
$definitions = parent::fieldDefinitions(); |
| 27 |
|
$definitions['lineItems'] = [static::TYPE => 'array']; |
| 28 |
|
$definitions['skus'] = [static::TYPE => 'array']; |
| 29 |
|
|
| 30 |
|
return $definitions; |
| 31 |
|
} |
| 32 |
|
} |
| 33 |
|
|
src/Model/Message/OrderBillingAddressSetMessage.php 1 location
|
@@ 35-46 (lines=12) @@
|
| 32 |
|
* @method Address getAddress() |
| 33 |
|
* @method OrderBillingAddressSetMessage setAddress(Address $address = null) |
| 34 |
|
*/ |
| 35 |
|
class OrderBillingAddressSetMessage extends Message |
| 36 |
|
{ |
| 37 |
|
const MESSAGE_TYPE = 'OrderBillingAddressSet'; |
| 38 |
|
|
| 39 |
|
public function fieldDefinitions() |
| 40 |
|
{ |
| 41 |
|
$definitions = parent::fieldDefinitions(); |
| 42 |
|
$definitions['address'] = [static::TYPE => '\Commercetools\Core\Model\Common\Address']; |
| 43 |
|
|
| 44 |
|
return $definitions; |
| 45 |
|
} |
| 46 |
|
} |
| 47 |
|
|
src/Model/Message/OrderCustomerEmailSetMessage.php 1 location
|
@@ 34-45 (lines=12) @@
|
| 31 |
|
* @method string getEmail() |
| 32 |
|
* @method OrderCustomerEmailSetMessage setEmail(string $email = null) |
| 33 |
|
*/ |
| 34 |
|
class OrderCustomerEmailSetMessage extends Message |
| 35 |
|
{ |
| 36 |
|
const MESSAGE_TYPE = 'OrderCustomerEmailSet'; |
| 37 |
|
|
| 38 |
|
public function fieldDefinitions() |
| 39 |
|
{ |
| 40 |
|
$definitions = parent::fieldDefinitions(); |
| 41 |
|
$definitions['email'] = [static::TYPE => 'string']; |
| 42 |
|
|
| 43 |
|
return $definitions; |
| 44 |
|
} |
| 45 |
|
} |
| 46 |
|
|
src/Model/Message/OrderShippingAddressSetMessage.php 1 location
|
@@ 35-46 (lines=12) @@
|
| 32 |
|
* @method Address getAddress() |
| 33 |
|
* @method OrderShippingAddressSetMessage setAddress(Address $address = null) |
| 34 |
|
*/ |
| 35 |
|
class OrderShippingAddressSetMessage extends Message |
| 36 |
|
{ |
| 37 |
|
const MESSAGE_TYPE = 'OrderShippingAddressSet'; |
| 38 |
|
|
| 39 |
|
public function fieldDefinitions() |
| 40 |
|
{ |
| 41 |
|
$definitions = parent::fieldDefinitions(); |
| 42 |
|
$definitions['address'] = [static::TYPE => '\Commercetools\Core\Model\Common\Address']; |
| 43 |
|
|
| 44 |
|
return $definitions; |
| 45 |
|
} |
| 46 |
|
} |
| 47 |
|
|
src/Model/Message/InventoryEntryDeletedMessage.php 1 location
|
@@ 37-49 (lines=13) @@
|
| 34 |
|
* @method ChannelReference getSupplyChannel() |
| 35 |
|
* @method InventoryEntryDeletedMessage setSupplyChannel(ChannelReference $supplyChannel = null) |
| 36 |
|
*/ |
| 37 |
|
class InventoryEntryDeletedMessage extends Message |
| 38 |
|
{ |
| 39 |
|
const MESSAGE_TYPE = 'InventoryEntryDeleted'; |
| 40 |
|
|
| 41 |
|
public function fieldDefinitions() |
| 42 |
|
{ |
| 43 |
|
$definitions = parent::fieldDefinitions(); |
| 44 |
|
$definitions['sku'] = [static::TYPE => 'string']; |
| 45 |
|
$definitions['supplyChannel'] = [static::TYPE => '\Commercetools\Core\Model\Channel\ChannelReference']; |
| 46 |
|
|
| 47 |
|
return $definitions; |
| 48 |
|
} |
| 49 |
|
} |
| 50 |
|
|
src/Model/Subscription/ResourceUpdatedDelivery.php 1 location
|
@@ 23-32 (lines=10) @@
|
| 20 |
|
* @method int getOldVersion() |
| 21 |
|
* @method ResourceUpdatedDelivery setOldVersion(int $oldVersion = null) |
| 22 |
|
*/ |
| 23 |
|
class ResourceUpdatedDelivery extends Delivery |
| 24 |
|
{ |
| 25 |
|
public function fieldDefinitions() |
| 26 |
|
{ |
| 27 |
|
$definition = parent::fieldDefinitions(); |
| 28 |
|
$definition['version'] = [static::TYPE => 'int']; |
| 29 |
|
$definition['oldVersion'] = [static::TYPE => 'int']; |
| 30 |
|
return $definition; |
| 31 |
|
} |
| 32 |
|
} |
| 33 |
|
|