Class: PaypalPayoutsSdk::Payouts::PayoutsGetRequest

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

Overview

Shows the latest status of a batch payout. Includes the transaction status and other data for individual payout items.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payout_batch_id) ⇒ PayoutsGetRequest

Returns a new instance of PayoutsGetRequest.



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

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

  @path = @path.gsub("{payout_batch_id}", CGI::escape(payout_batch_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_get_request.rb', line 16

def body
  @body
end

#headersObject

Returns the value of attribute headers.



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

def headers
  @headers
end

#pathObject

Returns the value of attribute path.



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

def path
  @path
end

#verbObject

Returns the value of attribute verb.



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

def verb
  @verb
end

Instance Method Details

#fields(fields) ⇒ Object



28
29
30
31
# File 'lib/payouts/payouts_get_request.rb', line 28

def fields(fields)
  param = fields.to_s
  @path += "fields=#{CGI::escape(param)}&"
end

#page(page) ⇒ Object



33
34
35
36
# File 'lib/payouts/payouts_get_request.rb', line 33

def page(page)
  param = page.to_s
  @path += "page=#{CGI::escape(param)}&"
end

#page_size(page_size) ⇒ Object



38
39
40
41
# File 'lib/payouts/payouts_get_request.rb', line 38

def page_size(page_size)
  param = page_size.to_s
  @path += "page_size=#{CGI::escape(param)}&"
end

#total_required(total_required) ⇒ Object



43
44
45
46
# File 'lib/payouts/payouts_get_request.rb', line 43

def total_required(total_required)
  param = total_required.to_s
  @path += "total_required=#{CGI::escape(param)}&"
end