関数
RestRouteGuards::giftShippingCustomerAddressCheck()
Validates $_POST['customer']
fields if ギフト発送 is checked
戻り値 戻り値
ファイル: src/Routing/RestRouteGuards.php
public function giftShippingCustomerAddressCheck() { return function () { $giftShipping = isset($_REQUEST['giftShipping']) ? (bool)$_REQUEST['giftShipping'] : false; if ($giftShipping === true) { $mes = $this->validateCustomerAddressPayload(); if (!empty(trim($mes))) { return $this->module->errors->getErrorResponse( GenericErrorStore::USCES_GIFT_SHIPPING_CUSTOMER_ADDRESS_INVALID, [$mes], [$mes] ); } } }; }