Class: Dhl::Bcs::V2::BankData

Inherits:
Object
  • Object
show all
Includes:
Buildable
Defined in:
lib/dhl/bcs/v2/bank_data.rb

Constant Summary collapse

PROPERTIES =
i( bank_name iban note1 note2 bic accountreference).freeze

Instance Method Summary collapse

Methods included from Buildable

included, #initialize

Instance Method Details

#to_soap_hashObject



9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/dhl/bcs/v2/bank_data.rb', line 9

def to_soap_hash
  {
    'cis:accountOwner' => ,
    'cis:bank_name' => bank_name,
    'cis:iban' => iban
  }.tap do |h|
    h['cis:note1'] = note1 if note1
    h['cis:note2'] = note2 if note2
    h['cis:bic'] = bic if bic
    h['cis:accountreference'] = accountreference if accountreference
  end
end