Class: Worldline::Connect::SDK::V1::Domain::CreateHostedMandateManagementResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::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



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

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



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

def partial_redirect_url
  @partial_redirect_url
end

#returnmacString

Returns the current value of returnmac.

Returns:

  • (String)

    the current value of returnmac



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

def returnmac
  @returnmac
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/create_hosted_mandate_management_response.rb', line 32

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)


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

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