Skip to content

Commit

Permalink
Merge 49bd49f into c9ce7ce
Browse files Browse the repository at this point in the history
  • Loading branch information
thefantas committed Sep 18, 2018
2 parents c9ce7ce + 49bd49f commit bb2264e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Greenter/Factory/FeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,19 @@ public function send(DocumentInterface $document)

return $this->sender->send($document->getName(), $this->lastXml);
}

// by thefantas
public function sendForce(DocumentInterface $document, $dir_xml)
{
return $this->sender->send($document->getName(), $dir_xml);
}

// by thefantas
public function genXML(DocumentInterface $document)
{
$this->lastXml = $this->getXmmlSigned($document);
}

/**
* Get Last XML Signed.
*
Expand Down
20 changes: 20 additions & 0 deletions src/Greenter/See.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,26 @@ public function send(DocumentInterface $document)

return $this->factory->send($document);
}

// Solicitar CDR desde un XML ya generado. by thefantas
public function sendForce(DocumentInterface $document, $dir_xml)
{
$classDoc = get_class($document);
$this->factory
->setBuilder($this->getBuilder($classDoc))
->setSender($this->getSender($classDoc));

return $this->factory->send($document, $dir_xml);
}
// Generar solo XML. by thefantas
public function genXML(DocumentInterface $document)
{
$classDoc = get_class($document);
$this->factory
->setBuilder($this->getBuilder($classDoc));

return $this->factory->genXML($document);
}

/**
* @param $ticket
Expand Down

0 comments on commit bb2264e

Please sign in to comment.