Class: K2ConnectRuby::K2Entity::K2FinancialEntities::Destination::MerchantMpesaWallet

Inherits:
DestinationRequest
  • Object
show all
Includes:
ActiveModel::Validations
Defined in:
lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/merchant_mpesa_wallet.rb

Instance Attribute Summary collapse

Attributes inherited from DestinationRequest

#amount, #description, #favourite, #nickname, #type

Instance Method Summary collapse

Methods inherited from DestinationRequest

#initialize

Constructor Details

This class inherits a constructor from K2ConnectRuby::K2Entity::K2FinancialEntities::Destination::DestinationRequest

Instance Attribute Details

#referenceObject

Returns the value of attribute reference.



12
13
14
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/merchant_mpesa_wallet.rb', line 12

def reference
  @reference
end

Instance Method Details

#destination_payloadObject



16
17
18
19
20
21
22
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/merchant_mpesa_wallet.rb', line 16

def destination_payload
  {
    type: type,
    reference: reference,
    amount: amount,
  }
end