Class: Allorails::Response::TransactionDetailResponse
- Inherits:
-
ApiMappingResponse
- Object
- ApiResponse
- ApiMappingResponse
- Allorails::Response::TransactionDetailResponse
- 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
Instance Method Summary collapse
-
#access_type ⇒ Object
Provides access type @return (string) access type.
-
#affiliate ⇒ Object
Provides the affiliation code @return (string) affiliation code.
-
#codes ⇒ Object
Provides the codes associated with the transaction @return (list) list of codes (list of string).
-
#creation_date ⇒ Object
Provides the creation date @return (datetime.datetime) Creation date.
-
#customer_country ⇒ Object
Provides the customer country @return (string) customer country.
-
#customer_ip ⇒ Object
Provides the customer ip @return (string) customer ip.
-
#data ⇒ Object
Provides the client data @return (string) client data.
-
#end_date ⇒ Object
Provides the end date @return (datetime.datetime) end date.
-
#expected_number_of_codes ⇒ Object
Provides the expected number of codes @return (int) expected number of codes.
-
#merchant_transaction_id ⇒ Object
Provides the merchant transaction id @return (string) merchant transaction id.
-
#paid ⇒ Object
Provides paid price information @return (Price) paid price information.
-
#partners ⇒ Object
Provides information about the associated partners @return (list) partners information (list of Partner objects).
-
#price ⇒ Object
Provides price information @return (Price) price information.
-
#product_name ⇒ Object
Provides the product name @return (string) product name.
-
#status ⇒ Object
Provides the transaction status @return (int) transaction status.
-
#status_description ⇒ Object
Provides the validation status description @return (string) validation status description.
-
#transaction_id ⇒ Object
Provides the tansaction id @return (string) transaction id.
Methods inherited from ApiMappingResponse
#_verify, attribute_reader, #initialize, node_reader
Methods inherited from ApiResponse
Constructor Details
This class inherits a constructor from Allorails::Response::ApiMappingResponse
Instance Method Details
#access_type ⇒ Object
Provides access type
@return (string) access type
32 |
# File 'lib/allorails/response/transaction_detail_response.rb', line 32 node_reader :access_type |
#affiliate ⇒ Object
Provides the affiliation code
@return (string) affiliation code
86 |
# File 'lib/allorails/response/transaction_detail_response.rb', line 86 node_reader :affiliate |
#codes ⇒ Object
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_date ⇒ Object
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_country ⇒ Object
Provides the customer country
@return (string) customer country
64 |
# File 'lib/allorails/response/transaction_detail_response.rb', line 64 node_reader :customer_country |
#customer_ip ⇒ Object
Provides the customer ip
@return (string) customer ip
60 |
# File 'lib/allorails/response/transaction_detail_response.rb', line 60 node_reader :customer_ip |
#data ⇒ Object
Provides the client data
@return (string) client data
82 |
# File 'lib/allorails/response/transaction_detail_response.rb', line 82 node_reader :data |
#end_date ⇒ Object
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_codes ⇒ Object
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_id ⇒ Object
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 |
#paid ⇒ Object
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 |
#partners ⇒ Object
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 |
#price ⇒ Object
Provides price information
@return (Price) price information
40 |
# File 'lib/allorails/response/transaction_detail_response.rb', line 40 node_reader :price, Allorails::Price |
#product_name ⇒ Object
Provides the product name
@return (string) product name
56 |
# File 'lib/allorails/response/transaction_detail_response.rb', line 56 node_reader :product_name |
#status ⇒ Object
Provides the transaction status
@return (int) transaction status
24 |
# File 'lib/allorails/response/transaction_detail_response.rb', line 24 node_reader :status, Integer |
#status_description ⇒ Object
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_id ⇒ Object
Provides the tansaction id
@return (string) transaction id
36 |
# File 'lib/allorails/response/transaction_detail_response.rb', line 36 node_reader :transaction_id |