Sha256: b3e5610137a21acf48bd2135d94df84fa535666b6d6150cc5191a3d06f9ab00b

Contents?: true

Size: 448 Bytes

Versions: 3

Compression:

Stored size: 448 Bytes

Contents

require_relative '../../lib/mangopay/api/service/hooks'
require_relative '../../lib/mangopay/model/enum/event_type'
require_relative '../../lib/mangopay/model/entity/hook'

shared_context 'hook_context' do

  HOOK_DATA = build_hook
  HOOK_PERSISTED = MangoApi::Hooks.all[0]
end

def build_hook
  hook = MangoModel::Hook.new
  hook.event_type = MangoModel::EventType::PAYIN_REPUDIATION_CREATED
  hook.url = 'http://www.my-site.com/hooks/'
  hook
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mangopay-v4-4.1.0 spec/context/hook_context.rb
mangopay-v4-4.0.2 spec/context/hook_context.rb
mangopay-v4-4.0.1 spec/context/hook_context.rb