WithRawResponse

interface WithRawResponse

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

Inheritors

Functions

Link copied to clipboard
@MustBeClosed
abstract suspend fun create(params: PaymentCreateParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<PaymentCreateResponse>

Returns a raw HTTP response for post /v1/payments, but is otherwise the same as PaymentServiceAsync.create.

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

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

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

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

@MustBeClosed
open suspend fun retrieve(paymentToken: String, params: PaymentRetrieveParams = PaymentRetrieveParams.none(), requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<Payment>

Returns a raw HTTP response for get /v1/payments/{payment_token}, but is otherwise the same as PaymentServiceAsync.retrieve.

Link copied to clipboard
@MustBeClosed
abstract suspend fun retry(params: PaymentRetryParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<PaymentRetryResponse>
@MustBeClosed
open suspend fun retry(paymentToken: String, requestOptions: RequestOptions): HttpResponseFor<PaymentRetryResponse>

@MustBeClosed
open suspend fun retry(paymentToken: String, params: PaymentRetryParams = PaymentRetryParams.none(), requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<PaymentRetryResponse>

Returns a raw HTTP response for post /v1/payments/{payment_token}/retry, but is otherwise the same as PaymentServiceAsync.retry.

Link copied to clipboard
@MustBeClosed
abstract suspend fun simulateAction(params: PaymentSimulateActionParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<PaymentSimulateActionResponse>

@MustBeClosed
open suspend fun simulateAction(paymentToken: String, params: PaymentSimulateActionParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<PaymentSimulateActionResponse>

Returns a raw HTTP response for post /v1/simulate/payments/{payment_token}/action, but is otherwise the same as PaymentServiceAsync.simulateAction.

Link copied to clipboard
@MustBeClosed
abstract suspend fun simulateReceipt(params: PaymentSimulateReceiptParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<PaymentSimulateReceiptResponse>

Returns a raw HTTP response for post /v1/simulate/payments/receipt, but is otherwise the same as PaymentServiceAsync.simulateReceipt.

Link copied to clipboard
@MustBeClosed
abstract suspend fun simulateRelease(params: PaymentSimulateReleaseParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<PaymentSimulateReleaseResponse>

Returns a raw HTTP response for post /v1/simulate/payments/release, but is otherwise the same as PaymentServiceAsync.simulateRelease.

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

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

Link copied to clipboard

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