feat: additional custom discount applied to total price
This commit is contained in:
@@ -73,6 +73,13 @@ final readonly class AccommodationBookingApiResponse
|
||||
#[Groups(['api:single'])]
|
||||
public ?int $additionalServicesDiscount;
|
||||
|
||||
/** Applies to the total after the three section discounts above, not to the gross total. */
|
||||
#[Groups(['api:single'])]
|
||||
public ?int $totalDiscount;
|
||||
|
||||
#[Groups(['api:single'])]
|
||||
public ?string $totalDiscountLabel;
|
||||
|
||||
#[Groups(['api:single'])]
|
||||
public ?int $totalPrice;
|
||||
|
||||
@@ -115,6 +122,8 @@ final readonly class AccommodationBookingApiResponse
|
||||
$this->accommodationDiscount = $booking->getAccommodationDiscount();
|
||||
$this->boardServiceDiscount = $booking->getBoardServiceDiscount();
|
||||
$this->additionalServicesDiscount = $booking->getAdditionalServicesDiscount();
|
||||
$this->totalDiscount = $booking->getTotalDiscount();
|
||||
$this->totalDiscountLabel = $booking->getTotalDiscountLabel();
|
||||
$this->totalPrice = $booking->getTotalPrice();
|
||||
$this->pricingCurrency = $booking->getPricingCurrency();
|
||||
$this->pricingVersion = $booking->getPricingVersion();
|
||||
|
||||
Reference in New Issue
Block a user