Skip to content

Commit 3b6fcdb

Browse files
committed
build(codegen): updating SDK
1 parent 0a77170 commit 3b6fcdb

File tree

862 files changed

+62944
-2736
lines changed

Some content is hidden

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

862 files changed

+62944
-2736
lines changed

changes.md

Lines changed: 522 additions & 0 deletions
Large diffs are not rendered by default.

lib/commercetools-api/src/Models/Order/CustomLineItemReturnItemBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function getLastModifiedAt()
176176
}
177177

178178
/**
179-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
179+
* <p>Date and time (UTC) the Return Item was initially created.</p>
180180
*
181181
182182
* @return null|DateTimeImmutable

lib/commercetools-api/src/Models/Order/CustomLineItemReturnItemModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public function getLastModifiedAt()
307307
}
308308

309309
/**
310-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
310+
* <p>Date and time (UTC) the Return Item was initially created.</p>
311311
*
312312
*
313313
* @return null|DateTimeImmutable

lib/commercetools-api/src/Models/Order/LineItemReturnItemBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function getLastModifiedAt()
176176
}
177177

178178
/**
179-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
179+
* <p>Date and time (UTC) the Return Item was initially created.</p>
180180
*
181181
182182
* @return null|DateTimeImmutable

lib/commercetools-api/src/Models/Order/LineItemReturnItemModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public function getLastModifiedAt()
307307
}
308308

309309
/**
310-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
310+
* <p>Date and time (UTC) the Return Item was initially created.</p>
311311
*
312312
*
313313
* @return null|DateTimeImmutable

lib/commercetools-api/src/Models/Order/ReturnItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function getCustom();
102102
public function getLastModifiedAt();
103103

104104
/**
105-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
105+
* <p>Date and time (UTC) the Return Item was initially created.</p>
106106
*
107107
108108
* @return null|DateTimeImmutable

lib/commercetools-api/src/Models/Order/ReturnItemBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function getLastModifiedAt()
170170
}
171171

172172
/**
173-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
173+
* <p>Date and time (UTC) the Return Item was initially created.</p>
174174
*
175175
176176
* @return null|DateTimeImmutable

lib/commercetools-api/src/Models/Order/ReturnItemModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public function getLastModifiedAt()
307307
}
308308

309309
/**
310-
* <p>Date and time (UTC) the Return Item was intitially created.</p>
310+
* <p>Date and time (UTC) the Return Item was initially created.</p>
311311
*
312312
*
313313
* @return null|DateTimeImmutable

lib/commercetools-history/src/Models/Change/AddAssetChange.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ interface AddAssetChange extends Change
1717

1818
public const FIELD_PREVIOUS_VALUE = 'previousValue';
1919
public const FIELD_NEXT_VALUE = 'nextValue';
20+
public const FIELD_CATALOG_DATA = 'catalogData';
21+
public const FIELD_VARIANT = 'variant';
2022

2123
/**
2224
@@ -46,6 +48,27 @@ public function getPreviousValue();
4648
*/
4749
public function getNextValue();
4850

51+
/**
52+
* <p>Product data that was updated.</p>
53+
* <ul>
54+
* <li><code>staged</code>, if the staged <a href="ctp:api:type:ProductCatalogData">ProductCatalogData</a> was updated.</li>
55+
* <li><code>current</code>, if the current <a href="ctp:api:type:ProductCatalogData">ProductCatalogData</a> was updated.</li>
56+
* </ul>
57+
*
58+
59+
* @return null|string
60+
*/
61+
public function getCatalogData();
62+
63+
/**
64+
* <p>Identifier of the updated Product Variant.</p>
65+
* <p>This field holds the SKU, if defined; otherwise the key; otherwise the ID.</p>
66+
*
67+
68+
* @return null|string
69+
*/
70+
public function getVariant();
71+
4972
/**
5073
* @param ?string $change
5174
*/
@@ -60,4 +83,14 @@ public function setPreviousValue(?Asset $previousValue): void;
6083
* @param ?Asset $nextValue
6184
*/
6285
public function setNextValue(?Asset $nextValue): void;
86+
87+
/**
88+
* @param ?string $catalogData
89+
*/
90+
public function setCatalogData(?string $catalogData): void;
91+
92+
/**
93+
* @param ?string $variant
94+
*/
95+
public function setVariant(?string $variant): void;
6396
}

lib/commercetools-history/src/Models/Change/AddAssetChangeBuilder.php

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ final class AddAssetChangeBuilder implements Builder
4040
*/
4141
private $nextValue;
4242

43+
/**
44+
45+
* @var ?string
46+
*/
47+
private $catalogData;
48+
49+
/**
50+
51+
* @var ?string
52+
*/
53+
private $variant;
54+
4355
/**
4456
4557
* @return null|string
@@ -71,6 +83,33 @@ public function getNextValue()
7183
return $this->nextValue instanceof AssetBuilder ? $this->nextValue->build() : $this->nextValue;
7284
}
7385

86+
/**
87+
* <p>Product data that was updated.</p>
88+
* <ul>
89+
* <li><code>staged</code>, if the staged <a href="ctp:api:type:ProductCatalogData">ProductCatalogData</a> was updated.</li>
90+
* <li><code>current</code>, if the current <a href="ctp:api:type:ProductCatalogData">ProductCatalogData</a> was updated.</li>
91+
* </ul>
92+
*
93+
94+
* @return null|string
95+
*/
96+
public function getCatalogData()
97+
{
98+
return $this->catalogData;
99+
}
100+
101+
/**
102+
* <p>Identifier of the updated Product Variant.</p>
103+
* <p>This field holds the SKU, if defined; otherwise the key; otherwise the ID.</p>
104+
*
105+
106+
* @return null|string
107+
*/
108+
public function getVariant()
109+
{
110+
return $this->variant;
111+
}
112+
74113
/**
75114
* @param ?string $change
76115
* @return $this
@@ -104,6 +143,28 @@ public function withNextValue(?Asset $nextValue)
104143
return $this;
105144
}
106145

146+
/**
147+
* @param ?string $catalogData
148+
* @return $this
149+
*/
150+
public function withCatalogData(?string $catalogData)
151+
{
152+
$this->catalogData = $catalogData;
153+
154+
return $this;
155+
}
156+
157+
/**
158+
* @param ?string $variant
159+
* @return $this
160+
*/
161+
public function withVariant(?string $variant)
162+
{
163+
$this->variant = $variant;
164+
165+
return $this;
166+
}
167+
107168
/**
108169
* @deprecated use withPreviousValue() instead
109170
* @return $this
@@ -131,7 +192,9 @@ public function build(): AddAssetChange
131192
return new AddAssetChangeModel(
132193
$this->change,
133194
$this->previousValue instanceof AssetBuilder ? $this->previousValue->build() : $this->previousValue,
134-
$this->nextValue instanceof AssetBuilder ? $this->nextValue->build() : $this->nextValue
195+
$this->nextValue instanceof AssetBuilder ? $this->nextValue->build() : $this->nextValue,
196+
$this->catalogData,
197+
$this->variant
135198
);
136199
}
137200

0 commit comments

Comments
 (0)