Class: SolidusBolt::Transactions::RefundService
- Inherits:
-
BaseService
- Object
- BaseService
- BaseService
- SolidusBolt::Transactions::RefundService
- Defined in:
- app/services/solidus_bolt/transactions/refund_service.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#transaction_reference ⇒ Object
readonly
Returns the value of attribute transaction_reference.
Attributes inherited from BaseService
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(transaction_reference:, amount:, currency:, payment_method:) ⇒ RefundService
constructor
A new instance of RefundService.
Methods inherited from BaseService
Constructor Details
#initialize(transaction_reference:, amount:, currency:, payment_method:) ⇒ RefundService
Returns a new instance of RefundService.
8 9 10 11 12 13 |
# File 'app/services/solidus_bolt/transactions/refund_service.rb', line 8 def initialize(transaction_reference:, amount:, currency:, payment_method:) @transaction_reference = transaction_reference @amount = amount @currency = currency super end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
6 7 8 |
# File 'app/services/solidus_bolt/transactions/refund_service.rb', line 6 def amount @amount end |
#currency ⇒ Object (readonly)
Returns the value of attribute currency.
6 7 8 |
# File 'app/services/solidus_bolt/transactions/refund_service.rb', line 6 def currency @currency end |
#transaction_reference ⇒ Object (readonly)
Returns the value of attribute transaction_reference.
6 7 8 |
# File 'app/services/solidus_bolt/transactions/refund_service.rb', line 6 def transaction_reference @transaction_reference end |
Instance Method Details
#call ⇒ Object
15 16 17 |
# File 'app/services/solidus_bolt/transactions/refund_service.rb', line 15 def call refund end |