Class: Ingenico::Connect::SDK::Domain::Hostedmandatemanagement::CreateHostedMandateManagementResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

new_from_hash

Instance Attribute Details

#hosted_mandate_management_idString

Returns the current value of hosted_mandate_management_id.

Returns:

  • (String)

    the current value of hosted_mandate_management_id



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

def hosted_mandate_management_id
  @hosted_mandate_management_id
end

#partial_redirect_urlString

Returns the current value of partial_redirect_url.

Returns:

  • (String)

    the current value of partial_redirect_url



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

def partial_redirect_url
  @partial_redirect_url
end

#returnmacString

Returns the current value of returnmac.

Returns:

  • (String)

    the current value of returnmac



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

def returnmac
  @returnmac
end

Instance Method Details

#from_hash(hash) ⇒ Object



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

def from_hash(hash)
  super
  if hash.has_key? 'RETURNMAC'
    @returnmac = hash['RETURNMAC']
  end
  if hash.has_key? 'hostedMandateManagementId'
    @hosted_mandate_management_id = hash['hostedMandateManagementId']
  end
  if hash.has_key? 'partialRedirectUrl'
    @partial_redirect_url = hash['partialRedirectUrl']
  end
end

#to_hHash

Returns:

  • (Hash)


23
24
25
26
27
28
29
# File 'lib/ingenico/connect/sdk/domain/hostedmandatemanagement/create_hosted_mandate_management_response.rb', line 23

def to_h
  hash = super
  hash['RETURNMAC'] = @returnmac unless @returnmac.nil?
  hash['hostedMandateManagementId'] = @hosted_mandate_management_id unless @hosted_mandate_management_id.nil?
  hash['partialRedirectUrl'] = @partial_redirect_url unless @partial_redirect_url.nil?
  hash
end