Class: K2ConnectRuby::K2Entity::K2FinancialEntities::Destination::ExternalPaybill
- Inherits:
-
DestinationRequest
- Object
- DestinationRequest
- K2ConnectRuby::K2Entity::K2FinancialEntities::Destination::ExternalPaybill
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/external_paybill.rb
Instance Attribute Summary collapse
-
#paybill_account_number ⇒ Object
Returns the value of attribute paybill_account_number.
-
#paybill_number ⇒ Object
Returns the value of attribute paybill_number.
Attributes inherited from DestinationRequest
#amount, #description, #favourite, #nickname, #type
Instance Method Summary collapse
Methods inherited from DestinationRequest
Constructor Details
This class inherits a constructor from K2ConnectRuby::K2Entity::K2FinancialEntities::Destination::DestinationRequest
Instance Attribute Details
#paybill_account_number ⇒ Object
Returns the value of attribute paybill_account_number.
12 13 14 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/external_paybill.rb', line 12 def paybill_account_number @paybill_account_number end |
#paybill_number ⇒ Object
Returns the value of attribute paybill_number.
12 13 14 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/external_paybill.rb', line 12 def paybill_number @paybill_number end |
Instance Method Details
#destination_payload ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/k2-connect-ruby/k2_entity/k2_financial_entities/destination/external_paybill.rb', line 16 def destination_payload { type: type, nickname: nickname, paybill_number: paybill_number, paybill_account_number: paybill_account_number, amount: amount, description: description, favourite: ActiveModel::Type::Boolean.new.cast(favourite) } end |