com.lithic.api.services.async.PaymentServiceAsync.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lithic-kotlin-core Show documentation
Show all versions of lithic-kotlin-core Show documentation
The Lithic Developer API is designed to provide a predictable programmatic
interface for accessing your Lithic account through an API and transaction
webhooks. Note that your API key is a secret and should be treated as such.
Don't share it with anyone, including us. We will never ask you for it.
The newest version!
// File generated from our OpenAPI spec by Stainless.
package com.lithic.api.services.async
import com.lithic.api.core.RequestOptions
import com.lithic.api.models.Payment
import com.lithic.api.models.PaymentCreateParams
import com.lithic.api.models.PaymentCreateResponse
import com.lithic.api.models.PaymentListPageAsync
import com.lithic.api.models.PaymentListParams
import com.lithic.api.models.PaymentRetrieveParams
import com.lithic.api.models.PaymentRetryParams
import com.lithic.api.models.PaymentRetryResponse
import com.lithic.api.models.PaymentSimulateActionParams
import com.lithic.api.models.PaymentSimulateActionResponse
import com.lithic.api.models.PaymentSimulateReceiptParams
import com.lithic.api.models.PaymentSimulateReceiptResponse
import com.lithic.api.models.PaymentSimulateReleaseParams
import com.lithic.api.models.PaymentSimulateReleaseResponse
import com.lithic.api.models.PaymentSimulateReturnParams
import com.lithic.api.models.PaymentSimulateReturnResponse
interface PaymentServiceAsync {
/** Initiates a payment between a financial account and an external bank account. */
suspend fun create(
params: PaymentCreateParams,
requestOptions: RequestOptions = RequestOptions.none()
): PaymentCreateResponse
/** Get the payment by token. */
suspend fun retrieve(
params: PaymentRetrieveParams,
requestOptions: RequestOptions = RequestOptions.none()
): Payment
/** List all the payments for the provided search criteria. */
suspend fun list(
params: PaymentListParams,
requestOptions: RequestOptions = RequestOptions.none()
): PaymentListPageAsync
/** Retry an origination which has been returned. */
suspend fun retry(
params: PaymentRetryParams,
requestOptions: RequestOptions = RequestOptions.none()
): PaymentRetryResponse
/** Simulate payment lifecycle event */
suspend fun simulateAction(
params: PaymentSimulateActionParams,
requestOptions: RequestOptions = RequestOptions.none()
): PaymentSimulateActionResponse
/** Simulates a receipt of a Payment. */
suspend fun simulateReceipt(
params: PaymentSimulateReceiptParams,
requestOptions: RequestOptions = RequestOptions.none()
): PaymentSimulateReceiptResponse
/** Simulates a release of a Payment. */
suspend fun simulateRelease(
params: PaymentSimulateReleaseParams,
requestOptions: RequestOptions = RequestOptions.none()
): PaymentSimulateReleaseResponse
/** Simulates a return of a Payment. */
suspend fun simulateReturn(
params: PaymentSimulateReturnParams,
requestOptions: RequestOptions = RequestOptions.none()
): PaymentSimulateReturnResponse
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy