|
@@ 547-555 (lines=9) @@
|
| 544 |
|
* Apply the booking info updated event to the offer repository. |
| 545 |
|
* @param AbstractBookingInfoUpdated $bookingInfoUpdated |
| 546 |
|
*/ |
| 547 |
|
protected function applyBookingInfoUpdated(AbstractBookingInfoUpdated $bookingInfoUpdated) |
| 548 |
|
{ |
| 549 |
|
$document = $this->loadDocumentFromRepository($bookingInfoUpdated); |
| 550 |
|
|
| 551 |
|
$offerLd = $document->getBody(); |
| 552 |
|
$offerLd->bookingInfo = $bookingInfoUpdated->getBookingInfo()->toJsonLd(); |
| 553 |
|
|
| 554 |
|
$this->repository->save($document->withBody($offerLd)); |
| 555 |
|
} |
| 556 |
|
|
| 557 |
|
/** |
| 558 |
|
* @param AbstractPriceInfoUpdated $priceInfoUpdated |
|
@@ 592-600 (lines=9) @@
|
| 589 |
|
* Apply the contact point updated event to the offer repository. |
| 590 |
|
* @param AbstractContactPointUpdated $contactPointUpdated |
| 591 |
|
*/ |
| 592 |
|
protected function applyContactPointUpdated(AbstractContactPointUpdated $contactPointUpdated) |
| 593 |
|
{ |
| 594 |
|
$document = $this->loadDocumentFromRepository($contactPointUpdated); |
| 595 |
|
|
| 596 |
|
$offerLd = $document->getBody(); |
| 597 |
|
$offerLd->contactPoint = $contactPointUpdated->getContactPoint()->toJsonLd(); |
| 598 |
|
|
| 599 |
|
$this->repository->save($document->withBody($offerLd)); |
| 600 |
|
} |
| 601 |
|
|
| 602 |
|
/** |
| 603 |
|
* Apply the description updated event to the offer repository. |