Skip to content

Commit d0ef11b

Browse files
committed
Add v1.14.0
1 parent f7a9e8f commit d0ef11b

File tree

83 files changed

+1755
-197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+1755
-197
lines changed

‎CHANGELOG.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
11
# Changelog
22

3-
## v1.13.6 - 2021-08-12
4-
### Fixes
5-
- Fix parameter order_tax_mode not working in GetOrdersRequest.php
3+
## v1.14.0 - 2021-12-23
4+
### Features
5+
- Add product feeds APIs (PF01, PF02, PF03 and PF11)
6+
- Add API A02 to update shop information
7+
- Open RE01 to shops and deprecate RE02
8+
- Add API OF04 for operator and shop roles
9+
- Add OR06 API to confirm orders taxes
10+
- Add 'operator_format' parameter to API P41
11+
- Add fulfillment center code in API (offer)
12+
- Add measurement field to OF51
13+
- Add applicable_taxes in A01 and S20 output
14+
- Add the PAY_ON_SHIPMENT order workflow
15+
- Add offers shipping prices by type and zone to P11 and OF51
16+
- Add commissionnable flag and filter in OR11 / P11 / OF51
17+
- Add API OR04 for the shop role + order references in API OR01, OR04 and OR11
18+
- Add mandatoryTracking clickAndCollect and deliveryByOperator in SH12
19+
- Add suspension_type in A01, S20, S06 and S07 APIs
20+
- Add createDate and lastUpdatedDate on ST01 & ST11
21+
- Support UK bank format for seller payout
22+
- Add customer organization & additional contacts in OR01, OR11, OR04, M11, M10
23+
24+
## v1.13.7 - 2021-10-26
25+
### Fixes
26+
- Fix parameter order_tax_mode not working in GetHierarchiesRequest when calling OR11 API
627

728
## v1.13.6 - 2021-08-12
829
### Fixes

‎composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "mirakl/sdk-php-shop",
33
"description": "Mirakl provides a PHP SDK that wraps the Mirakl REST APIs in a lightweight library. This enables you to develop a fast, flexible and custom integration for your existing e-commerce solution.",
44
"type": "library",
5-
"version": "1.13.7",
5+
"version": "1.14.0",
66
"license": "proprietary",
77
"authors": [
88
{

‎src/Mirakl/MCI/Common/Domain/Attribute.php

Lines changed: 42 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,51 @@
33

44
use Mirakl\Core\Domain\MiraklObject;
55
use Mirakl\MCI\Common\Domain\Collection\AttributeParameterCollection;
6+
use Mirakl\MCI\Common\Domain\Collection\AttributeProductFeedCollection;
67
use Mirakl\MCI\Common\Domain\Collection\AttributeRoleCollection;
78
use Mirakl\MCI\Common\Domain\Collection\ValueTranslationCollection;
89

910
/**
10-
* @method string getCode()
11-
* @method $this setCode(string $code)
12-
* @method string getDefaultValue() @deprecated Please use getTypeParameters() instead.
13-
* @method $this setDefaultValue(string $defaultValue) @deprecated Please use setTypeParameters() instead.
14-
* @method string getDescription()
15-
* @method $this setDescription(string $description)
16-
* @method ValueTranslationCollection getDescriptionTranslations()
17-
* @method string getExample()
18-
* @method $this setExample(string $example)
19-
* @method string getHierarchyCode()
20-
* @method $this setHierarchyCode(string $hierarchyCode)
21-
* @method string getLabel()
22-
* @method $this setLabel(string $label)
23-
* @method ValueTranslationCollection getLabelTranslations()
24-
* @method bool getRequired()
25-
* @method $this setRequired(bool $required)
26-
* @method string getRequirementLevel()
27-
* @method $this setRequirementLevel(bool $requirementLevel)
28-
* @method bool isRequired()
29-
* @method AttributeRoleCollection getRoles()
30-
* @method $this setRoles(AttributeRoleCollection $roles)
31-
* @method string getType()
32-
* @method $this setType(string $type)
33-
* @method string getTypeParameter() @deprecated Please use getTypeParameters() instead.
34-
* @method $this setTypeParameter(string $typeParameter) @deprecated Please use setTypeParameters() instead.
35-
* @method AttributeParameterCollection getTypeParameters()
36-
* @method $this setTypeParameters(AttributeParameterCollection $typeParameters)
37-
* @method string getTransformations()
38-
* @method $this setTransformations(string $transformations)
39-
* @method string getUniqueCode()
40-
* @method $this setUniqueCode(string $uniqueCode)
41-
* @method string getValidations()
42-
* @method $this setValidations(string $validations)
43-
* @method bool getVariant()
44-
* @method $this setVariant(bool $variant)
45-
* @method bool isVariant()
11+
* @method string getCode()
12+
* @method $this setCode(string $code)
13+
* @method string getDefaultValue() @deprecated Please use getTypeParameters() instead.
14+
* @method $this setDefaultValue(string $defaultValue) @deprecated Please use setTypeParameters() instead.
15+
* @method string getDescription()
16+
* @method $this setDescription(string $description)
17+
* @method ValueTranslationCollection getDescriptionTranslations()
18+
* @method $this setDescriptionTranslations(ValueTranslationCollection $descriptionTranslations)
19+
* @method string getExample()
20+
* @method $this setExample(string $example)
21+
* @method string getHierarchyCode()
22+
* @method $this setHierarchyCode(string $hierarchyCode)
23+
* @method string getLabel()
24+
* @method $this setLabel(string $label)
25+
* @method ValueTranslationCollection getLabelTranslations()
26+
* @method $this setLabelTranslations(ValueTranslationCollection $labelTranslations)
27+
* @method AttributeProductFeedCollection getProductFeeds()
28+
* @method $this setProductFeeds(AttributeProductFeedCollection $productFeeds)
29+
* @method bool getRequired()
30+
* @method $this setRequired(bool $required)
31+
* @method string getRequirementLevel()
32+
* @method $this setRequirementLevel(bool $requirementLevel)
33+
* @method bool isRequired()
34+
* @method AttributeRoleCollection getRoles()
35+
* @method $this setRoles(AttributeRoleCollection $roles)
36+
* @method string getType()
37+
* @method $this setType(string $type)
38+
* @method string getTypeParameter() @deprecated Please use getTypeParameters() instead.
39+
* @method $this setTypeParameter(string $typeParameter) @deprecated Please use setTypeParameters() instead.
40+
* @method AttributeParameterCollection getTypeParameters()
41+
* @method $this setTypeParameters(AttributeParameterCollection $typeParameters)
42+
* @method string getTransformations()
43+
* @method $this setTransformations(string $transformations)
44+
* @method string getUniqueCode()
45+
* @method $this setUniqueCode(string $uniqueCode)
46+
* @method string getValidations()
47+
* @method $this setValidations(string $validations)
48+
* @method bool getVariant()
49+
* @method $this setVariant(bool $variant)
50+
* @method bool isVariant()
4651
*/
4752
class Attribute extends MiraklObject
4853
{
@@ -54,5 +59,6 @@ class Attribute extends MiraklObject
5459
'label_translations' => [ValueTranslationCollection::class, 'create'],
5560
'roles' => [AttributeRoleCollection::class, 'create'],
5661
'type_parameters' => [AttributeParameterCollection::class, 'create'],
62+
'product_feeds' => [AttributeProductFeedCollection::class, 'create'],
5763
];
5864
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
namespace Mirakl\MCI\Common\Domain;
3+
4+
use Mirakl\Core\Domain\MiraklObject;
5+
6+
/**
7+
* @method string getCode()
8+
* @method $this setCode(string $code)
9+
*/
10+
class AttributeProductFeed extends MiraklObject
11+
{}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
namespace Mirakl\MCI\Common\Domain\Collection;
3+
4+
use Mirakl\Core\Domain\Collection\MiraklCollection;
5+
use Mirakl\MCI\Common\Domain\AttributeProductFeed;
6+
7+
/**
8+
* @method AttributeProductFeed current()
9+
* @method AttributeProductFeed first()
10+
* @method AttributeProductFeed get($offset)
11+
* @method AttributeProductFeed offsetGet($offset)
12+
* @method AttributeProductFeed last()
13+
*/
14+
class AttributeProductFeedCollection extends MiraklCollection
15+
{
16+
/**
17+
* @var string
18+
*/
19+
protected $itemClass = AttributeProductFeed::class;
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
namespace Mirakl\MCI\Common\Domain\Collection\Product;
3+
4+
use Mirakl\Core\Domain\Collection\MiraklCollection;
5+
use Mirakl\MCI\Common\Domain\Product\ProductDataSheetProductFeedValidationStatus;
6+
7+
/**
8+
* @method ProductDataSheetProductFeedValidationStatus current()
9+
* @method ProductDataSheetProductFeedValidationStatus first()
10+
* @method ProductDataSheetProductFeedValidationStatus get($offset)
11+
* @method ProductDataSheetProductFeedValidationStatus offsetGet($offset)
12+
* @method ProductDataSheetProductFeedValidationStatus last()
13+
*/
14+
class ProductDataSheetProductFeedValidationStatusCollection extends MiraklCollection
15+
{
16+
/**
17+
* @var string
18+
*/
19+
protected $itemClass = ProductDataSheetProductFeedValidationStatus::class;
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
namespace Mirakl\MCI\Common\Domain\Collection\ProductFeed;
3+
4+
use Mirakl\Core\Domain\Collection\MiraklCollection;
5+
use Mirakl\MCI\Common\Domain\ProductFeed\Channel;
6+
7+
/**
8+
* @method Channel current()
9+
* @method Channel first()
10+
* @method Channel get($offset)
11+
* @method Channel offsetGet($offset)
12+
* @method Channel last()
13+
*/
14+
class ChannelCollection extends MiraklCollection
15+
{
16+
/**
17+
* @var string
18+
*/
19+
protected $itemClass = Channel::class;
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
namespace Mirakl\MCI\Common\Domain\Collection\ProductFeed;
3+
4+
use Mirakl\Core\Domain\Collection\MiraklCollection;
5+
use Mirakl\MCI\Common\Domain\ProductFeed\ProductFeed;
6+
7+
/**
8+
* @method ProductFeed current()
9+
* @method ProductFeed first()
10+
* @method ProductFeed get($offset)
11+
* @method ProductFeed offsetGet($offset)
12+
* @method ProductFeed last()
13+
*/
14+
class ProductFeedCollection extends MiraklCollection
15+
{
16+
/**
17+
* @var string
18+
*/
19+
protected $itemClass = ProductFeed::class;
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
namespace Mirakl\MCI\Common\Domain\Collection\ProductFeed;
3+
4+
use Mirakl\Core\Domain\Collection\MiraklCollection;
5+
use Mirakl\MCI\Common\Domain\ProductFeed\ProductFeedImportError;
6+
7+
/**
8+
* @method ProductFeedImportError current()
9+
* @method ProductFeedImportError first()
10+
* @method ProductFeedImportError get($offset)
11+
* @method ProductFeedImportError offsetGet($offset)
12+
* @method ProductFeedImportError last()
13+
*/
14+
class ProductFeedImportErrorCollection extends MiraklCollection
15+
{
16+
/**
17+
* @var string
18+
*/
19+
protected $itemClass = ProductFeedImportError::class;
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
namespace Mirakl\MCI\Common\Domain\Collection\ProductFeed;
3+
4+
use Mirakl\Core\Domain\Collection\MiraklCollection;
5+
use Mirakl\MCI\Common\Domain\ProductFeed\ProductFeedImportGlobalError;
6+
7+
/**
8+
* @method ProductFeedImportGlobalError current()
9+
* @method ProductFeedImportGlobalError first()
10+
* @method ProductFeedImportGlobalError get($offset)
11+
* @method ProductFeedImportGlobalError offsetGet($offset)
12+
* @method ProductFeedImportGlobalError last()
13+
*/
14+
class ProductFeedImportGlobalErrorCollection extends MiraklCollection
15+
{
16+
/**
17+
* @var string
18+
*/
19+
protected $itemClass = ProductFeedImportGlobalError::class;
20+
}

0 commit comments

Comments
 (0)