Class: SecureTrading::Requests::Refund
- Inherits:
-
SecureTrading::Request
- Object
- SecureTrading::Request
- SecureTrading::Requests::Refund
- Defined in:
- lib/secure_trading/requests/refund.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#transaction ⇒ Object
Returns the value of attribute transaction.
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/refund.rb', line 5 def amount @amount end |
#transaction ⇒ Object
Returns the value of attribute transaction.
5 6 7 |
# File 'lib/secure_trading/requests/refund.rb', line 5 def transaction @transaction end |
Instance Method Details
#request_type ⇒ Object
7 8 9 |
# File 'lib/secure_trading/requests/refund.rb', line 7 def request_type 'REFUND' end |
#to_hash ⇒ Object
11 12 13 14 15 16 |
# File 'lib/secure_trading/requests/refund.rb', line 11 def to_hash { 'Operation' => {'SiteReference' => self.connection.site_reference, 'Amount' => self.amount}, 'PaymentMethod' => {'CreditCard' => transaction }, } end |