Skip to content

Commit d059fb5

Browse files
committed
fixing FeaturesListType
1 parent b389097 commit d059fb5

4 files changed

Lines changed: 18 additions & 16 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ echo $flexnetOperations->echoPhrase('Hello, Flexsim!');
4646
1. Fix types in wsdl files
4747
1. ProductPackagineService
4848
- featureBundlesListType - add minOccurs="0" to the "featureBundle" property
49+
- featuresListType - add minOccurs="0" to the "feature" property
4950
2. LicenseService
5051
- fulfillmentHistoryDetailsType - add minOccurs="0" to the "record" property
5152

flexnet/ProductPackagingService/Type/FeaturesListType.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,40 @@
55
class FeaturesListType
66
{
77
/**
8-
* @var \Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType|array<\Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType>
8+
* @var \Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType|array<\Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType>|null
99
*/
1010
private $feature;
1111

1212
/**
1313
* Constructor
1414
*
15-
* @param \Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType|array<\Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType> $feature
15+
* @param \Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType|array<\Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType>|null $feature
1616
*/
17-
public function __construct(FeatureIdentifierWithCountDataType|array $feature)
17+
public function __construct(FeatureIdentifierWithCountDataType|array|null $feature = null)
1818
{
1919
$this->feature = $feature;
2020
}
2121

2222
/**
23-
* @param \Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType|array<\Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType> $feature
23+
* @param \Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType|array<\Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType>|null $feature
2424
*/
25-
public static function create(FeatureIdentifierWithCountDataType|array $feature)
25+
public static function create(FeatureIdentifierWithCountDataType|array|null $feature = null)
2626
{
2727
return new static(...\func_get_args());
2828
}
2929

3030
/**
31-
* @return \Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType|array<\Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType>
31+
* @return \Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType|array<\Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType>|null
3232
*/
33-
public function getFeature(): FeatureIdentifierWithCountDataType|array
33+
public function getFeature(): FeatureIdentifierWithCountDataType|array|null
3434
{
3535
return $this->feature;
3636
}
3737

3838
/**
39-
* @param \Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType|array<\Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType> $feature
39+
* @param \Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType|array<\Flexnet\ProductPackagingService\Type\FeatureIdentifierWithCountDataType>|null $feature
4040
*/
41-
public function withFeature(FeatureIdentifierWithCountDataType|array $feature): FeaturesListType
41+
public function withFeature(FeatureIdentifierWithCountDataType|array|null $feature): FeaturesListType
4242
{
4343
$new = clone $this;
4444
$new->feature = $feature;

productPackagingService.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,7 @@
941941
"sequence": {
942942
"element": {
943943
"_maxOccurs": "unbounded",
944+
"_minOccurs": "0",
944945
"_name": "feature",
945946
"_type": "impl:featureIdentifierWithCountDataType"
946947
}

productPackagingService.wsdl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ Built on Apr 22, 2006 (06:55:48 PDT)-->
332332
</complexType>
333333
<complexType name="featuresListType">
334334
<sequence>
335-
<element maxOccurs="unbounded" name="feature" type="impl:featureIdentifierWithCountDataType"/>
335+
<element maxOccurs="unbounded" minOccurs="0" name="feature" type="impl:featureIdentifierWithCountDataType"/>
336336
</sequence>
337337
</complexType>
338338
<complexType name="createFeatureBundleDataType">
@@ -1788,12 +1788,12 @@ Built on Apr 22, 2006 (06:55:48 PDT)-->
17881788
</sequence>
17891789
</complexType>
17901790
<complexType name="updateProductRelationshipDataType">
1791-
<sequence>
1792-
<element name="productToRelate" type="impl:productIdentifierType"/>
1793-
<element name="relatedProduct" type="impl:productIdentifierType"/>
1794-
<element name="relation" type="impl:relationshipType"/>
1795-
<element name="newRelation" type="impl:relationshipType"/>
1796-
</sequence>
1791+
<sequence>
1792+
<element name="productToRelate" type="impl:productIdentifierType"/>
1793+
<element name="relatedProduct" type="impl:productIdentifierType"/>
1794+
<element name="relation" type="impl:relationshipType"/>
1795+
<element name="newRelation" type="impl:relationshipType"/>
1796+
</sequence>
17971797
</complexType>
17981798
<complexType name="createProductRelationshipRequestType">
17991799
<sequence>

0 commit comments

Comments
 (0)