Sha256: 62b3b16c55af6c711df2ea3c896fbd37fefd86ef0c636198aade5c45e0a1af33

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

module BloomRemit
  class CreateTxn

    def self.call(recipient:, sender:, amount:, account_name:, account_id:)
      Txns::Operations::Create.(txn: {
        recipient_id: recipient.id,
        recipient_type: recipient.class.name,
        sender_id: sender.id,
        sender_type: sender.class.name,
        amount: amount,
        account_name: account_name,
        account_id: account_id,
      })
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bloom_remit-0.0.1 app/services/bloom_remit/create_txn.rb