Class: PagoPA::SOAP::Message::Payment

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#amountObject (readonly)

Returns the value of attribute amount.



18
19
20
# File 'lib/pago_pa/soap/message/payment.rb', line 18

def amount
  @amount
end

#attributesObject (readonly)

Returns the value of attribute attributes.



16
17
18
# File 'lib/pago_pa/soap/message/payment.rb', line 16

def attributes
  @attributes
end

#contestObject (readonly)

Returns the value of attribute contest.



21
22
23
# File 'lib/pago_pa/soap/message/payment.rb', line 21

def contest
  @contest
end

#dateObject (readonly)

Returns the value of attribute date.



17
18
19
# File 'lib/pago_pa/soap/message/payment.rb', line 17

def date
  @date
end

#iuvObject (readonly)

Returns the value of attribute iuv.



20
21
22
# File 'lib/pago_pa/soap/message/payment.rb', line 20

def iuv
  @iuv
end

#signatureObject (readonly)

Returns the value of attribute signature.



22
23
24
# File 'lib/pago_pa/soap/message/payment.rb', line 22

def signature
  @signature
end

#typeObject (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_paramsObject



36
37
# File 'lib/pago_pa/soap/message/payment.rb', line 36

def to_params
end