class Ingenico::Connect::SDK::Domain::Definitions::FraudFieldsShippingDetails

@attr [String] method_details @attr [Integer] method_speed @attr [Integer] method_type @deprecated No replacement

Attributes

method_details[RW]

@deprecated No replacement

method_speed[RW]

@deprecated No replacement

method_type[RW]

@deprecated No replacement

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb, line 38
def from_hash(hash)
  super
  if hash.has_key? 'methodDetails'
    @method_details = hash['methodDetails']
  end
  if hash.has_key? 'methodSpeed'
    @method_speed = hash['methodSpeed']
  end
  if hash.has_key? 'methodType'
    @method_type = hash['methodType']
  end
end
to_h() click to toggle source

@return (Hash)

Calls superclass method Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb, line 30
def to_h
  hash = super
  hash['methodDetails'] = @method_details unless @method_details.nil?
  hash['methodSpeed'] = @method_speed unless @method_speed.nil?
  hash['methodType'] = @method_type unless @method_type.nil?
  hash
end