Class: Worldline::Connect::SDK::V1::Domain::MandateApproval

Inherits:
Domain::DataObject show all
Defined in:
lib/worldline/connect/sdk/v1/domain/mandate_approval.rb

Direct Known Subclasses

ApproveTokenRequest

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#mandate_signature_dateString

Returns the current value of mandate_signature_date.

Returns:

  • (String)

    the current value of mandate_signature_date



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/mandate_approval.rb', line 15

def mandate_signature_date
  @mandate_signature_date
end

#mandate_signature_placeString

Returns the current value of mandate_signature_place.

Returns:

  • (String)

    the current value of mandate_signature_place



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/mandate_approval.rb', line 15

def mandate_signature_place
  @mandate_signature_place
end

#mandate_signedtrue/false

Returns the current value of mandate_signed.

Returns:

  • (true/false)

    the current value of mandate_signed



15
16
17
# File 'lib/worldline/connect/sdk/v1/domain/mandate_approval.rb', line 15

def mandate_signed
  @mandate_signed
end

Instance Method Details

#from_hash(hash) ⇒ Object



32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/worldline/connect/sdk/v1/domain/mandate_approval.rb', line 32

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_hHash

Returns:

  • (Hash)


24
25
26
27
28
29
30
# File 'lib/worldline/connect/sdk/v1/domain/mandate_approval.rb', line 24

def to_h
  hash = super
  hash['mandateSignatureDate'] = @mandate_signature_date unless @mandate_signature_date.nil?
  hash['mandateSignaturePlace'] = @mandate_signature_place unless @mandate_signature_place.nil?
  hash['mandateSigned'] = @mandate_signed unless @mandate_signed.nil?
  hash
end