Class: SatMx::VerifyRequestBody Private
- Inherits:
-
Object
- Object
- SatMx::VerifyRequestBody
- Includes:
- Body
- Defined in:
- lib/sat_mx/verify_request_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(certificate:, request_id:, requester_rfc:) ⇒ VerifyRequestBody
constructor
private
A new instance of VerifyRequestBody.
Constructor Details
#initialize(certificate:, request_id:, requester_rfc:) ⇒ VerifyRequestBody
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 VerifyRequestBody.
6 7 8 9 10 |
# File 'lib/sat_mx/verify_request_body.rb', line 6 def initialize(certificate:, request_id:, requester_rfc:) @certificate = certificate @request_id = request_id @requester_rfc = requester_rfc 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/verify_request_body.rb', line 12 def generate envelope do |xml| xml[Body::DES].VerificaSolicitudDescarga do xml[Body::DES].solicitud( "IdSolicitud" => request_id, "RfcSolicitante" => requester_rfc ) do signature(xml) end end end end |