class PayPal::SDK::REST::DataTypes::Payout

Public Class Methods

get(payout_batch_id, options = {}) click to toggle source
# File lib/paypal-sdk/rest/data_types.rb, line 1701
def get(payout_batch_id, options = {})
  raise ArgumentError.new("id required") if payout_batch_id.to_s.strip.empty?
  path = "v1/payments/payouts/#{payout_batch_id}"
  PayoutBatch.new(api.get(path, options))
end
load_members() click to toggle source
# File lib/paypal-sdk/rest/data_types.rb, line 1686
def self.load_members
    object_of :sender_batch_header, PayoutSenderBatchHeader
    array_of  :items, PayoutItem
end

Public Instance Methods

create(sync_mode = false) click to toggle source
# File lib/paypal-sdk/rest/data_types.rb, line 1693
def create(sync_mode = false)
  path = "v1/payments/payouts"
  options = { :sync_mode => sync_mode }
  response = api.post(path, self.to_hash, http_header, options)
  PayoutBatch.new(response)
end