src/Core/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/Core/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 => Attribute::class]; |
28 |
|
|
29 |
|
return $definitions; |
30 |
|
} |
31 |
|
} |
32 |
|
|
src/Core/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 => AttributeCollection::class]; |
28 |
|
|
29 |
|
return $definitions; |
30 |
|
} |
31 |
|
} |
32 |
|
|
src/Core/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/Core/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 => PriceCollection::class]; |
28 |
|
|
29 |
|
return $definitions; |
30 |
|
} |
31 |
|
} |
32 |
|
|
src/Core/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/Core/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/Core/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/Core/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/Core/Model/Message/CategoryCreatedMessage.php 1 location
|
@@ 35-46 (lines=12) @@
|
32 |
|
* @method DateTimeDecorator getLastModifiedAt() |
33 |
|
* @method CategoryCreatedMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
34 |
|
*/ |
35 |
|
class CategoryCreatedMessage extends Message |
36 |
|
{ |
37 |
|
const MESSAGE_TYPE = 'CategoryCreated'; |
38 |
|
|
39 |
|
public function fieldDefinitions() |
40 |
|
{ |
41 |
|
$definitions = parent::fieldDefinitions(); |
42 |
|
$definitions['category'] = [static::TYPE => Category::class]; |
43 |
|
|
44 |
|
return $definitions; |
45 |
|
} |
46 |
|
} |
47 |
|
|
src/Core/Model/Message/CategorySlugChangedMessage.php 1 location
|
@@ 36-47 (lines=12) @@
|
33 |
|
* @method DateTimeDecorator getLastModifiedAt() |
34 |
|
* @method CategorySlugChangedMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
35 |
|
*/ |
36 |
|
class CategorySlugChangedMessage extends Message |
37 |
|
{ |
38 |
|
const MESSAGE_TYPE = 'CategorySlugChanged'; |
39 |
|
|
40 |
|
public function fieldDefinitions() |
41 |
|
{ |
42 |
|
$definitions = parent::fieldDefinitions(); |
43 |
|
$definitions['slug'] = [static::TYPE => LocalizedString::class]; |
44 |
|
|
45 |
|
return $definitions; |
46 |
|
} |
47 |
|
} |
48 |
|
|
src/Core/Model/Message/CustomerCreatedMessage.php 1 location
|
@@ 35-46 (lines=12) @@
|
32 |
|
* @method DateTimeDecorator getLastModifiedAt() |
33 |
|
* @method CustomerCreatedMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
34 |
|
*/ |
35 |
|
class CustomerCreatedMessage extends Message |
36 |
|
{ |
37 |
|
const MESSAGE_TYPE = 'CustomerCreated'; |
38 |
|
|
39 |
|
public function fieldDefinitions() |
40 |
|
{ |
41 |
|
$definitions = parent::fieldDefinitions(); |
42 |
|
$definitions['customer'] = [static::TYPE => Customer::class]; |
43 |
|
|
44 |
|
return $definitions; |
45 |
|
} |
46 |
|
} |
47 |
|
|
src/Core/Model/Message/DeliveryAddedMessage.php 1 location
|
@@ 35-46 (lines=12) @@
|
32 |
|
* @method DateTimeDecorator getLastModifiedAt() |
33 |
|
* @method DeliveryAddedMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
34 |
|
*/ |
35 |
|
class DeliveryAddedMessage extends Message |
36 |
|
{ |
37 |
|
const MESSAGE_TYPE = 'DeliveryAdded'; |
38 |
|
|
39 |
|
public function fieldDefinitions() |
40 |
|
{ |
41 |
|
$definitions = parent::fieldDefinitions(); |
42 |
|
$definitions['delivery'] = [static::TYPE => Delivery::class]; |
43 |
|
|
44 |
|
return $definitions; |
45 |
|
} |
46 |
|
} |
47 |
|
|
src/Core/Model/Message/OrderBillingAddressSetMessage.php 1 location
|
@@ 36-47 (lines=12) @@
|
33 |
|
* @method Address getAddress() |
34 |
|
* @method OrderBillingAddressSetMessage setAddress(Address $address = null) |
35 |
|
*/ |
36 |
|
class OrderBillingAddressSetMessage extends Message |
37 |
|
{ |
38 |
|
const MESSAGE_TYPE = 'OrderBillingAddressSet'; |
39 |
|
|
40 |
|
public function fieldDefinitions() |
41 |
|
{ |
42 |
|
$definitions = parent::fieldDefinitions(); |
43 |
|
$definitions['address'] = [static::TYPE => Address::class]; |
44 |
|
|
45 |
|
return $definitions; |
46 |
|
} |
47 |
|
} |
48 |
|
|
src/Core/Model/Message/OrderCreatedMessage.php 1 location
|
@@ 35-46 (lines=12) @@
|
32 |
|
* @method DateTimeDecorator getLastModifiedAt() |
33 |
|
* @method OrderCreatedMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
34 |
|
*/ |
35 |
|
class OrderCreatedMessage extends Message |
36 |
|
{ |
37 |
|
const MESSAGE_TYPE = 'OrderCreated'; |
38 |
|
|
39 |
|
public function fieldDefinitions() |
40 |
|
{ |
41 |
|
$definitions = parent::fieldDefinitions(); |
42 |
|
$definitions['order'] = [static::TYPE => Order::class]; |
43 |
|
|
44 |
|
return $definitions; |
45 |
|
} |
46 |
|
} |
47 |
|
|
src/Core/Model/Message/OrderCustomerEmailSetMessage.php 1 location
|
@@ 35-46 (lines=12) @@
|
32 |
|
* @method string getEmail() |
33 |
|
* @method OrderCustomerEmailSetMessage setEmail(string $email = null) |
34 |
|
*/ |
35 |
|
class OrderCustomerEmailSetMessage extends Message |
36 |
|
{ |
37 |
|
const MESSAGE_TYPE = 'OrderCustomerEmailSet'; |
38 |
|
|
39 |
|
public function fieldDefinitions() |
40 |
|
{ |
41 |
|
$definitions = parent::fieldDefinitions(); |
42 |
|
$definitions['email'] = [static::TYPE => 'string']; |
43 |
|
|
44 |
|
return $definitions; |
45 |
|
} |
46 |
|
} |
47 |
|
|
src/Core/Model/Message/OrderImportedMessage.php 1 location
|
@@ 35-46 (lines=12) @@
|
32 |
|
* @method DateTimeDecorator getLastModifiedAt() |
33 |
|
* @method OrderImportedMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
34 |
|
*/ |
35 |
|
class OrderImportedMessage extends Message |
36 |
|
{ |
37 |
|
const MESSAGE_TYPE = 'OrderImported'; |
38 |
|
|
39 |
|
public function fieldDefinitions() |
40 |
|
{ |
41 |
|
$definitions = parent::fieldDefinitions(); |
42 |
|
$definitions['order'] = [static::TYPE => Order::class]; |
43 |
|
|
44 |
|
return $definitions; |
45 |
|
} |
46 |
|
} |
47 |
|
|
src/Core/Model/Message/OrderShippingAddressSetMessage.php 1 location
|
@@ 36-47 (lines=12) @@
|
33 |
|
* @method Address getAddress() |
34 |
|
* @method OrderShippingAddressSetMessage setAddress(Address $address = null) |
35 |
|
*/ |
36 |
|
class OrderShippingAddressSetMessage extends Message |
37 |
|
{ |
38 |
|
const MESSAGE_TYPE = 'OrderShippingAddressSet'; |
39 |
|
|
40 |
|
public function fieldDefinitions() |
41 |
|
{ |
42 |
|
$definitions = parent::fieldDefinitions(); |
43 |
|
$definitions['address'] = [static::TYPE => Address::class]; |
44 |
|
|
45 |
|
return $definitions; |
46 |
|
} |
47 |
|
} |
48 |
|
|
src/Core/Model/Message/PaymentCreatedMessage.php 1 location
|
@@ 35-46 (lines=12) @@
|
32 |
|
* @method DateTimeDecorator getLastModifiedAt() |
33 |
|
* @method PaymentCreatedMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
34 |
|
*/ |
35 |
|
class PaymentCreatedMessage extends Message |
36 |
|
{ |
37 |
|
const MESSAGE_TYPE = 'PaymentCreated'; |
38 |
|
|
39 |
|
public function fieldDefinitions() |
40 |
|
{ |
41 |
|
$definitions = parent::fieldDefinitions(); |
42 |
|
$definitions['payment'] = [static::TYPE => Payment::class]; |
43 |
|
|
44 |
|
return $definitions; |
45 |
|
} |
46 |
|
} |
47 |
|
|
src/Core/Model/Message/PaymentInteractionAddedMessage.php 1 location
|
@@ 35-46 (lines=12) @@
|
32 |
|
* @method DateTimeDecorator getLastModifiedAt() |
33 |
|
* @method PaymentInteractionAddedMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
34 |
|
*/ |
35 |
|
class PaymentInteractionAddedMessage extends Message |
36 |
|
{ |
37 |
|
const MESSAGE_TYPE = 'PaymentInteractionAdded'; |
38 |
|
|
39 |
|
public function fieldDefinitions() |
40 |
|
{ |
41 |
|
$definitions = parent::fieldDefinitions(); |
42 |
|
$definitions['interaction'] = [static::TYPE => CustomFieldObject::class]; |
43 |
|
|
44 |
|
return $definitions; |
45 |
|
} |
46 |
|
} |
47 |
|
|
src/Core/Model/Message/PaymentTransactionAddedMessage.php 1 location
|
@@ 35-46 (lines=12) @@
|
32 |
|
* @method DateTimeDecorator getLastModifiedAt() |
33 |
|
* @method PaymentTransactionAddedMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
34 |
|
*/ |
35 |
|
class PaymentTransactionAddedMessage extends Message |
36 |
|
{ |
37 |
|
const MESSAGE_TYPE = 'PaymentTransactionAdded'; |
38 |
|
|
39 |
|
public function fieldDefinitions() |
40 |
|
{ |
41 |
|
$definitions = parent::fieldDefinitions(); |
42 |
|
$definitions['transaction'] = [static::TYPE => Transaction::class]; |
43 |
|
|
44 |
|
return $definitions; |
45 |
|
} |
46 |
|
} |
47 |
|
|
src/Core/Model/Message/ProductCreatedMessage.php 1 location
|
@@ 35-46 (lines=12) @@
|
32 |
|
* @method DateTimeDecorator getLastModifiedAt() |
33 |
|
* @method ProductCreatedMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
34 |
|
*/ |
35 |
|
class ProductCreatedMessage extends Message |
36 |
|
{ |
37 |
|
const MESSAGE_TYPE = 'ProductCreated'; |
38 |
|
|
39 |
|
public function fieldDefinitions() |
40 |
|
{ |
41 |
|
$definitions = parent::fieldDefinitions(); |
42 |
|
$definitions['productProjection'] = [static::TYPE => ProductProjection::class]; |
43 |
|
|
44 |
|
return $definitions; |
45 |
|
} |
46 |
|
} |
47 |
|
|
src/Core/Model/Message/ProductPublishedMessage.php 1 location
|
@@ 35-46 (lines=12) @@
|
32 |
|
* @method DateTimeDecorator getLastModifiedAt() |
33 |
|
* @method ProductPublishedMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
34 |
|
*/ |
35 |
|
class ProductPublishedMessage extends Message |
36 |
|
{ |
37 |
|
const MESSAGE_TYPE = 'ProductPublished'; |
38 |
|
|
39 |
|
public function fieldDefinitions() |
40 |
|
{ |
41 |
|
$definitions = parent::fieldDefinitions(); |
42 |
|
$definitions['productProjection'] = [static::TYPE => ProductProjection::class]; |
43 |
|
|
44 |
|
return $definitions; |
45 |
|
} |
46 |
|
} |
47 |
|
|
src/Core/Model/Message/ProductSlugChangedMessage.php 1 location
|
@@ 36-47 (lines=12) @@
|
33 |
|
* @method DateTimeDecorator getLastModifiedAt() |
34 |
|
* @method ProductSlugChangedMessage setLastModifiedAt(DateTime $lastModifiedAt = null) |
35 |
|
*/ |
36 |
|
class ProductSlugChangedMessage extends Message |
37 |
|
{ |
38 |
|
const MESSAGE_TYPE = 'ProductSlugChanged'; |
39 |
|
|
40 |
|
public function fieldDefinitions() |
41 |
|
{ |
42 |
|
$definitions = parent::fieldDefinitions(); |
43 |
|
$definitions['slug'] = [static::TYPE => LocalizedString::class]; |
44 |
|
|
45 |
|
return $definitions; |
46 |
|
} |
47 |
|
} |
48 |
|
|
src/Core/Model/Message/ReviewCreatedMessage.php 1 location
|
@@ 35-46 (lines=12) @@
|
32 |
|
* @method Review getReview() |
33 |
|
* @method ReviewCreatedMessage setReview(Review $review = null) |
34 |
|
*/ |
35 |
|
class ReviewCreatedMessage extends Message |
36 |
|
{ |
37 |
|
const MESSAGE_TYPE = 'ReviewCreated'; |
38 |
|
|
39 |
|
public function fieldDefinitions() |
40 |
|
{ |
41 |
|
$definitions = parent::fieldDefinitions(); |
42 |
|
$definitions['review'] = [static::TYPE => Review::class]; |
43 |
|
|
44 |
|
return $definitions; |
45 |
|
} |
46 |
|
} |
47 |
|
|
src/Core/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 |
|
|
src/Core/Model/Message/OrderPaymentChangedMessage.php 1 location
|
@@ 34-45 (lines=12) @@
|
31 |
|
* @method string getPaymentState() |
32 |
|
* @method OrderPaymentChangedMessage setPaymentState(string $paymentState = null) |
33 |
|
*/ |
34 |
|
class OrderPaymentChangedMessage extends Message |
35 |
|
{ |
36 |
|
const MESSAGE_TYPE = 'OrderPaymentStateChanged'; |
37 |
|
|
38 |
|
public function fieldDefinitions() |
39 |
|
{ |
40 |
|
$definitions = parent::fieldDefinitions(); |
41 |
|
$definitions['paymentState'] = [static::TYPE => 'string']; |
42 |
|
|
43 |
|
return $definitions; |
44 |
|
} |
45 |
|
} |
46 |
|
|
src/Core/Model/Message/PaymentStatusInterfaceCodeSetMessage.php 1 location
|
@@ 37-49 (lines=13) @@
|
34 |
|
* @method string getInterfaceCode() |
35 |
|
* @method PaymentStatusInterfaceCodeSetMessage setInterfaceCode(string $interfaceCode = null) |
36 |
|
*/ |
37 |
|
class PaymentStatusInterfaceCodeSetMessage extends Message |
38 |
|
{ |
39 |
|
const MESSAGE_TYPE = 'PaymentStatusInterfaceCodeSet'; |
40 |
|
|
41 |
|
public function fieldDefinitions() |
42 |
|
{ |
43 |
|
$definitions = parent::fieldDefinitions(); |
44 |
|
$definitions['paymentId'] = [static::TYPE => 'string']; |
45 |
|
$definitions['interfaceCode'] = [static::TYPE => 'string']; |
46 |
|
|
47 |
|
return $definitions; |
48 |
|
} |
49 |
|
} |
50 |
|
|