Skip to content

Commit b8e7d71

Browse files
author
Auto Mation
committed
TASK: Updating import SDK
1 parent bb9a652 commit b8e7d71

File tree

6 files changed

+77
-77
lines changed

6 files changed

+77
-77
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
hash=9b5f99017afa0bea3a5e85627b672d040973c596
1+
hash=469c219cf815f2368aa427a54d7677e00ce0c1d0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
hash=f7ee4bd84f98963b934bcc24054799f86b6887a1
1+
hash=469c219cf815f2368aa427a54d7677e00ce0c1d0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
hash=f7ee4bd84f98963b934bcc24054799f86b6887a1
1+
hash=469c219cf815f2368aa427a54d7677e00ce0c1d0

lib/commercetools-import/src/Models/Importsummaries/OperationStates.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,16 @@
1313

1414
interface OperationStates extends JsonObject
1515
{
16-
public const FIELD_ACCEPTED = 'Accepted';
1716
public const FIELD_VALIDATION_FAILED = 'ValidationFailed';
1817
public const FIELD_UNRESOLVED = 'Unresolved';
1918
public const FIELD_RESOLVED = 'Resolved';
2019
public const FIELD_WAIT_FOR_MASTER_VARIANT = 'WaitForMasterVariant';
2120
public const FIELD_IMPORTED = 'Imported';
21+
public const FIELD_DELETE = 'Delete';
2222
public const FIELD_DELETED = 'Deleted';
2323
public const FIELD_REJECTED = 'Rejected';
2424
public const FIELD_SKIPPED = 'Skipped';
2525

26-
/**
27-
* <p>The number of import operations that are in the state <code>Accepted</code>.</p>
28-
*
29-
* @return null|int
30-
*/
31-
public function getAccepted();
32-
3326
/**
3427
* <p>The number of import operations that are in the state <code>ValidationFailed</code>.</p>
3528
*
@@ -65,6 +58,13 @@ public function getWaitForMasterVariant();
6558
*/
6659
public function getImported();
6760

61+
/**
62+
* <p>The number of import operations that are in the state <code>Delete</code>.</p>
63+
*
64+
* @return null|int
65+
*/
66+
public function getDelete();
67+
6868
/**
6969
* <p>The number of import operations that are in the state <code>Deleted</code>.</p>
7070
*
@@ -86,11 +86,6 @@ public function getRejected();
8686
*/
8787
public function getSkipped();
8888

89-
/**
90-
* @param ?int $Accepted
91-
*/
92-
public function setAccepted(?int $Accepted): void;
93-
9489
/**
9590
* @param ?int $ValidationFailed
9691
*/
@@ -116,6 +111,11 @@ public function setWaitForMasterVariant(?int $WaitForMasterVariant): void;
116111
*/
117112
public function setImported(?int $Imported): void;
118113

114+
/**
115+
* @param ?int $Delete
116+
*/
117+
public function setDelete(?int $Delete): void;
118+
119119
/**
120120
* @param ?int $Deleted
121121
*/

lib/commercetools-import/src/Models/Importsummaries/OperationStatesBuilder.php

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@
2020
*/
2121
final class OperationStatesBuilder implements Builder
2222
{
23-
/**
24-
* @var ?int
25-
*/
26-
private $Accepted;
27-
2823
/**
2924
* @var ?int
3025
*/
@@ -53,27 +48,22 @@ final class OperationStatesBuilder implements Builder
5348
/**
5449
* @var ?int
5550
*/
56-
private $Deleted;
51+
private $Delete;
5752

5853
/**
5954
* @var ?int
6055
*/
61-
private $Rejected;
56+
private $Deleted;
6257

6358
/**
6459
* @var ?int
6560
*/
66-
private $Skipped;
61+
private $Rejected;
6762

6863
/**
69-
* <p>The number of import operations that are in the state <code>Accepted</code>.</p>
70-
*
71-
* @return null|int
64+
* @var ?int
7265
*/
73-
public function getAccepted()
74-
{
75-
return $this->Accepted;
76-
}
66+
private $Skipped;
7767

7868
/**
7969
* <p>The number of import operations that are in the state <code>ValidationFailed</code>.</p>
@@ -125,6 +115,16 @@ public function getImported()
125115
return $this->Imported;
126116
}
127117

118+
/**
119+
* <p>The number of import operations that are in the state <code>Delete</code>.</p>
120+
*
121+
* @return null|int
122+
*/
123+
public function getDelete()
124+
{
125+
return $this->Delete;
126+
}
127+
128128
/**
129129
* <p>The number of import operations that are in the state <code>Deleted</code>.</p>
130130
*
@@ -155,17 +155,6 @@ public function getSkipped()
155155
return $this->Skipped;
156156
}
157157

158-
/**
159-
* @param ?int $Accepted
160-
* @return $this
161-
*/
162-
public function withAccepted(?int $Accepted)
163-
{
164-
$this->Accepted = $Accepted;
165-
166-
return $this;
167-
}
168-
169158
/**
170159
* @param ?int $ValidationFailed
171160
* @return $this
@@ -221,6 +210,17 @@ public function withImported(?int $Imported)
221210
return $this;
222211
}
223212

213+
/**
214+
* @param ?int $Delete
215+
* @return $this
216+
*/
217+
public function withDelete(?int $Delete)
218+
{
219+
$this->Delete = $Delete;
220+
221+
return $this;
222+
}
223+
224224
/**
225225
* @param ?int $Deleted
226226
* @return $this
@@ -258,12 +258,12 @@ public function withSkipped(?int $Skipped)
258258
public function build(): OperationStates
259259
{
260260
return new OperationStatesModel(
261-
$this->Accepted,
262261
$this->ValidationFailed,
263262
$this->Unresolved,
264263
$this->Resolved,
265264
$this->WaitForMasterVariant,
266265
$this->Imported,
266+
$this->Delete,
267267
$this->Deleted,
268268
$this->Rejected,
269269
$this->Skipped

lib/commercetools-import/src/Models/Importsummaries/OperationStatesModel.php

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@
1919
*/
2020
final class OperationStatesModel extends JsonObjectModel implements OperationStates
2121
{
22-
/**
23-
* @var ?int
24-
*/
25-
protected $Accepted;
26-
2722
/**
2823
* @var ?int
2924
*/
@@ -49,6 +44,11 @@ final class OperationStatesModel extends JsonObjectModel implements OperationSta
4944
*/
5045
protected $Imported;
5146

47+
/**
48+
* @var ?int
49+
*/
50+
protected $Delete;
51+
5252
/**
5353
* @var ?int
5454
*/
@@ -69,46 +69,27 @@ final class OperationStatesModel extends JsonObjectModel implements OperationSta
6969
* @psalm-suppress MissingParamType
7070
*/
7171
public function __construct(
72-
?int $Accepted = null,
7372
?int $ValidationFailed = null,
7473
?int $Unresolved = null,
7574
?int $Resolved = null,
7675
?int $WaitForMasterVariant = null,
7776
?int $Imported = null,
77+
?int $Delete = null,
7878
?int $Deleted = null,
7979
?int $Rejected = null,
8080
?int $Skipped = null
8181
) {
82-
$this->Accepted = $Accepted;
8382
$this->ValidationFailed = $ValidationFailed;
8483
$this->Unresolved = $Unresolved;
8584
$this->Resolved = $Resolved;
8685
$this->WaitForMasterVariant = $WaitForMasterVariant;
8786
$this->Imported = $Imported;
87+
$this->Delete = $Delete;
8888
$this->Deleted = $Deleted;
8989
$this->Rejected = $Rejected;
9090
$this->Skipped = $Skipped;
9191
}
9292

93-
/**
94-
* <p>The number of import operations that are in the state <code>Accepted</code>.</p>
95-
*
96-
* @return null|int
97-
*/
98-
public function getAccepted()
99-
{
100-
if (is_null($this->Accepted)) {
101-
/** @psalm-var ?int $data */
102-
$data = $this->raw(self::FIELD_ACCEPTED);
103-
if (is_null($data)) {
104-
return null;
105-
}
106-
$this->Accepted = (int) $data;
107-
}
108-
109-
return $this->Accepted;
110-
}
111-
11293
/**
11394
* <p>The number of import operations that are in the state <code>ValidationFailed</code>.</p>
11495
*
@@ -204,6 +185,25 @@ public function getImported()
204185
return $this->Imported;
205186
}
206187

188+
/**
189+
* <p>The number of import operations that are in the state <code>Delete</code>.</p>
190+
*
191+
* @return null|int
192+
*/
193+
public function getDelete()
194+
{
195+
if (is_null($this->Delete)) {
196+
/** @psalm-var ?int $data */
197+
$data = $this->raw(self::FIELD_DELETE);
198+
if (is_null($data)) {
199+
return null;
200+
}
201+
$this->Delete = (int) $data;
202+
}
203+
204+
return $this->Delete;
205+
}
206+
207207
/**
208208
* <p>The number of import operations that are in the state <code>Deleted</code>.</p>
209209
*
@@ -262,14 +262,6 @@ public function getSkipped()
262262
}
263263

264264

265-
/**
266-
* @param ?int $Accepted
267-
*/
268-
public function setAccepted(?int $Accepted): void
269-
{
270-
$this->Accepted = $Accepted;
271-
}
272-
273265
/**
274266
* @param ?int $ValidationFailed
275267
*/
@@ -310,6 +302,14 @@ public function setImported(?int $Imported): void
310302
$this->Imported = $Imported;
311303
}
312304

305+
/**
306+
* @param ?int $Delete
307+
*/
308+
public function setDelete(?int $Delete): void
309+
{
310+
$this->Delete = $Delete;
311+
}
312+
313313
/**
314314
* @param ?int $Deleted
315315
*/

0 commit comments

Comments
 (0)