PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
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

42 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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