Class: PaypalPayoutsSdk::Payouts::PayoutsItemGetRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/payouts/payouts_item_get_request.rb

Overview

Shows details for a payout item, by ID. A payout_item_id helps you identify denied payments. If a payment is denied, you can use the payout_item_id to identify the payment even if it lacks a transaction_id.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payout_item_id) ⇒ PayoutsItemGetRequest

Returns a new instance of PayoutsItemGetRequest.



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

def initialize(payout_item_id)
  @headers = {}
  @body = nil
  @verb = "GET"
  @path = "/v1/payments/payouts-item/{payout_item_id}?"

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

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



16
17
18
# File 'lib/payouts/payouts_item_get_request.rb', line 16

def body
  @body
end

#headersObject

Returns the value of attribute headers.



16
17
18
# File 'lib/payouts/payouts_item_get_request.rb', line 16

def headers
  @headers
end

#pathObject

Returns the value of attribute path.



16
17
18
# File 'lib/payouts/payouts_item_get_request.rb', line 16

def path
  @path
end

#verbObject

Returns the value of attribute verb.



16
17
18
# File 'lib/payouts/payouts_item_get_request.rb', line 16

def verb
  @verb
end