Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
forbidals
/
wp-content
/
plugins
/
wpforms-lite
/
vendor_prefixed
/
square
/
square
/
src
/
Models
:
OrderServiceChargeCalculationPhase.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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'; }