Class: Levelup::Requests::RefundOrder
- Inherits:
-
Base
- Object
- Templates::DataParcel
- Base
- Levelup::Requests::RefundOrder
- Includes:
- Templates::MerchantAuthenticated
- Defined in:
- lib/levelup/requests/refund_order.rb
Overview
Represents a request to refund a specified order. Merchant access token must have the manage_merchant_orders permission.
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#manager_confirmation ⇒ Object
If your merchant account is configured to require one, a confirmation code permitting this refund.
Attributes included from Templates::MerchantAuthenticated
Instance Method Summary collapse
Methods included from Templates::MerchantAuthenticated
Methods inherited from Base
#auth_type, #headers, instance_variables_excluded_from_hash, #send_to_api
Methods inherited from Templates::DataParcel
excluded?, #initialize, instance_variables_excluded_from_hash
Constructor Details
This class inherits a constructor from Levelup::Templates::DataParcel
Instance Attribute Details
#manager_confirmation ⇒ Object
If your merchant account is configured to require one, a confirmation code permitting this refund.
10 11 12 |
# File 'lib/levelup/requests/refund_order.rb', line 10 def manager_confirmation @manager_confirmation end |
Instance Method Details
#body ⇒ Object
12 13 14 |
# File 'lib/levelup/requests/refund_order.rb', line 12 def body { refund: to_hash } end |