Class: PagoPA::SOAP::Message::Payment
- Inherits:
-
Object
- Object
- PagoPA::SOAP::Message::Payment
- Defined in:
- lib/pago_pa/soap/message/payment.rb
Constant Summary collapse
- REQUIRED_ATTRIBUTES =
%i[ data_esecuzione_pagamento importo_totale_da_versare tipo_versamento identificativo_univoco_versamento codice_contesto_pagamento firma_ricevuta dati_singolo_versamento ].freeze
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#contest ⇒ Object
readonly
Returns the value of attribute contest.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#iuv ⇒ Object
readonly
Returns the value of attribute iuv.
-
#signature ⇒ Object
readonly
Returns the value of attribute signature.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Payment
constructor
A new instance of Payment.
- #to_params ⇒ Object
Constructor Details
#initialize(**args) ⇒ Payment
Returns a new instance of Payment.
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/pago_pa/soap/message/payment.rb', line 24 def initialize(**args) @attributes = args validate_attrs! @date = attributes.delete(:data_esecuzione_pagamento) @amount = attributes.delete(:importo_totale_da_versare) @type = attributes.delete(:tipo_versamento) @iuv = attributes.delete(:identificativo_univoco_versamento) @contest = attributes.delete(:codice_contesto_pagamento) @signature = attributes.delete(:firma_ricevuta) end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
18 19 20 |
# File 'lib/pago_pa/soap/message/payment.rb', line 18 def amount @amount end |
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
16 17 18 |
# File 'lib/pago_pa/soap/message/payment.rb', line 16 def attributes @attributes end |
#contest ⇒ Object (readonly)
Returns the value of attribute contest.
21 22 23 |
# File 'lib/pago_pa/soap/message/payment.rb', line 21 def contest @contest end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
17 18 19 |
# File 'lib/pago_pa/soap/message/payment.rb', line 17 def date @date end |
#iuv ⇒ Object (readonly)
Returns the value of attribute iuv.
20 21 22 |
# File 'lib/pago_pa/soap/message/payment.rb', line 20 def iuv @iuv end |
#signature ⇒ Object (readonly)
Returns the value of attribute signature.
22 23 24 |
# File 'lib/pago_pa/soap/message/payment.rb', line 22 def signature @signature end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
19 20 21 |
# File 'lib/pago_pa/soap/message/payment.rb', line 19 def type @type end |
Instance Method Details
#to_params ⇒ Object
36 37 |
# File 'lib/pago_pa/soap/message/payment.rb', line 36 def to_params end |