public function getSerializationFields()
{
$arrayRep = array('basketElements' => $this->getBasketElements(), 'positions' => $this->positions, 'paymentMethodCode' => $this->paymentMethodCode, 'cptElement' => $this->cptElement, 'deliveryMethodCode' => $this->deliveryMethodCode, 'options' => $this->options, 'locale' => $this->locale, 'currency' => $this->currency);
if (null !== $this->deliveryAddressId) {
$arrayRep['deliveryAddressId'] = $this->deliveryAddressId;
} elseif (null !== $this->deliveryAddress) {
$arrayRep['deliveryAddress'] = $this->deliveryAddress;
}
if (null !== $this->billingAddressId) {
$arrayRep['billingAddressId'] = $this->billingAddressId;
} elseif (null !== $this->billingAddress) {
$arrayRep['billingAddress'] = $this->billingAddress;
}
if (null !== $this->customerId) {
$arrayRep['customerId'] = $this->customerId;
} elseif (null !== $this->customer) {
$arrayRep['customer'] = $this->customer;
}
return $arrayRep;
}