Class: PayPalCheckoutSdk::Payments::RefundsGetRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/paypal/paypal_checkout_sdk/payments/refunds_get_request.rb

Overview

Shows details for a refund, by ID.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(refund_id) ⇒ RefundsGetRequest

Returns a new instance of RefundsGetRequest.



13
14
15
16
17
18
19
20
21
# File 'lib/paypal/paypal_checkout_sdk/payments/refunds_get_request.rb', line 13

def initialize(refund_id)
  @headers = {}
  @body = nil
  @verb = "GET"
  @path = "/v2/payments/refunds/{refund_id}?"

  @path = @path.gsub("{refund_id}", CGI.escape(refund_id.to_s))
  @headers["Content-Type"] = "application/json"
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



11
12
13
# File 'lib/paypal/paypal_checkout_sdk/payments/refunds_get_request.rb', line 11

def body
  @body
end

#headersObject

Returns the value of attribute headers.



11
12
13
# File 'lib/paypal/paypal_checkout_sdk/payments/refunds_get_request.rb', line 11

def headers
  @headers
end

#pathObject

Returns the value of attribute path.



11
12
13
# File 'lib/paypal/paypal_checkout_sdk/payments/refunds_get_request.rb', line 11

def path
  @path
end

#verbObject

Returns the value of attribute verb.



11
12
13
# File 'lib/paypal/paypal_checkout_sdk/payments/refunds_get_request.rb', line 11

def verb
  @verb
end