WithRawResponse

interface WithRawResponse

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

Inheritors

Functions

Link copied to clipboard
Link copied to clipboard
@MustBeClosed
abstract suspend fun expireAuthorization(params: TransactionExpireAuthorizationParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponse
@MustBeClosed
open suspend fun expireAuthorization(transactionToken: String, requestOptions: RequestOptions): HttpResponse

@MustBeClosed
open suspend fun expireAuthorization(transactionToken: String, params: TransactionExpireAuthorizationParams = TransactionExpireAuthorizationParams.none(), requestOptions: RequestOptions = RequestOptions.none()): HttpResponse

Returns a raw HTTP response for post /v1/transactions/{transaction_token}/expire_authorization, but is otherwise the same as TransactionServiceAsync.expireAuthorization.

Link copied to clipboard
@MustBeClosed
open suspend fun list(requestOptions: RequestOptions): HttpResponseFor<TransactionListPageAsync>

@MustBeClosed
abstract suspend fun list(params: TransactionListParams = TransactionListParams.none(), requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<TransactionListPageAsync>

Returns a raw HTTP response for get /v1/transactions, but is otherwise the same as TransactionServiceAsync.list.

Link copied to clipboard
@MustBeClosed
abstract suspend fun retrieve(params: TransactionRetrieveParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<Transaction>
@MustBeClosed
open suspend fun retrieve(transactionToken: String, requestOptions: RequestOptions): HttpResponseFor<Transaction>

@MustBeClosed
open suspend fun retrieve(transactionToken: String, params: TransactionRetrieveParams = TransactionRetrieveParams.none(), requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<Transaction>

Returns a raw HTTP response for get /v1/transactions/{transaction_token}, but is otherwise the same as TransactionServiceAsync.retrieve.

Link copied to clipboard
@MustBeClosed
abstract suspend fun simulateAuthorization(params: TransactionSimulateAuthorizationParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<TransactionSimulateAuthorizationResponse>

Returns a raw HTTP response for post /v1/simulate/authorize, but is otherwise the same as TransactionServiceAsync.simulateAuthorization.

Link copied to clipboard

Returns a raw HTTP response for post /v1/simulate/authorization_advice, but is otherwise the same as TransactionServiceAsync.simulateAuthorizationAdvice.

Link copied to clipboard
@MustBeClosed
abstract suspend fun simulateClearing(params: TransactionSimulateClearingParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<TransactionSimulateClearingResponse>

Returns a raw HTTP response for post /v1/simulate/clearing, but is otherwise the same as TransactionServiceAsync.simulateClearing.

Link copied to clipboard

Returns a raw HTTP response for post /v1/simulate/credit_authorization_advice, but is otherwise the same as TransactionServiceAsync.simulateCreditAuthorization.

Link copied to clipboard
@MustBeClosed
abstract suspend fun simulateReturn(params: TransactionSimulateReturnParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<TransactionSimulateReturnResponse>

Returns a raw HTTP response for post /v1/simulate/return, but is otherwise the same as TransactionServiceAsync.simulateReturn.

Link copied to clipboard
@MustBeClosed
abstract suspend fun simulateReturnReversal(params: TransactionSimulateReturnReversalParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<TransactionSimulateReturnReversalResponse>

Returns a raw HTTP response for post /v1/simulate/return_reversal, but is otherwise the same as TransactionServiceAsync.simulateReturnReversal.

Link copied to clipboard
@MustBeClosed
abstract suspend fun simulateVoid(params: TransactionSimulateVoidParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<TransactionSimulateVoidResponse>

Returns a raw HTTP response for post /v1/simulate/void, but is otherwise the same as TransactionServiceAsync.simulateVoid.

Link copied to clipboard

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