class OffsitePayments::Integrations::A1agregator::Notification
def acknowledge(authcode = nil)
def acknowledge(authcode = nil) security_key == signature end
def additional_notification?
def additional_notification? @notification_type == :additional end
def command
def command params['command'] end
def comment
def comment params['comment'] end
def complete?
def complete? true end
def currency
def currency 'RUB' end
def guess_notification_type
def guess_notification_type @notification_type = params['version'] ? :additional : :simple end
def inclome_total
def inclome_total params['income_total'] end
def income
def income params['income'] end
def initialize(*args)
def initialize(*args) super guess_notification_type end
def item_id
def item_id params['order_id'] end
def partner_id
def partner_id params['partner_id'] end
def partner_income
def partner_income params['partner_income'] end
def partner_income
def partner_income params['partner_income'] end
def payer_email
def payer_email params['email'] end
def phone_number
def phone_number params['phone_number'] end
def received_at
def received_at params['date_created'] end
def result_string
def result_string params['resultStr'] end
def security_key
def security_key params[A1agregator.signature_parameter_name].to_s.downcase end
def service_id
def service_id params['service_id'] end
def signature
def signature data = "#{params['tid']}\ ['name']}\ ['comment']}\ ['partner_id']}\ ['service_id']}\ ['order_id']}\ ['type']}\ ['partner_income']}\ ['system_income']}\ ['test']}\ ns[:secret]}" Digest::MD5.hexdigest(data) end
def simple_notification?
def simple_notification? @notification_type == :simple end
def system_income
def system_income params['system_income'] end
def system_income
def system_income params['system_income'] end
def test?
def test? params['test'] == '1' end
def title
def title params['name'] end
def transaction_id
def transaction_id params['tid'] end
def type
def type params['type'] end
def version
def version params['version'] end