Module: PaypalAPI::WebhookLookups::APIs
- Included in:
- PaypalAPI::WebhookLookups, PaypalAPI::WebhookLookups
- Defined in:
- lib/paypal-api/api_collections/webhook_lookups.rb
Overview
Common methods for PaypalAPI::WebhookLookups class and client.webhook_lookups instance
Instance Method Summary collapse
-
#create(query: nil, body: nil, headers: nil) ⇒ Response
Create webhook lookup.
-
#delete(webhook_lookup_id, query: nil, body: nil, headers: nil) ⇒ Response
Delete webhook lookup.
-
#list(query: nil, body: nil, headers: nil) ⇒ Response
List webhook lookups.
-
#show(webhook_lookup_id, query: nil, body: nil, headers: nil) ⇒ Response
Show webhook lookup details.
Instance Method Details
#create(query: nil, body: nil, headers: nil) ⇒ Response
Create webhook lookup
25 26 27 |
# File 'lib/paypal-api/api_collections/webhook_lookups.rb', line 25 def create(query: nil, body: nil, headers: nil) client.post("/v1/notifications/webhooks-lookup", query: query, body: body, headers: headers) end |
#delete(webhook_lookup_id, query: nil, body: nil, headers: nil) ⇒ Response
Delete webhook lookup
60 61 62 |
# File 'lib/paypal-api/api_collections/webhook_lookups.rb', line 60 def delete(webhook_lookup_id, query: nil, body: nil, headers: nil) client.delete("/v1/notifications/webhooks-lookup/#{encode(webhook_lookup_id)}", query: query, body: body, headers: headers) end |
#list(query: nil, body: nil, headers: nil) ⇒ Response
List webhook lookups
36 37 38 |
# File 'lib/paypal-api/api_collections/webhook_lookups.rb', line 36 def list(query: nil, body: nil, headers: nil) client.get("/v1/notifications/webhooks-lookup", query: query, body: body, headers: headers) end |
#show(webhook_lookup_id, query: nil, body: nil, headers: nil) ⇒ Response
Show webhook lookup details
48 49 50 |
# File 'lib/paypal-api/api_collections/webhook_lookups.rb', line 48 def show(webhook_lookup_id, query: nil, body: nil, headers: nil) client.get("/v1/notifications/webhooks-lookup/#{encode(webhook_lookup_id)}", query: query, body: body, headers: headers) end |