Sha256: 5640b620682cbab8692278d419d7ff05b3e679126b2ca4eff894513b7fec3bf5

Contents?: true

Size: 305 Bytes

Versions: 10

Compression:

Stored size: 305 Bytes

Contents

# frozen_string_literal: true

module SolidusBolt
  module Payments
    class VoidSyncService < BaseService
      attr_reader :payment

      def initialize(payment:)
        @payment = payment
        super
      end

      def call
        payment.void! unless payment.void?
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
solidus_bolt-0.7.2 app/services/solidus_bolt/payments/void_sync_service.rb
solidus_bolt-0.7.1 app/services/solidus_bolt/payments/void_sync_service.rb
solidus_bolt-0.7.0 app/services/solidus_bolt/payments/void_sync_service.rb
solidus_bolt-0.6.0 app/services/solidus_bolt/payments/void_sync_service.rb
solidus_bolt-0.5.0 app/services/solidus_bolt/payments/void_sync_service.rb
solidus_bolt-0.4.0 app/services/solidus_bolt/payments/void_sync_service.rb
solidus_bolt-0.3.0 app/services/solidus_bolt/payments/void_sync_service.rb
solidus_bolt-0.2.0 app/services/solidus_bolt/payments/void_sync_service.rb
solidus_bolt-0.1.0 app/services/solidus_bolt/payments/void_sync_service.rb
solidus_bolt-0.0.1 app/services/solidus_bolt/payments/void_sync_service.rb