Class: Worldline::Connect::SDK::V1::Domain::CreateHostedMandateManagementRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#create_mandate_infoWorldline::Connect::SDK::V1::Domain::HostedMandateInfo

Returns the current value of create_mandate_info.

Returns:



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

def create_mandate_info
  @create_mandate_info
end

#hosted_mandate_management_specific_inputWorldline::Connect::SDK::V1::Domain::HostedMandateManagementSpecificInput

Returns the current value of hosted_mandate_management_specific_input.

Returns:



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

def hosted_mandate_management_specific_input
  @hosted_mandate_management_specific_input
end

Instance Method Details

#from_hash(hash) ⇒ Object



30
31
32
33
34
35
36
37
38
39
40
# File 'lib/worldline/connect/sdk/v1/domain/create_hosted_mandate_management_request.rb', line 30

def from_hash(hash)
  super
  if hash.has_key? 'createMandateInfo'
    raise TypeError, "value '%s' is not a Hash" % [hash['createMandateInfo']] unless hash['createMandateInfo'].is_a? Hash
    @create_mandate_info = Worldline::Connect::SDK::V1::Domain::HostedMandateInfo.new_from_hash(hash['createMandateInfo'])
  end
  if hash.has_key? 'hostedMandateManagementSpecificInput'
    raise TypeError, "value '%s' is not a Hash" % [hash['hostedMandateManagementSpecificInput']] unless hash['hostedMandateManagementSpecificInput'].is_a? Hash
    @hosted_mandate_management_specific_input = Worldline::Connect::SDK::V1::Domain::HostedMandateManagementSpecificInput.new_from_hash(hash['hostedMandateManagementSpecificInput'])
  end
end

#to_hHash

Returns:

  • (Hash)


23
24
25
26
27
28
# File 'lib/worldline/connect/sdk/v1/domain/create_hosted_mandate_management_request.rb', line 23

def to_h
  hash = super
  hash['createMandateInfo'] = @create_mandate_info.to_h unless @create_mandate_info.nil?
  hash['hostedMandateManagementSpecificInput'] = @hosted_mandate_management_specific_input.to_h unless @hosted_mandate_management_specific_input.nil?
  hash
end