Class: Lithic::Resources::ResponderEndpoints
- Inherits:
-
Object
- Object
- Lithic::Resources::ResponderEndpoints
- Defined in:
- lib/lithic/resources/responder_endpoints.rb
Instance Method Summary collapse
-
#check_status(type:, request_options: {}) ⇒ Lithic::Models::ResponderEndpointStatus
Check the status of a responder endpoint.
-
#create(type: nil, url: nil, request_options: {}) ⇒ Lithic::Models::ResponderEndpointCreateResponse
Enroll a responder endpoint.
-
#delete(type:, request_options: {}) ⇒ nil
Disenroll a responder endpoint.
-
#initialize(client:) ⇒ ResponderEndpoints
constructor
private
A new instance of ResponderEndpoints.
Constructor Details
#initialize(client:) ⇒ ResponderEndpoints
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ResponderEndpoints.
77 78 79 |
# File 'lib/lithic/resources/responder_endpoints.rb', line 77 def initialize(client:) @client = client end |
Instance Method Details
#check_status(type:, request_options: {}) ⇒ Lithic::Models::ResponderEndpointStatus
Check the status of a responder endpoint
63 64 65 66 67 68 69 70 71 72 |
# File 'lib/lithic/resources/responder_endpoints.rb', line 63 def check_status(params) parsed, = Lithic::ResponderEndpointCheckStatusParams.dump_request(params) @client.request( method: :get, path: "v1/responder_endpoints", query: parsed, model: Lithic::ResponderEndpointStatus, options: ) end |
#create(type: nil, url: nil, request_options: {}) ⇒ Lithic::Models::ResponderEndpointCreateResponse
Enroll a responder endpoint
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/lithic/resources/responder_endpoints.rb', line 19 def create(params = {}) parsed, = Lithic::ResponderEndpointCreateParams.dump_request(params) @client.request( method: :post, path: "v1/responder_endpoints", body: parsed, model: Lithic::Models::ResponderEndpointCreateResponse, options: ) end |
#delete(type:, request_options: {}) ⇒ nil
Disenroll a responder endpoint
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/lithic/resources/responder_endpoints.rb', line 41 def delete(params) parsed, = Lithic::ResponderEndpointDeleteParams.dump_request(params) @client.request( method: :delete, path: "v1/responder_endpoints", query: parsed, model: NilClass, options: ) end |