Module: PaypalAPI::PayoutItems::APIs
- Included in:
- PaypalAPI::PayoutItems, PaypalAPI::PayoutItems
- Defined in:
- lib/paypal-api/api_collections/payout_items.rb
Overview
Common methods for PaypalAPI::PayoutItems class and client.payout_items instance
Instance Method Summary collapse
-
#cancel(payout_item_id, query: nil, body: nil, headers: nil) ⇒ Response
Cancel unclaimed payout item.
-
#show(payout_item_id, query: nil, body: nil, headers: nil) ⇒ Response
Show payout item details.
Instance Method Details
#cancel(payout_item_id, query: nil, body: nil, headers: nil) ⇒ Response
Cancel unclaimed payout item
27 28 29 |
# File 'lib/paypal-api/api_collections/payout_items.rb', line 27 def cancel(payout_item_id, query: nil, body: nil, headers: nil) client.post("/v1/payments/payouts-item/#{encode(payout_item_id)}/cancel", query: query, body: body, headers: headers) end |
#show(payout_item_id, query: nil, body: nil, headers: nil) ⇒ Response
Show payout item details
39 40 41 |
# File 'lib/paypal-api/api_collections/payout_items.rb', line 39 def show(payout_item_id, query: nil, body: nil, headers: nil) client.get("/v1/payments/payouts-item/#{encode(payout_item_id)}", query: query, body: body, headers: headers) end |