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