from oscar.apps.checkout import session

from . import tax

class CheckoutSessionMixin(session.CheckoutSessionMixin):

    def build_submission(self, **kwargs):
        submission = super().build_submission(
            **kwargs)

        if submission['shipping_address'] and submission['shipping_method']:
            tax.apply_to(submission)

            # Recalculate order total to ensure we have a tax-inclusive total
            submission['order_total'] = self.get_order_totals(
                submission['basket'],
                submission['shipping_charge'])

        return submission

f95a020038dde263aecd31f3c32c92108810d44b
<mask token>

<mask token>


class CheckoutSessionMixin(session.CheckoutSessionMixin):
    <mask token>

<mask token>


class CheckoutSessionMixin(session.CheckoutSessionMixin):

    def build_submission(self, **kwargs):
        submission = super().build_submission(**kwargs)
        if submission['shipping_address'] and submission['shipping_method']:
            tax.apply_to(submission)
            submission['order_total'] = self.get_order_totals(submission[
                'basket'], submission['shipping_charge'])
        return submission

from oscar.apps.checkout import session
from . import tax


class CheckoutSessionMixin(session.CheckoutSessionMixin):

    def build_submission(self, **kwargs):
        submission = super().build_submission(**kwargs)
        if submission['shipping_address'] and submission['shipping_method']:
            tax.apply_to(submission)
            submission['order_total'] = self.get_order_totals(submission[
                'basket'], submission['shipping_charge'])
        return submission

from oscar.apps.checkout import session

from . import tax

class CheckoutSessionMixin(session.CheckoutSessionMixin):

    def build_submission(self, **kwargs):
        submission = super().build_submission(
            **kwargs)

        if submission['shipping_address'] and submission['shipping_method']:
            tax.apply_to(submission)

            # Recalculate order total to ensure we have a tax-inclusive total
            submission['order_total'] = self.get_order_totals(
                submission['basket'],
                submission['shipping_charge'])

        return submission
