src/eBayEnterprise/RetailOrderManagement/Payload/Customer/OrderSummary.php 1 location
|
@@ 437-444 (lines=8) @@
|
| 434 |
|
* Serialize the chain order node. |
| 435 |
|
* @return string | null |
| 436 |
|
*/ |
| 437 |
|
protected function serializeChainedOrder($node, $value) |
| 438 |
|
{ |
| 439 |
|
$parentRef = $this->getParentRef(); |
| 440 |
|
$typeAttribute = $this->serializeOptionalAttribute('type', $this->xmlEncode($this->getType())); |
| 441 |
|
$parentRefAttribute = $this->serializeOptionalAttribute('parentRef', $this->xmlEncode($parentRef)); |
| 442 |
|
return $parentRef |
| 443 |
|
? sprintf('<%s %s %s>%s</%1$s>', $node, $typeAttribute, $parentRefAttribute, $value) : null; |
| 444 |
|
} |
| 445 |
|
|
| 446 |
|
/** |
| 447 |
|
* Serialize the derived order node. |
src/eBayEnterprise/RetailOrderManagement/Payload/Order/Detail/OrderDetailItem.php 1 location
|
@@ 505-511 (lines=7) @@
|
| 502 |
|
* @param string |
| 503 |
|
* @return string | null |
| 504 |
|
*/ |
| 505 |
|
protected function serializeCarrierValue($nodeName, $value) |
| 506 |
|
{ |
| 507 |
|
$modeAttribute = $this->serializeOptionalAttribute('mode', $this->xmlEncode($this->getCarrierMode())); |
| 508 |
|
$displayTextAttribute = $this->serializeOptionalAttribute('displayText', $this->xmlEncode($this->getCarrierDisplayText())); |
| 509 |
|
return $value |
| 510 |
|
? sprintf('<%s %s %s>%s</%1$s>', $nodeName, $modeAttribute, $displayTextAttribute, $this->xmlEncode($value)) : null; |
| 511 |
|
} |
| 512 |
|
} |
| 513 |
|
|
src/eBayEnterprise/RetailOrderManagement/Payload/Order/Detail/Shipment.php 1 location
|
@@ 331-337 (lines=7) @@
|
| 328 |
|
* @param string |
| 329 |
|
* @return string | null |
| 330 |
|
*/ |
| 331 |
|
protected function serializeCarrierValue($nodeName, $value) |
| 332 |
|
{ |
| 333 |
|
$modeAttribute = $this->serializeOptionalAttribute('mode', $this->xmlEncode($this->getMode())); |
| 334 |
|
$displayTextAttribute = $this->serializeOptionalAttribute('displayText', $this->xmlEncode($this->getDisplayText())); |
| 335 |
|
return $value |
| 336 |
|
? sprintf('<%s %s %s>%s</%1$s>', $nodeName, $modeAttribute, $displayTextAttribute, $this->xmlEncode($value)) : null; |
| 337 |
|
} |
| 338 |
|
|
| 339 |
|
/** |
| 340 |
|
* @see TPayload::getRootAttributes() |