Sha256: 5a485d2455675aefc744901b431a0af4ef30286a41ae6081e5a23273fbe0f8dd

Contents?: true

Size: 744 Bytes

Versions: 7

Compression:

Stored size: 744 Bytes

Contents

module Workarea
  module Factories
    module Paypal
      Factories.add(self)

      def webhook_capture_completed_payload
        JSON.parse(File.read(webhook_capture_completed_path))
      end

      def webhook_capture_completed_path
        Workarea::Paypal::Engine.root.join(
          'test',
          'factories',
          'workarea',
          'capture_completed_webhook.json'
        )
      end

      def webhook_capture_denied_payload
        JSON.parse(File.read(webhook_capture_denied_path))
      end

      def webhook_capture_denied_path
        Workarea::Paypal::Engine.root.join(
          'test',
          'factories',
          'workarea',
          'capture_denied_webhook.json'
        )
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
workarea-paypal-3.0.6 test/factories/workarea/paypal.rb
workarea-paypal-3.0.5 test/factories/workarea/paypal.rb
workarea-paypal-3.0.4 test/factories/workarea/paypal.rb
workarea-paypal-3.0.3 test/factories/workarea/paypal.rb
workarea-paypal-3.0.2 test/factories/workarea/paypal.rb
workarea-paypal-3.0.1 test/factories/workarea/paypal.rb
workarea-paypal-3.0.0 test/factories/workarea/paypal.rb