| @@ -13,15 +13,15 @@ | ||
| 13 | 13 | use Payplug\PayplugWoocommerce\PayplugWoocommerceHelper; |
| 14 | 14 | |
| 15 | 15 | class PayplugAddressData |
| 16 | 16 | { |
| 17 | - const DELIVERY_TYPE_BILLING = 'BILLING'; | |
| 18 | - const DELIVERY_TYPE_VERIFIED = 'VERIFIED'; | |
| 19 | - const DELIVERY_TYPE_NEW = 'NEW'; | |
| 20 | - const DELIVERY_TYPE_SHIP_TO_STORE = 'SHIP_TO_STORE'; | |
| 21 | - const DELIVERY_TYPE_DIGITAL_GOODS = 'DIGITAL_GOODS'; | |
| 22 | - const DELIVERY_TYPE_TRAVEL_OR_EVENT = 'TRAVEL_OR_EVENT'; | |
| 23 | - const DELIVERY_TYPE_OTHER = 'OTHER'; | |
| 17 | + public const DELIVERY_TYPE_BILLING = 'BILLING'; | |
| 18 | + public const DELIVERY_TYPE_VERIFIED = 'VERIFIED'; | |
| 19 | + public const DELIVERY_TYPE_NEW = 'NEW'; | |
| 20 | + public const DELIVERY_TYPE_SHIP_TO_STORE = 'SHIP_TO_STORE'; | |
| 21 | + public const DELIVERY_TYPE_DIGITAL_GOODS = 'DIGITAL_GOODS'; | |
| 22 | + public const DELIVERY_TYPE_TRAVEL_OR_EVENT = 'TRAVEL_OR_EVENT'; | |
| 23 | + public const DELIVERY_TYPE_OTHER = 'OTHER'; | |
| 24 | 24 | |
| 25 | 25 | public static $address_fields = [ |
| 26 | 26 | 'address1', |
| 27 | 27 | 'address2', |
| @@ -153,9 +153,9 @@ | ||
| 153 | 153 | * Prepare data for billing and shipping. |
| 154 | 154 | * |
| 155 | 155 | * @param \WC_Order $order |
| 156 | 156 | */ |
| 157 | - protected function prepare_address_data($order) | |
| 157 | + protected function prepare_address_data($order): void | |
| 158 | 158 | { |
| 159 | 159 | $customer = PayplugWoocommerceHelper::is_pre_30() ? $order->customer_user : $order->get_customer_id(); |
| 160 | 160 | |
| 161 | 161 | $billing_first_name = PayplugWoocommerceHelper::is_pre_30() ? $order->billing_first_name : $order->get_billing_first_name(); |