BacktestServiceAsyncImpl

Functions

Link copied to clipboard
open suspend fun create(authRuleToken: String, requestOptions: RequestOptions): BacktestCreateResponse
open suspend override fun create(params: AuthRuleV2BacktestCreateParams, 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
open suspend fun retrieve(authRuleBacktestToken: String, params: AuthRuleV2BacktestRetrieveParams, requestOptions: RequestOptions = RequestOptions.none()): BacktestResults

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

open suspend override fun retrieve(params: AuthRuleV2BacktestRetrieveParams, requestOptions: RequestOptions): BacktestResults
Link copied to clipboard
open override fun withOptions(modifier: (ClientOptions.Builder) -> Unit): BacktestServiceAsync

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.