commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Message
LineItemStateTransitionMessagePayload.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Message
;
10
11
use
Commercetools\Api\Models\State\StateReference
;
12
use
Commercetools\Base\DateTimeImmutableCollection
;
13
use
Commercetools\Base\JsonObject
;
14
use DateTimeImmutable;
15
16
interface
LineItemStateTransitionMessagePayload
extends
OrderMessagePayload
17
{
18
public
const
FIELD_LINE_ITEM_ID
=
'lineItemId'
;
19
public
const
FIELD_LINE_ITEM_KEY
=
'lineItemKey'
;
20
public
const
FIELD_TRANSITION_DATE
=
'transitionDate'
;
21
public
const
FIELD_QUANTITY
=
'quantity'
;
22
public
const
FIELD_FROM_STATE
=
'fromState'
;
23
public
const
FIELD_TO_STATE
=
'toState'
;
24
31
public
function
getLineItemId
();
32
39
public
function
getLineItemKey
();
40
47
public
function
getTransitionDate
();
48
55
public
function
getQuantity
();
56
63
public
function
getFromState
();
64
71
public
function
getToState
();
72
76
public
function
setLineItemId
(?
string
$lineItemId): void;
77
81
public
function
setLineItemKey
(?
string
$lineItemKey): void;
82
86
public
function
setTransitionDate
(?DateTimeImmutable $transitionDate): void;
87
91
public
function
setQuantity
(?
int
$quantity): void;
92
96
public
function
setFromState
(?
StateReference
$fromState): void;
97
101
public
function
setToState
(?
StateReference
$toState): void;
102
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload
Definition:
LineItemStateTransitionMessagePayload.php:17
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\getFromState
getFromState()
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\getQuantity
getQuantity()
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\getLineItemKey
getLineItemKey()
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\setLineItemKey
setLineItemKey(?string $lineItemKey)
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\getToState
getToState()
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\setToState
setToState(?StateReference $toState)
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\FIELD_TRANSITION_DATE
const FIELD_TRANSITION_DATE
Definition:
LineItemStateTransitionMessagePayload.php:20
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\setTransitionDate
setTransitionDate(?DateTimeImmutable $transitionDate)
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\FIELD_TO_STATE
const FIELD_TO_STATE
Definition:
LineItemStateTransitionMessagePayload.php:23
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\FIELD_FROM_STATE
const FIELD_FROM_STATE
Definition:
LineItemStateTransitionMessagePayload.php:22
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\getLineItemId
getLineItemId()
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\FIELD_QUANTITY
const FIELD_QUANTITY
Definition:
LineItemStateTransitionMessagePayload.php:21
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\setFromState
setFromState(?StateReference $fromState)
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\FIELD_LINE_ITEM_KEY
const FIELD_LINE_ITEM_KEY
Definition:
LineItemStateTransitionMessagePayload.php:19
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\setQuantity
setQuantity(?int $quantity)
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\FIELD_LINE_ITEM_ID
const FIELD_LINE_ITEM_ID
Definition:
LineItemStateTransitionMessagePayload.php:18
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\getTransitionDate
getTransitionDate()
Commercetools\Api\Models\Message\LineItemStateTransitionMessagePayload\setLineItemId
setLineItemId(?string $lineItemId)
Commercetools\Api\Models\Message\OrderMessagePayload
Definition:
OrderMessagePayload.php:15
Commercetools\Api\Models\State\StateReference
Definition:
StateReference.php:16
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Message
Definition:
ApprovalFlowApprovedMessage.php:9
Generated by
1.9.1