commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Order
OrderFromCartDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Order
;
10
11
use
Commercetools\Api\Models\Cart\CartResourceIdentifier
;
12
use
Commercetools\Api\Models\State\StateResourceIdentifier
;
13
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
14
use
Commercetools\Base\DateTimeImmutableCollection
;
15
use
Commercetools\Base\JsonObject
;
16
17
interface
OrderFromCartDraft
extends
JsonObject
18
{
19
public
const
FIELD_ID
=
'id'
;
20
public
const
FIELD_CART
=
'cart'
;
21
public
const
FIELD_VERSION
=
'version'
;
22
public
const
FIELD_ORDER_NUMBER
=
'orderNumber'
;
23
public
const
FIELD_PURCHASE_ORDER_NUMBER
=
'purchaseOrderNumber'
;
24
public
const
FIELD_PAYMENT_STATE
=
'paymentState'
;
25
public
const
FIELD_SHIPMENT_STATE
=
'shipmentState'
;
26
public
const
FIELD_ORDER_STATE
=
'orderState'
;
27
public
const
FIELD_STATE
=
'state'
;
28
public
const
FIELD_CUSTOM
=
'custom'
;
29
36
public
function
getId
();
37
45
public
function
getCart
();
46
53
public
function
getVersion
();
54
62
public
function
getOrderNumber
();
63
71
public
function
getPurchaseOrderNumber
();
72
79
public
function
getPaymentState
();
80
87
public
function
getShipmentState
();
88
95
public
function
getOrderState
();
96
103
public
function
getState
();
104
116
public
function
getCustom
();
117
121
public
function
setId
(?
string
$id): void;
122
126
public
function
setCart
(?
CartResourceIdentifier
$cart): void;
127
131
public
function
setVersion
(?
int
$version): void;
132
136
public
function
setOrderNumber
(?
string
$orderNumber): void;
137
141
public
function
setPurchaseOrderNumber
(?
string
$purchaseOrderNumber): void;
142
146
public
function
setPaymentState
(?
string
$paymentState): void;
147
151
public
function
setShipmentState
(?
string
$shipmentState): void;
152
156
public
function
setOrderState
(?
string
$orderState): void;
157
161
public
function
setState
(?
StateResourceIdentifier
$state): void;
162
166
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
167
}
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Cart\CartResourceIdentifier
Definition:
CartResourceIdentifier.php:16
Commercetools\Api\Models\Order\OrderFromCartDraft
Definition:
OrderFromCartDraft.php:18
Commercetools\Api\Models\Order\OrderFromCartDraft\getPaymentState
getPaymentState()
Commercetools\Api\Models\Order\OrderFromCartDraft\setPaymentState
setPaymentState(?string $paymentState)
Commercetools\Api\Models\Order\OrderFromCartDraft\FIELD_CART
const FIELD_CART
Definition:
OrderFromCartDraft.php:20
Commercetools\Api\Models\Order\OrderFromCartDraft\setState
setState(?StateResourceIdentifier $state)
Commercetools\Api\Models\Order\OrderFromCartDraft\FIELD_VERSION
const FIELD_VERSION
Definition:
OrderFromCartDraft.php:21
Commercetools\Api\Models\Order\OrderFromCartDraft\getState
getState()
Commercetools\Api\Models\Order\OrderFromCartDraft\FIELD_ORDER_NUMBER
const FIELD_ORDER_NUMBER
Definition:
OrderFromCartDraft.php:22
Commercetools\Api\Models\Order\OrderFromCartDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
OrderFromCartDraft.php:28
Commercetools\Api\Models\Order\OrderFromCartDraft\setOrderNumber
setOrderNumber(?string $orderNumber)
Commercetools\Api\Models\Order\OrderFromCartDraft\setOrderState
setOrderState(?string $orderState)
Commercetools\Api\Models\Order\OrderFromCartDraft\FIELD_PURCHASE_ORDER_NUMBER
const FIELD_PURCHASE_ORDER_NUMBER
Definition:
OrderFromCartDraft.php:23
Commercetools\Api\Models\Order\OrderFromCartDraft\setPurchaseOrderNumber
setPurchaseOrderNumber(?string $purchaseOrderNumber)
Commercetools\Api\Models\Order\OrderFromCartDraft\FIELD_PAYMENT_STATE
const FIELD_PAYMENT_STATE
Definition:
OrderFromCartDraft.php:24
Commercetools\Api\Models\Order\OrderFromCartDraft\getId
getId()
Commercetools\Api\Models\Order\OrderFromCartDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Order\OrderFromCartDraft\FIELD_ORDER_STATE
const FIELD_ORDER_STATE
Definition:
OrderFromCartDraft.php:26
Commercetools\Api\Models\Order\OrderFromCartDraft\getOrderNumber
getOrderNumber()
Commercetools\Api\Models\Order\OrderFromCartDraft\FIELD_STATE
const FIELD_STATE
Definition:
OrderFromCartDraft.php:27
Commercetools\Api\Models\Order\OrderFromCartDraft\getShipmentState
getShipmentState()
Commercetools\Api\Models\Order\OrderFromCartDraft\getPurchaseOrderNumber
getPurchaseOrderNumber()
Commercetools\Api\Models\Order\OrderFromCartDraft\FIELD_ID
const FIELD_ID
Definition:
OrderFromCartDraft.php:19
Commercetools\Api\Models\Order\OrderFromCartDraft\FIELD_SHIPMENT_STATE
const FIELD_SHIPMENT_STATE
Definition:
OrderFromCartDraft.php:25
Commercetools\Api\Models\Order\OrderFromCartDraft\setShipmentState
setShipmentState(?string $shipmentState)
Commercetools\Api\Models\Order\OrderFromCartDraft\setId
setId(?string $id)
Commercetools\Api\Models\Order\OrderFromCartDraft\getCart
getCart()
Commercetools\Api\Models\Order\OrderFromCartDraft\setVersion
setVersion(?int $version)
Commercetools\Api\Models\Order\OrderFromCartDraft\getCustom
getCustom()
Commercetools\Api\Models\Order\OrderFromCartDraft\getVersion
getVersion()
Commercetools\Api\Models\Order\OrderFromCartDraft\setCart
setCart(?CartResourceIdentifier $cart)
Commercetools\Api\Models\Order\OrderFromCartDraft\getOrderState
getOrderState()
Commercetools\Api\Models\State\StateResourceIdentifier
Definition:
StateResourceIdentifier.php:16
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Order
Definition:
CustomLineItemImportDraft.php:9
Generated by
1.9.1