Class: SecureTrading::Requests::Settlement
- Inherits:
-
SecureTrading::Request
- Object
- SecureTrading::Request
- SecureTrading::Requests::Settlement
- Defined in:
- lib/secure_trading/requests/settlement.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#date ⇒ Object
Returns the value of attribute date.
-
#status ⇒ Object
Returns the value of attribute status.
-
#transaction_reference ⇒ Object
Returns the value of attribute transaction_reference.
Attributes inherited from SecureTrading::Request
Instance Method Summary collapse
Methods inherited from SecureTrading::Request
#error_message, #initialize, #process, #sanitized_xml_request, #xml_request
Constructor Details
This class inherits a constructor from SecureTrading::Request
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
5 6 7 |
# File 'lib/secure_trading/requests/settlement.rb', line 5 def amount @amount end |
#date ⇒ Object
Returns the value of attribute date.
5 6 7 |
# File 'lib/secure_trading/requests/settlement.rb', line 5 def date @date end |
#status ⇒ Object
Returns the value of attribute status.
5 6 7 |
# File 'lib/secure_trading/requests/settlement.rb', line 5 def status @status end |
#transaction_reference ⇒ Object
Returns the value of attribute transaction_reference.
5 6 7 |
# File 'lib/secure_trading/requests/settlement.rb', line 5 def transaction_reference @transaction_reference end |
Instance Method Details
#request_type ⇒ Object
7 8 9 |
# File 'lib/secure_trading/requests/settlement.rb', line 7 def request_type 'SETTLEMENT' end |
#to_hash ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/secure_trading/requests/settlement.rb', line 11 def to_hash { 'Operation' => { 'SiteReference' => self.connection.site_reference, 'TransactionReference' => self.transaction_reference, 'SettleDate' => self.date || 'NEXT', 'SettleStatus' => self.status.to_i, 'SettleAmount' => self.amount }, } end |