Class: Killbill::Cybersource::CyberSourceOnDemand::CyberSourceOnDemandTransactionReport

Inherits:
Object
  • Object
show all
Defined in:
lib/cybersource/cyber_source_on_demand.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml_report, logger) ⇒ CyberSourceOnDemandTransactionReport

Returns a new instance of CyberSourceOnDemandTransactionReport.



83
84
85
86
87
# File 'lib/cybersource/cyber_source_on_demand.rb', line 83

def initialize(xml_report, logger)
  @logger = logger
  @hash_report = parse_xml(xml_report)
  parse
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



81
82
83
# File 'lib/cybersource/cyber_source_on_demand.rb', line 81

def response
  @response
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


93
94
95
# File 'lib/cybersource/cyber_source_on_demand.rb', line 93

def empty?
  @response.params['merchantReferenceCode'].nil?
end

#request_idObject



97
98
99
# File 'lib/cybersource/cyber_source_on_demand.rb', line 97

def request_id
  @response.params['requestID']
end

#success?Boolean

Returns:

  • (Boolean)


89
90
91
# File 'lib/cybersource/cyber_source_on_demand.rb', line 89

def success?
  @response.success?
end