Class: Worldline::Connect::SDK::V1::Domain::PaymentProduct863SpecificData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::DataObject

new_from_hash

Instance Attribute Details

#integration_typesArray<String>

Returns the current value of integration_types.

Returns:

  • (Array<String>)

    the current value of integration_types



13
14
15
# File 'lib/worldline/connect/sdk/v1/domain/payment_product863_specific_data.rb', line 13

def integration_types
  @integration_types
end

Instance Method Details

#from_hash(hash) ⇒ Object



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

def from_hash(hash)
  super
  if hash.has_key? 'integrationTypes'
    raise TypeError, "value '%s' is not an Array" % [hash['integrationTypes']] unless hash['integrationTypes'].is_a? Array
    @integration_types = []
    hash['integrationTypes'].each do |e|
      @integration_types << e
    end
  end
end

#to_hHash

Returns:

  • (Hash)


18
19
20
21
22
# File 'lib/worldline/connect/sdk/v1/domain/payment_product863_specific_data.rb', line 18

def to_h
  hash = super
  hash['integrationTypes'] = @integration_types unless @integration_types.nil?
  hash
end