class PaypalPayoutsSdk::Payouts::PayoutsItemCancelRequest

Cancels an unclaimed payout item, by ID. If no one claims the unclaimed item within 30 days, the API automatically returns the funds to the sender. Use this call to cancel the unclaimed item before the automatic 30-day refund. You can cancel payout items with a transaction_status of UNCLAIMED.

Attributes

body[RW]
headers[RW]
path[RW]
verb[RW]

Public Class Methods

new(payout_item_id) click to toggle source
# File lib/payouts/payouts_item_cancel_request.rb, line 18
def initialize(payout_item_id)
  @headers = {}
  @body = nil
  @verb = "POST"
  @path = "/v1/payments/payouts-item/{payout_item_id}/cancel?"

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