Class: PayPalCheckoutSdk::Payments::CapturesGetRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/payments/captures_get_request.rb

Overview

Shows details for a captured payment, by ID.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(capture_id) ⇒ CapturesGetRequest

Returns a new instance of CapturesGetRequest.



18
19
20
21
22
23
24
25
26
# File 'lib/payments/captures_get_request.rb', line 18

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

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



16
17
18
# File 'lib/payments/captures_get_request.rb', line 16

def body
  @body
end

#headersObject

Returns the value of attribute headers.



16
17
18
# File 'lib/payments/captures_get_request.rb', line 16

def headers
  @headers
end

#pathObject

Returns the value of attribute path.



16
17
18
# File 'lib/payments/captures_get_request.rb', line 16

def path
  @path
end

#verbObject

Returns the value of attribute verb.



16
17
18
# File 'lib/payments/captures_get_request.rb', line 16

def verb
  @verb
end