Class: SolidusBolt::Transactions::VoidService

Inherits:
BaseService show all
Defined in:
app/services/solidus_bolt/transactions/void_service.rb

Instance Attribute Summary collapse

Attributes inherited from BaseService

#payment_method

Instance Method Summary collapse

Methods inherited from BaseService

call

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_idObject (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_referenceObject (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

#callObject



14
15
16
# File 'app/services/solidus_bolt/transactions/void_service.rb', line 14

def call
  void
end