Class: Stripe::Radar::EarlyFraudWarningService

Inherits:
StripeService show all
Defined in:
lib/stripe/services/radar/early_fraud_warning_service.rb

Instance Method Summary collapse

Methods inherited from StripeService

#initialize, #request, #request_stream

Constructor Details

This class inherits a constructor from Stripe::StripeService

Instance Method Details

#list(params = {}, opts = {}) ⇒ Object

Returns a list of early fraud warnings.



8
9
10
11
12
13
14
15
16
# File 'lib/stripe/services/radar/early_fraud_warning_service.rb', line 8

def list(params = {}, opts = {})
  request(
    method: :get,
    path: "/v1/radar/early_fraud_warnings",
    params: params,
    opts: opts,
    base_address: :api
  )
end

#retrieve(early_fraud_warning, params = {}, opts = {}) ⇒ Object

Retrieves the details of an early fraud warning that has previously been created.

Please refer to the [early fraud warning](stripe.com/docs/api#early_fraud_warning_object) object reference for more details.



21
22
23
24
25
26
27
28
29
# File 'lib/stripe/services/radar/early_fraud_warning_service.rb', line 21

def retrieve(early_fraud_warning, params = {}, opts = {})
  request(
    method: :get,
    path: format("/v1/radar/early_fraud_warnings/%<early_fraud_warning>s", { early_fraud_warning: CGI.escape(early_fraud_warning) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end