Added exceptions:
-
CountryCodeAttributeNotFoundException
- exception thrown if while creating instance ofVatNumberValidationResult
country code attribute not found. -
RequestDateAttributeNotFoundException
- exception thrown if while creating instance ofVatNumberValidationResult
request date attribute not found. -
ValidationFlagAttributeNotFoundException
- exception thrown if while creating instance ofVatNumberValidationResult
validation flag attribute not found. -
VatNumberAttributeNotFoundException
- exception thrown if while creating instance ofVatNumberValidationResult
vat number attribute not found. -
VatOwnerAddressAttributeNotFoundException
- exception thrown if while creating instance ofVatNumberValidationResult
vat owner address attribute not found. -
VatOwnerNameAttributeNotFoundException
- exception thrown if while creating instance ofVatNumberValidationResult
vat owner name attribute not found.
Added rocketfellows\ViesVatValidationInterface\VatNumberValidationResultFactory
- a factory designed to create an instance of rocketfellows\ViesVatValidationInterface\VatNumberValidationResult
from given raw data with required attributes existence check.
Factory functions:
public function createFromObject(stdClass $rawData): VatNumberValidationResult
- createsVatNumberValidationResult
fromstdClass
object raw data;public function createFromArray(array $rawData): VatNumberValidationResult
- createsVatNumberValidationResult
from array raw data.
Functions throw next exceptions:
-
CountryCodeAttributeNotFoundException
- exception thrown if while creating instance ofVatNumberValidationResult
country code attribute not found. -
RequestDateAttributeNotFoundException
- exception thrown if while creating instance ofVatNumberValidationResult
request date attribute not found. -
ValidationFlagAttributeNotFoundException
- exception thrown if while creating instance ofVatNumberValidationResult
validation flag attribute not found. -
VatNumberAttributeNotFoundException
- exception thrown if while creating instance ofVatNumberValidationResult
vat number attribute not found. -
VatOwnerAddressAttributeNotFoundException
- exception thrown if while creating instance ofVatNumberValidationResult
vat owner address attribute not found. -
VatOwnerNameAttributeNotFoundException
- exception thrown if while creating instance ofVatNumberValidationResult
vat owner name attribute not found.