Sha256: 21b35813e95057678ee5ad5bda7a789e249e16259ae7f4ed6092c6fa2a543028

Contents?: true

Size: 335 Bytes

Versions: 4

Compression:

Stored size: 335 Bytes

Contents

# frozen_string_literal: true

require 'truelayer/base_model'

module Truelayer
  class WebhookPayload < BaseModel
    attributes :request_timestamp, :request_uri,
               :credentials_id, :results_uri, :status, :task_id,
               :error, :error_description

    def success?
      status == 'Succeeded'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
truelayer-0.1.4 lib/truelayer/webhook_payload.rb
truelayer-0.1.3 lib/truelayer/webhook_payload.rb
truelayer-0.1.2 lib/truelayer/webhook_payload.rb
truelayer-0.1.1 lib/truelayer/webhook_payload.rb