class Braintree::WebhookNotification

Attributes

account_updater_daily_report[R]
connected_merchant_paypal_status_changed[R]
connected_merchant_status_transitioned[R]
disbursement[R]
dispute[R]
granted_payment_instrument_update[R]
kind[R]
local_payment_completed[R]
local_payment_expired[R]
local_payment_funded[R]
local_payment_reversed[R]
oauth_access_revocation[R]
partner_merchant[R]
payment_method_customer_data_updated_metadata[R]
revoked_payment_method_metadata[R]
source_merchant_id[R]
subscription[R]
timestamp[R]
transaction[R]
transaction_review[R]

Public Class Methods

parse(*args) click to toggle source
# File lib/braintree/webhook_notification.rb, line 85
def self.parse(*args)
  Configuration.gateway.webhook_notification.parse(*args)
end
verify(*args) click to toggle source
# File lib/braintree/webhook_notification.rb, line 89
def self.verify(*args)
  Configuration.gateway.webhook_notification.verify(*args)
end

Public Instance Methods

check?() click to toggle source
# File lib/braintree/webhook_notification.rb, line 130
def check?
  !!@subject[:check]
end
errors() click to toggle source
# File lib/braintree/webhook_notification.rb, line 122
def errors
  @error_result.errors if @error_result
end
merchant_account() click to toggle source
# File lib/braintree/webhook_notification.rb, line 118
def merchant_account
  @error_result.nil? ? @merchant_account : @error_result.merchant_account
end
message() click to toggle source
# File lib/braintree/webhook_notification.rb, line 126
def message
  @error_result.message if @error_result
end