Sha256: e56e01963152247cf39fcaa58f91da7f0680d4ac8097c41a701c33257890ba28

Contents?: true

Size: 792 Bytes

Versions: 2

Compression:

Stored size: 792 Bytes

Contents

# frozen_string_literal: true

module InvestecOpenApi::Models
  class Transfer
    attr_reader :beneficiary_account_id, :amount, :my_reference, :their_reference

    # @param [String] beneficiary_account_id
    # @param [Float] amount
    # @param [String] my_reference
    # @param [String] their_reference
    def initialize(
      beneficiary_account_id,
      amount,
      my_reference,
      their_reference
    )
      @beneficiary_account_id = beneficiary_account_id
      @amount = amount.to_s
      @my_reference = my_reference
      @their_reference = their_reference
    end

    def to_h
      {
        beneficiaryAccountId: @beneficiary_account_id,
        amount: @amount,
        myReference: @my_reference,
        theirReference: @their_reference
      }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
investec_open_api-2.1.0 lib/investec_open_api/models/transfer.rb
investec_open_api-2.0.0 lib/investec_open_api/models/transfer.rb