Sha256: 4d7839ecb4cecbc2db6098b4eda4d6efdc22c2b245b419efe7004480e6097e99

Contents?: true

Size: 1.05 KB

Versions: 7

Compression:

Stored size: 1.05 KB

Contents

# encoding: utf-8

def credit_transfer_transaction(attributes={})
  { name:                   'Contoso AG',
    bic:                    'RAIFCH22',
    iban:                   'CH5481230000001998736',
    amount:                 102.50,
    reference:              'XYZ-1234/123',
    remittance_information: 'Rechnung vom 22.08.2013'
  }.merge(attributes)
end

def direct_debt_transaction(attributes={})
  {
    name:                      'Müller & Schmidt oHG',
    iban:                      'CH5481230000001998736',
    amount:                    750.00,
    instruction:               '123',
    reference:                 'XYZ/2013-08-ABO/6789',
    remittance_information:    'Vielen Dank für Ihren Einkauf!',
    requested_date:            Date.today + 1,
    structured_remittance_information: structured_remittance_information
  }.merge(attributes)
end

def structured_remittance_information(attributes = {})
  SPS::StructuredRemittanceInformation.new(
    {
      proprietary: 'ESR',
      reference:   '048353234234234353453423423'
    }.merge(attributes)
  )
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sps_king-0.5.0 spec/support/factories.rb
sps_king-0.4.0 spec/support/factories.rb
sps_king-0.3.1 spec/support/factories.rb
sps_king-0.3.0 spec/support/factories.rb
sps_king-0.2.0 spec/support/factories.rb
sps_king-0.1.1 spec/support/factories.rb
sps_king-0.1.0 spec/support/factories.rb