Class: Payment::OrderProcessor::Result
- Inherits:
-
Data
- Object
- Data
- Payment::OrderProcessor::Result
- Defined in:
- app/services/payment/order_processor.rb
Overview
This service goes through the deliveries of an order and applies a payment authorization to each delivery
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#notice ⇒ Object
readonly
Returns the value of attribute notice.
-
#payment ⇒ Object
readonly
Returns the value of attribute payment.
-
#pp_params ⇒ Object
readonly
Returns the value of attribute pp_params.
-
#redirect_url ⇒ Object
readonly
Returns the value of attribute redirect_url.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(result: nil, error: nil, notice: nil, payment: nil, pp_params: nil, redirect_url: nil) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(result: nil, error: nil, notice: nil, payment: nil, pp_params: nil, redirect_url: nil) ⇒ Result
Returns a new instance of Result.
7 |
# File 'app/services/payment/order_processor.rb', line 7 def initialize(result: nil, error: nil, notice: nil, payment: nil, pp_params: nil, redirect_url: nil) = super |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error
6 7 8 |
# File 'app/services/payment/order_processor.rb', line 6 def error @error end |
#notice ⇒ Object (readonly)
Returns the value of attribute notice
6 7 8 |
# File 'app/services/payment/order_processor.rb', line 6 def notice @notice end |
#payment ⇒ Object (readonly)
Returns the value of attribute payment
6 7 8 |
# File 'app/services/payment/order_processor.rb', line 6 def payment @payment end |
#pp_params ⇒ Object (readonly)
Returns the value of attribute pp_params
6 7 8 |
# File 'app/services/payment/order_processor.rb', line 6 def pp_params @pp_params end |
#redirect_url ⇒ Object (readonly)
Returns the value of attribute redirect_url
6 7 8 |
# File 'app/services/payment/order_processor.rb', line 6 def redirect_url @redirect_url end |
#result ⇒ Object (readonly)
Returns the value of attribute result
6 7 8 |
# File 'app/services/payment/order_processor.rb', line 6 def result @result end |