Class: SatMx::DownloadPetitionBody Private
- Inherits:
-
Object
- Object
- SatMx::DownloadPetitionBody
- Includes:
- Body
- Defined in:
- lib/sat_mx/download_petition_body.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary
Constants included from Body
Body::DES, Body::DS, Body::ENVELOPE_ATTRS, Body::NAMESPACE, Body::S11, Body::XMLNS
Instance Method Summary collapse
- #generate ⇒ Object private
-
#initialize(package_id:, requester_rfc:, certificate:) ⇒ DownloadPetitionBody
constructor
private
A new instance of DownloadPetitionBody.
Constructor Details
#initialize(package_id:, requester_rfc:, certificate:) ⇒ DownloadPetitionBody
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DownloadPetitionBody.
6 7 8 9 10 |
# File 'lib/sat_mx/download_petition_body.rb', line 6 def initialize(package_id:, requester_rfc:, certificate:) @package_id = package_id @requester_rfc = requester_rfc @certificate = certificate end |
Instance Method Details
#generate ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/sat_mx/download_petition_body.rb', line 12 def generate envelope do |xml| xml[Body::DES].PeticionDescargaMasivaTercerosEntrada do xml[Body::DES].peticionDescarga( IdPaquete: package_id, RfcSolicitante: requester_rfc ) do signature(xml) end end end end |