@@ 547-555 (lines=9) @@ | ||
544 | * |
|
545 | * @return string |
|
546 | */ |
|
547 | protected function serializeShippingProgram() |
|
548 | { |
|
549 | if (!is_null($this->getShippingProgram())) { |
|
550 | return "<ShippingProgram {$this->serializeOptionalAttribute('authToken', $this->xmlEncode($this->getShippingProgramAuthToken()))}>" |
|
551 | . $this->xmlEncode($this->getShippingProgram()) |
|
552 | .'</ShippingProgram>'; |
|
553 | } |
|
554 | return ''; |
|
555 | } |
|
556 | ||
557 | /** |
|
558 | * Create a shipping method serialization if one is set for the payload. |
|
@@ 562-570 (lines=9) @@ | ||
559 | * |
|
560 | * @return string |
|
561 | */ |
|
562 | protected function serializeShippingMethod() |
|
563 | { |
|
564 | if (!is_null($this->getShippingMethod())) { |
|
565 | return "<ShippingMethod {$this->serializeOptionalAttribute('displayText', $this->xmlEncode($this->getShippingMethodDisplayText()))}>" |
|
566 | . $this->xmlEncode($this->getShippingMethod()) |
|
567 | .'</ShippingMethod>'; |
|
568 | } |
|
569 | return ''; |
|
570 | } |
|
571 | ||
572 | /** |
|
573 | * If given an IPayload, return the serialization of the payload. Otherwise, |