Skip to content

Commit b70347a

Browse files
committed
build(codegen): updating SDK
1 parent 4c5abdd commit b70347a

File tree

9 files changed

+658
-28
lines changed

9 files changed

+658
-28
lines changed

changes.md

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
**Api changes**
22

3+
<details>
4+
<summary>Changed Property(s)</summary>
5+
6+
- :warning: changed property `exact` of type `SearchExactExpression` from type `SearchAnyValue` to `SearchExactValue`
7+
</details>
8+
9+
10+
<details>
11+
<summary>Added Property(s)</summary>
12+
13+
- added property `applicationMode` to type `CartDiscountValueFixed`
14+
- added property `applicationMode` to type `CartDiscountValueFixedDraft`
15+
- added property `custom` to type `CartSetCustomShippingMethodAction`
16+
- added property `custom` to type `StagedOrderSetCustomShippingMethodAction`
17+
- added property `custom` to type `StagedOrderSetShippingAddressAndCustomShippingMethodAction`
18+
- added property `businessUnits` to type `SearchIndexingConfiguration`
19+
</details>
20+
21+
322
<details>
423
<summary>Added Resource(s)</summary>
524

@@ -43,6 +62,7 @@
4362
- added type `ShoppingListMessagePayload`
4463
- added type `BusinessUnitSearchStatus`
4564
- added type `ProjectChangeBusinessUnitSearchStatusAction`
65+
- added type `SearchExactValue`
4666
</details>
4767

4868

@@ -53,18 +73,6 @@
5373
- added enum `shopping-list` to type `MessageSubscriptionResourceTypeId`
5474
</details>
5575

56-
57-
<details>
58-
<summary>Added Property(s)</summary>
59-
60-
- added property `applicationMode` to type `CartDiscountValueFixed`
61-
- added property `applicationMode` to type `CartDiscountValueFixedDraft`
62-
- added property `custom` to type `CartSetCustomShippingMethodAction`
63-
- added property `custom` to type `StagedOrderSetCustomShippingMethodAction`
64-
- added property `custom` to type `StagedOrderSetShippingAddressAndCustomShippingMethodAction`
65-
- added property `businessUnits` to type `SearchIndexingConfiguration`
66-
</details>
67-
6876
**History changes**
6977

7078
<details>

lib/commercetools-api/src/Models/Search/SearchExactExpression.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ interface SearchExactExpression extends SearchQueryExpression
1717

1818
/**
1919
20-
* @return null|SearchAnyValue
20+
* @return null|SearchExactValue
2121
*/
2222
public function getExact();
2323

2424
/**
25-
* @param ?SearchAnyValue $exact
25+
* @param ?SearchExactValue $exact
2626
*/
27-
public function setExact(?SearchAnyValue $exact): void;
27+
public function setExact(?SearchExactValue $exact): void;
2828
}

lib/commercetools-api/src/Models/Search/SearchExactExpressionBuilder.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,24 @@ final class SearchExactExpressionBuilder implements Builder
2222
{
2323
/**
2424
25-
* @var null|SearchAnyValue|SearchAnyValueBuilder
25+
* @var null|SearchExactValue|SearchExactValueBuilder
2626
*/
2727
private $exact;
2828

2929
/**
3030
31-
* @return null|SearchAnyValue
31+
* @return null|SearchExactValue
3232
*/
3333
public function getExact()
3434
{
35-
return $this->exact instanceof SearchAnyValueBuilder ? $this->exact->build() : $this->exact;
35+
return $this->exact instanceof SearchExactValueBuilder ? $this->exact->build() : $this->exact;
3636
}
3737

3838
/**
39-
* @param ?SearchAnyValue $exact
39+
* @param ?SearchExactValue $exact
4040
* @return $this
4141
*/
42-
public function withExact(?SearchAnyValue $exact)
42+
public function withExact(?SearchExactValue $exact)
4343
{
4444
$this->exact = $exact;
4545

@@ -50,7 +50,7 @@ public function withExact(?SearchAnyValue $exact)
5050
* @deprecated use withExact() instead
5151
* @return $this
5252
*/
53-
public function withExactBuilder(?SearchAnyValueBuilder $exact)
53+
public function withExactBuilder(?SearchExactValueBuilder $exact)
5454
{
5555
$this->exact = $exact;
5656

@@ -60,7 +60,7 @@ public function withExactBuilder(?SearchAnyValueBuilder $exact)
6060
public function build(): SearchExactExpression
6161
{
6262
return new SearchExactExpressionModel(
63-
$this->exact instanceof SearchAnyValueBuilder ? $this->exact->build() : $this->exact
63+
$this->exact instanceof SearchExactValueBuilder ? $this->exact->build() : $this->exact
6464
);
6565
}
6666

lib/commercetools-api/src/Models/Search/SearchExactExpressionModel.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class SearchExactExpressionModel extends JsonObjectModel implements Search
2121
{
2222
/**
2323
*
24-
* @var ?SearchAnyValue
24+
* @var ?SearchExactValue
2525
*/
2626
protected $exact;
2727

@@ -30,14 +30,14 @@ final class SearchExactExpressionModel extends JsonObjectModel implements Search
3030
* @psalm-suppress MissingParamType
3131
*/
3232
public function __construct(
33-
?SearchAnyValue $exact = null
33+
?SearchExactValue $exact = null
3434
) {
3535
$this->exact = $exact;
3636
}
3737

3838
/**
3939
*
40-
* @return null|SearchAnyValue
40+
* @return null|SearchExactValue
4141
*/
4242
public function getExact()
4343
{
@@ -48,17 +48,17 @@ public function getExact()
4848
return null;
4949
}
5050

51-
$this->exact = SearchAnyValueModel::of($data);
51+
$this->exact = SearchExactValueModel::of($data);
5252
}
5353

5454
return $this->exact;
5555
}
5656

5757

5858
/**
59-
* @param ?SearchAnyValue $exact
59+
* @param ?SearchExactValue $exact
6060
*/
61-
public function setExact(?SearchAnyValue $exact): void
61+
public function setExact(?SearchExactValue $exact): void
6262
{
6363
$this->exact = $exact;
6464
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
/**
5+
* This file has been auto generated
6+
* Do not change it.
7+
*/
8+
9+
namespace Commercetools\Api\Models\Search;
10+
11+
use Commercetools\Base\DateTimeImmutableCollection;
12+
use Commercetools\Base\JsonObject;
13+
14+
interface SearchExactValue extends SearchQueryExpressionValue
15+
{
16+
public const FIELD_VALUE = 'value';
17+
public const FIELD_VALUES = 'values';
18+
public const FIELD_LANGUAGE = 'language';
19+
public const FIELD_CASE_INSENSITIVE = 'caseInsensitive';
20+
21+
/**
22+
23+
* @return null|mixed
24+
*/
25+
public function getValue();
26+
27+
/**
28+
29+
* @return null|array
30+
*/
31+
public function getValues();
32+
33+
/**
34+
* <p>String value specifying linguistic and regional preferences using the <a href="https://en.wikipedia.org/wiki/IETF_language_tag">IETF language tag format</a>, as described in <a href="https://www.rfc-editor.org/rfc/bcp/bcp47.txt">BCP 47</a>. The format combines language, script, and region using hyphen-separated subtags. For example: <code>en</code>, <code>en-US</code>, <code>zh-Hans-SG</code>.</p>
35+
*
36+
37+
* @return null|string
38+
*/
39+
public function getLanguage();
40+
41+
/**
42+
43+
* @return null|bool
44+
*/
45+
public function getCaseInsensitive();
46+
47+
/**
48+
* @param mixed $value
49+
*/
50+
public function setValue($value): void;
51+
52+
/**
53+
* @param ?array $values
54+
*/
55+
public function setValues(?array $values): void;
56+
57+
/**
58+
* @param ?string $language
59+
*/
60+
public function setLanguage(?string $language): void;
61+
62+
/**
63+
* @param ?bool $caseInsensitive
64+
*/
65+
public function setCaseInsensitive(?bool $caseInsensitive): void;
66+
}

0 commit comments

Comments
 (0)