Module: ActAsApiClient::Clients::AuthorizeNetWebhooksClient

Includes:
HttpClient
Included in:
AuthorizeNetNotificationsClient
Defined in:
lib/act_as_api_client/clients/authorize_net_webhooks_client.rb

Constant Summary collapse

DEFAULT_OPTIONS =
{
  mode: :production
}.freeze

Instance Method Summary collapse

Instance Method Details

#find(uuid) ⇒ Object

Raises:

  • (StandardError)


18
19
20
21
22
23
# File 'lib/act_as_api_client/clients/authorize_net_webhooks_client.rb', line 18

def find(uuid)
  raise StandardError, "uuid is not provided" if uuid.empty?

  get("https://#{base_uri}/rest/v1/webhooks/#{uuid}",
      headers: { "Authorization" => auth })
end

#initializeObject



14
15
16
# File 'lib/act_as_api_client/clients/authorize_net_webhooks_client.rb', line 14

def initialize
  @options = DEFAULT_OPTIONS.merge(options)
end