Skip to content

Commit 2fc59ea

Browse files
committed
build(codegen): updating SDK
1 parent 9ca2e8e commit 2fc59ea

6 files changed

Lines changed: 93 additions & 11 deletions

File tree

changes.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@
353353
- added type `GraphQLRecurringOrderFailureError`
354354
- added type `GraphQLValidityLockConflictError`
355355
- added type `BaseEvent`
356+
- added type `Event`
356357
- added type `CheckoutOrderCreationFailedEvent`
357358
- added type `CheckoutPaymentAuthorizationCancelledEvent`
358359
- added type `CheckoutPaymentAuthorizationFailedEvent`
@@ -362,13 +363,6 @@
362363
- added type `CheckoutPaymentChargedEvent`
363364
- added type `CheckoutPaymentRefundFailedEvent`
364365
- added type `CheckoutPaymentRefundedEvent`
365-
- added type `Event`
366-
- added type `ImportContainerCreatedEvent`
367-
- added type `ImportContainerDeletedEvent`
368-
- added type `ImportOperationRejectedEvent`
369-
- added type `ImportUnresolvedEvent`
370-
- added type `ImportValidationFailedEvent`
371-
- added type `ImportWaitForMasterVariantEvent`
372366
- added type `CheckoutMessageOrderPayloadBaseData`
373367
- added type `CheckoutMessagePaymentsPayloadBaseData`
374368
- added type `ImportContainerCreatedEventData`
@@ -377,6 +371,12 @@
377371
- added type `ImportUnresolvedEventData`
378372
- added type `ImportValidationFailedEventData`
379373
- added type `ImportWaitForMasterVariantEventData`
374+
- added type `ImportContainerCreatedEvent`
375+
- added type `ImportContainerDeletedEvent`
376+
- added type `ImportOperationRejectedEvent`
377+
- added type `ImportUnresolvedEvent`
378+
- added type `ImportValidationFailedEvent`
379+
- added type `ImportWaitForMasterVariantEvent`
380380
- added type `InventoryEntrySetInventoryLimitsAction`
381381
- added type `MyPaymentSetMethodInfoCustomFieldAction`
382382
- added type `MyPaymentSetMethodInfoCustomTypeAction`
@@ -738,6 +738,7 @@
738738
- added enum `product-selection` to type `ImportResourceType`
739739
- added enum `associate-role` to type `ReferenceType`
740740
- added enum `business-unit` to type `ReferenceType`
741+
- added enum `partiallyImported` to type `ProcessingState`
741742
</details>
742743

743744

@@ -764,6 +765,7 @@
764765
- added property `retentionPolicy` to type `ImportContainer`
765766
- added property `expiresAt` to type `ImportContainer`
766767
- added property `retentionPolicy` to type `ImportContainerDraft`
768+
- added property `partiallyImported` to type `OperationStates`
767769
- added property `attributes` to type `ProductDraftImport`
768770
- added property `/^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$/` to type `SearchKeywords`
769771
- added property `attributes` to type `ProductImport`

lib/commercetools-import/docs/RequestBuilder.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ $request = $builder
7676

7777
Creates an Import Container in the Project.
7878

79-
Generates the [ImportContainerCreated](/projects/events#import-container-created-event) Event.
79+
Generates the [ImportContainerCreated](ctp:api:type:ImportContainerCreatedEvent) Event.
8080

8181

8282
### Example
@@ -137,7 +137,7 @@ $request = $builder
137137

138138
Deletes an Import Container in the Project.
139139

140-
Generates the [ImportContainerDeleted](/projects/events#import-container-deleted-event) Event.
140+
Generates the [ImportContainerDeleted](ctp:api:type:ImportContainerDeletedEvent) Event.
141141

142142

143143
### Example

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ interface OperationStates extends JsonObject
2020
public const FIELD_IMPORTED = 'imported';
2121
public const FIELD_REJECTED = 'rejected';
2222
public const FIELD_CANCELED = 'canceled';
23+
public const FIELD_PARTIALLY_IMPORTED = 'partiallyImported';
2324

2425
/**
2526
* <p>The number of ImportOperations in the <code>processing</code> state.</p>
@@ -77,6 +78,14 @@ public function getRejected();
7778
*/
7879
public function getCanceled();
7980

81+
/**
82+
* <p>The number of ImportOperations in the <code>partiallyImported</code> state.</p>
83+
*
84+
85+
* @return null|int
86+
*/
87+
public function getPartiallyImported();
88+
8089
/**
8190
* @param ?int $processing
8291
*/
@@ -111,4 +120,9 @@ public function setRejected(?int $rejected): void;
111120
* @param ?int $canceled
112121
*/
113122
public function setCanceled(?int $canceled): void;
123+
124+
/**
125+
* @param ?int $partiallyImported
126+
*/
127+
public function setPartiallyImported(?int $partiallyImported): void;
114128
}

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

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ final class OperationStatesBuilder implements Builder
6262
*/
6363
private $canceled;
6464

65+
/**
66+
67+
* @var ?int
68+
*/
69+
private $partiallyImported;
70+
6571
/**
6672
* <p>The number of ImportOperations in the <code>processing</code> state.</p>
6773
*
@@ -139,6 +145,17 @@ public function getCanceled()
139145
return $this->canceled;
140146
}
141147

148+
/**
149+
* <p>The number of ImportOperations in the <code>partiallyImported</code> state.</p>
150+
*
151+
152+
* @return null|int
153+
*/
154+
public function getPartiallyImported()
155+
{
156+
return $this->partiallyImported;
157+
}
158+
142159
/**
143160
* @param ?int $processing
144161
* @return $this
@@ -216,6 +233,17 @@ public function withCanceled(?int $canceled)
216233
return $this;
217234
}
218235

236+
/**
237+
* @param ?int $partiallyImported
238+
* @return $this
239+
*/
240+
public function withPartiallyImported(?int $partiallyImported)
241+
{
242+
$this->partiallyImported = $partiallyImported;
243+
244+
return $this;
245+
}
246+
219247

220248
public function build(): OperationStates
221249
{
@@ -226,7 +254,8 @@ public function build(): OperationStates
226254
$this->waitForMasterVariant,
227255
$this->imported,
228256
$this->rejected,
229-
$this->canceled
257+
$this->canceled,
258+
$this->partiallyImported
230259
);
231260
}
232261

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

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ final class OperationStatesModel extends JsonObjectModel implements OperationSta
6161
*/
6262
protected $canceled;
6363

64+
/**
65+
*
66+
* @var ?int
67+
*/
68+
protected $partiallyImported;
69+
6470

6571
/**
6672
* @psalm-suppress MissingParamType
@@ -72,7 +78,8 @@ public function __construct(
7278
?int $waitForMasterVariant = null,
7379
?int $imported = null,
7480
?int $rejected = null,
75-
?int $canceled = null
81+
?int $canceled = null,
82+
?int $partiallyImported = null
7683
) {
7784
$this->processing = $processing;
7885
$this->validationFailed = $validationFailed;
@@ -81,6 +88,7 @@ public function __construct(
8188
$this->imported = $imported;
8289
$this->rejected = $rejected;
8390
$this->canceled = $canceled;
91+
$this->partiallyImported = $partiallyImported;
8492
}
8593

8694
/**
@@ -223,6 +231,26 @@ public function getCanceled()
223231
return $this->canceled;
224232
}
225233

234+
/**
235+
* <p>The number of ImportOperations in the <code>partiallyImported</code> state.</p>
236+
*
237+
*
238+
* @return null|int
239+
*/
240+
public function getPartiallyImported()
241+
{
242+
if (is_null($this->partiallyImported)) {
243+
/** @psalm-var ?int $data */
244+
$data = $this->raw(self::FIELD_PARTIALLY_IMPORTED);
245+
if (is_null($data)) {
246+
return null;
247+
}
248+
$this->partiallyImported = (int) $data;
249+
}
250+
251+
return $this->partiallyImported;
252+
}
253+
226254

227255
/**
228256
* @param ?int $processing
@@ -279,4 +307,12 @@ public function setCanceled(?int $canceled): void
279307
{
280308
$this->canceled = $canceled;
281309
}
310+
311+
/**
312+
* @param ?int $partiallyImported
313+
*/
314+
public function setPartiallyImported(?int $partiallyImported): void
315+
{
316+
$this->partiallyImported = $partiallyImported;
317+
}
282318
}

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,3 +606,4 @@ f2c34069b067b892f11f451fccc4b0b7886874c6
606606
d6665b3525e8817eb94e0e165e40021990e6d2dc
607607
3e6cfb24430941ef2d20ea00aeee3b1b102a2ed0
608608
d881c2aded2a23820808d785f150b153e09abe79
609+
d6881e9b71486cb67db3ba779f13d2f5142ef525

0 commit comments

Comments
 (0)