src/Model/Message/ParcelAddedToDeliveryMessage.php 1 location
|
@@ 33-45 (lines=13) @@
|
30 |
|
* @method Parcel getParcel() |
31 |
|
* @method ParcelAddedToDeliveryMessage setParcel(Parcel $parcel = null) |
32 |
|
*/ |
33 |
|
class ParcelAddedToDeliveryMessage extends Message |
34 |
|
{ |
35 |
|
const MESSAGE_TYPE = 'ParcelAddedToDelivery'; |
36 |
|
|
37 |
|
public function fieldDefinitions() |
38 |
|
{ |
39 |
|
$definitions = parent::fieldDefinitions(); |
40 |
|
$definitions['delivery'] = [static::TYPE => '\Commercetools\Core\Model\Order\Delivery']; |
41 |
|
$definitions['parcel'] = [static::TYPE => '\Commercetools\Core\Model\Order\Parcel']; |
42 |
|
|
43 |
|
return $definitions; |
44 |
|
} |
45 |
|
} |
46 |
|
|
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 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/OutOfStockError.php 1 location
|
@@ 18-29 (lines=12) @@
|
15 |
|
* @method array getLineItems() |
16 |
|
* @method OutOfStockError setLineItems(array $lineItems = null) |
17 |
|
*/ |
18 |
|
class OutOfStockError extends ApiError |
19 |
|
{ |
20 |
|
const CODE = 'OutOfStock'; |
21 |
|
|
22 |
|
public function fieldDefinitions() |
23 |
|
{ |
24 |
|
$definitions = parent::fieldDefinitions(); |
25 |
|
$definitions['lineItems'] = [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 |
|
|