charitable
/
vendor
/
square
/
square
/
src
/
Legacy
/
Models
/
OrderServiceChargeCalculationPhase.php
OrderServiceChargeCalculationPhase.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.8.13, at vendor/square/square/src/Legacy/Models/OrderServiceChargeCalculationPhase.php
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Square\Legacy\Models; |
| 6 | |
| 7 | /** |
| 8 | * Represents a phase in the process of calculating order totals. |
| 9 | * Service charges are applied after the indicated phase. |
| 10 | * |
| 11 | * [Read more about how order totals are calculated.](https://developer.squareup.com/docs/orders- |
| 12 | * api/how-it-works#how-totals-are-calculated) |
| 13 | */ |
| 14 | class OrderServiceChargeCalculationPhase |
| 15 | { |
| 16 | /** |
| 17 | * The service charge is applied after discounts, but before |
| 18 | * taxes. |
| 19 | */ |
| 20 | public const SUBTOTAL_PHASE = 'SUBTOTAL_PHASE'; |
| 21 | |
| 22 | /** |
| 23 | * The service charge is applied after all discounts and taxes |
| 24 | * are applied. |
| 25 | */ |
| 26 | public const TOTAL_PHASE = 'TOTAL_PHASE'; |
| 27 | |
| 28 | /** |
| 29 | * The service charge is calculated as a compounding adjustment |
| 30 | * after any discounts, but before amount based apportioned service charges |
| 31 | * and any tax considerations. |
| 32 | */ |
| 33 | public const APPORTIONED_PERCENTAGE_PHASE = 'APPORTIONED_PERCENTAGE_PHASE'; |
| 34 | |
| 35 | /** |
| 36 | * The service charge is calculated as a compounding adjustment |
| 37 | * after any discounts and percentage based apportioned service charges, |
| 38 | * but before any tax considerations. |
| 39 | */ |
| 40 | public const APPORTIONED_AMOUNT_PHASE = 'APPORTIONED_AMOUNT_PHASE'; |
| 41 | } |
| 42 |