class Ingenico::Connect::SDK::Domain::Payout::BankTransferPayoutMethodSpecificInput

@attr [Ingenico::Connect::SDK::Domain::Definitions::BankAccountBban] bank_account_bban @attr [Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban] bank_account_iban @attr [Ingenico::Connect::SDK::Domain::Payout::PayoutCustomer] customer @attr [String] payout_date @attr [String] payout_text @attr [String] swift_code

Attributes

bank_account_bban[RW]
bank_account_iban[RW]
customer[RW]

@deprecated Moved to PayoutDetails

payout_date[RW]
payout_text[RW]
swift_code[RW]

Public Instance Methods

from_hash(hash) click to toggle source
# File lib/ingenico/connect/sdk/domain/payout/bank_transfer_payout_method_specific_input.rb, line 48
def from_hash(hash)
  super
  if hash.has_key? 'bankAccountBban'
    raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountBban']] unless hash['bankAccountBban'].is_a? Hash
    @bank_account_bban = Ingenico::Connect::SDK::Domain::Definitions::BankAccountBban.new_from_hash(hash['bankAccountBban'])
  end
  if hash.has_key? 'bankAccountIban'
    raise TypeError, "value '%s' is not a Hash" % [hash['bankAccountIban']] unless hash['bankAccountIban'].is_a? Hash
    @bank_account_iban = Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban.new_from_hash(hash['bankAccountIban'])
  end
  if hash.has_key? 'customer'
    raise TypeError, "value '%s' is not a Hash" % [hash['customer']] unless hash['customer'].is_a? Hash
    @customer = Ingenico::Connect::SDK::Domain::Payout::PayoutCustomer.new_from_hash(hash['customer'])
  end
  if hash.has_key? 'payoutDate'
    @payout_date = hash['payoutDate']
  end
  if hash.has_key? 'payoutText'
    @payout_text = hash['payoutText']
  end
  if hash.has_key? 'swiftCode'
    @swift_code = hash['swiftCode']
  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/payout/bank_transfer_payout_method_specific_input.rb, line 37
def to_h
  hash = super
  hash['bankAccountBban'] = @bank_account_bban.to_h unless @bank_account_bban.nil?
  hash['bankAccountIban'] = @bank_account_iban.to_h unless @bank_account_iban.nil?
  hash['customer'] = @customer.to_h unless @customer.nil?
  hash['payoutDate'] = @payout_date unless @payout_date.nil?
  hash['payoutText'] = @payout_text unless @payout_text.nil?
  hash['swiftCode'] = @swift_code unless @swift_code.nil?
  hash
end