File "OrderServiceChargeCalculationPhase.php"

Full Path: /home/capoeirajd/www/wp-content/plugins/wpforms-lite/vendor_prefixed/square/square/src/Models/OrderServiceChargeCalculationPhase.php
File size: 1.22 KB
MIME-type: text/x-php
Charset: utf-8

<?php

declare (strict_types=1);
namespace WPForms\Vendor\Square\Models;

/**
 * Represents a phase in the process of calculating order totals.
 * Service charges are applied after the indicated phase.
 *
 * [Read more about how order totals are calculated.](https://developer.squareup.com/docs/orders-
 * api/how-it-works#how-totals-are-calculated)
 */
class OrderServiceChargeCalculationPhase
{
    /**
     * The service charge is applied after discounts, but before
     * taxes.
     */
    public const SUBTOTAL_PHASE = 'SUBTOTAL_PHASE';
    /**
     * The service charge is applied after all discounts and taxes
     * are applied.
     */
    public const TOTAL_PHASE = 'TOTAL_PHASE';
    /**
     * The service charge is calculated as a compounding adjustment
     * after any discounts, but before amount based apportioned service charges
     * and any tax considerations.
     */
    public const APPORTIONED_PERCENTAGE_PHASE = 'APPORTIONED_PERCENTAGE_PHASE';
    /**
     * The service charge is calculated as a compounding adjustment
     * after any discounts and percentage based apportioned service charges,
     * but before any tax considerations.
     */
    public const APPORTIONED_AMOUNT_PHASE = 'APPORTIONED_AMOUNT_PHASE';
}