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