Class: Allorails::Response::TransactionDetailResponse

Inherits:
ApiMappingResponse show all
Defined in:
lib/allorails/response/transaction_detail_response.rb

Overview

Class defining a transaction detail request’s response

Constant Summary collapse

INIT =

The transaction is at first step : initialization

-1
SUCCESS =

The transaction is successful

0
INSUFFICIENT_FUNDS =

The transaction failed due to insufficient funds

1
TIMEOUT =

The transaction timeouted

2
CANCELLED =

The transaction has been cancelled by user

3
ANTI_FRAUD =

The transaction has been blocked due to fraud suspicions

4

Instance Attribute Summary

Attributes inherited from ApiMappingResponse

#xml

Instance Method Summary collapse

Methods inherited from ApiMappingResponse

#_verify, attribute_reader, #initialize, node_reader

Methods inherited from ApiResponse

#_verify, #initialize

Constructor Details

This class inherits a constructor from Allorails::Response::ApiMappingResponse

Instance Method Details

#access_typeObject

Provides access type

@return (string) access type


32
# File 'lib/allorails/response/transaction_detail_response.rb', line 32

node_reader :access_type

#affiliateObject

Provides the affiliation code

@return (string) affiliation code


86
# File 'lib/allorails/response/transaction_detail_response.rb', line 86

node_reader :affiliate

#codesObject

Provides the codes associated with the transaction

@return (list) list of codes (list of string)


72
73
74
# File 'lib/allorails/response/transaction_detail_response.rb', line 72

def codes
  xml.css('codes code').map{|c| Allorails::Code.new(c)}
end

#creation_dateObject

Provides the creation date

@return (datetime.datetime) Creation date


48
# File 'lib/allorails/response/transaction_detail_response.rb', line 48

node_reader :creation_date, DateTime

#customer_countryObject

Provides the customer country

@return (string) customer country


64
# File 'lib/allorails/response/transaction_detail_response.rb', line 64

node_reader :customer_country

#customer_ipObject

Provides the customer ip

@return (string) customer ip


60
# File 'lib/allorails/response/transaction_detail_response.rb', line 60

node_reader :customer_ip

#dataObject

Provides the client data

@return (string) client data


82
# File 'lib/allorails/response/transaction_detail_response.rb', line 82

node_reader :data

#end_dateObject

Provides the end date

@return (datetime.datetime) end date


52
# File 'lib/allorails/response/transaction_detail_response.rb', line 52

node_reader :end_date, DateTime

#expected_number_of_codesObject

Provides the expected number of codes

@return (int) expected number of codes


68
# File 'lib/allorails/response/transaction_detail_response.rb', line 68

node_reader :expected_number_of_codes, Integer

#merchant_transaction_idObject

Provides the merchant transaction id

@return (string) merchant transaction id


78
# File 'lib/allorails/response/transaction_detail_response.rb', line 78

node_reader :merchant_transaction_id

Provides paid price information

@return (Price) paid price information


44
# File 'lib/allorails/response/transaction_detail_response.rb', line 44

node_reader :paid, Allorails::Price

#partnersObject

Provides information about the associated partners

@return (list) partners information (list of Partner objects)


90
91
92
# File 'lib/allorails/response/transaction_detail_response.rb', line 90

def partners
  xml.css('partners').map{|c| Allorails::Partner.new(c)}
end

#priceObject

Provides price information

@return (Price) price information


40
# File 'lib/allorails/response/transaction_detail_response.rb', line 40

node_reader :price, Allorails::Price

#product_nameObject

Provides the product name

@return (string) product name


56
# File 'lib/allorails/response/transaction_detail_response.rb', line 56

node_reader :product_name

#statusObject

Provides the transaction status

@return (int) transaction status


24
# File 'lib/allorails/response/transaction_detail_response.rb', line 24

node_reader :status, Integer

#status_descriptionObject

Provides the validation status description

@return (string) validation status description


28
# File 'lib/allorails/response/transaction_detail_response.rb', line 28

node_reader :status_description

#transaction_idObject

Provides the tansaction id

@return (string) transaction id


36
# File 'lib/allorails/response/transaction_detail_response.rb', line 36

node_reader :transaction_id