Skip to content

Commit 2c5dc53

Browse files
Merge pull request #470 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 424ef26 + 879d140 commit 2c5dc53

29 files changed

+2120
-6
lines changed

changes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
- added property `minCartQuantity` to type `InventoryEntryDraft`
100100
- added property `maxCartQuantity` to type `InventoryEntryDraft`
101101
- added property `recurrenceInfo` to type `MyLineItemDraft`
102+
- added property `interfaceId` to type `MyTransactionDraft`
102103
- added property `recurrenceInfo` to type `MyCartAddLineItemAction`
103104
- added property `value` to type `CustomerEmailTokenCreatedMessage`
104105
- added property `invalidateOlderTokens` to type `CustomerEmailTokenCreatedMessage`
@@ -122,6 +123,8 @@
122123
- added property `token` to type `PaymentMethodInfo`
123124
- added property `interfaceAccount` to type `PaymentMethodInfo`
124125
- added property `custom` to type `PaymentMethodInfo`
126+
- added property `interfaceId` to type `Transaction`
127+
- added property `interfaceId` to type `TransactionDraft`
125128
- added property `priceCustomerGroupAssignments` to type `ProductSearchProjectionParams`
126129
- added property `attributes` to type `ProductTailoringData`
127130
- added property `attributes` to type `ProductTailoringDraft`
@@ -422,6 +425,7 @@
422425
- added type `PaymentMethodNameSetMessage`
423426
- added type `PaymentMethodPaymentInterfaceSetMessage`
424427
- added type `PaymentMethodPaymentMethodStatusSetMessage`
428+
- added type `PaymentTransactionInterfaceIdSetMessage`
425429
- added type `RecurringOrderCreatedMessage`
426430
- added type `RecurringOrderCustomFieldAddedMessage`
427431
- added type `RecurringOrderCustomFieldChangedMessage`
@@ -476,6 +480,7 @@
476480
- added type `PaymentMethodNameSetMessagePayload`
477481
- added type `PaymentMethodPaymentInterfaceSetMessagePayload`
478482
- added type `PaymentMethodPaymentMethodStatusSetMessagePayload`
483+
- added type `PaymentTransactionInterfaceIdSetMessagePayload`
479484
- added type `RecurringOrderCreatedMessagePayload`
480485
- added type `RecurringOrderCustomFieldAddedMessagePayload`
481486
- added type `RecurringOrderCustomFieldChangedMessagePayload`
@@ -515,6 +520,7 @@
515520
- added type `PaymentSetMethodInfoCustomTypeAction`
516521
- added type `PaymentSetMethodInfoInterfaceAccountAction`
517522
- added type `PaymentSetMethodInfoTokenAction`
523+
- added type `PaymentSetTransactionInterfaceIdAction`
518524
- added type `ProductSearchFacetResultStats`
519525
- added type `ProductSearchFacetStatsExpression`
520526
- added type `ProductSearchFacetStatsValue`

lib/commercetools-api/src/Models/Common/BaseResource.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170
use Commercetools\Api\Models\Message\PaymentStatusInterfaceCodeSetMessage;
171171
use Commercetools\Api\Models\Message\PaymentStatusStateTransitionMessage;
172172
use Commercetools\Api\Models\Message\PaymentTransactionAddedMessage;
173+
use Commercetools\Api\Models\Message\PaymentTransactionInterfaceIdSetMessage;
173174
use Commercetools\Api\Models\Message\PaymentTransactionStateChangedMessage;
174175
use Commercetools\Api\Models\Message\ProductAddedToCategoryMessage;
175176
use Commercetools\Api\Models\Message\ProductCreatedMessage;

lib/commercetools-api/src/Models/Common/BaseResourceBuilder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@
332332
use Commercetools\Api\Models\Message\PaymentStatusStateTransitionMessageBuilder;
333333
use Commercetools\Api\Models\Message\PaymentTransactionAddedMessage;
334334
use Commercetools\Api\Models\Message\PaymentTransactionAddedMessageBuilder;
335+
use Commercetools\Api\Models\Message\PaymentTransactionInterfaceIdSetMessage;
336+
use Commercetools\Api\Models\Message\PaymentTransactionInterfaceIdSetMessageBuilder;
335337
use Commercetools\Api\Models\Message\PaymentTransactionStateChangedMessage;
336338
use Commercetools\Api\Models\Message\PaymentTransactionStateChangedMessageBuilder;
337339
use Commercetools\Api\Models\Message\ProductAddedToCategoryMessage;

lib/commercetools-api/src/Models/Common/BaseResourceModel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@
332332
use Commercetools\Api\Models\Message\PaymentStatusStateTransitionMessageModel;
333333
use Commercetools\Api\Models\Message\PaymentTransactionAddedMessage;
334334
use Commercetools\Api\Models\Message\PaymentTransactionAddedMessageModel;
335+
use Commercetools\Api\Models\Message\PaymentTransactionInterfaceIdSetMessage;
336+
use Commercetools\Api\Models\Message\PaymentTransactionInterfaceIdSetMessageModel;
335337
use Commercetools\Api\Models\Message\PaymentTransactionStateChangedMessage;
336338
use Commercetools\Api\Models\Message\PaymentTransactionStateChangedMessageModel;
337339
use Commercetools\Api\Models\Message\ProductAddedToCategoryMessage;

lib/commercetools-api/src/Models/Me/MyTransactionDraft.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ interface MyTransactionDraft extends JsonObject
2121
public const FIELD_AMOUNT = 'amount';
2222
public const FIELD_INTERACTION_ID = 'interactionId';
2323
public const FIELD_CUSTOM = 'custom';
24+
public const FIELD_INTERFACE_ID = 'interfaceId';
2425

2526
/**
2627
* <p>Date and time (UTC) the Transaction took place.</p>
@@ -64,6 +65,14 @@ public function getInteractionId();
6465
*/
6566
public function getCustom();
6667

68+
/**
69+
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.</p>
70+
*
71+
72+
* @return null|string
73+
*/
74+
public function getInterfaceId();
75+
6776
/**
6877
* @param ?DateTimeImmutable $timestamp
6978
*/
@@ -88,4 +97,9 @@ public function setInteractionId(?string $interactionId): void;
8897
* @param ?CustomFieldsDraft $custom
8998
*/
9099
public function setCustom(?CustomFieldsDraft $custom): void;
100+
101+
/**
102+
* @param ?string $interfaceId
103+
*/
104+
public function setInterfaceId(?string $interfaceId): void;
91105
}

lib/commercetools-api/src/Models/Me/MyTransactionDraftBuilder.php

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ final class MyTransactionDraftBuilder implements Builder
5555
*/
5656
private $custom;
5757

58+
/**
59+
60+
* @var ?string
61+
*/
62+
private $interfaceId;
63+
5864
/**
5965
* <p>Date and time (UTC) the Transaction took place.</p>
6066
*
@@ -112,6 +118,17 @@ public function getCustom()
112118
return $this->custom instanceof CustomFieldsDraftBuilder ? $this->custom->build() : $this->custom;
113119
}
114120

121+
/**
122+
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.</p>
123+
*
124+
125+
* @return null|string
126+
*/
127+
public function getInterfaceId()
128+
{
129+
return $this->interfaceId;
130+
}
131+
115132
/**
116133
* @param ?DateTimeImmutable $timestamp
117134
* @return $this
@@ -167,6 +184,17 @@ public function withCustom(?CustomFieldsDraft $custom)
167184
return $this;
168185
}
169186

187+
/**
188+
* @param ?string $interfaceId
189+
* @return $this
190+
*/
191+
public function withInterfaceId(?string $interfaceId)
192+
{
193+
$this->interfaceId = $interfaceId;
194+
195+
return $this;
196+
}
197+
170198
/**
171199
* @deprecated use withAmount() instead
172200
* @return $this
@@ -196,7 +224,8 @@ public function build(): MyTransactionDraft
196224
$this->type,
197225
$this->amount instanceof MoneyBuilder ? $this->amount->build() : $this->amount,
198226
$this->interactionId,
199-
$this->custom instanceof CustomFieldsDraftBuilder ? $this->custom->build() : $this->custom
227+
$this->custom instanceof CustomFieldsDraftBuilder ? $this->custom->build() : $this->custom,
228+
$this->interfaceId
200229
);
201230
}
202231

lib/commercetools-api/src/Models/Me/MyTransactionDraftModel.php

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ final class MyTransactionDraftModel extends JsonObjectModel implements MyTransac
5454
*/
5555
protected $custom;
5656

57+
/**
58+
*
59+
* @var ?string
60+
*/
61+
protected $interfaceId;
62+
5763

5864
/**
5965
* @psalm-suppress MissingParamType
@@ -63,13 +69,15 @@ public function __construct(
6369
?string $type = null,
6470
?Money $amount = null,
6571
?string $interactionId = null,
66-
?CustomFieldsDraft $custom = null
72+
?CustomFieldsDraft $custom = null,
73+
?string $interfaceId = null
6774
) {
6875
$this->timestamp = $timestamp;
6976
$this->type = $type;
7077
$this->amount = $amount;
7178
$this->interactionId = $interactionId;
7279
$this->custom = $custom;
80+
$this->interfaceId = $interfaceId;
7381
}
7482

7583
/**
@@ -180,6 +188,26 @@ public function getCustom()
180188
return $this->custom;
181189
}
182190

191+
/**
192+
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) in the current transaction.</p>
193+
*
194+
*
195+
* @return null|string
196+
*/
197+
public function getInterfaceId()
198+
{
199+
if (is_null($this->interfaceId)) {
200+
/** @psalm-var ?string $data */
201+
$data = $this->raw(self::FIELD_INTERFACE_ID);
202+
if (is_null($data)) {
203+
return null;
204+
}
205+
$this->interfaceId = (string) $data;
206+
}
207+
208+
return $this->interfaceId;
209+
}
210+
183211

184212
/**
185213
* @param ?DateTimeImmutable $timestamp
@@ -221,6 +249,14 @@ public function setCustom(?CustomFieldsDraft $custom): void
221249
$this->custom = $custom;
222250
}
223251

252+
/**
253+
* @param ?string $interfaceId
254+
*/
255+
public function setInterfaceId(?string $interfaceId): void
256+
{
257+
$this->interfaceId = $interfaceId;
258+
}
259+
224260

225261
#[\ReturnTypeWillChange]
226262
public function jsonSerialize()

lib/commercetools-api/src/Models/Message/MessageModel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ final class MessageModel extends JsonObjectModel implements Message
294294
'PaymentStatusInterfaceCodeSet' => PaymentStatusInterfaceCodeSetMessageModel::class,
295295
'PaymentStatusStateTransition' => PaymentStatusStateTransitionMessageModel::class,
296296
'PaymentTransactionAdded' => PaymentTransactionAddedMessageModel::class,
297+
'PaymentTransactionInterfaceIdSet' => PaymentTransactionInterfaceIdSetMessageModel::class,
297298
'PaymentTransactionStateChanged' => PaymentTransactionStateChangedMessageModel::class,
298299
'ProductAddedToCategory' => ProductAddedToCategoryMessageModel::class,
299300
'ProductCreated' => ProductCreatedMessageModel::class,

lib/commercetools-api/src/Models/Message/MessagePayloadModel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ final class MessagePayloadModel extends JsonObjectModel implements MessagePayloa
225225
'PaymentStatusInterfaceCodeSet' => PaymentStatusInterfaceCodeSetMessagePayloadModel::class,
226226
'PaymentStatusStateTransition' => PaymentStatusStateTransitionMessagePayloadModel::class,
227227
'PaymentTransactionAdded' => PaymentTransactionAddedMessagePayloadModel::class,
228+
'PaymentTransactionInterfaceIdSet' => PaymentTransactionInterfaceIdSetMessagePayloadModel::class,
228229
'PaymentTransactionStateChanged' => PaymentTransactionStateChangedMessagePayloadModel::class,
229230
'ProductAddedToCategory' => ProductAddedToCategoryMessagePayloadModel::class,
230231
'ProductCreated' => ProductCreatedMessagePayloadModel::class,
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
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\Message;
10+
11+
use Commercetools\Base\DateTimeImmutableCollection;
12+
use Commercetools\Base\JsonObject;
13+
14+
interface PaymentTransactionInterfaceIdSetMessage extends Message
15+
{
16+
public const FIELD_TRANSACTION_ID = 'transactionId';
17+
public const FIELD_NEW_INTERFACE_ID = 'newInterfaceId';
18+
public const FIELD_OLD_INTERFACE_ID = 'oldInterfaceId';
19+
20+
/**
21+
* <p>Unique identifier of the <a href="ctp:api:type:Transaction">Transaction</a>.</p>
22+
*
23+
24+
* @return null|string
25+
*/
26+
public function getTransactionId();
27+
28+
/**
29+
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) after <a href="ctp:api:type:PaymentSetTransactionInterfaceIdAction">Set Transaction InterfaceId</a> update action.</p>
30+
*
31+
32+
* @return null|string
33+
*/
34+
public function getNewInterfaceId();
35+
36+
/**
37+
* <p>Identifier used by the payment service that processes the Payment (for example, a PSP) before the <a href="ctp:api:type:PaymentSetTransactionInterfaceIdAction">Set Transaction InterfaceId</a> update action.</p>
38+
*
39+
40+
* @return null|string
41+
*/
42+
public function getOldInterfaceId();
43+
44+
/**
45+
* @param ?string $transactionId
46+
*/
47+
public function setTransactionId(?string $transactionId): void;
48+
49+
/**
50+
* @param ?string $newInterfaceId
51+
*/
52+
public function setNewInterfaceId(?string $newInterfaceId): void;
53+
54+
/**
55+
* @param ?string $oldInterfaceId
56+
*/
57+
public function setOldInterfaceId(?string $oldInterfaceId): void;
58+
}

0 commit comments

Comments
 (0)