Skip to content

Releases: rocketfellows/vies-vat-validation-php-sdk-interface

v1.2.0

30 Dec 11:25
Compare
Choose a tag to compare

Added exceptions:

  • CountryCodeAttributeNotFoundException - exception thrown if while creating instance of VatNumberValidationResult country code attribute not found.

  • RequestDateAttributeNotFoundException - exception thrown if while creating instance of VatNumberValidationResult request date attribute not found.

  • ValidationFlagAttributeNotFoundException - exception thrown if while creating instance of VatNumberValidationResult validation flag attribute not found.

  • VatNumberAttributeNotFoundException - exception thrown if while creating instance of VatNumberValidationResult vat number attribute not found.

  • VatOwnerAddressAttributeNotFoundException - exception thrown if while creating instance of VatNumberValidationResult vat owner address attribute not found.

  • VatOwnerNameAttributeNotFoundException - exception thrown if while creating instance of VatNumberValidationResult 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 - creates VatNumberValidationResult from stdClass object raw data;
  • public function createFromArray(array $rawData): VatNumberValidationResult - creates VatNumberValidationResult from array raw data.

Functions throw next exceptions:

  • CountryCodeAttributeNotFoundException - exception thrown if while creating instance of VatNumberValidationResult country code attribute not found.

  • RequestDateAttributeNotFoundException - exception thrown if while creating instance of VatNumberValidationResult request date attribute not found.

  • ValidationFlagAttributeNotFoundException - exception thrown if while creating instance of VatNumberValidationResult validation flag attribute not found.

  • VatNumberAttributeNotFoundException - exception thrown if while creating instance of VatNumberValidationResult vat number attribute not found.

  • VatOwnerAddressAttributeNotFoundException - exception thrown if while creating instance of VatNumberValidationResult vat owner address attribute not found.

  • VatOwnerNameAttributeNotFoundException - exception thrown if while creating instance of VatNumberValidationResult vat owner name attribute not found.

v1.1.0

23 Dec 12:03
Compare
Choose a tag to compare
  • added a FaultCodeExceptionFactory to create exceptions depending on the error code;
  • ServiceRequestException: changed namespace to rocketfellows\ViesVatValidationInterface\exceptions; changed parent class to rocketfellows\ViesVatValidationInterface\exceptions\VatNumberValidationException;
  • rocketfellows\ViesVatValidationInterface\exceptions\service\UnknownServiceErrorException: added faultCode property.

v1.0.0

03 Dec 12:51
Compare
Choose a tag to compare

VIES Vat number validation PHP sdk interface release.

Consists of:

  • VatNumberValidationServiceInterface;
  • VatNumber;
  • VatNumberValidationResult;
  • pack of service exceptions.