Sha256: ba7d9914eb2d7af971c867d723a401c9bdc06ab85bcf7f3570c79583ac53b215

Contents?: true

Size: 274 Bytes

Versions: 5

Compression:

Stored size: 274 Bytes

Contents

class OutgoingPayment < OutgoingTransaction
  attr_reader :transaction_reference,
              :destination

  def initialize(payload)
    super
  end

  private

  def valid_payment_type
    raise ArgumentError, "Wrong Payment Type" unless @type.eql?("payment")
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
k2-connect-ruby-2.0.0 lib/k2-connect-ruby/k2_services/payloads/transactions/outgoing_payment.rb
k2-connect-ruby-1.0.0 lib/k2-connect-ruby/k2_services/payloads/transactions/outgoing_payment.rb
k2-connect-ruby-0.0.3 lib/k2-connect-ruby/k2_services/payloads/transactions/outgoing_payment.rb
k2-connect-ruby-0.0.2 lib/k2-connect-ruby/k2_services/payloads/transactions/outgoing_payment.rb
k2-connect-ruby-0.0.1 lib/k2-connect-ruby/k2_services/payloads/transactions/outgoing_payment.rb