WithRawResponse

interface WithRawResponse

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

Inheritors

Functions

Link copied to clipboard
@MustBeClosed
abstract suspend fun cancel(params: ExternalPaymentCancelParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<ExternalPayment>

@MustBeClosed
open suspend fun cancel(externalPaymentToken: String, params: ExternalPaymentCancelParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<ExternalPayment>

Returns a raw HTTP response for post /v1/external_payments/{external_payment_token}/cancel, but is otherwise the same as ExternalPaymentServiceAsync.cancel.

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

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

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

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

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

Link copied to clipboard
@MustBeClosed
abstract suspend fun release(params: ExternalPaymentReleaseParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<ExternalPayment>

@MustBeClosed
open suspend fun release(externalPaymentToken: String, params: ExternalPaymentReleaseParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<ExternalPayment>

Returns a raw HTTP response for post /v1/external_payments/{external_payment_token}/release, but is otherwise the same as ExternalPaymentServiceAsync.release.

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

@MustBeClosed
open suspend fun retrieve(externalPaymentToken: String, params: ExternalPaymentRetrieveParams = ExternalPaymentRetrieveParams.none(), requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<ExternalPayment>

Returns a raw HTTP response for get /v1/external_payments/{external_payment_token}, but is otherwise the same as ExternalPaymentServiceAsync.retrieve.

Link copied to clipboard
@MustBeClosed
abstract suspend fun reverse(params: ExternalPaymentReverseParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<ExternalPayment>

@MustBeClosed
open suspend fun reverse(externalPaymentToken: String, params: ExternalPaymentReverseParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<ExternalPayment>

Returns a raw HTTP response for post /v1/external_payments/{external_payment_token}/reverse, but is otherwise the same as ExternalPaymentServiceAsync.reverse.

Link copied to clipboard
@MustBeClosed
abstract suspend fun settle(params: ExternalPaymentSettleParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<ExternalPayment>

@MustBeClosed
open suspend fun settle(externalPaymentToken: String, params: ExternalPaymentSettleParams, requestOptions: RequestOptions = RequestOptions.none()): HttpResponseFor<ExternalPayment>

Returns a raw HTTP response for post /v1/external_payments/{external_payment_token}/settle, but is otherwise the same as ExternalPaymentServiceAsync.settle.

Link copied to clipboard

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