Class: PayPalCheckoutSdk::Payments::AuthorizationsVoidRequest
- Inherits:
-
Object
- Object
- PayPalCheckoutSdk::Payments::AuthorizationsVoidRequest
- Defined in:
- lib/paypal/paypal_checkout_sdk/payments/authorizations_void_request.rb
Overview
Voids, or cancels, an authorized payment, by ID. You cannot void an authorized payment that has been fully captured.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#path ⇒ Object
Returns the value of attribute path.
-
#verb ⇒ Object
Returns the value of attribute verb.
Instance Method Summary collapse
-
#initialize(authorization_id) ⇒ AuthorizationsVoidRequest
constructor
A new instance of AuthorizationsVoidRequest.
Constructor Details
#initialize(authorization_id) ⇒ AuthorizationsVoidRequest
14 15 16 17 18 19 20 21 22 |
# File 'lib/paypal/paypal_checkout_sdk/payments/authorizations_void_request.rb', line 14 def initialize() @headers = {} @body = nil @verb = "POST" @path = "/v2/payments/authorizations/{authorization_id}/void?" @path = @path.gsub("{authorization_id}", CGI.escape(.to_s)) @headers["Content-Type"] = "application/json" end |
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body.
12 13 14 |
# File 'lib/paypal/paypal_checkout_sdk/payments/authorizations_void_request.rb', line 12 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
12 13 14 |
# File 'lib/paypal/paypal_checkout_sdk/payments/authorizations_void_request.rb', line 12 def headers @headers end |
#path ⇒ Object
Returns the value of attribute path.
12 13 14 |
# File 'lib/paypal/paypal_checkout_sdk/payments/authorizations_void_request.rb', line 12 def path @path end |
#verb ⇒ Object
Returns the value of attribute verb.
12 13 14 |
# File 'lib/paypal/paypal_checkout_sdk/payments/authorizations_void_request.rb', line 12 def verb @verb end |