BacktestServiceAsync

Types

Link copied to clipboard
interface WithRawResponse

A view of BacktestServiceAsync that provides access to raw HTTP responses for each method.

Functions

Link copied to clipboard
abstract suspend fun create(params: AuthRuleV2BacktestCreateParams, requestOptions: RequestOptions = RequestOptions.none()): BacktestCreateResponse
open suspend fun create(authRuleToken: String, requestOptions: RequestOptions): BacktestCreateResponse

open suspend fun create(authRuleToken: String, params: AuthRuleV2BacktestCreateParams = AuthRuleV2BacktestCreateParams.none(), requestOptions: RequestOptions = RequestOptions.none()): BacktestCreateResponse

Initiates a request to asynchronously generate a backtest for an Auth rule. During backtesting, both the active version (if one exists) and the draft version of the Auth Rule are evaluated by replaying historical transaction data against the rule's conditions. This process allows customers to simulate and understand the effects of proposed rule changes before deployment. The generated backtest report provides detailed results showing whether the draft version of the Auth Rule would have approved or declined historical transactions which were processed during the backtest period. These reports help evaluate how changes to rule configurations might affect overall transaction approval rates.

Link copied to clipboard
abstract suspend fun retrieve(params: AuthRuleV2BacktestRetrieveParams, requestOptions: RequestOptions = RequestOptions.none()): BacktestResults

open suspend fun retrieve(authRuleBacktestToken: String, params: AuthRuleV2BacktestRetrieveParams, requestOptions: RequestOptions = RequestOptions.none()): BacktestResults

Returns the backtest results of an Auth rule (if available).

Link copied to clipboard

Returns a view of this service with the given option modifications applied.

Link copied to clipboard

Returns a view of this service that provides access to raw HTTP responses for each method.