Class: Ingenico::Connect::SDK::Domain::Token::MandateApproval

Inherits:
Ingenico::Connect::SDK::DataObject show all
Defined in:
lib/ingenico/connect/sdk/domain/token/mandate_approval.rb

Direct Known Subclasses

ApproveTokenRequest

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::SDK::DataObject

new_from_hash

Instance Attribute Details

#mandate_signature_dateObject

String



14
15
16
# File 'lib/ingenico/connect/sdk/domain/token/mandate_approval.rb', line 14

def mandate_signature_date
  @mandate_signature_date
end

#mandate_signature_placeObject

String



17
18
19
# File 'lib/ingenico/connect/sdk/domain/token/mandate_approval.rb', line 17

def mandate_signature_place
  @mandate_signature_place
end

#mandate_signedObject

true/false



20
21
22
# File 'lib/ingenico/connect/sdk/domain/token/mandate_approval.rb', line 20

def mandate_signed
  @mandate_signed
end

Instance Method Details

#from_hash(hash) ⇒ Object



30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/ingenico/connect/sdk/domain/token/mandate_approval.rb', line 30

def from_hash(hash)
  super
  if hash.has_key?('mandateSignatureDate')
    @mandate_signature_date = hash['mandateSignatureDate']
  end
  if hash.has_key?('mandateSignaturePlace')
    @mandate_signature_place = hash['mandateSignaturePlace']
  end
  if hash.has_key?('mandateSigned')
    @mandate_signed = hash['mandateSigned']
  end
end

#to_hObject



22
23
24
25
26
27
28
# File 'lib/ingenico/connect/sdk/domain/token/mandate_approval.rb', line 22

def to_h
  hash = super
  add_to_hash(hash, 'mandateSignatureDate', @mandate_signature_date)
  add_to_hash(hash, 'mandateSignaturePlace', @mandate_signature_place)
  add_to_hash(hash, 'mandateSigned', @mandate_signed)
  hash
end