class Ingenico::Connect::SDK::Domain::Services::Swift

@attr [String] bic @attr [String] category @attr [String] chips_uid @attr [String] extra_info @attr [String] po_box_country @attr [String] po_box_location @attr [String] po_box_number @attr [String] po_box_zip @attr [String] routing_bic @attr [String] services

Attributes

bic[RW]
category[RW]
chips_uid[RW]
extra_info[RW]
po_box_country[RW]
po_box_location[RW]
po_box_number[RW]
po_box_zip[RW]
routing_bic[RW]
services[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/services/swift.rb, line 59
def from_hash(hash)
  super
  if hash.has_key? 'bic'
    @bic = hash['bic']
  end
  if hash.has_key? 'category'
    @category = hash['category']
  end
  if hash.has_key? 'chipsUID'
    @chips_uid = hash['chipsUID']
  end
  if hash.has_key? 'extraInfo'
    @extra_info = hash['extraInfo']
  end
  if hash.has_key? 'poBoxCountry'
    @po_box_country = hash['poBoxCountry']
  end
  if hash.has_key? 'poBoxLocation'
    @po_box_location = hash['poBoxLocation']
  end
  if hash.has_key? 'poBoxNumber'
    @po_box_number = hash['poBoxNumber']
  end
  if hash.has_key? 'poBoxZip'
    @po_box_zip = hash['poBoxZip']
  end
  if hash.has_key? 'routingBic'
    @routing_bic = hash['routingBic']
  end
  if hash.has_key? 'services'
    @services = hash['services']
  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/services/swift.rb, line 44
def to_h
  hash = super
  hash['bic'] = @bic unless @bic.nil?
  hash['category'] = @category unless @category.nil?
  hash['chipsUID'] = @chips_uid unless @chips_uid.nil?
  hash['extraInfo'] = @extra_info unless @extra_info.nil?
  hash['poBoxCountry'] = @po_box_country unless @po_box_country.nil?
  hash['poBoxLocation'] = @po_box_location unless @po_box_location.nil?
  hash['poBoxNumber'] = @po_box_number unless @po_box_number.nil?
  hash['poBoxZip'] = @po_box_zip unless @po_box_zip.nil?
  hash['routingBic'] = @routing_bic unless @routing_bic.nil?
  hash['services'] = @services unless @services.nil?
  hash
end