Module: Transfeera

Defined in:
lib/transfeera.rb,
lib/transfeera/config.rb,
lib/transfeera/request.rb,
lib/transfeera/version.rb,
lib/transfeera/response.rb,
lib/transfeera/authorization.rb,
lib/transfeera/errors/response_error.rb,
lib/transfeera/resources/default/batch.rb,
lib/transfeera/resources/default/balance.rb,
lib/transfeera/resources/default/webhook.rb,
lib/transfeera/resources/default/transfer.rb

Defined Under Namespace

Modules: Default, Errors Classes: Authorization, Config, Request, Response

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.configurationObject



62
63
64
# File 'lib/transfeera.rb', line 62

def self.configuration
  @configuration ||= Transfeera::Config.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



66
67
68
# File 'lib/transfeera.rb', line 66

def self.configure
  yield configuration
end

.urlsObject



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/transfeera.rb', line 19

def self.urls
  {
    production: {
      auth: 'https://login-api.transfeera.com/authorization',
      default: 'https://api.transfeera.com',
      contacerta: 'https://contacerta-api.transfeera.com'
    },
    sandbox: {
      auth: 'https://login-api-sandbox.transfeera.com/authorization',
      default: 'https://api-sandbox.transfeera.com',
      contacerta: 'https://contacerta-api-sandbox.transfeera.com'
    },
    uri: {
      webhook: {
        all: 'webhook',
        create: 'webhook',
        update: 'webhook/:id',
        delete: 'webhook/:id',
        event_all: 'webhook/event'
        # event_retry: 'webhook/event/retry'
      },
      batch: {
        find: 'batch/:id',
        all: 'batch',
        create: 'batch',
        delete: 'batch/:id',
        update: 'batch/:id'
        # close: 'batch/:id/close'
      },
      transfer: {
        all: 'batch/:batch_id/transfer',
        create: 'batch/:batch_id/transfer',
        find: 'transfer/:id',
        delete: 'batch/:batch_id/transfer/:id',
        update: 'batch/:batch_id/transfer/:id'
      },
      balance: {
        find: 'statement/balance'
      }
    }
  }
end