Class: AbacatePay::Resources::WebhookEndpoints

Inherits:
Resource
  • Object
show all
Defined in:
lib/abacate_pay/resources/webhook_endpoints.rb

Overview

Represents a registered webhook endpoint in the AbacatePay system.

This is the endpoint registration, the URL AbacatePay delivers events to. For verifying and parsing an inbound delivery, see Webhooks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ WebhookEndpoints

Returns a new instance of WebhookEndpoints.

Parameters:

  • data (Hash)

    The webhook properties



32
33
34
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 32

def initialize(data)
  fill(data)
end

Instance Attribute Details

#activeBoolean?

Returns Whether the endpoint is active.

Returns:

  • (Boolean, nil)

    Whether the endpoint is active



23
24
25
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 23

def active
  @active
end

#created_atDateTime?

Returns Creation timestamp.

Returns:

  • (DateTime, nil)

    Creation timestamp



26
27
28
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 26

def created_at
  @created_at
end

#endpointString?

Returns HTTPS URL that receives the events.

Returns:

  • (String, nil)

    HTTPS URL that receives the events



17
18
19
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 17

def endpoint
  @endpoint
end

#eventsArray<String>?

Returns Event types this endpoint subscribes to.

Returns:

  • (Array<String>, nil)

    Event types this endpoint subscribes to



20
21
22
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 20

def events
  @events
end

#idString?

Returns Webhook ID.

Returns:

  • (String, nil)

    Webhook ID



11
12
13
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 11

def id
  @id
end

#nameString?

Returns Identifying name.

Returns:

  • (String, nil)

    Identifying name



14
15
16
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 14

def name
  @name
end

#updated_atDateTime?

Returns Last update timestamp.

Returns:

  • (DateTime, nil)

    Last update timestamp



29
30
31
# File 'lib/abacate_pay/resources/webhook_endpoints.rb', line 29

def updated_at
  @updated_at
end