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