Skip to content

Version 1.0.0

Compare
Choose a tag to compare
@eclipxe13 eclipxe13 released this 02 Oct 22:07
0929824
  • This version is a major change, it is not compatible with previous versions
    Read UPGRADE-0.5
  • New signed documents:
    • Cancellation: For request to SAT a cancellation of one or many CFDI.
    • ObtainRelated: For asking to SAT related documents of a CFDI.
    • CancellationAnswer: For setting the answer to SAT about a cancellation request.
  • New project concepts:
    • Capsule: DTO that contains source data, also implements CapsuleInterface
    • Signer: Manipulation object implementing SignerInterface, takes a DOMDocument and append signature data
  • New general process:
    • A CapsuleInterface is exported as a DOMDocument
    • Using a SignerInterface the DOMDocument is signed and signature is appended.
    • Signature is exported from DOMDocument::saveXml()
  • New helper XmlCancelacionHelper:
    • If no SignerInterface is provided then the default is used
  • Credentials can be created from PhpCfdi\Credentials\Credential
  • Exceptions are specific to this library:
    • XmlCancelacionException
      • XmlCancelacionLogicException extends LogicException
        • DocumentWithoutRootElement
        • HelperDoesNotHaveCredentials
      • XmlCancelacionRuntimeException extends RuntimeException
        • CannotLoadCertificateAndPrivateKey
        • CapsuleRfcDoesnotBelongToCertificateRfc
        • CertificateIsNotCSD