# 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