CatalogVisibility.php
4 weeks ago
DefaultCustomerAddress.php
2 months ago
FeaturePluginCompatibility.php
4 weeks ago
OrderInternalStatus.php
4 weeks ago
OrderItemType.php
2 months ago
OrderStatus.php
4 weeks ago
PaymentGatewayFeature.php
7 months ago
ProductStatus.php
4 weeks ago
ProductStockStatus.php
4 weeks ago
ProductTaxStatus.php
1 year ago
ProductType.php
4 weeks ago
TaxBasedOn.php
2 months ago
TaxBasedOn.php
35 lines
| 1 | <?php |
| 2 | |
| 3 | declare( strict_types = 1 ); |
| 4 | |
| 5 | namespace Automattic\WooCommerce\Enums; |
| 6 | |
| 7 | /** |
| 8 | * Enum class for the possible values of the `woocommerce_tax_based_on` option, |
| 9 | * which determines which address is used to calculate tax. |
| 10 | * |
| 11 | * @since 10.8.0 |
| 12 | */ |
| 13 | final class TaxBasedOn { |
| 14 | /** |
| 15 | * Tax is calculated based on the customer's shipping address. |
| 16 | * |
| 17 | * @var string |
| 18 | */ |
| 19 | public const SHIPPING = 'shipping'; |
| 20 | |
| 21 | /** |
| 22 | * Tax is calculated based on the customer's billing address. |
| 23 | * |
| 24 | * @var string |
| 25 | */ |
| 26 | public const BILLING = 'billing'; |
| 27 | |
| 28 | /** |
| 29 | * Tax is calculated based on the shop's base address. |
| 30 | * |
| 31 | * @var string |
| 32 | */ |
| 33 | public const BASE = 'base'; |
| 34 | } |
| 35 |