def cost(self):
     """Formatted string value of the cost with currency symbol."""
     return format_price_with_symbol(
         self._core_despatch_method.despatch_cost,
         self._core_currency.currency_pre_symbol,
         self._core_currency.currency_post_symbol,
     )
Example #2
0
 def total_cost(self):
     """Formatted string value of the total combined price with currency
     symbol."""
     return format_price_with_symbol(
         self._core_bundle.bundle_total_cost,
         self._core_bundle.currency.currency_pre_symbol,
         self._core_bundle.currency.currency_post_symbol
     )
Example #3
0
 def total_despatch(self):
     """Formatted string value of the total despatch cost with currency
     symbol."""
     return format_price_with_symbol(
         self._core_bundle.bundle_total_despatch,
         self._core_bundle.currency.currency_pre_symbol,
         self._core_bundle.currency.currency_post_symbol
     )
Example #4
0
 def total_surcharge(self):
     """Formatted string value of the total surcharge cost with currency
     symbol."""
     return format_price_with_symbol(
         self._core_bundle.bundle_total_surcharge,
         self._core_bundle.currency.currency_pre_symbol,
         self._core_bundle.currency.currency_post_symbol
     )
    def surcharge(self):
        """Formatted string value of the surcharge with currency symbol."""

        return format_price_with_symbol(
            self._core_avail_detail.surcharge,
            self._core_currency.currency_pre_symbol,
            self._core_currency.currency_post_symbol,
        )
 def ticket_price(self):
     """Formatted string value of the combined price with currency symbol.
     """
     return format_price_with_symbol(
         self._core_discount.combined,
         self._core_currency.currency_pre_symbol,
         self._core_currency.currency_post_symbol,
     )
Example #7
0
 def total_inc_despatch(self):
     """Formatted string value of the total combined price including
     despatch with currency symbol.
     """
     return format_price_with_symbol(
         str(self.total_inc_despatch_float),
         self._core_currency.currency_pre_symbol,
         self._core_currency.currency_post_symbol
     )
    def price_without_surcharge(self):
        """Formatted string value of the price excluding surcharge with
        currency symbol."""

        return format_price_with_symbol(
            self._core_price_band.ticket_price,
            self._core_currency.currency_pre_symbol,
            self._core_currency.currency_post_symbol,
        )
Example #9
0
 def offer_surcharge_price(self):
     """Formatted string value of the offer surcharge price with
     currency symbol.
     """
     return format_price_with_symbol(
         self._core_offer['offer_surcharge'],
         self.currency.pre_symbol,
         self.currency.post_symbol
     )
Example #10
0
 def offer_combined_price(self):
     """Formatted string value of the offer combined price with
     currency symbol.
     """
     return format_price_with_symbol(
         self._core_offer['offer_combined'],
         self.currency.pre_symbol,
         self.currency.post_symbol
     )
 def seatprice(self):
     """Formatted string value of the seat price (i.e. without surcharge)
     with currency symbol.
     """
     return format_price_with_symbol(
         self._core_discount.seatprice,
         self._core_currency.currency_pre_symbol,
         self._core_currency.currency_post_symbol,
     )
Example #12
0
 def total_combined(self):
     """Formatted string value of the total combined price with currency
     symbol.
     """
     return format_price_with_symbol(
         str(self.total_combined_float),
         self._core_currency.currency_pre_symbol,
         self._core_currency.currency_post_symbol
     )
Example #13
0
 def full_seatprice(self):
     """Formatted string value of the full seatprice price with
     currency symbol.
     """
     return format_price_with_symbol(
         self._core_offer['full_seatprice'],
         self.currency.pre_symbol,
         self.currency.post_symbol
     )
    def price_combined(self):
        """Formatted string value of the combined seatprice + surcharge with
        currency symbol.
        """

        combined_price = str(self.price_combined_float)

        return format_price_with_symbol(
            combined_price, self._core_currency.currency_pre_symbol, self._core_currency.currency_post_symbol
        )
    def price_combined(self):
        """Formatted string value of the combined price with currency symbol.
        """
        formatted_price = None

        combined_price = str(self.price_combined_float)

        formatted_price = format_price_with_symbol(
            combined_price, self._core_currency.currency_pre_symbol, self._core_currency.currency_post_symbol
        )

        return formatted_price
    def non_offer_combined(self):
        """Formatted string value of the original combined price with
        currency symbol (i.e. if there was no offer).
        """
        formatted_price = None

        combined_price = str(self.non_offer_combined_float)

        formatted_price = format_price_with_symbol(
            combined_price, self._core_currency.currency_pre_symbol, self._core_currency.currency_post_symbol
        )

        return formatted_price
    def non_offer_surcharge(self):
        """Formatted string value of the full_surcharge with currency symbol.
        Returns None if doesn't exist.
        """

        if self._core_avail_detail.full_surcharge:
            return format_price_with_symbol(
                self._core_avail_detail.full_surcharge,
                self._core_currency.currency_pre_symbol,
                self._core_currency.currency_post_symbol,
            )

        return None
    def absolute_saving(self):
        """Formatted string value of the absolute_saving with currency symbol.
        Returns None if doesn't exist.
        """

        if self._core_avail_detail.absolute_saving:
            return format_price_with_symbol(
                self._core_avail_detail.absolute_saving,
                self._core_currency.currency_pre_symbol,
                self._core_currency.currency_post_symbol,
            )

        return None
Example #19
0
    def non_offer_surcharge(self):
        """Formatted string value of the original surcharge with
        currency symbol (i.e. if there was no offer).
        """
        surcharge = str(self.non_offer_surcharge_float)

        formatted_price = format_price_with_symbol(
            surcharge,
            self._core_currency.currency_pre_symbol,
            self._core_currency.currency_post_symbol
        )

        return formatted_price
Example #20
0
    def absolute_saving(self):
        """Formatted string value of the absolute saving value with
        currency symbol.
        """

        ret_val = None

        if self.absolute_saving_float is not None:

            ret_val = format_price_with_symbol(
                self.absolute_saving_float,
                self.currency.pre_symbol,
                self.currency.post_symbol
            )
        return ret_val
    def non_offer_combined(self):
        """Formatted string value of the combined full_seatprice +
        full_surcharge with currency symbol. Returns None if doesn't exist.
        """

        if self._core_avail_detail.full_seatprice and self._core_avail_detail.full_surcharge:

            combined_price = str(
                float(self._core_avail_detail.full_seatprice) + float(self._core_avail_detail.full_surcharge)
            )
            return format_price_with_symbol(
                combined_price, self._core_currency.currency_pre_symbol, self._core_currency.currency_post_symbol
            )

        return None
Example #22
0
    def min_combined_price(self):
        """Formatted string value of the minimun combined price with
        currency symbol.
        """
        min_price = None
        cost_range = self._get_core_cost_range()

        if cost_range:

            min_price = format_price_with_symbol(
                cost_range.min_combined,
                cost_range.currency.currency_pre_symbol,
                cost_range.currency.currency_post_symbol
            )

        return min_price