Class: Lithic::Resources::ResponderEndpoints

Inherits:
Object
  • Object
show all
Defined in:
lib/lithic/resources/responder_endpoints.rb

Instance Method Summary collapse

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.

Parameters:



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

Parameters:

Returns:

See Also:



63
64
65
66
67
68
69
70
71
72
# File 'lib/lithic/resources/responder_endpoints.rb', line 63

def check_status(params)
  parsed, options = Lithic::ResponderEndpointCheckStatusParams.dump_request(params)
  @client.request(
    method: :get,
    path: "v1/responder_endpoints",
    query: parsed,
    model: Lithic::ResponderEndpointStatus,
    options: options
  )
end

#create(type: nil, url: nil, request_options: {}) ⇒ Lithic::Models::ResponderEndpointCreateResponse

Enroll a responder endpoint

Parameters:

Returns:

See Also:



19
20
21
22
23
24
25
26
27
28
# File 'lib/lithic/resources/responder_endpoints.rb', line 19

def create(params = {})
  parsed, options = Lithic::ResponderEndpointCreateParams.dump_request(params)
  @client.request(
    method: :post,
    path: "v1/responder_endpoints",
    body: parsed,
    model: Lithic::Models::ResponderEndpointCreateResponse,
    options: options
  )
end

#delete(type:, request_options: {}) ⇒ nil

Disenroll a responder endpoint

Parameters:

Returns:

  • (nil)

See Also:



41
42
43
44
45
46
47
48
49
50
# File 'lib/lithic/resources/responder_endpoints.rb', line 41

def delete(params)
  parsed, options = Lithic::ResponderEndpointDeleteParams.dump_request(params)
  @client.request(
    method: :delete,
    path: "v1/responder_endpoints",
    query: parsed,
    model: NilClass,
    options: options
  )
end