Class: FlexCommerce::PaypalExpress::Process::ResponseParser
- Inherits:
-
Object
- Object
- FlexCommerce::PaypalExpress::Process::ResponseParser
- Defined in:
- lib/paypal_express/process/response_parser.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
-
#shipping_method_model ⇒ Object
Returns the value of attribute shipping_method_model.
Instance Method Summary collapse
-
#call ⇒ Object
@TODO: Need to validate the paypal response, to ensure it is returning all the attribute values as expected Related ticket: github.com/shiftcommerce/flex-ruby-gem/issues/152.
-
#initialize(response:, shipping_method_model:) ⇒ ResponseParser
constructor
A new instance of ResponseParser.
Constructor Details
#initialize(response:, shipping_method_model:) ⇒ ResponseParser
Returns a new instance of ResponseParser.
8 9 10 11 |
# File 'lib/paypal_express/process/response_parser.rb', line 8 def initialize(response:, shipping_method_model:) self.response = response self.shipping_method_model = shipping_method_model end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
26 27 28 |
# File 'lib/paypal_express/process/response_parser.rb', line 26 def response @response end |
#shipping_method_model ⇒ Object
Returns the value of attribute shipping_method_model.
26 27 28 |
# File 'lib/paypal_express/process/response_parser.rb', line 26 def shipping_method_model @shipping_method_model end |
Instance Method Details
#call ⇒ Object
@TODO: Need to validate the paypal response, to ensure it is
returning all the attribute values as expected
Related ticket: github.com/shiftcommerce/flex-ruby-gem/issues/152
17 18 19 20 21 22 23 24 |
# File 'lib/paypal_express/process/response_parser.rb', line 17 def call { shipping_method_id: get_shipping_method_details, email: get_email_address, shipping_address_attributes: get_shipping_address_attributes, billing_address_attributes: get_billing_address_attributes } end |