Class: Stripe::Radar::EarlyFraudWarningService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::Radar::EarlyFraudWarningService
- Defined in:
- lib/stripe/services/radar/early_fraud_warning_service.rb
Defined Under Namespace
Classes: ListParams, RetrieveParams
Instance Method Summary collapse
-
#list(params = {}, opts = {}) ⇒ Object
Returns a list of early fraud warnings.
-
#retrieve(early_fraud_warning, params = {}, opts = {}) ⇒ Object
Retrieves the details of an early fraud warning that has previously been created.
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.
69 70 71 72 73 74 75 76 77 |
# File 'lib/stripe/services/radar/early_fraud_warning_service.rb', line 69 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.
82 83 84 85 86 87 88 89 90 |
# File 'lib/stripe/services/radar/early_fraud_warning_service.rb', line 82 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 |