Class: PaypalPayoutsSdk::Payouts::PayoutsItemGetRequest
- Inherits:
-
Object
- Object
- PaypalPayoutsSdk::Payouts::PayoutsItemGetRequest
- 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
-
#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(payout_item_id) ⇒ PayoutsItemGetRequest
constructor
A new instance of PayoutsItemGetRequest.
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
#body ⇒ Object
Returns the value of attribute body.
16 17 18 |
# File 'lib/payouts/payouts_item_get_request.rb', line 16 def body @body end |
#headers ⇒ Object
Returns the value of attribute headers.
16 17 18 |
# File 'lib/payouts/payouts_item_get_request.rb', line 16 def headers @headers end |
#path ⇒ Object
Returns the value of attribute path.
16 17 18 |
# File 'lib/payouts/payouts_item_get_request.rb', line 16 def path @path end |
#verb ⇒ Object
Returns the value of attribute verb.
16 17 18 |
# File 'lib/payouts/payouts_item_get_request.rb', line 16 def verb @verb end |